[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: addressbook/inc hook_home.inc.php,1.19,1.20
From: |
Bettina Gille <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: addressbook/inc hook_home.inc.php,1.19,1.20 |
Date: |
Fri, 25 Oct 2002 20:26:37 -0400 |
Update of /cvsroot/phpgroupware/addressbook/inc
In directory subversions:/tmp/cvs-serv13074
Modified Files:
hook_home.inc.php
Log Message:
update hook_home
Index: hook_home.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/addressbook/inc/hook_home.inc.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** hook_home.inc.php 3 Oct 2002 23:14:55 -0000 1.19
--- hook_home.inc.php 26 Oct 2002 00:26:35 -0000 1.20
***************
*** 1,13 ****
<?php
! /**************************************************************************\
! * phpGroupWare - E-Mail *
! * http://www.phpgroupware.org *
! * -------------------------------------------- *
! * This program is free software; you can redistribute it and/or modify it *
! * under the terms of the GNU General Public License as published by the *
! * Free Software Foundation; either version 2 of the License, or (at your *
! * option) any later version. *
! \**************************************************************************/
!
/* $Id$ */
--- 1,12 ----
<?php
!
/**************************************************************************\
! * phpGroupWare - Addressbook hook_home
*
! * http://www.phpgroupware.org
*
! * --------------------------------------------
*
! * This program is free software; you can redistribute it and/or modify
it *
! * under the terms of the GNU General Public License as published by
the *
! * Free Software Foundation; either version 2 of the License, or (at
your *
! * option) any later version.
*
!
\**************************************************************************/
/* $Id$ */
***************
*** 24,31 ****
&&
$GLOBALS['phpgw_info']['user']['preferences']['addressbook']['mainscreen_showbirthdays'])
{
- $tmp = "\n<!-- Birthday info -->\n";
-
$c = CreateObject('phpgwapi.contacts');
! $qfields = array(
'n_given' => 'n_given',
'n_family' => 'n_family',
--- 23,29 ----
&&
$GLOBALS['phpgw_info']['user']['preferences']['addressbook']['mainscreen_showbirthdays'])
{
$c = CreateObject('phpgwapi.contacts');
! $qfields = array
! (
'n_given' => 'n_given',
'n_family' => 'n_family',
***************
*** 37,72 ****
$bdays =
$c->read(0,15,$qfields,$today,'tid=n','','',$GLOBALS['phpgw_info']['user']['account_id']);
- $title = '<center><font
color="#FFFFFF">'.lang('Birthdays').'</font></center>';
-
- $portalbox = CreateObject('phpgwapi.listbox',
- Array(
- 'title' => $title,
- 'width' => '100%',
- 'header_background_image' =>
$GLOBALS['phpgw']->common->image('phpgwapi/templates/default','bg_filler')
- )
- );
$app_id =
$GLOBALS['phpgw']->applications->name2id('addressbook');
$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();
while(list($key,$val) = @each($bdays))
{
! $portalbox->data[] = array
(
! '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']),
'lang_link_statustext' => lang('show contact')
);
--- 35,49 ----
$bdays =
$c->read(0,15,$qfields,$today,'tid=n','','',$GLOBALS['phpgw_info']['user']['account_id']);
$app_id =
$GLOBALS['phpgw']->applications->name2id('addressbook');
$GLOBALS['portal_order'][] = $app_id;
+ $GLOBALS['phpgw']->portalbox->set_params(array('app_id' =>
$app_id,
+
'title' => lang('addressbook')));
while(list($key,$val) = @each($bdays))
{
! $GLOBALS['phpgw']->portalbox->data[] = array
(
! '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']),
'lang_link_statustext' => lang('show contact')
);
***************
*** 79,97 ****
while(list($key,$val) = @each($bdays))
{
! $portalbox->data[] = array
(
! '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']),
! 'lang_link_statustext' => lang('show contact')
);
}
! if(count($portalbox->data))
! {
! $tmp = $portalbox->draw();
! }
! unset($portalbox);
!
! $GLOBALS['phpgw']->template->set_var('phpgw_body',$tmp,True);
! unset($tmp);
}
?>
--- 56,67 ----
while(list($key,$val) = @each($bdays))
{
! $GLOBALS['phpgw']->portalbox->data[] = array
(
! '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']),
! 'lang_link_statustext' => lang('show contact')
);
}
! $GLOBALS['phpgw']->portalbox->draw();
}
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: addressbook/inc hook_home.inc.php,1.19,1.20,
Bettina Gille <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: phpgroupware login.php,1.89,1.90
- Next by Date:
[Phpgroupware-cvs] CVS: calendar/inc hook_home.inc.php,1.36,1.37 hook_home_day.inc.php,1.2,1.3 hook_home_month.inc.php,1.2,1.3 hook_home_week.inc.php,1.2,1.3 hook_home_year.inc.php,1.2,1.3
- Previous by thread:
[Phpgroupware-cvs] CVS: phpgroupware login.php,1.89,1.90
- Next by thread:
[Phpgroupware-cvs] CVS: calendar/inc hook_home.inc.php,1.36,1.37 hook_home_day.inc.php,1.2,1.3 hook_home_month.inc.php,1.2,1.3 hook_home_week.inc.php,1.2,1.3 hook_home_year.inc.php,1.2,1.3
- Index(es):