Aktivitäten

Nur zukünftige Termine anzeigen

'; } else { echo '

Vergangene Termine auch anzeigen

'; } // -------------------------------------------------------------------------------------- ?> '$today' ORDER BY Datum DESC"; } if ($result = $mysqli->query($query)) { while ($row = $result->fetch_assoc()) { // get actual month of this record $month = ltrim(strftime('%m', strtotime($row['Datum'])), '0'); // does it differ from the one before? if($actualMonth != $month) { // print a new month header $actualMonth = $month; //echo ''; echo ''; } // print the regular record data echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } $result->close(); } // -------------------------------------------------------------------------------------- ?>
' . strftime('%B %Y', strtotime($row['Datum'])) . '
' . utf8_encode(strftime('%B %Y', strtotime($row['Datum']))) . '
' . strftime('%A', strtotime($row['Datum'])) . '' . strftime('%e.', strtotime($row['Datum'])) . $month . '.' . '' . $row['Zeit'] . '' . utf8_encode($row['Titel']) . '' . utf8_encode($row['Teilnehmer']) . '' . utf8_encode($row['Bemerkungen']) . '
query($query); $row = $result->fetch_assoc(); if($row) { $update = strtotime($row['Aktualisiert']); } $result->close(); // -------------------------------------------------------------------------------------- ?>