From: hickert Date: Wed, 30 Sep 2009 15:49:31 +0000 (+0000) Subject: Display images in the FAI class lisitng X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7440541a7c338da14ed07b1c657bcaf38268dad3;p=gosa.git Display images in the FAI class lisitng git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14426 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc index 6d2c6bb2c..ae047a7e9 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc @@ -650,11 +650,21 @@ class workstartup extends plugin * use the description from FAIprofile, if possible. */ $desc = ""; + + $objects = array( + "Pl" => array("IMG"=> "plugins/fai/images/fai_partitionTable.png"), + "Pt" => array("IMG"=> "plugins/fai/images/fai_packages.png"), + "S" => array("IMG"=> "plugins/fai/images/fai_script.png"), + "V" => array("IMG"=> "plugins/fai/images/fai_variable.png"), + "H" => array("IMG"=> "plugins/fai/images/fai_hook.png"), + "P" => array("IMG"=> "plugins/fai/images/fai_profile.png"), + "T" => array("IMG"=> "plugins/fai/images/fai_template.png")); + if(isset($this->cache['CLASSES'][$this->FAIrelease][$class])){ $desc =""; foreach($this->cache['CLASSES'][$this->FAIrelease][$class] as $types ){ if(isset($types['Abbr'])){ - $desc.= $types['Abbr']." "; + $desc.= " "; if($types['Type'] == "FAIprofile"){ break; } @@ -662,11 +672,12 @@ class workstartup extends plugin } } if(!empty($desc)){ - $desc = " [".trim($desc)."]"; + $desc = " ".trim($desc).""; } $div->AddEntry(array( - array("string"=>$class.$desc.$marker), + array("string"=>$class.$marker), + array("string"=>$desc), array("string"=>preg_replace("/\%s/",base64_encode($class),$str),"attach"=>"style='width:50px;border-right:none;'") )); }