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_once("../Php/dat_News.php"); include("../Php/pag_form.php"); setPage(PAGE_NIEUWS); $path = "../"; loadHTMLHeader(PAGE_NIEUWS, $path); loadHTMLBodyTopArea(PAGE_NIEUWS, $path); loadHTMLBodyBlueArea($path); loadHTMLBodyMainAreaBegin(); //---- The specific page start ------- //------------------------------------ //---- The specific page content ------- $newsItemId = $_GET["newsItemId"]; $newsletter = $_GET["newsletter"]; $subnavi = 0; $showYears = false; $ar_navi; $ar_navi[0][0] = "Alle nieuwsberichten"; $ar_navi[0][1] = "http://www.centrumbredevoort.nl/Nieuws"; $ar_navi[1][0] = "Nieuwsbrief ontvangen?"; $ar_navi[1][1] = "http://www.centrumbredevoort.nl/Nieuws/index.php?newsletter=no"; $ar_crumbs; $ar_crumbs[0][0] = "Nieuws"; $ar_crumbs[0][1] = "http://www.centrumbredevoort.nl/Nieuws"; $xsl = ""; $xml = ""; $correctSubmitted = $_SESSION["CorrectSubmitted"]; if (!$correctSubmitted) { $name = $_SESSION["Name"]; $email = $_SESSION["Email"] ; $submitted = $_SESSION["Submitted"]; } if ($newsletter != "") { $ar_crumbs[1][0] = "Nieuwsbrief ontvangen?"; loadBreadCrumbs($ar_crumbs); loadSubNavigation($ar_navi, 1); echo "
"; echo "Nieuwsbrief ontvangen? "; if (!$correctSubmitted) { echo "Vul je naam en emailadres in om de nieuwsbrief van jongerencentrum 't Centrum te ontvangen. Om je af te melden voor de nieuwsbrief stuur een email aan bestuur@centrumbredevoort.nl. "; loadFormNewsletter($name, $email, $correctSubmitted, $submitted); } else { echo "Bedankt voor je aanmelding! Je ontvangt vanaf nu de nieuwsbrief op het door jou opgegeven emailadres ongeveer een keer per twee weken. "; if ($correctSubmitted) clearFormSessionVariables(); } echo " |
"; $xml = GetNewsItem($newsItemId); $xsl = 'NewsMessage.xsl'; print XMLtoHTML($xml, $xsl); print " "; print " |
"; echo "Nieuws |
";
$xml = GetAllMajorNews();
$xsl = 'MajorNews.xsl';
print XMLtoHTML($xml, $xsl);
$xml = GetAllOtherNews();
$xsl = 'OtherNews.xsl';
}
if (($xml == "") && ($xsl == "")) echo "";
else if ($xsl == "") echo "no valid xsl file";
else {
$html = XMLtoHTML($xml, $xsl);
print textToSmilie($html);
print " "; print " |