From 479fb1401efc8af33b6eb730f23e09d98ef3955e Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 5 Nov 2009 10:31:09 +0000 Subject: [PATCH] Added shortcur icons to ogroups. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14754 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/ogroups/class_ogroupManagement.inc | 50 +++++-------------- 1 file changed, 12 insertions(+), 38 deletions(-) diff --git a/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc b/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc index 0d7e55db6..3afbdf98d 100644 --- a/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc +++ b/gosa-core/plugins/admin/ogroups/class_ogroupManagement.inc @@ -63,10 +63,10 @@ class ogroupManagement extends management } parent::__construct($config, $ui, "ogroups", $headpage); - $this->registerAction("edit_group","editEntry"); - $this->registerAction("edit_environment","editEntry"); - $this->registerAction("edit_appgroup","editEntry"); - $this->registerAction("edit_mailgroup","editEntry"); + $this->registerAction("edit_ogroup","editEntry"); + $this->registerAction("edit_phonequeue","editEntry"); + $this->registerAction("edit_workstartup","editEntry"); + $this->registerAction("edit_termgroup","editEntry"); } function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="") @@ -99,42 +99,16 @@ class ogroupManagement extends management "T" => array("plugins/ogroups/images/terminal.png" ,_("Terminal") , "termgroup"), "P" => array("plugins/ogroups/images/printer.png" ,_("Printer") , "ogroup")); - /* Assemble picture */ - $type= $gosaGroupObjects[0]; - $type= preg_replace("/[^A-Z]/i","",$type); - if (isset($type[0])){ - $p1['pic']= $conv[$type[0]][0]; - $p1['tit']= $conv[$type[0]][1]; - $p1['alt']= $type[0]; - $p1['lnk']= $conv[$type[0]][2]; - $html_object_1 = ""; - if (isset($type[1])){ - $p2['pic']= $conv[$type[1]][0]; - $p2['alt']= $type[1]; - $p2['tit']= $conv[$type[1]][1]; - $p2['lnk']= $conv[$type[1]][2]; - $html_object_2 = ""; - $temp.= $html_object_2." class='center' id='iconB".preg_replace("/_/","",$p2['lnk']."_group_edit_%KEY")."' - src='".$p2['pic']."' alt='".$p2['alt']."' title='".$p2['tit']."'>"; - return ($temp); + return($result); } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: -- 2.30.2