From 557fe532a369df55a598040b1f1f07fc87bcc1dc Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sun, 14 Sep 2003 21:01:34 +0000 Subject: Removed many many tables from month view, switched to DIVS. Fixed openevent, added link class. --- month.php | 100 +++++++++++++++++++++----------------------------------------- 1 file changed, 33 insertions(+), 67 deletions(-) (limited to 'month.php') diff --git a/month.php b/month.php index bb592b4..b9c85ef 100644 --- a/month.php +++ b/month.php @@ -92,10 +92,7 @@ $num_of_events = 0; - - - - +
$day
"; + echo ''; $start_day = strtotime("+1 day", $start_day); } ?> - - - - - - - - - -
'.$day.'
- - - - - $day"; - $bgclass="class=\"monthoff\""; + $day = ''.$day.''; + $bgclass = 'class="monthoff"'; } else { if ($today_today == $daylink) { - $bgclass="class=\"monthon\""; + $bgclass = 'class="monthon"'; } else { - $bgclass="class=\"monthreg\""; + $bgclass = 'class="monthreg"'; } } - if ($i == 0) echo "\n"; - if (isset($master_array[("$daylink")]) && ($check_month == $this_month)) { - echo "\n"; + echo ''; } else { - echo "\n"; + echo ''; } $sunday = strtotime("+1 day", $sunday); $i++; if ($i == 7) { - echo "\n"; + echo ''; $i = 0; $checkagain = date ("m", $sunday); if ($checkagain != $this_month) $whole_month = FALSE; @@ -215,7 +180,7 @@ $num_of_events = 0;
\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + if ($i == 0) echo ''; + echo '\n"; } } } - echo "
\n"; - echo "$day\n"; - echo "
'; + if (isset($master_array[("$daylink")])) { + echo ''; + echo '
'; if ($master_array[("$daylink")]) { foreach ($master_array[("$daylink")] as $event_times) { foreach ($event_times as $val) { $num_of_events++; - echo "
\n"; - echo ""; - echo "\n"; if (!isset($val["event_start"])) { - echo '\n"; - echo "
'; openevent("$calendar_name", "", "", $val, $month_event_lines, 12, - "", - ""); + "
", + "
", + "psf"); } else { $event_start = @$val["event_start"]; $event_end = @$val["event_end"]; $event_start = date($timeFormat, @strtotime ("$event_start")); - $start2 = date($timeFormat_small,@strtotime("$event_start")); + $start2 = date($timeFormat_small,@strtotime("$event_start")); $event_end = date($timeFormat, @strtotime ("$event_end")); - echo "
"; @openevent("$calendar_name", "$event_start", "$event_end", $val, $month_event_lines, 12, - " $start2 ", - ""); + "
 $start2 ", + "
", + "ps3"); } - echo "
\n"; - echo "
\n"; - echo "
\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "
\n"; - echo "$day\n"; - echo "
\n"; - echo "
'; + echo ''.$day.''; + echo '
- +
@@ -273,7 +238,8 @@ $num_of_events = 0; 0, 65, " ", - ""); + "", + "psf"); //echo " $event_text\n"; echo "\n"; echo "\n"; -- cgit v1.2.3