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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
<?php class tpl_LS { function __header ( $width, $title ) { echo '<table width="'.$width.'" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#004163" class="tableline"><tr><th><u>'.$title.'</u>'."\n".'</th></tr><tr><td>'."\n".'<table width="100%" border="0" cellpadding="4" cellspacing="1" align="center">'; }
function __footer ( $width, $title ) { echo '</table>'."\n".'</td></tr></table>'."\n"; }
function __row_start ( $attributes ) { $code = ''; $found_class = false; reset( $attributes ); while( list( $key, $value ) = each( $attributes ) ) { $code .= ' '.$key.'="'.$value.'"'; if( $key == 'class' ) $found_class = true; } if( $found_class=== false ) $code .= ' class="'.next_color().'"'; echo '<tr'.$code.'>'; }
function __row_stop ( $attributes ) { echo '</tr>'; }
function __cell_start ( $text, $attributes ) { $code = ''; reset( $attributes ); while( list( $key, $value ) = each( $attributes ) ) $code .= ' '.$key.'="'.$value.'"'; echo '<td'.$code.'>'.$text; }
function __cell_stop ( $text, $attributes ) { echo '</td>'; } }
class tpl_BLANK { function __header ( $width, $title ) { echo '<table width="'.$width.'" border="0" cellpadding="0" cellspacing="0" align="center">'; }
function __footer ( $width, $title ) { echo '</table>'; }
function __row_start ( $attributes ) { echo '<tr>'; }
function __row_stop ( $attributes ) { echo '</tr>'; }
function __cell_start ( $text, $attributes ) { $code = ''; reset( $attributes ); while( list( $key, $value ) = each( $attributes ) ) $code .= ' '.$key.'="'.$value.'"'; echo '<td'.$code.'>'.$text; }
function __cell_stop ( $text, $attributes ) { echo '</td>'; } } ?>
|