mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +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 --------------------
|
// ---------- end nextmatch template --------------------
|
||||||
|
|
||||||
|
if ($for_include == 2)
|
||||||
|
{
|
||||||
|
$t->set_block('info_list_t','info_headers','headershandle');
|
||||||
|
}
|
||||||
while (list($id,$parent) = each($ids))
|
while (list($id,$parent) = each($ids))
|
||||||
{
|
{
|
||||||
$subproact = $this->bo->anzSubs($id);
|
$subproact = $this->bo->anzSubs($id);
|
||||||
@ -570,7 +574,14 @@
|
|||||||
'/index.php',$this->menuaction()+array('filter'=>$filter)));
|
'/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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -13,15 +13,47 @@
|
|||||||
|
|
||||||
if ($GLOBALS['phpgw_info']['user']['preferences']['infolog']['homeShowEvents'])
|
if ($GLOBALS['phpgw_info']['user']['preferences']['infolog']['homeShowEvents'])
|
||||||
{
|
{
|
||||||
$save_app = $GLOBALS['phpgw_info']['flags']['currentapp'];
|
$save_app = $GLOBALS['phpgw_info']['flags']['currentapp'];
|
||||||
$GLOBALS['phpgw_info']['flags']['currentapp'] = 'infolog';
|
$GLOBALS['phpgw_info']['flags']['currentapp'] = 'infolog';
|
||||||
|
|
||||||
$GLOBALS['phpgw']->translation->add_app('infolog');
|
$GLOBALS['phpgw']->translation->add_app('infolog');
|
||||||
|
|
||||||
global $filter;
|
$portalbox = CreateObject('phpgwapi.listbox',
|
||||||
$filter = 'own-open-today';
|
Array(
|
||||||
$infolog = CreateObject('infolog.uiinfolog');
|
'title' => '<font color="#FFFFFF">'.lang('Infolog').'</font>',
|
||||||
$infolog->get_list(True);
|
'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')
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$GLOBALS['phpgw_info']['flags']['currentapp'] = $save_app;
|
$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'][] = 'preferences';
|
||||||
$setup_info['infolog']['hooks'][] = 'admin';
|
$setup_info['infolog']['hooks'][] = 'admin';
|
||||||
$setup_info['infolog']['hooks'][] = 'about';
|
$setup_info['infolog']['hooks'][] = 'about';
|
||||||
|
$setup_info['infolog']['hooks'][] = 'home';
|
||||||
$setup_info['infolog']['hooks'][] = 'addressbook_view';
|
$setup_info['infolog']['hooks'][] = 'addressbook_view';
|
||||||
$setup_info['infolog']['hooks'][] = 'projects_view';
|
$setup_info['infolog']['hooks'][] = 'projects_view';
|
||||||
$setup_info['infolog']['hooks'][] = 'calendar_view';
|
$setup_info['infolog']['hooks'][] = 'calendar_view';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
p,td { font-face: "Arial, Helvetica, sans-serif"; font-size:12pt; }
|
p,td { font-face: "Arial, Helvetica, sans-serif"; font-size:12pt; }
|
||||||
.list { font-size:9pt; }
|
.list { font-size:9pt; }
|
||||||
.action { font-size:16pt; margin-bottom:0px; }
|
.action { font-size:14pt; margin-bottom:0px; }
|
||||||
.low,.pri_low_done { color:#606060; }
|
.low,.pri_low_done { color:#606060; }
|
||||||
.normal,.pri_normal_done { color:black }
|
.normal,.pri_normal_done { color:black }
|
||||||
.high { color:#cc0000; } .high_done { color:#800000; }
|
.high { color:#cc0000; } .high_done { color:#800000; }
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
<!-- next_matchs Ende -->
|
<!-- next_matchs Ende -->
|
||||||
|
|
||||||
<table width=95% border=0 cellspacing=1 cellpadding=3>
|
<table width=95% border=0 cellspacing=1 cellpadding=3>
|
||||||
|
<!-- BEGIN info_headers -->
|
||||||
<tr bgcolor="{th_bg}">
|
<tr bgcolor="{th_bg}">
|
||||||
<td width="2%" class=list>{lang_type}</td>
|
<td width="2%" class=list>{lang_type}</td>
|
||||||
<td width="4%" class=list>{lang_status}</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_sub}</td>
|
||||||
<td width="3%" class=list>{h_lang_action}</td>
|
<td width="3%" class=list>{h_lang_action}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<!-- END info_headers -->
|
||||||
|
|
||||||
<!-- BEGIN info_list -->
|
<!-- BEGIN info_list -->
|
||||||
<tr bgcolor="{tr_color}" valign="top">
|
<tr bgcolor="{tr_color}" valign="top">
|
||||||
|
Loading…
Reference in New Issue
Block a user