Prev Month"; echo "Next Month
"; echo "

" . $visualMonth . " " . $year . " Events

\n"; $events = EventDate::getEventsByMonth($month, $year); echo "
\n"; echo "\n"; echo "
\n"; if(count($events) > 0) { foreach ($events as &$event) { echo "
\n"; echo "

" . htmlspecialchars(stripcslashes($event->title)) . " " . htmlspecialchars(stripcslashes($event->subtitle)) . "

\n"; echo "
\n"; echo "\"\"imagePath . "\" />\n"; echo "
\n"; echo "id . "/" . $event->slug . ".html\" class=\"tickets\">More Info\n"; $dates = EventDate::getEventDate($event->id); foreach ($dates as $date) echo "

" . date("M jS @ g:i a", strtotime($date->date)) . "

\n"; echo "
\n"; echo "

" . htmlspecialchars(stripcslashes($event->summary)) . "

\n"; echo "
\n"; echo "
\n"; } } else echo "

There are no posted events for " . $visualMonth . " " . $year . " at this time. Please check back later as we update our online schedule frequently.

\n"; echo "
\n"; foreach ($categories as $category) { $i = 1; echo "
\n"; if(count($events) > 0) { foreach ($events as &$event) { if($event->category_id == $category['id']) { echo "
\n"; echo "

" . htmlspecialchars(stripcslashes($event->title)) . " " . htmlspecialchars(stripcslashes($event->subtitle)) . "

\n"; echo "
\n"; echo "\"\"imagePath . "\" />\n"; echo "
\n"; echo "id . "/" . $event->slug . ".html\" class=\"tickets\">More Info\n"; $dates = EventDate::getEventDate(stripcslashes($event->id)); foreach ($dates as $date) echo "

" . date("M jS @ g:i a", strtotime($date->date)) . "

\n"; echo "
\n"; echo "

" . htmlspecialchars($event->summary) . "

\n"; echo "
\n"; echo "
\n"; $i++; } } } //if($i == 1) //echo "

There are no posted " . $category['name'] . " events for " . $visualMonth . " " . $year . " at this time. Please check back later as we update our online schedule frequently.

\n"; echo "
\n"; } echo "
\n"; $this_month = getDate(mktime(0, 0, 0, $month, 1, $year)); $next_month = getDate(mktime(0, 0, 0, $month + 1, 1, $year)); $prev_month1 = $month-1; $next_month1 = $month+1; $days_in_this_month = round(($next_month[0] - $this_month[0]) / (60 * 60 * 24)); $first_week_day = $this_month["wday"]; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; for($week_day = 0; $week_day < $first_week_day; $week_day++) echo "\n"; $week_day = $first_week_day; for($day_counter = 1; $day_counter <= $days_in_this_month; $day_counter++) { $week_day %= 7; if($week_day == 0) echo "\n\n"; echo "\n"; $week_day++; } for($weekday = $week_day; $weekday < 7; $weekday++) echo "\n"; echo "\n"; echo "
SunMonTueWedThrFriSat
 
"; if((date("j", time()) == $day_counter) && $month == date('m',time()) && $year = date('Y',time())) echo "" . $day_counter . "\n"; else echo $day_counter . "\n"; echo "\n"; echo " 
\n"; echo "

Windsor Spitfires Hockey

\n"; echo "

Windsor Express Basketball

\n"; echo "

Sports Event

\n"; echo "

Concert

\n"; echo "

Family Event

\n"; echo "

Dinner Package

\n"; echo "

\n"; echo "
\n"; echo "
\n"; ?>
0) { foreach($ads as $ad) echo $ad; } unset($ads); ?>