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_Barschedule.php");
include("../Php/pag_form.php");
setPage(PAGE_BARROOSTER);
$path = "../";
loadHTMLHeader(PAGE_BARROOSTER, $path);
loadHTMLBodyTopArea(PAGE_BARROOSTER, $path);
loadHTMLBodyBlueArea($path);
loadHTMLBodyMainAreaBegin();
//---- The specific page start -------
//------------------------------------
//---- The specific page content -------
$month = $_GET["month"];
$currentMonth = GetCurrentMonth();
if ($month == "") $month = $currentMonth;
$isNextMonth = false;
if ($month != $currentMonth) {
//$month = $currentMonth; //!!! Jeroen
//$isNextMonth = true; //!!! Jeroen
}
$nextmonth = getNextMonth($month);
$subnavi = 0;
$showMonths = false; //waar is deze voor?
$ar_navi;
$ar_navi[0][0] = $month;
//Org. $ar_navi[0][1] = "http://www.centrumbredevoort.nl/Barrooster";
$ar_navi[0][1] = "http://www.centrumbredevoort.nl/Barrooster/index.php?month=".$month;
$ar_navi[1][0] = $nextmonth;
$ar_navi[1][1] = "http://www.centrumbredevoort.nl/Barrooster/index.php?month=".$nextmonth;
$ar_crumbs;
$ar_crumbs[0][0] = "Barrooster";
$ar_crumbs[0][1] = "http://www.centrumbredevoort.nl/Barrooster";
$xsl = "";
$xml = "";
if ($isNextMonth) {
$ar_crumbs[1][0] = $nextmonth;
$ar_crumbs[1][1] = "http://www.centrumbredevoort.nl/Barrooster/index.php?month=".$nextmonth;
loadBreadCrumbs($ar_crumbs);
loadSubNavigation($ar_navi, 1);
echo "
";
$xml = GetBarSchedule($nextmonth);
}
else {
$ar_crumbs[1][0] = $month;
$ar_crumbs[1][1] = "http://www.centrumbredevoort.nl/Barrooster";
loadBreadCrumbs($ar_crumbs);
loadSubNavigation($ar_navi, 0);
echo "";
$xml = GetBarSchedule($month);
}
$xsl = 'Barrooster.xsl';
if (($xml == "") && ($xsl == "")) echo "";
else if ($xsl == "") echo "no valid xsl file";
else {
print XMLtoHTML($xml, $xsl);
print "
";
print " | ";
}
//--------------------------------------
loadHTMLBodyMainAreaEnd();
loadHTMLBodyEnd(PAGE_BARROOSTER, "../");
?>
|