diff --git a/admin/accounts.php b/admin/accounts.php index 89be080393..9f6da40f5d 100755 --- a/admin/accounts.php +++ b/admin/accounts.php @@ -17,11 +17,8 @@ include($phpgw_info["server"]["server_root"] . "/admin/inc/accounts_" . $phpgw_info["server"]["account_repository"] . ".inc.php"); - $phpgw->template->set_file(array("header" => "accounts.tpl", - "row" => "accounts.tpl", - "footer" => "accounts.tpl")); - - $phpgw->template->set_block("header","row","footer"); + $phpgw->template->set_file(array("list" => "accounts.tpl", + "row" => "accounts_row.tpl")); $total = account_total(); @@ -40,8 +37,6 @@ $phpgw->template->set_var("lang_delete",lang("Delete")); $phpgw->template->set_var("lang_view",lang("View")); - $phpgw->template->parse("out","header"); - $account_info = account_read($method,$start,$sort,$order); while (list($null,$account) = each($account_info)) { @@ -69,7 +64,7 @@ $phpgw->template->set_var("row_firstname",$firstname); $phpgw->template->set_var("row_lastname",$lastname); $phpgw->template->set_var("row_edit",' ' . lang("Edit") . ' '); + . $account_id) . '"> ' . lang("Edit") . ' '); if ($phpgw_info["user"]["userid"] != $account["account_lid"]) { $phpgw->template->set_var("row_delete",'template->set_var("row_view",' ' . lang("View") . ' '); + . $account_id) . '"> ' . lang("View") . ' '); - if ($total == 1) { - $phpgw->template->set_var("output",""); - } - if ($total != ++$i) { - $phpgw->template->parse("output","row",True); - } + $phpgw->template->parse("rows","row",True); } $phpgw->template->set_var("actionurl",$phpgw->link("newaccount.php")); $phpgw->template->set_var("lang_add",lang("add")); $phpgw->template->set_var("lang_search",lang("search")); - $phpgw->template->pparse("out","footer"); + $phpgw->template->pparse("out","list"); $phpgw->common->phpgw_footer(); diff --git a/admin/templates/default/accounts.tpl b/admin/templates/default/accounts.tpl index 485f36b4a9..25fad032e6 100644 --- a/admin/templates/default/accounts.tpl +++ b/admin/templates/default/accounts.tpl @@ -1,4 +1,4 @@ - +
{lang_delete} | {lang_view} | ||||
{row_loginid} | -{row_lastname} | -{row_firstname} | -{row_edit} | -{row_delete} | -{row_view} | -