';
}
else {
$bmonth = $month;
$bmonth--;
$bmonth = sprintf('%02d' , $bmonth);
echo '';
}
?>
|
';
}
else {
$nmonth = $month;
$nmonth++;
$nmonth = sprintf('%02d' , $nmonth);
echo '';
}
?>
|
| Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
';
$lday = sprintf('%02d' , $day);
if ($showButtons == 'yes') {
echo "" . ' ';
}
echo '' . $day . '';
if ($handle = opendir('data')) {
while (false !== ($file = readdir($handle))) {
if (preg_match("/$sieve/", "$file")) {
$data = file_get_contents('data/' . $file);
list($title, $desc, $time, $class) = explode("|-NN-|", $data);
echo '' . $title . '';
echo $desc;
echo '' . $time . ' ';
}
}
closedir($handle);
}
echo "\r | ";
//If last day of week then start new week
if ($weekday == '7') {
echo '||||||
| ';
$lc++;
}
?>
';
}
else {
$bmonth = $month;
$bmonth--;
$bmonth = sprintf('%02d' , $bmonth);
echo '';
}
?>
|
';
}
else {
$nmonth = $month;
$nmonth++;
$nmonth = sprintf('%02d' , $nmonth);
echo '';
}
?>
|