index 595a5cbcfefbda90504fd54edb10e1ab9c172648..3b41137e53980a6ecf578fb5af2142c36e1512bf 100644 (file)
/* 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.="<div align='right'>";
if (isset($_SESSION['edit'])){
- $display.= "<input type=submit name=\"edit_finish\" value=\""._("Finish")."\">\n";
+ $display.= "<input type=submit name=\"edit_finish\" style=\"width:80px\" value=\""._("Ok")."\">\n";
$display.= " ";
$display.= "<input type=submit name=\"edit_cancel\" value=\""._("Cancel")."\">\n";
- $info= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/closedlock.png').
+ $info= "<img class=\"center\" alt=\"\" align=\"middle\" src=\"".get_template_path('images/closedlock.png').
"\"> ".$ui->dn." ";
} else {
- $info= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/openlock.png').
+ $info= "<img class=\"center\" alt=\"\" align=\"middle\" src=\"".get_template_path('images/openlock.png').
"\"> ".$ui->dn." ";
if ($editacl != "#none#"){
- $info.= "<img alt=\"\" align=\"middle\" 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.="</div>";
}
- $display.= "</p>\n";
+// $display.= "</p>\n";
/* Page header*/
$display= print_header(get_template_path('images/proxy.png'),