From aec53a16b45306fa1d5606c9348e4b8d42db1c00 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 11 Jul 2001 23:46:17 +0000 Subject: [PATCH] new 3-tier design: fix for no addr-view-links --- infolog/inc/class.uiinfolog.inc.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/infolog/inc/class.uiinfolog.inc.php b/infolog/inc/class.uiinfolog.inc.php index 45948c354a..0772d0313c 100644 --- a/infolog/inc/class.uiinfolog.inc.php +++ b/infolog/inc/class.uiinfolog.inc.php @@ -131,7 +131,7 @@ if ($proj) $subject .= '
'; $addr = $this->bo->addr2name( $addr ); $subject .= $this->html->bold($this->html->a_href($addr, - '/index.php',$this->menuaction(), + '/index.php',$this->menuaction() + array( 'filter' => $filter,'action' => 'addr', 'addr_id' => $addr_id ))); } @@ -204,11 +204,13 @@ function get_list( ) { global $phpgw,$phpgw_info; global $cat_filter,$cat_id,$sort,$order,$query,$start,$filter; - global $action,$addr_id,$proj_id,$info_id; - - $phpgw->common->phpgw_header(); - echo parse_navbar(); + global $action,$addr_id,$proj_id,$info_id,$for_include; + echo "

for_include: $for_include, action: $action, addr_id: $addr_id

"; + if (!$for_include) { + $phpgw->common->phpgw_header(); + echo parse_navbar(); + } $db = $phpgw->db; $db2 = $phpgw->db; $t = &$this->template; $html = &$this->html; @@ -426,7 +428,8 @@ // -------------- end Add form declaration ------------------------ - $phpgw->common->phpgw_footer(); + if (!$for_include) + $phpgw->common->phpgw_footer(); } function edit( ) {