-
Notifications
You must be signed in to change notification settings - Fork 2
/
search.php
38 lines (37 loc) · 1.28 KB
/
search.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
28
29
30
31
32
33
34
35
36
37
38
<?php
if (${$theme}['botname']) echo "<h1>$nick</h1>\n";
?>
<div id='newsearch'>
<form action='index.php' id='searchform'>
<div class='searchtext'><div id='pulldown'>Show :
<select name='filter' id='searchfilter' onchange='doAjax()'>
<option value="">All</option>
<?php
require_once('table.php');
foreach ($filters as $f) {
echo ' <option value="' . $f->name . '"';
if ($filter == $f->name) echo ' selected="selected"';
echo '>' . htmlspecialchars($f->desc) . "</option>\n";
}
?>
</select></div>
<script type="text/javascript">
var delayTimer = null;
function delayAjax() {
if (delayTimer) clearTimeout(delayTimer);
delayTimer = setTimeout("doAjax()", 500);
}
</script>
<div id='searchinput'> (and/or) Search:
<input type='text' name='search' id='searchtext' onkeypress='delayAjax()' />
<input type='submit' value='Go' /></div>
</div>
</form>
</div>
<div id='ajaxsearch'>
<?php
require_once('table.php');
showTable();
showinfo();
?>
</div>