Code

fixed macro visible flag in divlist
[gosa.git] / plugins / gofon / macro / class_divListMacros.inc
index b88aaed36fd3f9e7e13060888ab461f1db5e4426..1ab12136faea67482208af0a8087de8888cdca92 100755 (executable)
@@ -43,7 +43,7 @@ class divListMacro extends MultiSelectWindow
 
     /* set Page header */
     $this->AddHeader(array("string" => " ", "attach" => "style='text-align:center;width:20px;'"));
-    $this->AddHeader(array("string" => _("Username")." / "._("Department"), "attach" => "style=''"));
+    $this->AddHeader(array("string" => _("macro name")." / "._("Department"), "attach" => "style=''"));
     $this->AddHeader(array("string" => _("Visible"), "attach" => "style='width:50px;'"));
     $this->AddHeader(array("string" => _("Actions"), "attach" => "style='width:60px;border-right:0px;text-align:right;'" ));
 
@@ -100,9 +100,9 @@ class divListMacro extends MultiSelectWindow
   {
   
     $action     = "<input class='center' type='image' src='images/edit.png' alt='"._("edit")."'     
-                    name='user_edit_%KEY%' title='"._("Edit user")."'>";
+                    name='user_edit_%KEY%' title='"._("Edit macro")."'>";
     $action    .= "<input class='center' type='image' src='images/edittrash.png' alt='"._("delete")."'   
-                    name='user_del_%KEY%' title='"._("Delete user")."'>";
+                    name='user_del_%KEY%' title='"._("Delete macro")."'>";
   
     $empty      = "<img class='center' src='images/nothing.png' style='width:16px;height:16px;' alt=''>";
     $macroimg   = "<img class='center' src='images/list_macro.png' alt='"._("Macro")."' title='%s'>";
@@ -120,7 +120,7 @@ class divListMacro extends MultiSelectWindow
       }
 
       $field1 = array("string" => sprintf($macroimg,$val['dn']), "attach" => "style='text-align:center;width:20px;'");
-      $field2 = array("string" => sprintf($editlink,$key,$display), "attach" => "style='' title='dn:&nbsp;".@LDAP::fix($val['dn'])."'");
+      $field2 = array("string" => sprintf($editlink,$key,$display), "attach" => "style='' title='".preg_replace('/ /', '&nbsp;', @LDAP::fix($val['dn']))."'");
       $field3 = array("string" => $pic1, "attach" => "style='width:50px;'");
       $field4 = array("string" => preg_replace("/%KEY%/", "$key", $action), "attach" => "style='width:60px;border-right:0px;text-align:right;'");