From ffba834163232895405cbf038ae3155dabd44a91 Mon Sep 17 00:00:00 2001 From: jengo Date: Thu, 10 May 2001 12:27:09 +0000 Subject: [PATCH] Converted to use template blocks --- admin/accounts.php | 7 ++++--- admin/templates/default/accounts.tpl | 19 ++++++++++++++++++- admin/templates/default/accounts_row.tpl | 11 ----------- .../templates/default/accounts_row_empty.tpl | 6 ------ 4 files changed, 22 insertions(+), 21 deletions(-) delete mode 100644 admin/templates/default/accounts_row.tpl delete mode 100644 admin/templates/default/accounts_row_empty.tpl diff --git a/admin/accounts.php b/admin/accounts.php index d8508203b3..ed4d5eb69a 100755 --- a/admin/accounts.php +++ b/admin/accounts.php @@ -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); diff --git a/admin/templates/default/accounts.tpl b/admin/templates/default/accounts.tpl index b7127e6db6..7661d5a2d8 100644 --- a/admin/templates/default/accounts.tpl +++ b/admin/templates/default/accounts.tpl @@ -1,7 +1,7 @@

- + @@ -40,3 +40,20 @@
{left_next_matchs} {lang_user_accounts} {right_next_matchs}
+ + + + {row_loginid} + {row_lastname} + {row_firstname} + {row_edit} + {row_delete} + {row_view} + + + + + + {message} + + diff --git a/admin/templates/default/accounts_row.tpl b/admin/templates/default/accounts_row.tpl deleted file mode 100644 index 7daa706e3f..0000000000 --- a/admin/templates/default/accounts_row.tpl +++ /dev/null @@ -1,11 +0,0 @@ - - - - {row_loginid} - {row_lastname} - {row_firstname} - {row_edit} - {row_delete} - {row_view} - - diff --git a/admin/templates/default/accounts_row_empty.tpl b/admin/templates/default/accounts_row_empty.tpl deleted file mode 100644 index d06d6f329c..0000000000 --- a/admin/templates/default/accounts_row_empty.tpl +++ /dev/null @@ -1,6 +0,0 @@ - - - - {message} - -