Code

Added tooltip
[gosa.git] / plugins / personal / connectivity / main.inc
index f511faf677010ee216c043b2d3a2ffc86dccb8d4..e6cbf0e0bb87df614e9b4920f3c271ffd845d74c 100644 (file)
@@ -107,29 +107,32 @@ if (!$remove_lock){
   /* Are we in edit mode? */
   $in_edit_mode= false;
   foreach ($connectivity->plugin_name as $name){
-    $in_edit_mode|= $connectivity->plugin[$name]->is_account;
+    $acls = get_module_permission($acl, "$name", $ui->dn);
+    if($acls != "#none#"){
+      $in_edit_mode|= true;
+    }
   }
   if ($in_edit_mode){
-    $display.= "<p class=\"plugbottom\">";
-
+    $display.="<div align='right'>";
     if (isset($_SESSION['edit'])){
       $display.= "<input type=submit name=\"edit_finish\" value=\""._("Finish")."\">\n";
       $display.= "&nbsp;";
       $display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
-      $info= "<img align=\"center\" src=\"".get_template_path('images/closedlock.png').
+      $info= "<img class=\"center\" alt=\"\" align=\"middle\" src=\"".get_template_path('images/closedlock.png').
              "\"> ".$ui->dn."&nbsp;";
     } else {
-      $info= "<img align=\"center\" src=\"".get_template_path('images/openlock.png').
+      $info= "<img class=\"center\" alt=\"\" align=\"middle\" src=\"".get_template_path('images/openlock.png').
              "\"> ".$ui->dn."&nbsp;";
       if ($editacl != "#none#"){
-        $info.= "<img align=\"center\" src=\"".get_template_path('images/lamp.png').
+        $info.= "<img class=\"center\" alt=\"\" align=\"middle\" src=\"".get_template_path('images/lamp.png').
                 "\">"._("Click the 'Edit' button below to change informations in this dialog");
         $display.= "<input type=submit name=\"edit\" value=\""._("Edit")."\">\n";
       }
       $display.= "<input type=\"hidden\" name=\"ignore\">\n";
     }
+    $display.="</div>";
   }
-  $display.= "</p>\n";
+//  $display.= "</p>\n";
 
   /* Page header*/
   $display= print_header(get_template_path('images/proxy.png'),