translation->add_app('infolog');
/* echo "
hook_addressbook_view(ab_id=$ab_id)
"; */
$link = CreateObject('infolog.uilink');
$out = ''.$link->getEntry('entry','addressbook',$GLOBALS['ab_id'])."\n".
$link->showLinks('links','addressbook',$GLOBALS['ab_id'],'!infolog')."
\n";
$html = CreateObject('infolog.html');
$out = $html->form($out,'','/index.php',array('menuaction'=>'addressbook.uiaddressbook.view','ab_id'=>$GLOBALS['ab_id']));
$GLOBALS['phpgw']->template->set_var('phpgw_body',$out,True);
$infolog = CreateObject('infolog.uiinfolog');
$infolog->get_list(True,'addr',$GLOBALS['ab_id']);
$GLOBALS['phpgw_info']['flags']['currentapp'] = $save_app;