include("../Php/pag_session.php"); loadSession(); if (!SHOW_ERRORS) error_reporting(0); include("../Php/pag_lib.php"); include("../Php/pag_globals.php"); include("../Php/pag_testxml.php"); include("../Php/dat_Cartoon.php"); include("../Php/pag_form.php"); setPage(PAGE_CARTOON); $path = "../"; loadHTMLHeader(PAGE_CARTOON, $path); loadHTMLBodyTopArea(PAGE_CARTOON, $path); loadHTMLBodyBlueArea($path); loadHTMLBodyMainAreaBegin(); //---- The specific page start ------- //------------------------------------ //---- The specific page content ------- $cartoonId = $_GET["cartoonId"]; $year = $_GET["year"]; $subnavi = 0; $collectionName = ""; $showYears = false; $ar_navi; $ar_navi[0][0] = "Cartoon van de maand"; $ar_navi[0][1] = "http://www.centrumbredevoort.nl/Cartoon"; $ar_navi[1][0] = "Alle cartoons"; $ar_navi[1][1] = "http://www.centrumbredevoort.nl/Cartoon/index.php?cartoonId=all"; $ar_crumbs; $ar_crumbs[0][0] = "Cartoon"; $ar_crumbs[0][1] = "http://www.centrumbredevoort.nl/Cartoon"; $xsl = ""; $xml = ""; define($lastYearIdentified, false); $scanIcons = true; $correctSubmitted = $_SESSION["CorrectSubmitted"]; if ($correctSubmitted) clearFormSessionVariables(); else { $name = $_SESSION["Name"]; $content = $_SESSION["Content"] ; $submitted = $_SESSION["Submitted"]; } if ($cartoonId == "") { $cartoonId = GetIdLastCartoon(); //$cartoonId = 5; } if (($cartoonId == GetIdLastCartoon())&&($year=="")) { //show last cartoon $title = GetCartoonTitle($cartoonId); $year = GetCartoonYear($cartoonId); $ar_crumbs[1][0] = "Alle cartoons (".$year.")"; $ar_crumbs[1][1] = "http://www.centrumbredevoort.nl/Cartoon/index.php?year=".$year."&cartoonId=all"; $ar_crumbs[2][0] = $title; loadBreadCrumbs($ar_crumbs); loadSubNavigation($ar_navi, 0); echo "
"; $xml = GetCartoon($cartoonId); $xsl = 'Cartoon.xsl'; print XMLtoHTML($xml, $xsl); loadFormCartoon($cartoonId, $name, $content, $submitted, $correctSubmitted); echo " "; $xsl = 'Reactions.xsl'; } else { $ar_crumbs[1][0] = "Alle cartoons"; $ar_crumbs[1][1] = "http://www.centrumbredevoort.nl/Cartoon/index.php?cartoonId=all"; if ($cartoonId == "all") { if ($year != "") { $ar_crumbs[1][0] = "Alle cartoons (".$year.")"; $ar_crumbs[1][1] = "http://www.centrumbredevoort.nl/Cartoon/index.php?year=".$year."&cartoonId=all"; define(YEAR, $year); define($lastYearId, true); } loadBreadCrumbs($ar_crumbs); loadSubNavigation($ar_navi, 1); $xml = GetAllCartoonYears(); echo "
|