diff --git a/addressbook/view.php b/addressbook/view.php index fc9d84970f..23e9cecf2f 100755 --- a/addressbook/view.php +++ b/addressbook/view.php @@ -20,6 +20,9 @@ $phpgw_info["flags"]["enable_addressbook_class"] = True; include("../header.inc.php"); + $t = new Template($phpgw_info["server"]["app_tpl"]); + $t->set_file(array( "view" => "view.tpl")); + function checkfor_specialformat($field,$data) { global $phpgw_info, $phpgw; @@ -63,7 +66,7 @@ } $phpgw->db->next_record(); - echo "
" . lang("Address book - view") . "
"; + $view_header = "
" . lang("Address book - view") . "
"; $i = 0; while ($column = each($abc)) { @@ -79,7 +82,7 @@ $columns_to_display[$i]["field_value"] = $phpgw->db->f("ab_notes"); } - echo '
" . lang("Record owner") . " | " - . $phpgw->common->grab_owner_name($owner) . " | " - . lang("Record Access") . " | "; + $columns_html .= ' |
' . lang("Record owner") . ' | ' + . $phpgw->common->grab_owner_name($owner) . ' | ' + . lang("Record Access") . ' |
- common->check_owner($owner,"edit.php","Edit","ab_id=$ab_id"); - ?> - | -- - | -- - | -