forked from extern/egroupware
Cleainging up templates
This commit is contained in:
parent
29ca6287d1
commit
1690434306
@ -17,11 +17,8 @@
|
|||||||
include($phpgw_info["server"]["server_root"] . "/admin/inc/accounts_"
|
include($phpgw_info["server"]["server_root"] . "/admin/inc/accounts_"
|
||||||
. $phpgw_info["server"]["account_repository"] . ".inc.php");
|
. $phpgw_info["server"]["account_repository"] . ".inc.php");
|
||||||
|
|
||||||
$phpgw->template->set_file(array("header" => "accounts.tpl",
|
$phpgw->template->set_file(array("list" => "accounts.tpl",
|
||||||
"row" => "accounts.tpl",
|
"row" => "accounts_row.tpl"));
|
||||||
"footer" => "accounts.tpl"));
|
|
||||||
|
|
||||||
$phpgw->template->set_block("header","row","footer");
|
|
||||||
|
|
||||||
$total = account_total();
|
$total = account_total();
|
||||||
|
|
||||||
@ -40,8 +37,6 @@
|
|||||||
$phpgw->template->set_var("lang_delete",lang("Delete"));
|
$phpgw->template->set_var("lang_delete",lang("Delete"));
|
||||||
$phpgw->template->set_var("lang_view",lang("View"));
|
$phpgw->template->set_var("lang_view",lang("View"));
|
||||||
|
|
||||||
$phpgw->template->parse("out","header");
|
|
||||||
|
|
||||||
$account_info = account_read($method,$start,$sort,$order);
|
$account_info = account_read($method,$start,$sort,$order);
|
||||||
|
|
||||||
while (list($null,$account) = each($account_info)) {
|
while (list($null,$account) = each($account_info)) {
|
||||||
@ -81,19 +76,14 @@
|
|||||||
$phpgw->template->set_var("row_view",'<a href="' . $phpgw->link("viewaccount.php", "account_id="
|
$phpgw->template->set_var("row_view",'<a href="' . $phpgw->link("viewaccount.php", "account_id="
|
||||||
. $account_id) . '"> ' . lang("View") . ' </a>');
|
. $account_id) . '"> ' . lang("View") . ' </a>');
|
||||||
|
|
||||||
if ($total == 1) {
|
$phpgw->template->parse("rows","row",True);
|
||||||
$phpgw->template->set_var("output","");
|
|
||||||
}
|
|
||||||
if ($total != ++$i) {
|
|
||||||
$phpgw->template->parse("output","row",True);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$phpgw->template->set_var("actionurl",$phpgw->link("newaccount.php"));
|
$phpgw->template->set_var("actionurl",$phpgw->link("newaccount.php"));
|
||||||
$phpgw->template->set_var("lang_add",lang("add"));
|
$phpgw->template->set_var("lang_add",lang("add"));
|
||||||
$phpgw->template->set_var("lang_search",lang("search"));
|
$phpgw->template->set_var("lang_search",lang("search"));
|
||||||
|
|
||||||
$phpgw->template->pparse("out","footer");
|
$phpgw->template->pparse("out","list");
|
||||||
|
|
||||||
$phpgw->common->phpgw_footer();
|
$phpgw->common->phpgw_footer();
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!-- BEGIN header -->
|
<!-- BEGIN list -->
|
||||||
<p>
|
<p>
|
||||||
<table border="0" width="70%" align="center">
|
<table border="0" width="70%" align="center">
|
||||||
<tr bgcolor="{bg_color}">
|
<tr bgcolor="{bg_color}">
|
||||||
@ -18,22 +18,9 @@
|
|||||||
<td>{lang_delete}</td>
|
<td>{lang_delete}</td>
|
||||||
<td>{lang_view}</td>
|
<td>{lang_view}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- END header -->
|
|
||||||
|
|
||||||
{output}
|
{rows}
|
||||||
|
|
||||||
<!-- 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 footer -->
|
|
||||||
</table>
|
</table>
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
@ -52,4 +39,4 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<!-- END footer -->
|
<!-- END list -->
|
||||||
|
11
admin/templates/default/accounts_row.tpl
Normal file
11
admin/templates/default/accounts_row.tpl
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
<!-- 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 -->
|
Loading…
Reference in New Issue
Block a user