Code

Added download button for Scripts/Hooks
[gosa.git] / plugins / admin / fai / class_faiHookEntry.inc
index 3a7e455e04ec40b4096785692bfde0700b3bdde4..83396e99214b69922e0ca0744cb0c14042d09b3c 100644 (file)
@@ -71,6 +71,15 @@ class faiHookEntry extends plugin
       }
     }
 
+    /* Create download button*/
+    if($this->dn != "new"){
+      $smarty->assign("DownMe","<a href='getFAIscript.php?id=".base64_encode($this->dn)."' target='_blank'>
+        <input type='button' value='"._("Download")."'>
+        </a>");
+    }else{
+      $smarty->assign("DownMe","");  
+    }
+
     $used_tasks = $this->parent->getUsedFAItask($this->cn);
     $tasks = $this->tasks;
     foreach($this->tasks as $id => $task){