From 4d31a1bcce2c5001de3d8db604135e8f0151f796 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 4 Oct 2005 09:26:33 +0000 Subject: [PATCH] Added links for headpage list entries git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1457 594d385d-05f5-0310-b6e9-bd551577e9d8 --- TODO | 1 - plugins/admin/fai/class_faiManagement.inc | 9 ++++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 980102b59..c0413af2d 100644 --- 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 diff --git a/plugins/admin/fai/class_faiManagement.inc b/plugins/admin/fai/class_faiManagement.inc index 2a2613360..9444ed872 100644 --- a/plugins/admin/fai/class_faiManagement.inc +++ b/plugins/admin/fai/class_faiManagement.inc @@ -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 = ""; $action .= ""; + $editlink ="%NAME%"; + /* 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)); -- 2.30.2