X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fsecurity_roles.php;h=9ffe8d7bc17f09cb3158f4c2a8217bdfff9189e4;hb=b6ae2ddcd0cbc571edd01157ca1c8d44bbe071ef;hp=8ca8ce2d6dd67068c54df810b2cfea27de858b63;hpb=8db17d8bdece39449bef36cb1e5e410ae28cddca;p=fa-stable.git diff --git a/admin/security_roles.php b/admin/security_roles.php index 8ca8ce2d..9ffe8d7b 100644 --- a/admin/security_roles.php +++ b/admin/security_roles.php @@ -15,7 +15,7 @@ include_once($path_to_root . "/includes/session.inc"); add_access_extensions(); -page(_("Access setup")); +page(_($help_context = "Access setup")); include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/includes/access_levels.inc"); @@ -90,10 +90,10 @@ if (get_post('addupdate')) if (($a&~0xffff) && (($a&0xff00)<(99<<8))) { $sections[] = $a&~0xff; // add extended section for plugins } - $areas[] = $a; + $areas[] = (int)$a; } if (substr($p,0,7) == 'Section') - $sections[] = substr($p, 7); + $sections[] = (int)substr($p, 7); } // $areas = sort_areas($areas); @@ -173,7 +173,7 @@ if (!isset($_POST['role']) || get_post('clone') || list_updated('role')) { start_form(); -start_table("class='tablestyle_noborder'"); +start_table(TABLESTYLE_NOBORDER); start_row(); security_roles_list_cells(_("Role:"). " ", 'role', null, true, true, check_value('show_inactive')); $new_role = get_post('role')==''; @@ -191,13 +191,13 @@ if (find_submit('_Section')) { } //----------------------------------------------------------------------------------------------- div_start('details'); -start_table($table_style2); +start_table(TABLESTYLE2); text_row(_("Role name:"), 'name', null, 20, 22); text_row(_("Role description:"), 'description', null, 50, 52); record_status_list_row(_("Current status:"), 'inactive'); end_table(1); - start_table("$table_style width=40%"); + start_table(TABLESTYLE, "width='40%'"); $k = $j = 0; //row colour counter $ext = $sec = $m = -1; @@ -254,4 +254,3 @@ div_end(); end_form(); end_page(); -?>