$result = mysql_query(
"SELECT id,VonDatum,BisDatum,Text,InfoURL,Typ,VonUhrzeit FROM kalender
WHERE
TO_DAYS(VonDatum) - TO_DAYS(NOW()) <=14
AND
TO_DAYS(VonDatum) - TO_DAYS(NOW()) >= -7
ORDER BY VonDatum, VonUhrzeit"
);
while (list($Id,$VonDatum,$BisDatum,$Text,$InfoURL,$Typ,$Zeit)
= mysql_fetch_row($result)) {
$mdieser = Element($VonDatum,2);
if (($mletzter != $mdieser)) {
$mletzter = $mdieser;
print "".strtoupper(
Monatsname($mdieser))." | \n";
}
print "
".FormatDatum($VonDatum);
if ($Zeit != "" and $Zeit != "00:00:00")
print (", ". FormatZeit($Zeit));
if ($BisDatum != "" and $BisDatum != "0000-00-00")
print " bis ".FormatDatum($BisDatum);
print " | ".nl2br(htmlentities(stripslashes($Text)));
if ($InfoURL != "") print " ";
print " | $Typ";
print " | \n";
}
/* ?>
G | Termin des Gymnasiums |
R | Termin der Realschule |
A | Allgemeiner Termin (gilt für beide Schulen) |
|
wahl(); */
mysql_close();
?> |
wahl(); ?>
|
foot_l2();
?>
|