\n"; echo $buffer; echo "\n\n"; diff --git a/addressbook/fields.php b/addressbook/fields.php index 79cca0ee18..8baf3bad6f 100644 --- a/addressbook/fields.php +++ b/addressbook/fields.php @@ -17,8 +17,7 @@ include('../header.inc.php'); - $t = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('addressbook')); - + $t = new Template(PHPGW_APP_TPL); $t->set_file(array( 'field_list_t' => 'listfields.tpl', 'field_list' => 'listfields.tpl')); diff --git a/addressbook/import.php b/addressbook/import.php index 55ef94fe63..49fd071d93 100644 --- a/addressbook/import.php +++ b/addressbook/import.php @@ -32,22 +32,26 @@ } $context = $phpgw_info["server"]["ldap_contact_context"]; - if (!$convert) { - $t = new Template($phpgw_info["server"]["app_tpl"]); + if (!$convert) + { + $t = new Template(PHPGW_APP_TPL); $t->set_file(array("import" => "import.tpl")); $dir_handle=opendir($phpgw_info["server"]["app_root"].$sep."import"); $i=0; $myfilearray=""; - while ($file = readdir($dir_handle)) { + while ($file = readdir($dir_handle)) + { //echo ""; - if ((substr($file, 0, 1) != ".") && is_file($phpgw_info["server"]["app_root"].$sep."import".$sep.$file) ) { + if ((substr($file, 0, 1) != ".") && is_file($phpgw_info["server"]["app_root"].$sep."import".$sep.$file) ) + { $myfilearray[$i] = $file; $i++; } } closedir($dir_handle); sort($myfilearray); - for ($i=0;$i
$buffer"; echo ''.lang("OK").''; $phpgw->common->phpgw_footer(); } - } else { + } + else + { echo "
$buffer"; echo 'common->get_tpl_dir('addressbook')); - $t->set_file(array( - 'addressbook_header' => 'header.tpl', - 'column' => 'column.tpl', - 'row' => 'row.tpl', - 'addressbook_footer' => 'footer.tpl' - )); + $t = new 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'); + $t->set_block('addressbook_list_t','row','row'); + $t->set_block('addressbook_list_t','addressbook_footer','addressbook_footer'); $this = CreateObject('phpgwapi.contacts'); //$this->delete_all($phpgw_info['user']['account_id']); diff --git a/addressbook/preferences.php b/addressbook/preferences.php index ea489384ec..305cc3c894 100644 --- a/addressbook/preferences.php +++ b/addressbook/preferences.php @@ -92,7 +92,7 @@ echo "
" . lang("Address book - VCard in") . "
"; diff --git a/addressbook/view.php b/addressbook/view.php index f30e1cdd4e..35da0554e6 100755 --- a/addressbook/view.php +++ b/addressbook/view.php @@ -45,7 +45,7 @@ echo parse_navbar(); } - $t = new Template($phpgw->common->get_tpl_dir('addressbook')); + $t = new Template(PHPGW_APP_TPL); $t->set_file(array( 'view' => 'view.tpl', 'view_header' => 'view_header.tpl',