Code

Added links for headpage list entries
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Oct 2005 09:26:33 +0000 (09:26 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Oct 2005 09:26:33 +0000 (09:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1457 594d385d-05f5-0310-b6e9-bd551577e9d8

TODO
plugins/admin/fai/class_faiManagement.inc

diff --git a/TODO b/TODO
index 980102b594842ffe215e6d55fb18ba50514027b2..c0413af2d123b5939a8e604b505f583565e050df 100644 (file)
--- a/TODO
+++ b/TODO
@@ -25,7 +25,6 @@ Things to fix before 2.4:
 
 * FAI management
   - Subtree support
-  - Add links for headpage list entries
   - Hooks have to be implemented like skripts
   - Add package lists
   - Make templates uploadable
index 2a26133602aabe14490a37a01d872d65031d7241..9444ed8721373b3297be1efb2cb834440f96c899 100644 (file)
@@ -139,6 +139,11 @@ class faiManagement extends plugin
 
                }
 
+               if(isset($_GET['edit_entry'])){
+                       $s_entry = $_GET['edit_entry'];
+                       $s_action = "edit";
+               }
+
                /* Confirm dialog 
                 * Delte object 
          */
@@ -406,6 +411,8 @@ class faiManagement extends plugin
                $action  = "<input type='image' src='images/edit.png'   alt='"._("edit")."'   name='entry_edit_%KEY%' title='"._("Edit class")."'>";
                $action .= "<input type='image' src='images/edittrash.png' alt='"._("delete")."' name='entry_delete_%KEY%' title='"._("Delete class")."'>";
 
+               $editlink ="<a href='?plug=".$_GET['plug']."&edit_entry=%KEY%'>%NAME%</a>";             
+
                /* Attach objects */
                foreach($this->objects as $key => $value){
                                $info= "";
@@ -476,7 +483,7 @@ class faiManagement extends plugin
                                        }
 
                                        $field1 = array("string" => $img , "attach" => "style='height:26px;width=20px;'");
-                                       $field2 = array("string" => $value['cn'].$desc , "attach" => "");
+                                       $field2 = array("string" => preg_replace(array("/%KEY%/","/%NAME%/"),array($key,$value['cn'].$desc),$editlink) , "attach" => "");
                                        $field3 = array("string" => $info, "attach" => "");
                                        $field4 = array("string" => preg_replace("/%KEY%/",$key,$action) , "attach"=>"style='text-align:right;border:none'");
                                        $divlist->AddEntry(array($field1,$field2,$field3,$field4));