Corrected display of next business day on small view

This commit is contained in:
shrykedude 2003-11-23 19:45:50 +00:00
parent c823ffc3a6
commit 7c066a76e2

View File

@ -24,12 +24,17 @@
$today = $GLOBALS['phpgw']->datetime->users_localtime; $today = $GLOBALS['phpgw']->datetime->users_localtime;
$dates = array($today); $dates = array($today);
if(date('w',$today)=='5') // if it's Friday, show the weekend, plus Monday $wday = date('w',$today);
if($wday=='5') // if it's Friday, show the weekend, plus Monday
{ {
$dates[] = $today + 86400; // Saturday $dates[] = $today + 86400; // Saturday
$dates[] = $today + (2*86400); // Sunday $dates[] = $today + (2*86400); // Sunday
} }
$dates[] = $dates[count($dates)-1] + 86400; if($wday=='6') // if it's Saturday, show Sunday, plus Monday
{
$dates[] = $today + 86400; // Sunday
}
$dates[] = $dates[count($dates)-1] + 86400; // the next business day
$extra_data = $GLOBALS['css']."\n" $extra_data = $GLOBALS['css']."\n"
. '<table border="0" width="100%" cellspacing="0" cellpadding="1">' . '<table border="0" width="100%" cellspacing="0" cellpadding="1">'