![]() |
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
<link rel="stylesheet" media="all" type="text/css" href="seiten.css" /> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } --> </style><CENTER> <?php require ('termin-konfiguration.php'); $db_sel = mysql_select_db( MYSQL_DATENBANK ) or die("Auswahl der Datenbank fehlgeschlagen"); // wenn ein Monat angegeben ist, wird die Echtheit der Daten überprüft if ( $_GET['monat'] ) { if ( (INT) $_GET['monat'] > 0 AND (INT) $_GET['monat'] < 13 ) { $monat = (INT) $_GET['monat']; } else { // ist kein Monat angegeben, wird der aktuelle Monat verwendet $monat = date("n"); } } else { // ist kein Monat angegeben, wird der aktuelle Monat verwendet $monat = date("n"); } if ( $_GET['jahr'] ) { if ( (INT) $_GET['jahr'] > 0 AND (INT) $_GET['jahr'] < 3000 ) { $jahr = (INT) $_GET['jahr']; } else { $jahr = date("Y"); } } else { $jahr = date("Y"); } ?> <? // Ausgabe vom Monat und dem Jahr echo ""; $sql = "SELECT id, datum, zeit, ort, titel, beschreibung, info FROM termine WHERE YEAR(datum) = '$jahr' ORDER BY datum"; $db_erg = mysql_query( $sql ); if ( ! $db_erg ) { die('Ungültige Abfrage: ' . mysql_error()); } //Links ?> <? // Ausgabe Tabelle mit Terminen echo '<table border="0" width="590" cellspacing="0" cellpadding="0">'; while ($zeile = mysql_fetch_array( $db_erg)) { echo '<tr>'; echo '<td width="100" valign="top" > <table border="0" width="100" cellspacing="0" cellpadding="0"> <tr> <td width="100%" class="tline"><span class="Stil1" > '. date("d.m.Y ", strtotime($zeile["datum"])).' </td> </tr> <tr> <td width="100%" class="tline2"><span class="Stil1" > '. $zeile['zeit'] . ' Uhr </td> </tr> </table> </td>'; echo '<td><span class="Stil1" > <table border="0" width="490" cellspacing="0" cellpadding="0"> <tr> <td width="100%" class="tline"><b><span class="Stil1" >'. $zeile['ort'] . '</b> <b><span class="Stil4" > <a href="http://'. $zeile['info'] . '" target="_blank" /a> '. $zeile['info'] . '</b></td> </tr> <tr> <td width="100%" class="tline2"><b><span class="Stil1" >'. $zeile['titel'] . '</b></td> </tr> <tr> <td width="100%" class="tline2"><span class="Stil3" >'. $zeile['beschreibung'] . '</td> </tr> </table> '; echo '</td>'; echo '</tr>'; } echo '</table>'; mysql_free_result( $db_erg ); ?> |