summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6e9292a)
raw | patch | inline | side by side (parent: 6e9292a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 30 Mar 2010 05:43:55 +0000 (05:43 +0000) | ||
committer | hickert <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 | patch | blob | history | |
gosa-plugins/fai/admin/fai/fai-list.xml | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc
index 3f65fee0877ad8e7f4a96e2840fde4e1aa8c9ca5..3b7454fbad19841918ad54de6991cb7a6a634002 100644 (file)
$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');
}
}
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];
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)
<action>
<type>sub</type>
- <image>images/lists/new.png</image>
+ <image>images/lists/element.png[new]</image>
<label>Create</label>
<action>