/[cvs]/nfo/site/htdocs/inc/otdef/otd_html1/otd_html1.php.inc
ViewVC logotype

Annotation of /nfo/site/htdocs/inc/otdef/otd_html1/otd_html1.php.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations)
Mon Sep 6 00:11:09 2004 UTC (20 years ago) by rabit
Branch: MAIN
Changes since 1.10: +44 -4 lines
+ Function: otd_html1_table(); U CSS in head.

1 rabit 1.1 <?php
2     /*------------------------------------------------------------------------------
3     --- www.netfrag.org
4     --- Setup and common functions include file.
5     --------------------------------------------------------------------------------
6     --- rabit, 21:23 31.08.2004
7 rabit 1.11 --- $Id: otd_html1.php.inc,v 1.10 2004/09/05 17:44:55 joko Exp $
8 rabit 1.1 ------------------------------------------------------------------------------*/
9    
10     //- REQUIRED:
11     //- common, cms, xmlcp
12    
13     //------------------------------------------------------------------------------
14     //- Name of content render function:
15    
16     $otd_render = 'otd_html1_renderpage';
17    
18     //------------------------------------------------------------------------------
19 rabit 1.7 //- Configuration:
20 rabit 1.1
21 rabit 1.7 //- Colour sceme:
22    
23     $otd_html1['colours'] = array(
24    
25     'bg' => 'white',
26     'text' => 'black',
27    
28     'text2' => '#107080',
29    
30     // Link colours:
31     'a' => '#506040',
32     'a:hover' => '#5060a0',
33     // 'a:visited' => '#506040',
34    
35     // Content colours:
36     'bg11' => '#40d8c0',
37     'bg12' => '#40e8e0',
38 rabit 1.11 'border1' => '#20a0c0',
39 rabit 1.7
40     // Page frame colours:
41     'bg21' => '#a0c090',
42     'bg22' => '#40c8b0',
43     'border2' => '#40a080',
44    
45     );
46 rabit 1.1
47     //------------------------------------------------------------------------------
48 rabit 1.9 //- Authorisation via HTTP:
49    
50     if(isset($_POST['un']) && isset($_POST['pw'])) {
51    
52     common_authorise($_POST['un'], $_POST['pw']);
53    
54     common_benchmark_addstep('otd_html1: authorisation test');
55    
56     }
57    
58     //------------------------------------------------------------------------------
59 rabit 1.8 //- GET/POST variable encapsulation:
60 rabit 1.1
61 rabit 1.8 if(isset($_GET['debug']))
62     $common_sessiondata['user_prefs']['debug'] = $_GET['debug'];
63    
64     if(isset($_GET['benchlist']))
65     $common_sessiondata['user_prefs']['benchlist'] = $_GET['benchlist'];
66    
67     //------------------------------------------------------------------------------
68 rabit 1.1 //- XMLCP callbacks setup:
69    
70     xmlcp_registertagcallbacks('b', 'otd_html1_cb_xmlcp_start_bold', 'otd_html1_cb_xmlcp_end_bold');
71     xmlcp_registertagcallbacks('h', 'otd_html1_cb_xmlcp_start_headline', 'otd_html1_cb_xmlcp_end_headline');
72     //xmlcp_registertagcallbacks('page', 'otd_html1_cb_xmlcp_start_page', 'otd_html1_cb_xmlcp_end_page');
73     xmlcp_registertagcallbacks('p', 'otd_html1_cb_xmlcp_start_paragraph', 'otd_html1_cb_xmlcp_end_paragraph');
74 joko 1.4 xmlcp_registertagcallbacks('link', 'otd_html1_cb_xmlcp_start_link', 'otd_html1_cb_xmlcp_end_link');
75 rabit 1.1
76 rabit 1.8 //----------------------------------------------------------
77     //- XMLCP callbacks:
78    
79 rabit 1.1 function otd_html1_cb_xmlcp_start_bold($h_parser, $tagname, $attribs) {
80    
81     global $xmlcp_cdata;
82    
83     $xmlcp_cdata .= '<b>';
84    
85     }
86    
87     function otd_html1_cb_xmlcp_end_bold($h_parser, $tagname) {
88    
89     global $xmlcp_cdata;
90    
91     $xmlcp_cdata .= '</b>';
92    
93     }
94    
95     function otd_html1_cb_xmlcp_start_headline($h_parser, $tagname, $attribs) {
96    
97     global $xmlcp_cdata;
98    
99     $xmlcp_cdata = '';
100    
101     }
102    
103     function otd_html1_cb_xmlcp_end_headline($h_parser, $tagname) {
104    
105     global $xmlcp_cdata;
106    
107     otd_html1_headline(trim($xmlcp_cdata));
108    
109     $xmlcp_cdata = '';
110    
111     }
112    
113     /*
114 rabit 1.8 function otd_html1_cb_xmlcp_start_page($h_parser, $tagname, $attribs) { }
115 rabit 1.1
116 rabit 1.8 function otd_html1_cb_xmlcp_end_page($h_parser, $tagname) { }
117 rabit 1.1 */
118    
119     function otd_html1_cb_xmlcp_start_paragraph($h_parser, $tagname, $attribs) {
120    
121     global $xmlcp_cdata;
122    
123     $xmlcp_cdata = '';
124    
125     }
126    
127     function otd_html1_cb_xmlcp_end_paragraph($h_parser, $tagname) {
128    
129     global $xmlcp_cdata;
130    
131     otd_html1_paragraph(trim($xmlcp_cdata));
132    
133     $xmlcp_cdata = '';
134    
135 joko 1.4 }
136    
137     function otd_html1_cb_xmlcp_start_link($h_parser, $tagname, $attribs) {
138    
139 rabit 1.6 global $xmlcp_cdata;
140    
141     if(isset($attribs['keyname'])) {
142    
143 joko 1.4 $attribs['url'] = common_get_baseurl() . '?ck=' . $attribs['keyname'];
144 rabit 1.6
145 joko 1.4 }
146 rabit 1.6
147 joko 1.10 $target = '';
148     if(isset($attribs['show']) && ($attribs['show'] == 'new')) {
149     $target = 'target="_blank"';
150     }
151    
152     $link = '<a ' . $target . ' href="' . $attribs['url'] . '">'; // . trim($xmlcp_cdata);
153 joko 1.4
154     $xmlcp_cdata .= $link;
155 rabit 1.6
156 joko 1.4 }
157    
158     function otd_html1_cb_xmlcp_end_link($h_parser, $tagname) {
159 rabit 1.6
160     global $xmlcp_cdata;
161    
162     $xmlcp_cdata .= '</a>';
163    
164 rabit 1.1 }
165    
166 rabit 1.8 //------------------------------------------------------------------------------
167 rabit 1.1 //- Content render functions:
168    
169     function otd_html1_renderpage($keyname, $language_id = 0) {
170    
171 rabit 1.6 global $common, $common_sessiondata;
172 rabit 1.1
173     common_benchmark_addstep('otd_html1: render: start');
174    
175     $list = cms_getlist('xmlpage', $keyname);
176    
177     common_benchmark_addstep('otd_html1: render: CMS get list');
178    
179     $contentdata = cms_getcontent('xmlpage', $keyname, $language_id);
180    
181     common_benchmark_addstep('otd_html1: render: CMS get content');
182    
183     $xml = $contentdata['content'];
184    
185 rabit 1.2 otd_html1_pagehead();
186    
187     common_benchmark_addstep('otd_html1: render: head');
188    
189 rabit 1.11 otd_html1_pageheader('', '&bull; <a href="' . common_get_baseurl() . 'pages/otd_html1/userinfo.php">Test page 1</a>');
190 rabit 1.1
191     common_benchmark_addstep('otd_html1: render: header');
192    
193     if($xml) {
194    
195     $titledata = '';
196    
197     for($i = 0; $i < count($list); $i++) {
198    
199 rabit 1.8 $imgtag = otd_html1_get_imgtag('icons/flags/' . $list[$i][3] . '.gif', $list[$i][4], 14, 21);
200 rabit 1.1
201 rabit 1.8 $titledata .= (($language_id == $list[$i][3]) ? $imgtag : '<a href="?li=' . $list[$i][3] . '" title="' . $list[$i][4] . '">' . $imgtag . '</a>') . '&nbsp;';
202 rabit 1.1
203     }
204    
205     otd_html1_pagetitle($contentdata['description'], $titledata . '<br />');
206    
207 rabit 1.2 $res = xmlcp_parse($xml);
208 rabit 1.1
209 rabit 1.3 common_benchmark_addstep('otd_html1: render: xmlcp_parse() = ' . $res);
210 rabit 1.1
211 rabit 1.6 // Only show debug outputs when set as preference:
212     if($common_sessiondata['user_prefs']['debug']) {
213 rabit 1.1
214 rabit 1.6 otd_html1_headline('Content list array:');
215 rabit 1.3 otd_html1_codeparagraph('$list = ' . nl2br(htmlentities(print_r($list, true))));
216 rabit 1.1
217 rabit 1.6 otd_html1_headline('Content query result array:');
218 rabit 1.3 otd_html1_codeparagraph('$contentdata = ' . nl2br(htmlentities(print_r($contentdata, true))));
219 rabit 1.1
220 rabit 1.6 otd_html1_headline('User preferences array:');
221     otd_html1_codeparagraph('$common_sessiondata[user_prefs] = ' . nl2br(htmlentities(print_r($common_sessiondata['user_prefs'], true))));
222 rabit 1.1
223 rabit 1.3 }
224    
225 rabit 1.8 $extrapageinfocontents = 'Content item "<b>' . $contentdata['description'] . '</b>" (language: "<b>' . $contentdata['language_name'] . '</b>") created by <b>' . $contentdata['creator_name'] . '</b> on <b>' . date('Y/m/d, H:i:s', $contentdata['unixtime']) . '</b>. Last changes by <b>' . $contentdata['creator_name'] . '</b> on <b>' . date('d.m.Y, H:i:s', $contentdata['unixtime']) . '</b>.<br />
226     Page created by <b>rabit</b> on <b>2004/08/31, 21:23</b>.
227     ';
228 rabit 1.1
229     } else {
230    
231     otd_html1_pagetitle('Bad content request');
232    
233 rabit 1.6 otd_html1_paragraph('Sorry, but the requested content is unknown. Please check your query and if the problem occours again try to contact a site administrator.');
234 rabit 1.1
235     }
236    
237     common_benchmark_addstep('otd_html1: render: content');
238    
239 rabit 1.8 otd_html1_pagefooter($extrapageinfocontents);
240 rabit 1.1
241 rabit 1.2 common_benchmark_addstep('otd_html1: render: footer');
242    
243     otd_html1_pagefoot();
244    
245 rabit 1.1 }
246    
247 rabit 1.8 //------------------------------------------------------------------------------
248 rabit 1.6 //- HTML return functions:
249    
250     function otd_html1_get_imgtag($relativeurl, $alt, $height = '', $width = '') {
251    
252     global $common;
253    
254     return '<img alt="' . $alt . '" src="' . $common['site']['gfxurl'] . $relativeurl . '" style="border:0;' . ($height ? ' height:' . $height . 'px;' : '') . ($width ? ' width:' . $width . 'px;' : '') . '" />';
255    
256     }
257    
258 rabit 1.8 //------------------------------------------------------------------------------
259 rabit 1.6 //- HTML output functions:
260 rabit 1.1
261     function otd_html1_authbox() {
262    
263     global $common_sessiondata;
264    
265 rabit 1.2 $boxheight = 48;
266 rabit 1.7 $boxwidth = 240;
267 rabit 1.2
268 rabit 1.6 if($common_sessiondata['user_auth']['authorised']) {
269 rabit 1.2
270     echo '<table cellspacing="0" cellpadding="2" class="f22" width="' . $boxwidth . '">
271 rabit 1.1 <tr>
272 rabit 1.7 <th class="box2" height="' . $boxheight . '" width="40"><b>User<br />login</b></th>
273 rabit 1.3 <td align="center" valign="top" style="padding:4px;">
274 rabit 1.2 <small>
275 rabit 1.6 You are logged in the ' . $common_sessiondata['user_auth']['logincount'] . '. time as <b>' . $common_sessiondata['user_auth']['name'] . '</b>. Login time was <b>' . date('H:i:s, d.m.Y', $common_sessiondata['user_auth']['logintime']) . '</b>.<br/ >
276     Your rights are "<b>' . $common_sessiondata['user_auth']['rights'] . '</b>".
277 rabit 1.2 </small>
278     </td>
279     </table>
280     ';
281    
282     } else {
283    
284 rabit 1.7 echo '<form action="' . $_SERVER['REQUEST_URI'] . '" method="post" style="margin:0;">
285 rabit 1.2 <table cellspacing="0" cellpadding="0" class="f22" width="' . $boxwidth . '">
286     <tr>
287 rabit 1.7 <th class="box2" height="' . $boxheight . '" rowspan="2" width="40"><b>User<br />login</b></th>
288 rabit 1.2 <td align="right">User name:</td>
289 rabit 1.1 <td rowspan="2">&nbsp;</td>
290 rabit 1.7 <td><input name="un" size="8" type="text" tabindex="1" /></td>
291 rabit 1.5 <th class="box2" rowspan="2"><input type="submit" value="OK" tabindex="3" /></th>
292 rabit 1.1 </tr>
293     <tr>
294 rabit 1.7 <td align="right">Password:</td><td><input name="pw" size="8" type="password" tabindex="2" /></td>
295 rabit 1.1 </tr>
296     </table>
297     </form>
298     ';
299    
300 rabit 1.2 }
301    
302 rabit 1.1 }
303    
304 rabit 1.2 function otd_html1_benchmarkbox() {
305    
306     global $common;
307 rabit 1.1
308 rabit 1.2 $contents = '';
309    
310     for($i = 0; $i < count($common['benchmark']); $i++) {
311 rabit 1.1
312 rabit 1.2 $mtimesegs = explode(' ', $common['benchmark'][$i][1]);
313     $contents .= substr('0' . ($i + 1), -2) . ': "<b>' . $common['benchmark'][$i][0] . '</b>": ';
314 rabit 1.1
315 rabit 1.2 if($i) {
316 rabit 1.1
317 rabit 1.2 $timediff = (float)($mtimesegs[1] - $lastmtimesegs[1]);
318     $timediff += $mtimesegs[0] - $lastmtimesegs[0];
319 rabit 1.1
320 rabit 1.2 $contents .= '<b>+' . round($timediff * 1000000) / 1000 . '</b> ms<br />
321 rabit 1.1 ';
322    
323 rabit 1.2 } else {
324 rabit 1.1
325 rabit 1.2 $contents .= 'Start time: <b>' . date('H:i:s', $mtimesegs[1]) . substr($mtimesegs[0], 1, 4) . '</b><br />
326     ';
327 rabit 1.1
328 rabit 1.2 }
329 rabit 1.1
330 rabit 1.2 $lastmtimesegs = $mtimesegs;
331 rabit 1.1
332 rabit 1.2 }
333 rabit 1.1
334 rabit 1.2 otd_html1_paragraph('<small>
335     <b>Partial execution times:</b><br />
336     <br />
337 rabit 1.3 ' . $contents . '</small>', 'box1');
338 rabit 1.1
339 rabit 1.2 }
340 rabit 1.1
341 rabit 1.2 function otd_html1_codeparagraph($contents) {
342 rabit 1.1
343 rabit 1.3 echo '<p align="justify" class="hl12">
344 rabit 1.2 <code>
345     ' . $contents . '
346     </code>
347     </p>
348 rabit 1.1 ';
349    
350 rabit 1.2 }
351 rabit 1.1
352 rabit 1.2 function otd_html1_headline($caption) {
353    
354 rabit 1.8 global $otd_html1;
355    
356 rabit 1.9 echo '<p><span style="border-bottom:1px solid ' . $otd_html1['colours']['border1'] . '; padding-bottom:1px;"><b>' . $caption . '</b></span></p>
357 rabit 1.1 ';
358    
359 rabit 1.2 }
360    
361     function otd_html1_pagefoot() {
362 rabit 1.1
363 rabit 1.8 global $common_sessiondata;
364    
365     // As last show the benchmark list when set as preference:
366     if($common_sessiondata['user_prefs']['benchlist']) {
367    
368     otd_html1_benchmarkbox();
369    
370     }
371    
372 rabit 1.2 echo '</body>
373 rabit 1.1
374 rabit 1.2 </html>
375     ';
376 rabit 1.1
377 rabit 1.2 }
378 rabit 1.1
379 rabit 1.8 function otd_html1_pagefooter($extrapageinfocontents = '') {
380 rabit 1.1
381 rabit 1.8 global $common, $ID;
382 rabit 1.1
383 rabit 1.7 $contentheight = 240; // Minimum height of content and navigation.
384    
385 rabit 1.1 $endmtimesegs = explode(' ', microtime());
386     $startmtimesegs = explode(' ', $common['benchmark'][0][1]);
387     $timediff = (float)($endmtimesegs[1] - $startmtimesegs[1]);
388     $timediff += $endmtimesegs[0] - $startmtimesegs[0];
389    
390 rabit 1.8 otd_html1_paragraph('<small>
391     ' . ($extrapageinfocontents ? $extrapageinfocontents . '<br />
392     ' : '') . 'CVS ID: "<b>' . $ID . '</b>"
393     </small>', 'box1');
394    
395 rabit 1.2 echo '</td>
396 rabit 1.6 <td class="bg11" style="padding:0;">
397 rabit 1.7 ' . otd_html1_get_imgtag('blank.gif', '', $contentheight, 8) . '
398 rabit 1.1 </td>
399     </tr>
400 rabit 1.2 <tr class="bg11">
401     <td align="center">
402     <small>
403     Page execution time:<br />
404     </small>
405     <code>' . round($timediff * 100000) / 100 . '</code> ms.<br />
406     </td>
407 rabit 1.8 <td align="center" colspan="2">
408     <a href="http://validator.w3.org/check?uri=referer" target="_blank"><img alt="This page is valid XHTML 1.0" src="http://www.w3.org/Icons/valid-xhtml10" style="border:0;width:88px;height:31px;" /></a>&nbsp;&nbsp;&nbsp;<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img style="border:0;width:88px;height:31px;" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" /></a>
409 rabit 1.1 </td>
410     </tr>
411     </table>
412     ';
413    
414     }
415    
416 rabit 1.2 function otd_html1_pagehead() {
417 rabit 1.1
418 rabit 1.7 global $otd_html1;
419    
420 rabit 1.1 echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
421    
422     <html xmlns="http://www.w3.org/1999/xhtml">
423    
424     <head>
425     <title>www.netfrag.org</title>
426     <style type="text/css"><!--
427 rabit 1.7 a { color:' . $otd_html1['colours']['a'] . '; font-weight:bold; text-decoration:none; }
428     a:hover { color:' . $otd_html1['colours']['a:hover'] . '; }
429     body { background-color:' . $otd_html1['colours']['bg'] . '; color:' . $otd_html1['colours']['text'] . '; margin:0; }
430     body, input, table { font: 8pt verdana, serif; }
431 rabit 1.1 input { border:1px; }
432 rabit 1.11 .bb1 { background-color:' . $otd_html1['colours']['border1'] . '; }
433     .bb2 { background-color:' . $otd_html1['colours']['border2'] . '; }
434 rabit 1.7 .bg11, .f11, .hl11 { background-color:' . $otd_html1['colours']['bg11'] . '; }
435     .bg12, .box1, .f12, .hl12 { background-color:' . $otd_html1['colours']['bg12'] . '; }
436     .bg21, .box2, .f21, .hl21 { background-color:' . $otd_html1['colours']['bg21'] . '; }
437     .bg22, .f22, .hl22 { background-color:' . $otd_html1['colours']['bg22'] . '; }
438     .box1, .f11, .f12 { border:1px solid ' . $otd_html1['colours']['border1'] . '; }
439     .box2, .f21, .f22 { border:1px solid ' . $otd_html1['colours']['border2'] . '; }
440     .box1, .box2, .hl11, .hl12, .hl21, .hl22 { padding:4px; }
441     .c2 { color:' . $otd_html1['colours']['text2'] . '; }
442 rabit 1.1 --></style>
443     </head>
444    
445     <body>
446     ';
447    
448     }
449    
450 rabit 1.8 function otd_html1_pageheader($extranavbarcontents = '', $extratoolbarcontents = '') {
451 rabit 1.1
452 rabit 1.7 global $common_sessiondata, $otd_html1, $request_contentkey;
453 rabit 1.6
454 rabit 1.7 $leftbarwidth = 144; // Inner width (w/o padding) of left bar.
455 rabit 1.6
456     $benchlist = $common_sessiondata['user_prefs']['benchlist'];
457     $debug = $common_sessiondata['user_prefs']['debug'];
458    
459 rabit 1.7 $urlprefix = $_SERVER['PATH_INFO'] . '?ck=' . $request_contentkey . '&';
460    
461     echo '<table cellspacing="0" cellpadding="8" style="border-bottom:2px solid ' . $otd_html1['colours']['border2'] . '; border-top:2px solid ' . $otd_html1['colours']['border2'] . '; width:100%;">
462 rabit 1.2 <tr>
463     <td class="bg11" colspan="3">
464 rabit 1.6 <table cellspacing="0" cellpadding="0" style="width:100%">
465 rabit 1.1 <tr class="bg11">
466 rabit 1.2 <th width="100%">
467 rabit 1.9 <span style="border-bottom:2px solid black; font-size:22pt; letter-spacing:-2pt; padding-bottom:3px;">
468     www.<span class="c2">N</span>et<span class="c2">F</span>rag.<span class="c2">o</span>rg</span>
469 rabit 1.7 <p style="margin-top:6px;">
470 rabit 1.2 <small>NetFrag and friends</small>
471     </p>
472 rabit 1.1 </th>
473 rabit 1.7 <td>
474     ' . otd_html1_get_imgtag('blank.gif', '', 1, 8) . '
475     </td>
476 rabit 1.2 <td>
477 rabit 1.1 ';
478    
479     otd_html1_authbox();
480    
481     echo '</td>
482     </tr>
483 rabit 1.2 </table>
484     </td>
485     </tr>
486     <tr>
487 rabit 1.7 <td class="bg11" style="border-top:2px solid ' . $otd_html1['colours']['border1'] . ';" valign="top">
488 rabit 1.8 <div class="box2" style="margin-bottom:16px;"><big><b>N</b>a<b>F</b>igati<b>o</b>n:</big></div>
489 rabit 1.7 <div style="margin-bottom:32px;">
490 rabit 1.8 &bull; <a href="' . common_get_baseurl() . '">Home page</a><br />
491 rabit 1.6 ' . otd_html1_get_imgtag('blank.gif', '', 1, $leftbarwidth) . '
492 rabit 1.7 </div>
493 rabit 1.8 <div class="box2" style="margin-bottom:16px;"><big>Info &amp; tools:</big></div>
494     ' . ($extratoolbarcontents ? $extratoolbarcontents . '<br />
495     <br />
496     ' : '') . '&bull; Benchmark list: [<a href="' . $urlprefix . 'benchlist=' . ($benchlist ? '0">off' : '1">on') . '</a>]<br />
497 rabit 1.7 &bull; Debug outputs: [<a href="' . $urlprefix . 'debug=' . ($debug ? '0">off' : '1">on') . '</a>]<br />
498 rabit 1.1 </td>
499 rabit 1.11 <td style="border:2px solid ' . $otd_html1['colours']['border1'] . '; padding:8px;" valign="top">
500 rabit 1.2 ';
501    
502     }
503 rabit 1.1
504 rabit 1.8 function otd_html1_pagetitle($title, $extracontents = '') {
505 rabit 1.1
506 rabit 1.8 echo '<table cellspacing="0" cellpadding="4" class="box1" style="width:100%;">
507     <tr>
508     <td><big><b>&bull; ' . $title . '</b>&nbsp;</big></td>
509     <td align="right">' . ($extracontents ? $extracontents : '') . '</td>
510     </tr>
511     </table>
512 rabit 1.1 ';
513    
514     }
515    
516     function otd_html1_paragraph($contents, $class = '') {
517    
518     echo '<p align="justify"' . ($class ? ' class="' . $class . '"' : '') . '>
519     ' . $contents . '
520     </p>
521     ';
522    
523     }
524    
525 rabit 1.11 function otd_html1_table($columnnames, $rows) {
526    
527     echo '<table cellpadding="4" cellspacing="1" class="bb1">
528     <tr class="bg11">
529     ';
530    
531     for($x = 0; $x < count($columnnames); $x++) {
532    
533     echo '<th>' . $columnnames[$x] . '</th>';
534    
535     }
536    
537     echo '
538     </tr>
539     ';
540    
541     for($y = 0; $y < count($rows); $y++) {
542    
543     echo '<tr class="bg12">
544     ';
545    
546     for($x = 0; $x < count($columnnames); $x++) {
547    
548     echo '<td>' . $rows[$y][$x] . '</td>
549     ';
550    
551     }
552    
553     echo '</tr>
554     ';
555    
556     }
557    
558     echo '</table>
559     ';
560    
561     }
562    
563 rabit 1.1 //------------------------------------------------------------------------------
564    
565     ?>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed