Converted to use template blocks

This commit is contained in:
jengo 2001-05-10 12:27:09 +00:00
parent a17f9909b9
commit ffba834163
4 changed files with 22 additions and 21 deletions

View File

@ -34,10 +34,11 @@
$p = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); $p = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
$p->set_file(array( $p->set_file(array(
'list' => 'accounts.tpl', 'accounts' => 'accounts.tpl',
'row' => 'accounts_row.tpl',
'empty_row' => 'accounts_row_empty.tpl'
)); ));
$p->set_block('accounts','list','list');
$p->set_block('accounts','row','row');
$p->set_block('accounts','row_empty','row_empty');
$total = account_total($query); $total = account_total($query);

View File

@ -1,7 +1,7 @@
<!-- BEGIN list --> <!-- BEGIN list -->
<p> <p>
<table border="0" width="70%" align="center"> <table border="0" width="70%" align="center">
<tr bgcolor="{th_bg}"> <tr>
<td align="left">{left_next_matchs}</td> <td align="left">{left_next_matchs}</td>
<td align="center">{lang_user_accounts}</td> <td align="center">{lang_user_accounts}</td>
<td align="right">{right_next_matchs}</td> <td align="right">{right_next_matchs}</td>
@ -40,3 +40,20 @@
</table> </table>
<!-- END list --> <!-- END list -->
<!-- BEGIN row -->
<tr bgcolor="{tr_color}">
<td>{row_loginid}</td>
<td>{row_lastname}</td>
<td>{row_firstname}</td>
<td width="5%">{row_edit}</td>
<td width="5%">{row_delete}</td>
<td width="5%">{row_view}</td>
</tr>
<!-- END row -->
<!-- BEGIN row_empty -->
<tr>
<td colspan="5" align="center">{message}</td>
</tr>
<!-- END row_empty -->

View File

@ -1,11 +0,0 @@
<!-- BEGIN row -->
<tr bgcolor="{tr_color}">
<td>{row_loginid}</td>
<td>{row_lastname}</td>
<td>{row_firstname}</td>
<td width="5%">{row_edit}</td>
<td width="5%">{row_delete}</td>
<td width="5%">{row_view}</td>
</tr>
<!-- END row -->

View File

@ -1,6 +0,0 @@
<!-- BEGIN row -->
<tr>
<td colspan="5" align="center">{message}</td>
</tr>
<!-- END row -->