From 0eeb438528e816232aac90579be963b2218087c7 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 28 Jul 2005 09:38:36 +0000 Subject: [PATCH] Added tooltip for pictures git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1025 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/ogroups/class_ogroupManagement.inc | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/plugins/admin/ogroups/class_ogroupManagement.inc b/plugins/admin/ogroups/class_ogroupManagement.inc index 73fcc9552..80c1b5412 100644 --- a/plugins/admin/ogroups/class_ogroupManagement.inc +++ b/plugins/admin/ogroups/class_ogroupManagement.inc @@ -425,14 +425,14 @@ name='dep_root' alt='"._("Root")."'> ". $mail = $empty; } - $title = "title='gid : ".$key." - dn : ".$val['dn']."'"; + $title = "title='dn : ".$val['dn']."'"; if(!isset($val['description'][0])){ $desc = ""; }else{ $desc = " - [ ".$val['description'][0]." ]"; } - $field1 = array("string" => ""._("Object group").""); + $field1 = array("string" => ""._("Object group").""); $field2 = array("string" => sprintf($editlink,$key,($val['cn']['0'].$desc)),"attach"=>$title); $field3 = array("string" => $this->convert_list($val)." ".$mail); $field4 = array("string" => preg_replace("/%KEY%/", $key, $actions),"attach"=>"style='text-align:right;border:none'"); @@ -472,35 +472,40 @@ name='dep_root' alt='"._("Root")."'> ". $temp= ""; - $conv= array( "U" => "select_user.png", - "G" => "select_groups.png", - "A" => "select_application.png", - "D" => "select_department.png", - "S" => "select_server.png", - "F" => "select_phone.png", - "W" => "select_workstation.png", - "T" => "select_terminal.png", - "P" => "select_printer.png"); + $conv= array( + "U" => array("select_user.png",_("User")), + "G" => array("select_groups.png",_("Group")), + "A" => array("select_application.png",_("Application")), + "D" => array("select_department.png",_("Department")), + "S" => array("select_server.png",_("Server")), + "F" => array("select_phone.png",_("Phone")), + "W" => array("select_workstation.png",_("Workstation")), + "T" => array("select_terminal.png",_("Terminal")), + "P" => array("select_printer.png",_("Printer"))); /* Assemble picture */ $type= $input['gosaGroupObjects'][0]; $type= preg_replace("/[^A-Z]/i","",$type); if (isset($type[0])){ - $p1['pic']= $conv[$type[0]]; + $p1['pic']= $conv[$type[0]][0]; + $p1['tit']= $conv[$type[0]][1]; $p1['alt']= $type[0]; } else { $p1['pic']= "empty.png"; + $p1['tit']= ""; $p1['alt']= ""; } if (isset($type[1])){ - $p2['pic']= $conv[$type[1]]; + $p2['pic']= $conv[$type[1]][0]; $p2['alt']= $type[1]; + $p2['tit']= $conv[$type[1]][1]; } else { $p2['pic']= "empty.png"; $p2['alt']= ""; + $p2['tit']= ""; } - $temp = "".$p1["; - $temp.= "".$p2["; + $temp = "".$p1["; + $temp.= "".$p2["; return ($temp); } -- 2.30.2