From: hickert Date: Tue, 30 Mar 2010 05:43:55 +0000 (+0000) Subject: Updated some images in fai management X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3af15ade1ae762f3cfac68d5390f1591a83f2a21;p=gosa.git Updated some images in fai management git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17365 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc index 3f65fee08..3b7454fba 100644 --- a/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -1063,10 +1063,9 @@ class faiManagement extends management $icon_list = ""; foreach($objects as $type => $type_data){ if(in_array($type, $classes)){ - $icon_list .= "\n"; + $icon_list .= image($type_data['IMG'],'edit_'.$row.'_'.$type,$type_data['NAME']); }else{ - $icon_list .= " \n"; + $icon_list .= image('images/empty.png'); } } @@ -1127,9 +1126,9 @@ class faiManagement extends management if(isset($_GET['act']) && $_GET['act'] == "remove_branch") $action['action'] = "removeBranch"; foreach($_POST as $name => $value){ - if(preg_match("/^edit_([0-9]*)_([a-z_]*)_(x|y)/i", $name)){ - $id = preg_replace("/^edit_([0-9]*)_([a-z_]*)_(x|y)/i","\\1", $name); - $tab = preg_replace("/^edit_([0-9]*)_([a-z_]*)_(x|y)/i","\\2", $name); + if(preg_match("/^edit_([0-9]*)_([a-z_]*)/i", $name)){ + $id = preg_replace("/^edit_([0-9]*)_([a-z_]*)/i","\\1", $name); + $tab = preg_replace("/^edit_([0-9]*)_([a-z_]*)/i","\\2", $name); $headpage = $this->getHeadpage(); $entry = $headpage->entries[$id]; @@ -1138,7 +1137,7 @@ class faiManagement extends management if(isset($headpage->entries[$id]['GROUPS'][$tab])){ $data =$headpage->entries[$id]['GROUPS'][$tab]; $type = $this->get_type($data); - $str = management::editEntry('editEntry',array($data['dn']),array(),$type[0],$type[2],$type[1]); + $str = management::editEntry('editEntry',array($data['dn']),array(),$type[0],$type[2],"fai"); if($str) return($str); } }else{ diff --git a/gosa-plugins/fai/admin/fai/fai-list.xml b/gosa-plugins/fai/admin/fai/fai-list.xml index 65c1442aa..db32326a5 100644 --- a/gosa-plugins/fai/admin/fai/fai-list.xml +++ b/gosa-plugins/fai/admin/fai/fai-list.xml @@ -48,7 +48,7 @@ sub - images/lists/new.png + images/lists/element.png[new]