forked from extern/egroupware
Converted to use template blocks
This commit is contained in:
parent
a17f9909b9
commit
ffba834163
@ -34,10 +34,11 @@
|
||||
$p = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
|
||||
|
||||
$p->set_file(array(
|
||||
'list' => 'accounts.tpl',
|
||||
'row' => 'accounts_row.tpl',
|
||||
'empty_row' => 'accounts_row_empty.tpl'
|
||||
'accounts' => 'accounts.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);
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!-- BEGIN list -->
|
||||
<p>
|
||||
<table border="0" width="70%" align="center">
|
||||
<tr bgcolor="{th_bg}">
|
||||
<tr>
|
||||
<td align="left">{left_next_matchs}</td>
|
||||
<td align="center">{lang_user_accounts}</td>
|
||||
<td align="right">{right_next_matchs}</td>
|
||||
@ -40,3 +40,20 @@
|
||||
</table>
|
||||
|
||||
<!-- 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 -->
|
||||
|
@ -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 -->
|
@ -1,6 +0,0 @@
|
||||
|
||||
<!-- BEGIN row -->
|
||||
<tr>
|
||||
<td colspan="5" align="center">{message}</td>
|
||||
</tr>
|
||||
<!-- END row -->
|
Loading…
Reference in New Issue
Block a user