|
Calendar
The calendar displays postings of all future events organised by Group Relations - all dates containing events are higlighted blue.
In order to view an events listing for a particular date simply click on the highlighted area. |
|
/*********************************************************
calender.inc
Created on 25th June 2001
Created By Chris Gregory
Copyright (c) 2001 Chris Gregory
***********************************************************/
// get all the info
if (!$HTTP_POST_VARS) {
$theDate = getdate();
$mon = $theDate["mon"]; // numeric month (1-12)
$month = $theDate["month"]; // display month january, feb..
$year = $theDate["year"]; // 4 digit year (y2k compliant)
}
if ($action = "findDate") {
$theDate = getdate(mktime(0,0,0,$mon,1,$year));
$month = $theDate["month"];
}
// get what weekday the first is on
$tempDate = getdate(mktime(0,0,0,$mon,1,$year));
$firstwday= $tempDate["wday"];
// get the last day of the month
$cont = true;
$tday = 27;
while (($tday <= 32) && ($cont)) {
$tdate = getdate(mktime(0,0,0,$mon,$tday,$year));
if ($tdate["mon"] != $mon) {
$lastday = $tday - 1;
$cont = false;
}
$tday++;
}
?>
|
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
Today is Thursday, Nov 21, 2024 |
|
|
|