Now using PHPGW_APP_TPL

This commit is contained in:
Miles Lott 2001-05-11 14:01:06 +00:00
parent b0b26bc450
commit 323d44f8e9
5 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@
$phpgw_info['flags']['enable_contacts_class'] = True;
include('../header.inc.php');
$t = new Template(PHPGW_APP_TPL);
$t = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
$t->set_file(array('add' => 'add.tpl'));
$this = CreateObject('phpgwapi.contacts');

View File

@ -71,7 +71,7 @@
$fields = addressbook_read_entry($ab_id,$qfields);
addressbook_form('edit','edit.php','Edit',$fields[0],$customfields);
$t = new Template(PHPGW_APP_TPL);
$t = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
$t->set_file(array("edit" => "edit.tpl"));
$t->set_var('ab_id',$ab_id);

View File

@ -293,8 +293,8 @@
$t = new Template(PHPGW_APP_TPL);
$t->set_file(array('form' => 'form.tpl'));
$t->set_block('form','add','add');
$t->set_block('form','edit','edit');
//$t->set_block('form','add','add');
//$t->set_block('form','edit','edit');
$email = $fields['email'];
$emailtype = $fields['email_type'];

View File

@ -20,7 +20,7 @@
include('../header.inc.php');
$t = new Template(PHPGW_APP_TPL);
$t = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
$t->set_file(array('addressbook_list_t' => 'index.tpl'));
$t->set_block('addressbook_list_t','addressbook_header','addressbook_header');
$t->set_block('addressbook_list_t','column','column');

View File

@ -45,7 +45,7 @@
echo parse_navbar();
}
$t = new Template(PHPGW_APP_TPL);
$t = CreateObject('phpgwapi.Template',PHPGW_APP_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');