Code

Updated some images in fai management
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Mar 2010 05:43:55 +0000 (05:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Mar 2010 05:43:55 +0000 (05:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17365 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiManagement.inc
gosa-plugins/fai/admin/fai/fai-list.xml

index 3f65fee0877ad8e7f4a96e2840fde4e1aa8c9ca5..3b7454fbad19841918ad54de6991cb7a6a634002 100644 (file)
@@ -1063,10 +1063,9 @@ class faiManagement extends management
     $icon_list = "";
     foreach($objects as $type => $type_data){
       if(in_array($type, $classes)){
-        $icon_list .= "<input type='image' src='".$type_data['IMG']."' title='".$type_data['NAME']."'
-          alt='".$type_data['KZL']."' class='center' name='edit_".$row."_".$type."'>\n";
+        $icon_list .= image($type_data['IMG'],'edit_'.$row.'_'.$type,$type_data['NAME']);
       }else{
-        $icon_list .= "<img src='images/empty.png' alt=' ' class='center'>\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{
index 65c1442aac7ee8775cc9645f8d0d00fdbfef42ae..db32326a5216c509fa383bc51152c110f7169dd6 100644 (file)
@@ -48,7 +48,7 @@
 
     <action>
      <type>sub</type>
-     <image>images/lists/new.png</image>
+     <image>images/lists/element.png[new]</image>
      <label>Create</label>
 
      <action>