1 |
<?php |
2 |
|
3 |
require_once("Combo.php"); |
4 |
|
5 |
$i = 1; |
6 |
$handle = fopen ("/usr/share/dict/words", "r"); |
7 |
while (!feof ($handle) && $i < 10000) { |
8 |
$buffer = trim(fgets($handle, 4096)); |
9 |
$headlines[$i++] = $buffer; |
10 |
} |
11 |
fclose ($handle); |
12 |
|
13 |
$c = new Combo("headlines", $headlines, "Foo"); |
14 |
$c->bfilterurl = "../bfilter.js"; |
15 |
|
16 |
$out = $c->get(); |
17 |
|
18 |
|
19 |
?><html> |
20 |
<head> |
21 |
<?=$out["head"]?> |
22 |
<style type="text/css"> |
23 |
.combo_textfilter { |
24 |
border:0px black solid; |
25 |
font-size:11px; |
26 |
width:332px; |
27 |
} |
28 |
|
29 |
.combo_sel { |
30 |
font-size:12px; |
31 |
border:0px black solid; |
32 |
font-size:11px; |
33 |
font-family: Arial, Verdana, Tahoma, Helvetica, sans-serif; |
34 |
width:347px; |
35 |
} |
36 |
|
37 |
.combo_dropdown { |
38 |
z-index:100; |
39 |
border: 0px black solid; |
40 |
} |
41 |
|
42 |
.combo_expand { |
43 |
background-color: ActiveCaption; |
44 |
width:14px; |
45 |
height:14px; |
46 |
} |
47 |
|
48 |
.combo_box { |
49 |
border:1px #14589E solid; |
50 |
} |
51 |
|
52 |
#status { |
53 |
z-index:10; |
54 |
} |
55 |
</style> |
56 |
</head> |
57 |
<body onload="<?=$out["body_onload"]?>"> |
58 |
</body> |
59 |
<?=$out["html"]?> |
60 |
</html> |