[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: squirrelmail/inc hook_home.inc.php,1.3,1.4
From: |
Bettina Gille <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: squirrelmail/inc hook_home.inc.php,1.3,1.4 |
Date: |
Fri, 25 Oct 2002 21:05:30 -0400 |
Update of /cvsroot/phpgroupware/squirrelmail/inc
In directory subversions:/tmp/cvs-serv24197/squirrelmail/inc
Modified Files:
hook_home.inc.php
Log Message:
update hook about
Index: hook_home.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/squirrelmail/inc/hook_home.inc.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** hook_home.inc.php 17 Dec 2001 18:48:17 -0000 1.3
--- hook_home.inc.php 26 Oct 2002 01:05:28 -0000 1.4
***************
*** 33,37 ****
if (!$GLOBALS['phpgw']->msg->mailsvr_stream)
{
- $title = '<font
color="#FFFFFF">'.lang('EMail').'</font>';
$extra_data = '<b>Mail error:</b> Can not open
connection to mail server';
}
--- 33,36 ----
***************
*** 49,54 ****
$inbox_data =
$GLOBALS['phpgw']->msg->new_message_check();
- $title = '<font color="#FFFFFF">'.lang('EMail').'
'.$inbox_data['alert_string'].'</font>';
-
if($inbox_data['number_all'] >= 5)
{
--- 48,51 ----
***************
*** 66,80 ****
}
! $portalbox = CreateObject('phpgwapi.listbox',
! Array(
! 'title' => $title,
! '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.gif')
! )
! );
for($i=0; $i<$check_msgs; $i++)
{
--- 63,71 ----
}
! $app_id =
$GLOBALS['phpgw']->applications->name2id('email');
! $GLOBALS['portal_order'][] = $app_id;
! $GLOBALS['phpgw']->portalbox->set_params(array('app_id'
=> $app_id,
!
'title' => lang('email')));
! $GLOBALS['phpgw']->portalbox->draw($extra_data);
for($i=0; $i<$check_msgs; $i++)
{
***************
*** 95,104 ****
);
! $portalbox->data[$i] = array
(
'text'=>$subject,
'link'=>$GLOBALS['phpgw']->link('/squirrelmail/read_body.php',$linkData)
);
-
}
// ADD FOLDER LISTBOX TO HOME PAGE (Needs to be
TEMPLATED)
--- 86,94 ----
);
! $GLOBALS['phpgw']->portalbox->data[$i] = array
(
'text'=>$subject,
'link'=>$GLOBALS['phpgw']->link('/squirrelmail/read_body.php',$linkData)
);
}
// ADD FOLDER LISTBOX TO HOME PAGE (Needs to be
TEMPLATED)
***************
*** 110,115 ****
else
{
-
-
// FUTURE: this will pick up the user option to
show num unseen msgs in dropdown list
//$listbox_show_unseen = True;
--- 100,103 ----
***************
*** 141,164 ****
$GLOBALS['phpgw']->msg->end_request();
}
!
! $app_id = $GLOBALS['phpgw']->applications->name2id('email');
! $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);
! }
!
! // output the portalbox and (if applicable) the folders listbox
below it
! echo "\r\n".'<!-- start Mailbox info -->'."\r\n"
! .$portalbox->draw($extra_data)
! .'<!-- ends Mailox info -->'."\r\n";
}
?>
--- 129,133 ----
$GLOBALS['phpgw']->msg->end_request();
}
! $GLOBALS['phpgw']->portalbox->draw($extra_data);
}
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: squirrelmail/inc hook_home.inc.php,1.3,1.4,
Bettina Gille <address@hidden> <=