<?php include("header.php"); ?>

<title>Calendar View</title>
		
	    <link href="css/calendar/css/smoothcalendar.css" rel="stylesheet" type="text/css" />
	    <script type="text/javascript" src="js/calendar/mootools-1.2.1-core-nc.js"></script>
	    <script type="text/javascript" src="js/calendar/smoothcalendar.js"></script>
	    <script type="text/javascript">
               
            window.addEvent('domready', function(){
                 var date = new Date("January 1, 2012");
                 var smoothCalendar = new SmoothCalendar("calendar", date);
            });

	    </script>
<script type="text/javascript">
function displayTime()
{
var localTime = new Date();
//this one will give you the GMT offset
var timezone = localTime.getTimezoneOffset()/60 * (-1);
var div = document.getElementById("div1");
div.innerText = "GMT" + timezone;
}
</script>	
		<style type="text/css">
	        #calendar {
                width:700px;
                margin: 30px auto;	        
            }
	    </style>
</head>
<body class="view_user standard">
<div class="wrapper">

	<div class="header">
	<h1>Lifeguard Archangels Security Corportion</h1>
	</div>
<?php include("main_menu.php"); ?>
	<div class="right_nav">
	<h1>Schedules</h1>
<?php include("sched_sidebar.php"); ?>
	</div>
	<div class="content">
<div class="actions"style="padding-top:0px;">

 <div id="wrap">

 
 
            <div id="calendar">
			<?php $schedules = mysql_query("SELECT * FROM schedules") or die(mysql_error());  ?>
			<?php WHILE($sched = mysql_fetch_array($schedules)){
				$activity = $sched['activity'];
				$date = $sched['date'];
				$time = $sched['time'];
				$persons = $sched['persons'];
				$street = $sched['street'];
				$city = $sched['city'];
				$province = $sched['province'];
				 $newDate = date('M d Y', strtotime($date));
				?>
				<div style="display:none;" class="<?php echo $newDate;  ?>" title="<?php echo $activity; ?>">
                    <em><?php echo $time; ?></em><br>
					<p><?php echo $persons; ?></p>
					<p><?php echo $street; ?></p>
					<p><?php echo $city; ?></p>
					<p><?php echo $province; ?></p>
                </div>
				<?php } ?>
			


			</div>
			 <div id="div1"></div>
</div>
	
	</div>
<?php include("footer.php"); ?>
</div>
</body>
</html>
