/[bfilter]/trunk/combo2/test.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/combo2/test.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 38 - (hide annotations)
Wed Nov 17 09:25:10 2004 UTC (19 years, 7 months ago) by dpavlin
File size: 978 byte(s)
added new combobox implementation by Matko Andjelinic together with example
implementation in php

1 dpavlin 38 <?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>

  ViewVC Help
Powered by ViewVC 1.1.26