Show Source Code
<?php
session_start();
require_once("class_EventCalendar.php");
if (class_exists("EventCalendar")) {
if (isset($_SESSION['currentCalendar']))
$Calendar = unserialize($_SESSION['currentCalendar']);
else {
$Calendar = new EventCalendar();
}
}
else {
$Calendar = NULL;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en>
<!--
The Chinese Zodiac
Amy Tavakouli
July 15, 2014
EventCalendar.php
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Event Calendar</title>
<link href="ChineseZodiac.css" rel="stylesheet" type="text/css" />
</head>
<body>
<style>
fieldset
{
width: 1100px;
margin-left: auto;
margin-right: auto;
background-color: #BCED91;
}
a:link {
color: #8a46ff;
}
a:visited {
color: #EFFF00;
}
a:hover {
color: #FF00FF;
}
a:active {
color: #8000FF;
}
</style>
<?php
include("include/inc_controlstructures.php");
?>
<center><fieldset>
<center><h1><font color="purple">Event Calendar</font></h1></center>
<?php
if ($Calendar === NULL)
echo "<p>There was an error creating the EventCalendar object.</p>\n";
else {
$Calendar->getMonthlyCalendar($_GET['Year'], $_GET['Month']);
}
?>
<center><a href="AddCalendarEvent.php?PHPSESSID=<?php echo session_id(); ?>">Add an Event to the Calendar</a>
<a href="index.php">Home</a></center>
</fieldset></center>
</body>
</html>