adapted hook_home to new portalbox design

This commit is contained in:
Ralf Becker 2002-05-14 12:04:15 +00:00
parent b08b5717b1
commit 6dd371ca18
5 changed files with 55 additions and 9 deletions

View File

@ -492,6 +492,10 @@
// ---------- end nextmatch template --------------------
if ($for_include == 2)
{
$t->set_block('info_list_t','info_headers','headershandle');
}
while (list($id,$parent) = each($ids))
{
$subproact = $this->bo->anzSubs($id);
@ -570,7 +574,14 @@
'/index.php',$this->menuaction()+array('filter'=>$filter)));
}
$t->pfp('out','info_list_t',true);
if ($for_include == 2)
{
return $t->fp('out','info_list_t',true);
}
else
{
$t->pfp('out','info_list_t',true);
}
}
/*

View File

@ -18,10 +18,42 @@
$GLOBALS['phpgw']->translation->add_app('infolog');
global $filter;
$filter = 'own-open-today';
$infolog = CreateObject('infolog.uiinfolog');
$infolog->get_list(True);
$portalbox = CreateObject('phpgwapi.listbox',
Array(
'title' => '<font color="#FFFFFF">'.lang('Infolog').'</font>',
'primary' => $GLOBALS['phpgw_info']['theme']['navbar_bg'],
'secondary' => $GLOBALS['phpgw_info']['theme']['navbar_bg'],
'tertiary' => $GLOBALS['phpgw_info']['theme']['navbar_bg'],
'width' => '100%',
'outerborderwidth' => '0',
'header_background_image' => $GLOBALS['phpgw']->common->image('phpgwapi/templates/phpgw_website','bg_filler')
)
);
$app_id = $GLOBALS['phpgw']->applications->name2id('infolog');
$GLOBALS['portal_order'][] = $app_id;
$var = Array(
'up' => Array('url' => '/set_box.php', 'app' => $app_id),
'down' => Array('url' => '/set_box.php', 'app' => $app_id),
'close' => Array('url' => '/set_box.php', 'app' => $app_id),
'question' => Array('url' => '/set_box.php', 'app' => $app_id),
'edit' => Array('url' => '/set_box.php', 'app' => $app_id)
);
while(list($key,$value) = each($var))
{
$portalbox->set_controls($key,$value);
}
$portalbox->data = Array();
$GLOBALS['HTTP_POST_VARS']['filter'] = $GLOBALS['filter'] = 'own-open-today';
$infolog = CreateObject('infolog.uiinfolog');
echo "\n".'<!-- BEGIN infolog info -->'."\n".
$portalbox->draw($infolog->get_list(2))."\n".
'<!-- END infolog info -->'."\n";
unset($infolog);
$GLOBALS['phpgw_info']['flags']['currentapp'] = $save_app;
}

View File

@ -29,6 +29,7 @@
$setup_info['infolog']['hooks'][] = 'preferences';
$setup_info['infolog']['hooks'][] = 'admin';
$setup_info['infolog']['hooks'][] = 'about';
$setup_info['infolog']['hooks'][] = 'home';
$setup_info['infolog']['hooks'][] = 'addressbook_view';
$setup_info['infolog']['hooks'][] = 'projects_view';
$setup_info['infolog']['hooks'][] = 'calendar_view';

View File

@ -1,6 +1,6 @@
p,td { font-face: "Arial, Helvetica, sans-serif"; font-size:12pt; }
.list { font-size:9pt; }
.action { font-size:16pt; margin-bottom:0px; }
.action { font-size:14pt; margin-bottom:0px; }
.low,.pri_low_done { color:#606060; }
.normal,.pri_normal_done { color:black }
.high { color:#cc0000; } .high_done { color:#800000; }

View File

@ -44,6 +44,7 @@
<!-- next_matchs Ende -->
<table width=95% border=0 cellspacing=1 cellpadding=3>
<!-- BEGIN info_headers -->
<tr bgcolor="{th_bg}">
<td width="2%" class=list>{lang_type}</td>
<td width="4%" class=list>{lang_status}</td>
@ -54,6 +55,7 @@
<td width="3%" class=list>{h_lang_sub}</td>
<td width="3%" class=list>{h_lang_action}</td>
</tr>
<!-- END info_headers -->
<!-- BEGIN info_list -->
<tr bgcolor="{tr_color}" valign="top">