Now using a single file

This commit is contained in:
Miles Lott 2001-05-11 12:22:55 +00:00
parent 510ee96a69
commit e05ebca6b4
2 changed files with 23 additions and 8 deletions

View File

@ -33,19 +33,20 @@
return $phpgw->db->f(0); return $phpgw->db->f(0);
} }
$p = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('admin')); $p = new Template(PHPGW_APP_TPL);
$p->set_file(array( $p->set_file(array(
'list' => 'groups.tpl', 'groups' => 'groups.tpl',
'row' => 'groups_row.tpl',
'empty_row' => 'accounts_row_empty.tpl'
)); ));
$p->set_block('groups','list','list');
$p->set_block('groups','row','row');
$p->set_block('groups','row_empty','row_empty');
$total = account_total($query); $total = account_total($query);
$p->set_var('th_bg',$phpgw_info['theme']['th_bg']); $p->set_var('th_bg',$phpgw_info['theme']['th_bg']);
$p->set_var('left_nextmatchs',$phpgw->nextmatchs->left('/admin/groups.php',$start,$total)); $p->set_var('left_next_matchs',$phpgw->nextmatchs->left('/admin/groups.php',$start,$total));
$p->set_var('right_nextmatchs',$phpgw->nextmatchs->right('/admin/groups.php',$start,$total)); $p->set_var('right_next_matchs',$phpgw->nextmatchs->right('/admin/groups.php',$start,$total));
$p->set_var('lang_groups',lang('user groups')); $p->set_var('lang_groups',lang('user groups'));
$p->set_var('sort_name',$phpgw->nextmatchs->show_sort_order($sort,"account_lid",$order,"/admin/groups.php",lang("name"))); $p->set_var('sort_name',$phpgw->nextmatchs->show_sort_order($sort,"account_lid",$order,"/admin/groups.php",lang("name")));

View File

@ -2,9 +2,9 @@
<p> <p>
<table border="0" width="45%" align="center"> <table border="0" width="45%" align="center">
<tr> <tr>
<td align="left">{left_nextmatchs}</td> <td align="left">{left_next_matchs}</td>
<td align="center">{lang_groups}</td> <td align="center">{lang_groups}</td>
<td align="right">{right_nextmatchs}</td> <td align="right">{right_next_matchs}</td>
</tr> </tr>
</table> </table>
@ -34,3 +34,17 @@
</tr> </tr>
</table> </table>
<!-- END list --> <!-- END list -->
<!-- BEGIN row -->
<tr bgcolor="{tr_color}">
<td>{group_name}</td>
<td width="5%">{edit_link}</td>
<td width="5%">{delete_link}</td>
</tr>
<!-- END row -->
<!-- BEGIN row_empty -->
<tr>
<td colspan="5" align="center">{message}</td>
</tr>
<!-- END row_empty -->