-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtop.tpl
35 lines (33 loc) · 1.24 KB
/
top.tpl
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 echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>ishmael - a UI for mk-query-digest</title>
<link rel="stylesheet" href="media/style.css" type="text/css"/>
<script src="media/graph.js"></script>
<script src="media/Fonts.js"></script>
<script src="media/BitmapType.js"></script>
<script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
</head>
<body>
<div id="title_bar">
<h1>ishmael</h1>
a UI for mk-query-digest
<form action="" method="GET">
last <input type="text" name="hours" id="hours" value="<?= $hours ?>" />
<label for="hours">hours</label>
on <select name="host">
<? foreach ($hosts as $h => $t):?>
<option value="<?=$h?>" <? if ($host == $h):?>SELECTED<? endif; ?>><?= $t ?></option>
<? endforeach; ?>
</select>
<? foreach ($_GET as $key => $value): ?>
<? if (!in_array($key, array('host', 'hours'))): ?>
<input type="hidden" name="<?= $key ?>" value="<?= $value ?>">
<? endif; ?>
<? endforeach; ?>
<input type="submit" value="go">
</form>
</div>
<div id="content_wrapper">