1<?php
2include('../Code/confHeader.inc');
3include('../Code/Calendar.inc');
4$_SESSION[Me] -> goIfInvalid("../index.php");
5$_SESSION[Me] -> goIfNotChair('../index.php');
6$Conf -> connect();
7include('Code.inc');
8
9?>
10
11<html>
12
13<?php  $Conf->header("Interactive Calendar") ?>
14
15<?php
16class MyCalendar extends Calendar
17{
18  function getCalendarLink($month, $year)
19    {
20      // Redisplay the current page, but with some parameters
21      // to set the new month and year
22      return "$_SERVER[SCRIPT_NAME]?month=$month&year=$year";
23    }
24}
25?>
26
27<body>
28
29<?php
30// If no month/year set, use current month/year
31
32$d = getdate(time());
33
34$month = $_REQUEST[month];
35$year = $_REQUEST[year];
36
37if ($month == "")
38{
39  $month = $d["mon"];
40}
41
42if ($year == "")
43{
44  $year = $d["year"];
45}
46
47$cal = new MyCalendar;
48?>
49<table align=center>
50<tr> <td>
51<?php echo $cal->getYearView($year);?>
52</td> </tr>
53</table>
54</body>
55<?php  $Conf->footer() ?>
56</html>
57
58