From c89c380f3f0bb30539bf07a07de29f4709bc3c30 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Thu, 10 May 2001 12:45:40 +0000 Subject: [PATCH] Now using single template file --- addressbook/templates/default/view.tpl | 41 ++++++++++++++++++++------ addressbook/view.php | 16 ++++------ 2 files changed, 38 insertions(+), 19 deletions(-) diff --git a/addressbook/templates/default/view.tpl b/addressbook/templates/default/view.tpl index a8384d39c3..2517ff860f 100644 --- a/addressbook/templates/default/view.tpl +++ b/addressbook/templates/default/view.tpl @@ -1,12 +1,35 @@ - - -{header} - - + +

 {lang_viewpref}


+ + + + + + + {cols} - -{footer} - + + + + + + + + + + + + + + + + + + +
{display_col}:{ref_data}
 
{lang_owner}{owner}
{lang_access}{access} +
{lang_category}{catname}
+ +

@@ -48,4 +71,4 @@
- + diff --git a/addressbook/view.php b/addressbook/view.php index 35da0554e6..376f19445b 100755 --- a/addressbook/view.php +++ b/addressbook/view.php @@ -46,12 +46,11 @@ } $t = new Template(PHPGW_APP_TPL); - $t->set_file(array( - 'view' => 'view.tpl', - 'view_header' => 'view_header.tpl', - 'view_row' => 'view_row.tpl', - 'view_footer' => 'view_footer.tpl' - )); + $t->set_file(array('view_t' => 'view.tpl')); + $t->set_block('view_t','view_header','view_header'); + $t->set_block('view_t','view_row','view_row'); + $t->set_block('view_t','view_footer','view_footer'); + $t->set_block('view_t','view_buttons','view_buttons'); $customfields = array(); while (list($col,$descr) = @each($phpgw_info['user']['preferences']['addressbook'])) @@ -266,9 +265,6 @@ $t->set_var('start',$start); $t->set_var('cat_id',$cat_id); - $t->parse('header','view_header'); - $t->parse('footer','view_footer'); - $t->set_var('lang_ok',lang('ok')); $t->set_var('lang_done',lang('done')); $t->set_var('lang_copy',lang('copy')); @@ -279,7 +275,7 @@ $t->set_var('copy_link',$copylink); $t->set_var('vcard_link',$vcardlink); - $t->pfp('out','view'); + $t->pfp('out','view_t'); $phpgw->common->phpgw_footer(); ?>