1 |
jonen |
1.1 |
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Frameset//EN''http://www.w3.org/TR/REC-html40/frameset.dtd'> |
2 |
|
|
<!--NewPage--> |
3 |
|
|
<HTML> |
4 |
|
|
<HEAD> |
5 |
|
|
<!-- Generated by PhpDoc date: 'Mon, 25 Nov 2002 09:21:40 -0800' --> |
6 |
|
|
<TITLE>Docs for page widget6.php</TITLE> |
7 |
|
|
<LINK REL ='stylesheet' TYPE='text/css' HREF='stylesheet.css' TITLE='Style'> |
8 |
|
|
</HEAD> |
9 |
|
|
<BODY style="background-color: #eeeeee; font-family: arial; font-size: .9em;"> |
10 |
|
|
|
11 |
|
|
|
12 |
|
|
<!-- Links --> |
13 |
|
|
<a NAME="top"></A> |
14 |
|
|
<table WIDTH="100%" class="links"> |
15 |
|
|
<TR> |
16 |
|
|
<TD class="font10"> |
17 |
|
|
Links: |
18 |
|
|
<A HREF="#classes_summary" class="links" title="Classes created in this file">Classes</A> |
19 |
|
|
<A HREF="#includes_summary" class="links" title="Include Statements Summary">Includes</A> |
20 |
|
|
<A HREF="#globals_summary" class="links" title="Global Variable Summary">Globals</A> |
21 |
|
|
<A HREF="#constant_summary" class="links" title="Constant Summary">Constants</A> |
22 |
|
|
<A HREF="#functions_summary" class="links" title="Function Summary">Functions</A> |
23 |
|
|
<A HREF="#includes_detail" class="links" title="Include Statements Detail">Includes Detail</A> |
24 |
|
|
<A HREF="#global_detail" class="links" title="Global Variable Detail">Globals Detail</A> |
25 |
|
|
<A HREF="#constant_detail" class="links" title="Constant Detail">Constants Detail</A> |
26 |
|
|
<A HREF="#function_detail" class="links" title="Function Detail">Functions Detail</A> |
27 |
|
|
</TD> |
28 |
|
|
</TR> |
29 |
|
|
</TABLE> |
30 |
|
|
<BR> |
31 |
|
|
|
32 |
|
|
<h2>File: Program_Root/examples/widget6.php</h2> |
33 |
|
|
<!-- ========== Info from phpDoc block ========= --> |
34 |
|
|
This example illustrates the use of the |
35 |
|
|
<BR> |
36 |
|
|
DataList object classes. This object |
37 |
|
|
can show a list of data from any data source |
38 |
|
|
and have any GUI layout and provide the |
39 |
|
|
features of: |
40 |
|
|
searching, sorting, paging of the data. |
41 |
|
|
|
42 |
|
|
This page shows the Data coming from 2 different |
43 |
|
|
types of DB objects. One from a PEAR::DB object, |
44 |
|
|
and another from a ADODB object. |
45 |
|
|
|
46 |
|
|
$Id: _examples_widget6_php.html,v 1.7 2002/11/25 18:24:29 hemna Exp $ |
47 |
|
|
|
48 |
|
|
<UL> |
49 |
|
|
|
50 |
|
|
<LI><b>Package</b> - <CODE>phpHtmlLib</CODE></LI> |
51 |
|
|
|
52 |
|
|
<LI><b>Sub-Package</b> - <CODE>widget-examples</CODE></LI> |
53 |
|
|
|
54 |
|
|
<LI><b>Version</b> - <CODE>2.0</CODE></LI> |
55 |
|
|
|
56 |
|
|
<LI><b>Author</b> - <CODE>Walter A. Boring IV <<a href="mailto:waboring@buildabetterweb.com">waboring@buildabetterweb.com</a>></CODE></LI> |
57 |
|
|
|
58 |
|
|
</UL> |
59 |
|
|
|
60 |
|
|
<br> |
61 |
|
|
<!-- =========== Used Classes =========== --> |
62 |
|
|
<A NAME='classes_summary'><!-- --></A> |
63 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="bordernobottom"> |
64 |
|
|
<TR CLASS='TableHeadingColor'> |
65 |
|
|
<TD> |
66 |
|
|
<span class="font12bold">Classes defined in this file</span> |
67 |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
68 |
|
|
</TD> |
69 |
|
|
</TR> |
70 |
|
|
</TABLE> |
71 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
72 |
|
|
<THEAD> |
73 |
|
|
<TR><TD STYLE="width:20%"><h4>CLASS NAME</h4></TD><TD STYLE="width: 80%"><h4>DESCRIPTION</h4></TD></TR> |
74 |
|
|
</THEAD> |
75 |
|
|
<TBODY> |
76 |
|
|
|
77 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
78 |
|
|
<TD><a href="../../phpHtmlLib/widget-examples/pearmysqllist.html">pearmysqllist</a></TD> |
79 |
|
|
<TD>n/a</TD> |
80 |
|
|
</TR> |
81 |
|
|
|
82 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
83 |
|
|
<TD><a href="../../phpHtmlLib/widget-examples/adodbmysqllist.html">adodbmysqllist</a></TD> |
84 |
|
|
<TD>The only difference being is the DataListSource object |
85 |
|
|
for an ADODB object, instead of a PEAR DB object.</TD> |
86 |
|
|
</TR> |
87 |
|
|
|
88 |
|
|
</TBODY> |
89 |
|
|
</TABLE> |
90 |
|
|
<br> |
91 |
|
|
<br> |
92 |
|
|
<!-- =========== Includes SUMMARY =========== --> |
93 |
|
|
<A NAME='includes_summary'><!-- --></A> |
94 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="bordernobottom"> |
95 |
|
|
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
96 |
|
|
<TD> |
97 |
|
|
<span CLASS="font12bold">Include Statements Summary</span> |
98 |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
99 |
|
|
</TD> |
100 |
|
|
</TR> |
101 |
|
|
</TABLE> |
102 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
103 |
|
|
<THEAD> |
104 |
|
|
<TR><TH>INCLUDE TYPE</TH><TH>INCLUDED FILENAME</TH><TH>DESCRIPTION</TH></TR> |
105 |
|
|
</THEAD> |
106 |
|
|
<TBODY> |
107 |
|
|
|
108 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
109 |
|
|
<TD><A HREF='_examples_widget6_php.html#_$phphtmllib_/widgets/data_list/ADODBSQLDataListSource_inc'>include_once</A></TD> |
110 |
|
|
<TD>$phphtmllib."/widgets/data_list/ADODBSQLDataListSource.inc"</TD> |
111 |
|
|
<TD></TD> |
112 |
|
|
</TR> |
113 |
|
|
|
114 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
115 |
|
|
<TD><A HREF='_examples_widget6_php.html#_$phphtmllib_/widgets/data_list/PEARSQLDataListSource_inc'>include_once</A></TD> |
116 |
|
|
<TD>$phphtmllib."/widgets/data_list/PEARSQLDataListSource.inc"</TD> |
117 |
|
|
<TD></TD> |
118 |
|
|
</TR> |
119 |
|
|
|
120 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
121 |
|
|
<TD><A HREF='_examples_widget6_php.html#_$phphtmllib_/widgets/data_list/includes_inc'>include_once</A></TD> |
122 |
|
|
<TD>$phphtmllib."/widgets/data_list/includes.inc"</TD> |
123 |
|
|
<TD></TD> |
124 |
|
|
</TR> |
125 |
|
|
|
126 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
127 |
|
|
<TD><A HREF='_examples_widget6_php.html#_includes_inc'>include_once</A></TD> |
128 |
|
|
<TD>"includes.inc"</TD> |
129 |
|
|
<TD>Include the phphtmllib libraries</TD> |
130 |
|
|
</TR> |
131 |
|
|
|
132 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
133 |
|
|
<TD><A HREF='_examples_widget6_php.html#_db_defines_inc'>include_once</A></TD> |
134 |
|
|
<TD><a href="../../phpHtmlLib/_examples_db_defines_inc.html">db_defines.inc</a></TD> |
135 |
|
|
<TD></TD> |
136 |
|
|
</TR> |
137 |
|
|
|
138 |
|
|
<TR BGCOLOR='white' CLASS='TableRowColor'> |
139 |
|
|
<TD><A HREF='_examples_widget6_php.html#_adodb_inc_php'>require_once</A></TD> |
140 |
|
|
<TD>"adodb.inc.php"</TD> |
141 |
|
|
<TD></TD> |
142 |
|
|
</TR> |
143 |
|
|
|
144 |
|
|
</TBODY> |
145 |
|
|
</TABLE> |
146 |
|
|
<br> |
147 |
|
|
|
148 |
|
|
<br> |
149 |
|
|
<!-- =========== CONSTANT SUMMARY =========== --> |
150 |
|
|
<A NAME='global_summary'><!-- --></A> |
151 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="bordernobottom"> |
152 |
|
|
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
153 |
|
|
<TD> |
154 |
|
|
<FONT SIZE='+2'><B>Global Variable Summary</B></FONT> |
155 |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
156 |
|
|
</TD> |
157 |
|
|
</TR> |
158 |
|
|
</TABLE> |
159 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
160 |
|
|
<THEAD> |
161 |
|
|
<TR><TH>VARIABLE NAME</TH><TH>VARIABLE VALUE</TH><TH>DESCRIPTION</TH></TR> |
162 |
|
|
</THEAD> |
163 |
|
|
<TBODY> |
164 |
|
|
|
165 |
|
|
</TBODY> |
166 |
|
|
</TABLE> |
167 |
|
|
<br> |
168 |
|
|
|
169 |
|
|
|
170 |
|
|
<br> |
171 |
|
|
<!-- =========== CONSTANT SUMMARY =========== --> |
172 |
|
|
<A NAME='constant_summary'><!-- --></A> |
173 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="bordernobottom"> |
174 |
|
|
<TR CLASS='TableHeadingColor'> |
175 |
|
|
<TD> |
176 |
|
|
<span CLASS="font12bold">Constant Summary</span> |
177 |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
178 |
|
|
</TD> |
179 |
|
|
</TR> |
180 |
|
|
</TABLE> |
181 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
182 |
|
|
<THEAD> |
183 |
|
|
<TR><TH>CONSTANT NAME</TH><TH>CONSTANT VALUE</TH><TH>DESCRIPTION</TH></TR> |
184 |
|
|
</THEAD> |
185 |
|
|
<TBODY> |
186 |
|
|
|
187 |
|
|
</TBODY> |
188 |
|
|
</TABLE> |
189 |
|
|
<br> |
190 |
|
|
|
191 |
|
|
<br> |
192 |
|
|
<!-- =========== Function SUMMARY =========== --> |
193 |
|
|
<A NAME='Function_summary'><!-- --></A> |
194 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' Class="border"> |
195 |
|
|
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
196 |
|
|
<TD> |
197 |
|
|
<span class="font12bold">Function Summary</span> |
198 |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
199 |
|
|
</TD> |
200 |
|
|
</TR> |
201 |
|
|
|
202 |
|
|
|
203 |
|
|
</TABLE> |
204 |
|
|
|
205 |
|
|
<br> |
206 |
|
|
<!-- ============ Includes DETAIL =========== --> |
207 |
|
|
|
208 |
|
|
<A NAME='includes_detail'></A> |
209 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
210 |
|
|
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
211 |
|
|
<TD> |
212 |
|
|
<span CLASS="font12bold">Include Statements Detail</span> |
213 |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
214 |
|
|
</TD> |
215 |
|
|
</TR> |
216 |
|
|
</TABLE> |
217 |
|
|
|
218 |
|
|
|
219 |
|
|
<DIV CLASS="function"> |
220 |
|
|
<A NAME='_$phphtmllib_/widgets/data_list/ADODBSQLDataListSource_inc'><!-- --></A> |
221 |
|
|
<span class="font10bold">Include Type : </span>include_once |
222 |
|
|
<BR> |
223 |
|
|
<span class="font10bold">Include File : </span>$phphtmllib."/widgets/data_list/ADODBSQLDataListSource.inc" |
224 |
|
|
<BR> |
225 |
|
|
<!-- ========== Info from phpDoc block ========= --> |
226 |
|
|
|
227 |
|
|
<BR> |
228 |
|
|
|
229 |
|
|
|
230 |
|
|
<UL> |
231 |
|
|
|
232 |
|
|
</UL> |
233 |
|
|
|
234 |
|
|
</DIV> |
235 |
|
|
|
236 |
|
|
<DIV CLASS="function"> |
237 |
|
|
<A NAME='_$phphtmllib_/widgets/data_list/PEARSQLDataListSource_inc'><!-- --></A> |
238 |
|
|
<span class="font10bold">Include Type : </span>include_once |
239 |
|
|
<BR> |
240 |
|
|
<span class="font10bold">Include File : </span>$phphtmllib."/widgets/data_list/PEARSQLDataListSource.inc" |
241 |
|
|
<BR> |
242 |
|
|
<!-- ========== Info from phpDoc block ========= --> |
243 |
|
|
|
244 |
|
|
<BR> |
245 |
|
|
|
246 |
|
|
|
247 |
|
|
<UL> |
248 |
|
|
|
249 |
|
|
</UL> |
250 |
|
|
|
251 |
|
|
</DIV> |
252 |
|
|
|
253 |
|
|
<DIV CLASS="function"> |
254 |
|
|
<A NAME='_$phphtmllib_/widgets/data_list/includes_inc'><!-- --></A> |
255 |
|
|
<span class="font10bold">Include Type : </span>include_once |
256 |
|
|
<BR> |
257 |
|
|
<span class="font10bold">Include File : </span>$phphtmllib."/widgets/data_list/includes.inc" |
258 |
|
|
<BR> |
259 |
|
|
<!-- ========== Info from phpDoc block ========= --> |
260 |
|
|
|
261 |
|
|
<BR> |
262 |
|
|
|
263 |
|
|
|
264 |
|
|
<UL> |
265 |
|
|
|
266 |
|
|
</UL> |
267 |
|
|
|
268 |
|
|
</DIV> |
269 |
|
|
|
270 |
|
|
<DIV CLASS="function"> |
271 |
|
|
<A NAME='_includes_inc'><!-- --></A> |
272 |
|
|
<span class="font10bold">Include Type : </span>include_once |
273 |
|
|
<BR> |
274 |
|
|
<span class="font10bold">Include File : </span>"includes.inc" |
275 |
|
|
<BR> |
276 |
|
|
<!-- ========== Info from phpDoc block ========= --> |
277 |
|
|
Include the phphtmllib libraries |
278 |
|
|
<BR> |
279 |
|
|
|
280 |
|
|
|
281 |
|
|
<UL> |
282 |
|
|
|
283 |
|
|
</UL> |
284 |
|
|
|
285 |
|
|
</DIV> |
286 |
|
|
|
287 |
|
|
<DIV CLASS="function"> |
288 |
|
|
<A NAME='_db_defines_inc'><!-- --></A> |
289 |
|
|
<span class="font10bold">Include Type : </span>include_once |
290 |
|
|
<BR> |
291 |
|
|
<span class="font10bold">Include File : </span><a href="../../phpHtmlLib/_examples_db_defines_inc.html">db_defines.inc</a> |
292 |
|
|
<BR> |
293 |
|
|
<!-- ========== Info from phpDoc block ========= --> |
294 |
|
|
|
295 |
|
|
<BR> |
296 |
|
|
|
297 |
|
|
|
298 |
|
|
<UL> |
299 |
|
|
|
300 |
|
|
</UL> |
301 |
|
|
|
302 |
|
|
</DIV> |
303 |
|
|
|
304 |
|
|
<DIV CLASS="function"> |
305 |
|
|
<A NAME='_adodb_inc_php'><!-- --></A> |
306 |
|
|
<span class="font10bold">Include Type : </span>require_once |
307 |
|
|
<BR> |
308 |
|
|
<span class="font10bold">Include File : </span>"adodb.inc.php" |
309 |
|
|
<BR> |
310 |
|
|
<!-- ========== Info from phpDoc block ========= --> |
311 |
|
|
|
312 |
|
|
<BR> |
313 |
|
|
|
314 |
|
|
|
315 |
|
|
<UL> |
316 |
|
|
|
317 |
|
|
</UL> |
318 |
|
|
|
319 |
|
|
</DIV> |
320 |
|
|
|
321 |
|
|
|
322 |
|
|
<br> |
323 |
|
|
<!-- ============ GLOBALS DETAIL =========== --> |
324 |
|
|
|
325 |
|
|
<A NAME='global_detail'></A> |
326 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
327 |
|
|
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
328 |
|
|
<TD> |
329 |
|
|
<span CLASS="font12bold">Global Variable Detail</span> |
330 |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
331 |
|
|
</TD> |
332 |
|
|
</TR> |
333 |
|
|
</TABLE> |
334 |
|
|
|
335 |
|
|
|
336 |
|
|
|
337 |
|
|
<br> |
338 |
|
|
<!-- ============ CONSTANT DETAIL =========== --> |
339 |
|
|
|
340 |
|
|
<A NAME='constant_detail'></A> |
341 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
342 |
|
|
<TR CLASS='TableHeadingColor'> |
343 |
|
|
<TD> |
344 |
|
|
<span CLASS="font12bold">Constant Detail</span> |
345 |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
346 |
|
|
</TD> |
347 |
|
|
</TR> |
348 |
|
|
</TABLE> |
349 |
|
|
|
350 |
|
|
|
351 |
|
|
|
352 |
|
|
<br> |
353 |
|
|
<!-- ============ FUNCTION DETAIL =========== --> |
354 |
|
|
|
355 |
|
|
<A NAME='function_detail'></A> |
356 |
|
|
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border"> |
357 |
|
|
<TR BGCOLOR='#CCCCFF' CLASS='TableHeadingColor'> |
358 |
|
|
<TD> |
359 |
|
|
<span class="font12bold">Function Detail</span> |
360 |
|
|
<A HREF="#top" CLASS="links">^TOP</A> |
361 |
|
|
</TD> |
362 |
|
|
</TR> |
363 |
|
|
</TABLE> |
364 |
|
|
<BR> |
365 |
|
|
|
366 |
|
|
|
367 |
|
|
<br> |
368 |
|
|
</HTML> |