using CreateObject('phpgwapi.Template',PHPGW_APP_TPL);

This commit is contained in:
Ralf Becker 2001-05-24 15:49:15 +00:00
parent 936d6dd022
commit 01b0f63865
4 changed files with 4 additions and 3 deletions

View File

@ -18,7 +18,7 @@
$phpgw->infolog = createobject('infolog.infolog'); $phpgw->infolog = createobject('infolog.infolog');
$t = new Template($phpgw_info['server']['app_tpl']); // $t->unknows = 'keep'; $t->debug = 1; $t = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); // $t->unknows = 'keep'; $t->debug = 1;
$t->set_file(array('import' => 'csv_import.tpl')); $t->set_file(array('import' => 'csv_import.tpl'));
$t->set_block('import','filename','filenamehandle'); $t->set_block('import','filename','filenamehandle');
$t->set_block('import','fheader','fheaderhandle'); $t->set_block('import','fheader','fheaderhandle');

View File

@ -49,7 +49,7 @@
. "<input type=\"hidden\" name=\"start\" value=\"$start\">\n" . "<input type=\"hidden\" name=\"start\" value=\"$start\">\n"
. "<input type=\"hidden\" name=\"filter\" value=\"$filter\">\n"; . "<input type=\"hidden\" name=\"filter\" value=\"$filter\">\n";
$phpgw->template = new Template($phpgw->common->get_tpl_dir('info')); $phpgw->template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
$phpgw->template->set_file(array( 'info_delete' => 'delete.tpl' )); $phpgw->template->set_file(array( 'info_delete' => 'delete.tpl' ));
$phpgw->template->set_var( $phpgw->infolog->setStyleSheet( )); $phpgw->template->set_var( $phpgw->infolog->setStyleSheet( ));
$phpgw->template->set_var( $phpgw->infolog->infoHeaders( )); $phpgw->template->set_var( $phpgw->infolog->infoHeaders( ));

View File

@ -150,6 +150,7 @@
$pri_selected[$phpgw->infolog->data['info_pri']] = ' selected'; $pri_selected[$phpgw->infolog->data['info_pri']] = ' selected';
$status_selected[$phpgw->infolog->data['info_status']] = ' selected'; $status_selected[$phpgw->infolog->data['info_status']] = ' selected';
$phpgw->template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
$phpgw->template->set_file(array('info_edit' => 'form.tpl')); $phpgw->template->set_file(array('info_edit' => 'form.tpl'));
// ==================================================================== // ====================================================================

View File

@ -24,7 +24,7 @@
$db = $phpgw->db; $db = $phpgw->db;
$db2 = $phpgw->db; $db2 = $phpgw->db;
$phpgw->template = new Template($phpgw->common->get_tpl_dir('infolog')); $phpgw->template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL);
$phpgw->template->set_file(array( 'info_list_t' => 'list.tpl' )); $phpgw->template->set_file(array( 'info_list_t' => 'list.tpl' ));
$phpgw->template->set_block('info_list_t','info_list','list'); $phpgw->template->set_block('info_list_t','info_list','list');