From 0e6e93f04f2aa4769bace0491010b57723d28c81 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Wed, 23 Oct 2002 02:57:02 +0000 Subject: added day jumps in day view (configable). --- day.php | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'day.php') diff --git a/day.php b/day.php index 91c1145..06ae4bc 100644 --- a/day.php +++ b/day.php @@ -27,6 +27,7 @@ $this_year = $day_array2[1]; $parse_month = date ('Ym', $date); $thisday2 = localizeDate($dateFormat_week_list, $unix_time); +$start_week_time = strtotime(dateOfWeek($getdate, $week_start_day)); $dayborder = 0; @@ -106,8 +107,33 @@ if (is_array($master_array[($getdate)])) { echo ''."\n"; echo ''."\n"; } - ?> - + if ($daysofweek_dayview == 'yes') { + ?> + + + + "; + $thisdate = $start_week_time; + $start_day = strtotime($week_start_day); + $i = 0; + do { + $day_num = date("w", $start_day); + $day = $daysofweek_lang[$day_num]; + $thisday = date("Ymd", $thisdate); + echo "\n"; + $start_day = strtotime("+1 day", $start_day); + $thisdate = strtotime("+1 day", $thisdate); + $i++; + } while ($i < 7); + echo ''; + echo '
\n"; + echo "$day\n"; + echo "
'; + echo ''; + echo ''; + } + ?> -- cgit v1.2.3