index f2c792a0e9d05325db9010a0413f7ed72cc13021..caf994ba6b247bd7d71a97d365f35657e1fc1d5c 100644 (file)
function GetSnapShotActions($dn)
{
- $str = "";
+ $str= "";
if($this->parent->snapshotEnabled()){
- $str= "<input class='center' type='image' src='images/snapshot.png'
- alt='"._("Create snapshot")."' name='CreateSnapShotDialog_".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'
+ $str.= "<input class='center' type='image' src='images/restore.png'
alt='"._("Restore snapshot")."' name='RestoreSnapShotDialog_".base64_encode($dn)."' title='"._("Restore snapshot")."'> ";
+ } else {
+ $str = "<img class='center' src='images/restore_grey.png'> ";
}
+
+ $str.= "<input class='center' type='image' src='images/snapshot.png'
+ alt='"._("Create snapshot")."' name='CreateSnapShotDialog_".base64_encode($dn)."' title='"._("Create a new snapshot from this object")."'> ";
}
return($str);