-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
28 lines (25 loc) · 964 Bytes
/
index.php
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
<?php
include('./init.php');
$it = new AppendIterator();
$it->append(new ArrayIterator(array('timeline' => array('Number of reports', 'SELECT report_date FROM stat WHERE {filter} ORDER BY report_date'))));
$it->append($def);
$it->append(new ArrayIterator(array(
'settings' => array('PHP Settings by PHP Version', ''),
'php_by_pmf' => array('PHP Version by PMF Version', ''),
)));
echo <<<HTML
<html>
<head>
<script>
function loadchart(chartname) {
var url = 'chart.php?d='+chartname+'&filter='+escape(document.getElementById('filter').value);
chartframe.location.href = url;
}
</script>
</head>
<body><table><tr><td><ul>
HTML;
foreach ($it as $name => $caption) {
echo "<li><a href='#' onclick='loadchart(\"".urlencode($name)."\"); return false;'>".htmlentities($caption[0])."</a></li>\n";
}
echo "</ul>Filter: <input id='filter'></td><td><iframe name='chartframe' style='width: 850;height: 650;'></iframe></td></tr></table></body></html>";