index 00d49d6d57c74d175f18172fc0a8df16cf8f8a19..8481095f07e457aaf426bc5402a57d0a5ff075e6 100644 (file)
}
+
+ function GetSnapShotActions($dn)
+ {
+ $str = "";
+
+ if($this->parent->snapshotEnabled()){
+
+ $str .="<input class='center' type='image' src='images/snapshot.png'
+ alt='"._("Create snapshot")."' name='CreateSnapShot_".base64_encode($dn)."' title='"._("Create a new snapshot from this object")."'> ";
+
+ if(count($this->parent->Available_SnapsShots($dn))){
+ $str .="<input class='center' type='image' src='images/restore.png'
+ alt='"._("Restore snapshot")."' name='RestoreSnapShot_".base64_encode($dn)."' title='"._("Restore snapshot")."'> ";
+ }else{
+ $str.= "<img src='images/empty.png' style='width:16px;' class='center'> ";
+ }
+ }
+ return($str);
+ }
+
+
/* this function adds the sub-departments of the current tree to the list */
function AddDepartments($base = false,$numtabs = 3)
{