Code

Added description to macro list
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 Jan 2007 04:10:43 +0000 (04:10 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 10 Jan 2007 04:10:43 +0000 (04:10 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5495 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/gofon/macro/class_divListMacros.inc

index 3d14404e19e5de3152d96cf748b3292c1ba2adde..99c40678fac8bebd1649aad5bb703b4710bc92ea 100755 (executable)
@@ -104,6 +104,16 @@ class divListMacro extends MultiSelectWindow
     foreach($list as $key => $val){
       $display= $val["displayName"][0];
 
+      if(isset($val['description'][0])){
+
+        $desc = $val['description'][0];
+        if(strlen($desc) > 55){
+          $desc = substr($desc,0,52)."...";
+        }
+
+        $display .= "&nbsp;[".$desc."]";
+      }
+
       if(isset($val['goFonMacroVisible']['0'])&&($val['goFonMacroVisible']['0'] == "1")){
         $pic1 = $visible;
       }else{