--- a/displayCalendar.php +++ b/displayCalendar.php @@ -2,11 +2,17 @@ include_once("./lib/common.inc.php"); -include_header("Months and Years"); + if ($_REQUEST['month']) { - echo "

" . $_REQUEST['month'] . "

"; $monthParts = explode("-", $_REQUEST['month']); + $year = $monthParts[1]; + $month = $monthParts[0]; + $monthName = date("F Y", mktime(0,0,0,$month,1,$year)); + + include_header($monthName); + echo "

" . $monthName . "

"; + $query = 'SELECT "CNID", "description", "value", "agencyName", "category", "contractStart", "supplierName" FROM contractnotice WHERE "childCN" is null @@ -52,7 +58,7 @@ Year/Month drilldown - largest contracts, agencies, suppliers count per month big picture graphs? */ - +include_header("Months and Years"); ContractStartingGraph(); ContractPublishedGraph();