$title = "Home";
$pageName = "home";
include("includes/header.inc.php");
$db = new DB();
$db->query("SELECT content FROM pages WHERE name='{$pageName}'");
$data = $db->fetch();
echo nl2br($data["content"]);
echo "
";
echo "Agenda
";
$db->query("SELECT * FROM agenda WHERE eind>=NOW() ORDER BY start ASC limit 0,20");
while($data=$db->fetch())
{
$titel_datum = $data["eind"] == "0000-00-00" || $data["eind"] == date("Y=m-d") ? general::convert_date($data["start"]) : general::convert_date($data["start"]) . " t/m " . general::convert_date($data["eind"]);
$locatie = empty($data["locatie"]) ? "" : " te {$data["locatie"]}";
$image = empty($data["afb"]) ? "" : "";
echo "
{$image}{$titel_datum} - {$data["naam"]} {$locatie}
".nl2br($data["omschrijving"])."
";
}
include("includes/footer.inc.php");?>