| Current Path : /var/www/cesa.co.za/mentanet/ |
| Current File : /var/www/cesa.co.za/mentanet/calendar.php |
<?php
include("inc_functions.php");
if (!isset($_SESSION["StudentID"]) || empty($_SESSION["StudentID"])) header("Location: http://www.cesa.co.za/mentanet/login.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>MentaNet</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="calendar.js"></script>
<!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.twoColFixLtHdr #sidebar1 { width: 230px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.twoColFixLtHdr #sidebar1 { padding-top: 30px; }
.twoColFixLtHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
</head>
<body class="twoColFixLtHdr">
<div id="container">
<?php include("inc_header.php"); ?>
<?php include("inc_sidebar.php"); ?>
<div id="mainContent">
<h1> Calendar</h1>
<!-- <p>Due dates for assignments are <span style="background-color:#ffba6f">highlighted in orange</span>. Hover your mouse over the date to see the assignments.</p>-->
<table border="0">
<?php
if (!isset($_GET["month"])) {
$iStartMonth = date("m");
} else {
$iStartMonth = $_GET["month"];
}
$iEndMonth = $iStartMonth+0;
if ($iEndMonth > 12) $iEndMonth=12;
for ($iMonth=$iStartMonth; $iMonth<=$iEndMonth; $iMonth++) {
?>
<tr>
<td>
<script language="javascript">
myCal = new CALENDAR(<?php echo date("Y"); ?>, <?php echo $iMonth; ?>);
myCal.offset = 2; // start with Monday
// Make Sat and Sun the same format as other days
myCal.saFontColor = myCal.dFontColor;
myCal.saBGColor = myCal.dBGColor;
myCal.suFontColor = myCal.dFontColor;
myCal.suBGColor = myCal.dBGColor;
myCal.weekNumbers = false;
myCal.dFontSize=18;
<?php
if ($iMonth==10) {
?>
myCal.viewEvent(31, 31, "#94FA8E", "Milestone 1 Completed");
<?php
} elseif ($iMonth==1) {
?>
myCal.viewEvent(31, 31, "#94FA8E", "Milestone 2 Completed");
<?php
} elseif ($iMonth==4) {
?>
myCal.viewEvent(31, 31, "#94FA8E", "Milestone 3 Completed");
<?php
} elseif ($iMonth==7) {
?>
myCal.viewEvent(31, 31, "#94FA8E", "Milestone 4 Completed");
<?php
}
?>
document.write(myCal.create());
</script>
</td><td valign="top">
<ul><li>Milestone 1: 1 Aug - 31 Oct 2013</li>
<li>Milestone 2: 1 Nov - 31 Jan 2014</li>
<li>Milestone 3: 1 Feb - 31 April 2014</li>
<li>Milestone 4: 1 May - 31 July 2014</li>
</ul>
</td></tr>
<?php
}
?>
</table>
<p> </p>
<p> </p>
</div>
<?php include("inc_footer.php"); ?>
</div>
</body>
</html>