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_Zoldertje.php"); include("../Php/pag_form.php"); setPage(PAGE_ZOLDERTJE); $path = "../"; loadHTMLHeader(PAGE_ZOLDERTJE, $path); loadHTMLBodyTopArea(PAGE_ZOLDERTJE, $path); loadHTMLBodyBlueArea($path); loadHTMLBodyMainAreaBegin(); //---- The specific page start ------- //------------------------------------ //---- The specific page content ------- $topicId = $_GET["topicId"]; $year = $_GET["year"]; $page = $_GET["page"]; $subnavi = 0; $showYears = false; $ar_navi; $ar_navi[0][0] = "Lul mee!"; $ar_navi[0][1] = "http://www.centrumbredevoort.nl/Zoldertje"; $ar_navi[1][0] = "Alle Onderwerpen"; $ar_navi[1][1] = "http://www.centrumbredevoort.nl/Zoldertje/index.php?topicId=all"; $ar_crumbs; $ar_crumbs[0][0] = "Zoldertje"; $ar_crumbs[0][1] = "http://www.centrumbredevoort.nl/Zoldertje"; $xsl = ""; $xml = ""; define($lastYearId, false); define(TAG_NUMBEROFRESPONSES, "0"); define(NUMRESP, "-1"); $correctSubmitted = $_SESSION["CorrectSubmitted"]; if ($correctSubmitted) clearFormSessionVariables(); else { $name = $_SESSION["Name"]; $content = $_SESSION["Content"] ; $submitted = $_SESSION["Submitted"]; } if (($year == "") && ($topicId == "")) { //show hot stuff $ar_crumbs[1][0] = "Lul mee!"; loadBreadCrumbs($ar_crumbs); loadSubNavigation($ar_navi, 0); //title = hot stuff echo "
"; echo "Lul mee (over van alles en nog wat)! In het weekend op de zolder aan de Markt! Op andere dagen hier op 't Zoldertje. De allerlaatste reacties en onderwerpen! Heb jij een goed idee voor een discussie stuur dan een email naar bestuur@centrumbredevoort.nl "; $xml = GetLastTopics(); $xsl = 'Topics.xsl'; $html = XMLtoHTML($xml, $xsl); //print $html; print textToSmilieSmall($html); $xml = GetDetailedTopic(DOM_GELUL, 1, 1); $xsl = 'DomGelul.xsl'; $html = XMLtoHTML($xml, $xsl); print textToSmilieSmall($html); $xml = GetLastResponses(); $xsl = 'Responses.xsl'; //$html = XMLtoHTML($xml, $xsl); //print textToSmilieSmall($html); } else { $ar_crumbs[1][0] = "Alle Onderwerpen"; $ar_crumbs[1][1] = "http://www.centrumbredevoort.nl/Zoldertje/index.php?topicId=all"; if ($topicId == "all") { //show topic overview //title = jaar if ($year != "") { $ar_crumbs[1][0] = "Alle Onderwerpen (".$year.")"; $ar_crumbs[1][1] = "http://www.centrumbredevoort.nl/Zoldertje/index.php?year=".$year."&topicId=all"; define(YEAR, $year); define($lastYearId, true); } loadBreadCrumbs($ar_crumbs); loadSubNavigation($ar_navi, 1); $xml = GetAllTopicYears(); echo "
";
loadFormTopic($topicId, $name, $content, $correctSubmitted, $submitted);
echo " "; if ($page == "") $page = 1; $xml = GetDetailedTopic($topicId, $page, RESPONSES_PER_PAGE); //$xml = GetDetailedTopic($topicId); $xsl = 'TopicReactions.xsl'; $html = XMLtoHTML($xml, $xsl); print textToSmilie($html); print " "; loadXMLNumberOfResponses($xml); $numberOfResponses = $GLOBALS['NUMRESP']; echo "
"; print " |