-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatistics.php
More file actions
35 lines (30 loc) · 1.05 KB
/
Copy pathstatistics.php
File metadata and controls
35 lines (30 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
require_once('classes/autoloader.php');
require_once("include/header.php.inc");
echo "<h1>Statistics/Graphs</h1>";
$logger = new logging();
if (!isset($_REQUEST['type']))
echo StatisticsHelper::getStatisticMainPage();
else {
$dbh = new dbHelper();
$dbh->escapeAllRequestParameters();
switch ($_REQUEST['type']) {
case "progressOverTime":
if (strcmp($_REQUEST['action'], "select") == 0)
StatisticsHelper::getProgressReportSelectionPage();
elseif (strcmp($_REQUEST['action'], "display") == 0)
StatisticsHelper::getProgressReportDisplayPage();
break;
case "areaGridReport":
if (strcmp($_REQUEST['action'], "select") == 0) {
StatisticsHelper::getAreaGridReportSelectionPage();
} elseif (strcmp($_REQUEST['action'], "display") == 0) {
StatisticsHelper::getAreaGridReportDisplayPage();
}
break;
default:
echo "Not a valid type";
}
}
include("include/footer.php.inc");
?>