Now using same tpl as new/edit

This commit is contained in:
Miles Lott 2001-05-11 12:49:08 +00:00
parent af032a9377
commit a133e9b4ee
2 changed files with 15 additions and 6 deletions

View File

@ -61,3 +61,13 @@
<td colspan="4" align="right"><input type="submit" name="submit" value="{lang_button}"></td>
</tr>
<!-- END form_buttons_ -->
<!-- BEGIN form_logininfo -->
<tr bgcolor="{tr_color1}">
<td>{lang_lastlogin}</td>
<td>{account_lastlogin}</td>
<td>{lang_lastloginfrom}</td>
<td>{account_lastloginfrom}</td>
</tr>
<!-- END form_logininfo -->

View File

@ -31,12 +31,11 @@
Header('Location: ' . $phpgw->link('/admin/accounts.php'));
}
$t = new Template($phpgw->common->get_tpl_dir('admin'));
$t = new Template(PHPGW_APP_TPL);
$t->set_unknowns('remove');
$t->set_file(array(
'form' => 'account_form.tpl',
'form_logininfo' => 'account_form_logininfo.tpl'
));
$t->set_file(array('account' => 'account_form.tpl'));
$t->set_block('account','form','form');
$t->set_block('account','form_logininfo','form_logininfo');
$t->set_var('th_bg',$phpgw_info['theme']['th_bg']);
$t->set_var('tr_color1',$phpgw_info['theme']['row_on']);