Code

Added image for downloading
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Feb 2006 14:43:17 +0000 (14:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Feb 2006 14:43:17 +0000 (14:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2736 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiScript.inc

index c742733df73ac0785afac5e9552b623229b0df2a..08859d81615720686d424ca00568ba3bcabd378e 100644 (file)
@@ -209,15 +209,17 @@ class faiScript extends plugin
     foreach($this->getList(true) as $key => $name){
       
       if(($this->SubObjects[$key]['status'] == "new") || ($this->SubObjects[$key]['dn'] == "new")){
-        $down =_("New object");
+        $down = "";
       }else{
-        $down = "<a href='getFAIscript.php?id=".base64_encode($name['dn'])."' target='_blank'>"._("download")."</a>"; 
+        $down = "<a href='getFAIscript.php?id=".base64_encode($name['dn'])."' target='_blank'>
+                      <img src='images/save.png' alt='"._("Download")."' title='"._("Download")."' border=0>
+                 </a>"; 
       } 
 
       $divlist->AddEntry(array( array("string"=>$name['name']),
-                                array("string"=>$down),
+                                array("string"=>$down , "attach" => "style='width:20px;'"),
                                 array("string"=>str_replace("%s",base64_encode($key),$img_edit.$img_remo),
-                                      "attach"=>"style='border-right: 0px;width:40px;'")));
+                                      "attach"=>"style='border-right: 0px;width:50px;text-align:right;'")));
     }
     $smarty->assign("Entry_divlist",$divlist->DrawList());
     /* Divlist creation complete