mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
adapted hook_home to new portalbox design
This commit is contained in:
parent
b08b5717b1
commit
6dd371ca18
@ -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,8 +574,15 @@
|
||||
'/index.php',$this->menuaction()+array('filter'=>$filter)));
|
||||
}
|
||||
|
||||
if ($for_include == 2)
|
||||
{
|
||||
return $t->fp('out','info_list_t',true);
|
||||
}
|
||||
else
|
||||
{
|
||||
$t->pfp('out','info_list_t',true);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
** Send a requested file to the user.
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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';
|
||||
|
@ -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; }
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user