include("../Php/pag_session.php"); loadSession(); if (!SHOW_ERRORS) error_reporting(0); //error_reporting(0); include("../Php/pag_lib.php"); include("../Php/pag_globals.php"); include("../Php/pag_testxml.php"); include("../Php/dat_Event.php"); include("../Php/pag_form.php"); setPage(PAGE_ACTIVITEITEN); $path = "../"; loadHTMLHeader(PAGE_ACTIVITEITEN, $path); loadHTMLBodyTopArea(PAGE_ACTIVITEITEN, $path); loadHTMLBodyBlueArea($path); loadHTMLBodyMainAreaBegin(); //---- The specific page start ------- //------------------------------------ //---- The specific page content ------- $eventId = $_GET["eventId"]; $year = $_GET["year"]; $subscription = $_GET["subscription"]; $report = $_GET["report"]; $subnavi = 0; $showYears = false; $ar_navi; $ar_navi[0][0] = "Eerstvolgende activiteit"; $ar_navi[0][1] = "http://www.centrumbredevoort.nl/Activiteiten"; $ar_navi[1][0] = "Afgelopen activiteit"; $ar_navi[1][1] = "http://www.centrumbredevoort.nl/Activiteiten/index.php?eventId=last"; $ar_navi[2][0] = "Alle activiteiten"; $ar_navi[2][1] = "http://www.centrumbredevoort.nl/Activiteiten/index.php?eventId=all"; $ar_navi[3][0] = "Inschrijven"; $ar_navi[3][1] = "http://www.centrumbredevoort.nl/Activiteiten/index.php?subscription=no"; $correctSubmitted = $_SESSION["CorrectSubmitted"]; $submitted = $_SESSION["Submitted"]; if (!$correctSubmitted){ $name = $_SESSION["Name"]; $email = $_SESSION["Email"] ; $submitted = $_SESSION["Submitted"]; } $ar_crumbs; $ar_crumbs[0][0] = "Activiteiten"; $ar_crumbs[0][1] = "http://www.centrumbredevoort.nl/Activiteiten"; $xsl = ""; $xml = ""; define($lastYearId, false); if ($subscription != "") { $ar_crumbs[1][0] = "Inschrijven"; loadBreadCrumbs($ar_crumbs); loadSubNavigation($ar_navi, 3); echo "
";
echo " Inschrijven "; if ($_SESSION["Success"] == -1) echo "Er is al iemand ingeschreven met het emailadres ".$email."voor de activiteit ".$event; else if (($submitted)&&($correctSubmitted)) { clearFormSessionVariables(); echo "Bedankt voor je inschrijving! "; } else if (($submitted)&&(!$correctSubmitted)) { echo "Vul aub de juiste gegevens in. "; } else { echo "Hier kun je je inschrijven voor een activiteit. "; } echo "Bekijk de activiteit bij Alle activiteiten voor wie zich al ingeschreven heeft. "; $options = getSubscriptionOptions(); if ($options != 0) loadFormSubscription($options, $name, $email, $correctSubmitted, $submitted); else echo "Op dit moment kan er niet voor een activiteit ingeschreven worden"; print " "; print " |
"; //show next event //if nothing selected show "geen volgende activiteit beschreven, bekijk de vorige activiteit of alle activiteiten" if ($eventId != -1) { $xml = GetEvent($eventId); $xsl = 'Event.xsl'; if (HasSubscriptions($eventId)) { echo XMLtoHTML($xml, $xsl); $xml = GetSubscribedPeople($eventId); $xsl = 'Subscribed.xsl'; } } else { echo "Er is op dit moment geen nieuwe activiteit beschreven. Bekijk de vorige activiteit Bekijk alle activiteiten "; print " "; print " |
"; //show next event //if nothing selected show "geen volgende activiteit beschreven, bekijk de vorige activiteit of alle activiteiten" $xml = GetEvent($eventId); $xsl = 'Event.xsl'; if (HasSubscriptions($eventId)) { echo XMLtoHTML($xml, $xsl); $xml = GetSubscribedPeople($eventId); $xsl = 'Subscribed.xsl'; } } else { $ar_crumbs[1][0] = "Alle activiteiten"; $ar_crumbs[1][1] = "http://www.centrumbredevoort.nl/Activiteiten/index.php?eventId=all"; if ($eventId == "all") { if ($year != "") { $ar_crumbs[1][0] = "Alle activiteiten (".$year.")"; $ar_crumbs[1][1] = "http://www.centrumbredevoort.nl/Activiteiten/index.php?year=".$year."&eventId=all"; define(YEAR, $year); define($lastYearId, true); } loadBreadCrumbs($ar_crumbs); loadSubNavigation($ar_navi, 2); $xml = GetAllEventYears(); echo "
|