// index.html 100913 require_once($_SERVER["DOCUMENT_ROOT"] . "/framework/global.php"); // Start - Use this area for page specific PHP script. $page = ""; // Use these values to override the page specific title, description and keywords. $title = ""; $description = ""; $keywords = ""; require_once ($_SERVER['DOCUMENT_ROOT'].'/administration/classes/event.php'); require_once ($_SERVER['DOCUMENT_ROOT'].'/administration/classes/related.php'); require_once ($_SERVER['DOCUMENT_ROOT'].'/administration/classes/page.php'); require_once ($_SERVER['DOCUMENT_ROOT'].'/administration/classes/post.php'); $categories = Event::getCategories(); // Event Details if(isset($_GET['slug'])) { require_once ($_SERVER['DOCUMENT_ROOT'].'/content/events-details.php'); exit(); } else { if(isset($_GET['month']) && isset($_GET['year'])) { $month = $_GET['month']; $year = $_GET['year']; $visualMonth = date("F", mktime(0, 0, 0, $month, 1, $year)); } else { $month = date('m',time()); $year = date('Y',time()); $visualMonth = date("F", mktime(0, 0, 0, $month, 1, $year)); } $title = $visualMonth . " Events"; } // End include($_SERVER["DOCUMENT_ROOT"] . "/framework/head.php"); ?> include($_SERVER["DOCUMENT_ROOT"] . "/framework/body.php"); ?>
" . htmlspecialchars(stripcslashes($event->summary)) . "
\n"; echo "\n"; 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 "" . htmlspecialchars($event->summary) . "
\n"; echo "\n"; 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 "| Sun | \n"; echo "Mon | \n"; echo "Tue | \n"; echo "Wed | \n"; echo "Thr | \n"; echo "Fri | \n"; echo "Sat | \n"; 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 " | ||||||
| ";
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";
$dayEvents = EventDate::getEventsByDay($month, $year, $day_counter);
if(count($dayEvents) > 0)
{
foreach ($dayEvents as &$dayEvent)
{
echo "id . "/" . $dayEvent->slug . ".html\" title=\"" . htmlspecialchars(stripcslashes($dayEvent->title)) . " " . htmlspecialchars(stripcslashes($dayEvent->subtitle)) . "\">";
if(trim($dayEvent->title) == "Windsor Spitfires")
echo "";
else if(trim($dayEvent->title) == "Windsor Express")
echo "";
else if($dayEvent->category_id == 2)
echo "";
else if($dayEvent->category_id == 3)
echo "";
else if($dayEvent->category_id == 4)
echo "";
else
echo "";
echo "\n";
}
}
echo " \n";
echo " | \n";
$week_day++;
}
for($weekday = $week_day; $weekday < 7; $weekday++)
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 "