Cleaned up the templates

This commit is contained in:
jengo 2001-02-12 18:16:09 +00:00
parent 71e21b9377
commit 4602e18fe1
3 changed files with 11 additions and 10 deletions

View File

@ -23,10 +23,11 @@
// creates the html for the user data
function createPageBody($_account_id)
{
global $phpgw,$phpgw_info;
global $phpgw,$phpgw_info;
$t = new Template($phpgw->common->get_tpl_dir("admin"));
$t->set_file(array("form" => "account_form.tpl"));
$t->set_unknowns('remove');
$t->set_file(array("form" => "account_form.tpl"));
$account = CreateObject('phpgwapi.accounts',$_account_id);
$userData = $account->read_repository();
@ -45,7 +46,7 @@
$t->set_var("lang_lastname",lang("Last Name"));
$t->set_var("lang_groups",lang("Groups"));
$t->set_var("lang_firstname",lang("First Name"));
$t->set_var("lang_button",lang('Save'));
$t->set_var("lang_button",lang('Save'));
$t->set_var("n_loginid_value",$userData["account_lid"]);
$t->set_var("n_passwd_value",$n_passwd);
@ -127,7 +128,7 @@
$t->set_var("permissions_list",$appRightsOutput);
$t->pparse('out','form');
echo $t->finish($t->parse('out','form'));
}
// stores the userdata
@ -518,8 +519,8 @@
}
if (!$includedSomething) $t->set_var('gui_hooks','');
$t->set_var("lang_button",lang('Save'));
$t->pparse('out','form');
$t->set_var('lang_button',lang('Save'));
echo $t->finish($t->parse('out','form'));
account_close();
$phpgw->common->phpgw_footer();

View File

@ -3,7 +3,7 @@
<form method="POST" action="{form_action}">
<center>
<table border=0 width=65%>
<table border=0 width=85%>
<tr bgcolor="{th_bg}">
<td colspan="4">&nbsp;</td>
</tr>
@ -33,7 +33,7 @@
<tr bgcolor="{tr_color2}">
<td>{lang_groups}</td>
<td>{groups_select}</td>
<td>{groups_select}&nbsp;</td>
<td colspan=2>&nbsp;</td>
</tr>

View File

@ -3,7 +3,7 @@
<form method="POST" action="{form_action}">
<center>
<table border=0 width=65%>
<table border=0 width=85%>
<tr bgcolor="{th_bg}">
<td colspan="4">&nbsp;</td>
</tr>
@ -33,7 +33,7 @@
<tr bgcolor="{tr_color2}">
<td>{lang_groups}</td>
<td>{groups_select}</td>
<td>{groups_select}&nbsp;</td>
<td colspan=2>&nbsp;</td>
</tr>