phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: addressbook/inc hook_home.inc.php,1.20,1.21


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: addressbook/inc hook_home.inc.php,1.20,1.21
Date: Sat, 15 Feb 2003 15:52:21 -0500

Update of /cvsroot/phpgroupware/addressbook/inc
In directory subversions:/tmp/cvs-serv3054

Modified Files:
        hook_home.inc.php 
Log Message:
corrected birthday check: a birthday of 12/x/y was shown on a date like 2/x/y


Index: hook_home.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/addressbook/inc/hook_home.inc.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** hook_home.inc.php   26 Oct 2002 00:26:35 -0000      1.20
--- hook_home.inc.php   15 Feb 2003 20:52:18 -0000      1.21
***************
*** 42,51 ****
                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')
!                       );
                }
  
--- 42,54 ----
                while(list($key,$val) = @each($bdays))
                {
!                       if (substr($val['bday'],0,strlen($today)) == $today)
!                       {
!                               $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')
!                               );
!                       }
                }
  
***************
*** 56,65 ****
                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();
--- 59,71 ----
                while(list($key,$val) = @each($bdays))
                {
!                       if (substr($val['bday'],0,strlen($tomorrow)) == 
$tomorrow)
!                       {
!                               $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();





reply via email to

[Prev in Thread] Current Thread [Next in Thread]