From 0b95e839d795c27e67cfa3dc8eda30db49369d07 Mon Sep 17 00:00:00 2001 From: Lars Kneschke Date: Tue, 26 Dec 2000 00:52:38 +0000 Subject: [PATCH] modified the look of the admin pages --- admin/editaccount.php | 20 +++++++++++--- admin/newaccount.php | 12 ++++++-- admin/templates/default/account_form.tpl | 35 ++++++++++++------------ 3 files changed, 43 insertions(+), 24 deletions(-) diff --git a/admin/editaccount.php b/admin/editaccount.php index 4352067ebf..721fe11eef 100755 --- a/admin/editaccount.php +++ b/admin/editaccount.php @@ -12,7 +12,10 @@ /* $Id$ */ $phpgw_info = array(); - $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "admin"); + $phpgw_info["flags"] = array("noheader" => True, + "nonavbar" => True, + "currentapp" => "admin", + "parent_page" => "accounts.php"); include("../header.inc.php"); include($phpgw_info["server"]["app_inc"]."/accounts_".$phpgw_info["server"]["account_repository"].".inc.php"); @@ -136,11 +139,20 @@ $phpgw->template->set_var("form_action",$phpgw->link("editaccount.php","account_id=" . $userData["account_id"] . "&old_loginid=" . $userData["account_lid"])); } + $phpgw->template->set_var("tr_color1",$phpgw_info["theme"]["row_on"]); + $phpgw->template->set_var("tr_color2",$phpgw_info["theme"]["row_off"]); + $phpgw->template->set_var("lang_action",lang("Edit user account")); $phpgw->template->set_var("lang_loginid",lang("LoginID")); $phpgw->template->set_var("n_loginid_value",$n_loginid); + $phpgw->template->set_var("lang_account_active",lang("Account active")); + if ($userData["status"]) + $phpgw->template->set_var("account_checked","checked"); + else + $phpgw->template->set_var("account_checked",""); + $phpgw->template->set_var("lang_password",lang("Password")); $phpgw->template->set_var("n_passwd_value",$n_passwd); @@ -184,7 +196,7 @@ for ($i=0;$i<200;) { // The $i<200 is only used for a brake if (! $perm_display[$i][1]) break; - $perm_html .= '' . lang($perm_display[$i][1]) . '' + $perm_html .= '' . lang($perm_display[$i][1]) . '' . ''; $phpgw->template->set_var("permissions_list",$perm_html); - $phpgw->template->set_var("lang_button",lang("Edit")); + + $phpgw->template->set_var("lang_button",lang("Save")); $phpgw->template->pparse("out","form"); account_close(); diff --git a/admin/newaccount.php b/admin/newaccount.php index 5d850bc27e..c0ac48858c 100755 --- a/admin/newaccount.php +++ b/admin/newaccount.php @@ -12,7 +12,10 @@ /* $Id$ */ $phpgw_info = array(); - $phpgw_info["flags"] = array("currentapp" => "admin", "noheader" => True, "nonavbar" => True); + $phpgw_info["flags"] = array("currentapp" => "admin", + "noheader" => True, + "nonavbar" => True, + "parent_page" => "accounts.php"); include("../header.inc.php"); include($phpgw_info["server"]["app_inc"]."/accounts_".$phpgw_info["server"]["account_repository"].".inc.php"); @@ -77,11 +80,16 @@ } else { $phpgw->template->set_var("error_messages",""); } + + $phpgw->template->set_var("tr_color1",$phpgw_info["theme"]["row_on"]); + $phpgw->template->set_var("tr_color2",$phpgw_info["theme"]["row_off"]); $phpgw->template->set_var("form_action",$phpgw->link("newaccount.php")); $phpgw->template->set_var("lang_loginid",lang("LoginID")); $phpgw->template->set_var("n_loginid_value",$n_loginid); + $phpgw->template->set_var("lang_account_active",lang("Account active")); + $phpgw->template->set_var("lang_password",lang("Password")); $phpgw->template->set_var("n_passwd_value",$n_passwd); @@ -123,7 +131,7 @@ for ($i=0;$i<200;) { // The $i<200 is only used for a brake if (! $perm_display[$i][1]) break; - $perms_html .= '' . lang($perm_display[$i][1]) . '' + $perms_html .= '' . lang($perm_display[$i][1]) . '' . '
- + + - + + + + + + + + - - - - - - - - - - - - - + + {permissions_list} - - - + + +
{lang_loginid} + {lang_account_active}:  +
{lang_firstname}{lang_lastname}
{lang_password}
{lang_reenter_password}
{lang_firstname}
{lang_lastname}
{lang_groups} {groups_select}