From ce366dcff1289fbd3246536dd8cd2215faaa4dd1 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sun, 29 Sep 2002 01:17:08 +0000 Subject: Stage one of redesign. --- day.php | 125 ++++++++++++++++++++++++---------------------------------------- 1 file changed, 46 insertions(+), 79 deletions(-) (limited to 'day.php') diff --git a/day.php b/day.php index 8f0539b..7e1fd17 100644 --- a/day.php +++ b/day.php @@ -9,7 +9,7 @@ include("./ical_parser.php"); // echo "using sessions"; //} -$starttime = "0700"; +$starttime = "0500"; $weekstart = 1; // dpr 20020926: moved variable gridLength to config.inc.php //$gridLength = 30; @@ -18,6 +18,29 @@ $today_today = date ("Ymd"); $tomorrows_date = date( "Ymd", strtotime("+1 day", $unix_time)); $yesterdays_date = date( "Ymd", strtotime("-1 day", $unix_time)); $display_date = strftime($dateFormat_day, $unix_time); + +// For the side months +ereg ("([0-9]{4})([0-9]{2})([0-9]{2})", $getdate, $day_array2); +$this_day = $day_array2[3]; +$this_month = $day_array2[2]; +$this_year = $day_array2[1]; + +$date = strtotime($getdate); +$month1 = date("m", DateAdd ("m", "-1", $date)); +$month2 = date("m", $date); +$month3 = date("m", DateAdd ("m", "+1", $date)); +$year1 = date("Y", DateAdd ("m", "-1", $date)); +$year2 = date("Y", $date); +$year3 = date("Y", DateAdd ("m", "+1", $date)); +$first_sunday1 = sundayOfWeek($year1, $month1, "1"); +$first_sunday2 = sundayOfWeek($year2, $month2, "1"); +$first_sunday3 = sundayOfWeek($year3, $month3, "1"); +$display_month1 = strftime ($dateFormat_month, strtotime("-1 month", $date)); +$display_month2 = strftime ($dateFormat_month, $date); +$display_month3 = strftime ($dateFormat_month, strtotime("+1 month", $date)); +$parse_month = date ("Ym", $date); +$thisday2 = strftime($dateFormat_week_list, $date); + $nbrGridCols = 1; if ($master_array[($getdate)]) { foreach($master_array[($getdate)] as $ovlKey => $ovlValue) { @@ -41,87 +64,30 @@ if ($master_array[($getdate)]) {
- - - - - - - +
$today_lang"; ?>$day_lang | $week_lang | $month_lang"; ?>
- - -
- - - -
- - +
+
- +
- +
- - - - - - - - -
- - - - - - -
$last_day_lang"; ?>$next_day_lang"; ?>
-
$subscribe_lang | $download_lang"; ?>
-


- - 0) { - echo "\n"; - echo "\n"; - echo "\n"; - } - ?> - +
\n"; - echo "\n"; - foreach($master_array[($getdate)]["-1"] as $all_day) { - $event_text2 = addslashes($all_day["event_text"]); - $event_text2 = str_replace("\"", """, $event_text2); - if ($i > 0) { - echo "\n"; - echo "\n"; - echo "\n"; - } - echo "\n"; - echo "\n"; - echo "\n"; - $i++; - } - echo "
" . $all_day["event_text"] . "
\n"; - echo "
- - + + \"\""; + echo ""; } ?> \n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; } else { + echo "\n"; - echo "\n"; + echo "\n"; } if (sizeof($event_length) == 0) { - echo "\n"; + echo "\n"; } else { $emptyWidth = $nbrGridCols; for ($i=0;$i\n"; + echo " - + + +
\"\"
$key$key
  \n"; echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "
$event_start - $event_end$event_start
\n"; @@ -222,12 +189,12 @@ if ($master_array[($getdate)]) {
-
+
$powered_by_lang PHP iCalendar $version_lang"; ?>
-
-$powered_by_lang PHP iCalendar $version_lang"; ?> -- cgit v1.2.3