"; 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 ""; } else if (($eventId == "") && ($year == "")) { $eventId = getIdNextEvent(); $year = GetEventYear($eventId); $title = GetEventTitle($eventId); $ar_crumbs[1][0] = "Alle activiteiten (".$year.")"; $ar_crumbs[1][1] = "http://www.centrumbredevoort.nl/Activiteiten/index.php?year=".$year."&eventId=all"; $ar_crumbs[2][0] = $title; loadBreadCrumbs($ar_crumbs); loadSubNavigation($ar_navi, 0); echo "

"; //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 "
"; } } else if ($eventId == "last") { $eventId = getIdLastEvent(); $year = GetEventYear($eventId); $title = GetEventTitle($eventId); $ar_crumbs[1][0] = "Alle activiteiten (".$year.")"; $ar_crumbs[1][1] = "http://www.centrumbredevoort.nl/Activiteiten/index.php?year=".$year."&eventId=all"; $ar_crumbs[2][0] = $title; loadBreadCrumbs($ar_crumbs); loadSubNavigation($ar_navi, 1); echo "

"; //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 "

"; echo "   |  "; loadXML($xml); echo "
"; $xml = GetAllEvents(YEAR); $xsl = 'AllEvents.xsl'; } else { $ar_crumbs[1][0] = "Alle activiteiten (".$year.")"; $ar_crumbs[1][1] = "http://www.centrumbredevoort.nl/Activiteiten/index.php?year=".$year."&eventId=all"; $eventTitle = getEventTitle($eventId); $ar_crumbs[2][0] = $eventTitle; $ar_crumbs[2][1] = "http://www.centrumbredevoort.nl/Activiteiten/index.php?year=".$year."&eventId=".$eventId; //$eventTitle = "Tropische avond"; if ($ad != "") { $ar_crumbs[3][0] = "Persbericht"; //$ar_crumbs[3][1] = "http://www.centrumbredevoort.nl/Activiteiten/index.php?year=".$year."&eventId=".$eventId; loadBreadCrumbs($ar_crumbs); loadSubNavigation($ar_navi, 2); echo "

"; $xml = GetEventReport($ad); $xsl = 'Report.xsl'; } else if ($report != "") { $ar_crumbs[3][0] = "Verslag"; //$ar_crumbs[3][1] = "http://www.centrumbredevoort.nl/Activiteiten/index.php?year=".$year."&eventId=".$eventId; loadBreadCrumbs($ar_crumbs); loadSubNavigation($ar_navi, 2); echo "

"; $xml = GetEventReport($report); $xsl = 'Report.xsl'; } else { loadBreadCrumbs($ar_crumbs); loadSubNavigation($ar_navi, 2); echo "

"; $xml = GetEvent($eventId); $xsl = 'Event.xsl'; if (HasSubscriptions($eventId)) { echo XMLtoHTML($xml, $xsl); $xml = GetSubscribedPeople($eventId); $xsl = 'Subscribed.xsl'; } } } } function startElement($parser, $name, $attrs) { //echo $name; } function endElement($parser, $name) { //echo $name; } function printYearMenu($parser, $data) { //make menu with links to year pages if ($lastYearId == false) { define(YEAR, $data); define($lastYearId, true); } echo "".$data."  |  "; } function loadXML($x) { $xml_parser = xml_parser_create(); // use case-folding so we are sure to find the tag in $map_array xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, true); xml_set_element_handler($xml_parser, "startElement", "endElement"); xml_set_character_data_handler($xml_parser, "printYearMenu"); if (!xml_parse($xml_parser, $x)) { die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); } xml_parser_free($xml_parser); } if (($xml == "") && ($xsl == "")) echo ""; else if ($xsl == "") echo "no valid xsl file"; else { //echo $xml; //print XMLtoHTML($xml, $xsl); echo XMLtoHTML($xml, $xsl); print "

"; print "
"; } //-------------------------------------- loadHTMLBodyMainAreaEnd(); loadHTMLBodyEnd(PAGE_ACTIVITEITEN, "../"); ?>