Fix home.php hooks display

This commit is contained in:
Miles Lott 2002-08-19 12:42:06 +00:00
parent e3f25223f3
commit 438467de6a
2 changed files with 9 additions and 15 deletions

View File

@ -22,7 +22,7 @@
if ($GLOBALS['phpgw_info']['user']['apps']['addressbook']
&& $GLOBALS['phpgw_info']['user']['preferences']['addressbook']['mainscreen_showbirthdays'])
{
echo "\n<!-- Birthday info -->\n";
$tmp = "\n<!-- Birthday info -->\n";
$c = CreateObject('phpgwapi.contacts');
$qfields = array(
@ -71,10 +71,6 @@
'text' => lang("Today is x's birthday!", $val['n_given'] . ' ' . $val['n_family']),
'link' => $GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiaddressbook.view&ab_id=' . $val['id'])
);
// $tmp = '<a href="'
// . $GLOBALS['phpgw']->link('/addressbook/view.php','ab_id=' . $val['id']) . '">'
// . $val['n_given'] . ' ' . $val['n_family'] . '</a>';
// echo '<tr><td align="left">' . lang("Today is x's birthday!", $tmp) . '</td></tr>' . "\n";
}
$tomorrow = $GLOBALS['phpgw']->common->show_date($now + 86400,'n/d/');
@ -87,16 +83,14 @@
'text' => lang("Tomorrow is x's birthday.", $val['n_given'] . ' ' . $val['n_family']),
'link' => $GLOBALS['phpgw']->link('/index.php','menuaction=addressbook.uiaddressbook.view&ab_id='.$val['id'])
);
// $tmp = '<a href="'
// . $GLOBALS['phpgw']->link('/addressbook/view.php','ab_id=' . $val['id']) . '">'
// . $val['n_given'] . ' ' . $val["n_family"] . '</a>';
// echo '<tr><td align="left">' . lang("Tomorrow is x's birthday.", $tmp) . '</td></tr>' . "\n";
}
// if(count($portalbox->data))
// {
echo $portalbox->draw();
// }
if(count($portalbox->data))
{
$tmp = $portalbox->draw();
}
unset($portalbox);
echo "\n<!-- Birthday info -->\n";
$tmp .= "\n<!-- Birthday info -->\n";
$GLOBALS['phpgw']->template->set_var('phpgw_body',$tmp,True);
unset($tmp);
}
?>

View File

@ -85,7 +85,7 @@
$portalbox->data = Array();
echo "\n".'<!-- BEGIN Calendar info -->'."\n".$portalbox->draw($GLOBALS['extra_data'])."\n".'<!-- END Calendar info -->'."\n";
$GLOBALS['phpgw']->template->set_var('phpgw_body', "\n".'<!-- BEGIN Calendar info -->'."\n".$portalbox->draw($GLOBALS['extra_data'])."\n".'<!-- END Calendar info -->'."\n",True);
unset($cal);
}
flush();