<?
include('../Code/confHeader.inc');
include('../Code/Calendar.inc');
$Me -> goIfInvalid("../index.php");
$Me -> goIfNotChair('../index.php');
$Conf -> connect();
include('Code.inc');

?>

<html>

<? $Conf->header("Interactive Calendar") ?>

<?
class MyCalendar extends Calendar
{
  function getCalendarLink($month, $year)
    {
      // Redisplay the current page, but with some parameters
      // to set the new month and year
      $s = getenv('SCRIPT_NAME');
      return "$s?month=$month&year=$year";
    }
}
?>

<body>

<?
// If no month/year set, use current month/year
 
$d = getdate(time());

if ($month == "")
{
  $month = $d["mon"];
}

if ($year == "")
{
  $year = $d["year"];
}

$cal = new MyCalendar;
?>
<table align=center>
<tr> <td>
<?echo $cal->getYearView($year);?>
</td> </tr>
</table>
</body>
<? $Conf->footer() ?>
</html>

