| 5 |
$page = new HTMLPageClass("test #5"); |
$page = new HTMLPageClass("test #5"); |
| 6 |
|
|
| 7 |
$style = new STYLEtag(); |
$style = new STYLEtag(); |
| 8 |
$style->push(" |
$style->add(" |
| 9 |
TD.head { |
TD.head { |
| 10 |
font-family:arial,helvetica,lucida; |
font-family:arial,helvetica,lucida; |
| 11 |
font-size:11pt; |
font-size:11pt; |
| 29 |
font-size:10pt; |
font-size:10pt; |
| 30 |
}\n"); |
}\n"); |
| 31 |
|
|
| 32 |
$page->push_head_content( $style ); |
$page->add_head_content( $style ); |
| 33 |
|
|
| 34 |
|
|
| 35 |
$attributes = array("width"=>"300", |
$attributes = array("width"=>"300", |
| 41 |
$td = new TDtag( array("class"=>"head", "valign"=>"top", "align"=>"center") ); |
$td = new TDtag( array("class"=>"head", "valign"=>"top", "align"=>"center") ); |
| 42 |
|
|
| 43 |
//build the content tr |
//build the content tr |
| 44 |
$td->push("Some lame crap",html_br(), html_br(),"some more crap\n", |
$td->add("Some lame crap",html_br(), html_br(),"some more crap\n", |
| 45 |
html_br(), html_br(),"even more"); |
html_br(), html_br(),"even more"); |
| 46 |
|
|
| 47 |
$table->push_row( $td ); |
$table->add_row( $td ); |
| 48 |
$table->push_row( "this is a test", "and another test" ); |
$table->add_row( "this is a test", "and another test" ); |
| 49 |
$table->push_row( "this is a test2", "and another test2" ); |
$table->add_row( "this is a test2", "and another test2" ); |
| 50 |
$td = new TDtag( array("class" => "head3") ); |
$td = new TDtag( array("class" => "head3") ); |
| 51 |
$td->push( "help me dude" ); |
$td->add( "help me dude" ); |
| 52 |
$table->push_row( $td, "and another test3" ); |
$table->add_row( $td, "and another test3" ); |
| 53 |
$table->set_cell_attributes( 1, 0, array("width" => "10") ); |
$table->set_cell_attributes( 1, 0, array("width" => "10") ); |
| 54 |
|
|
| 55 |
$page->push( $table ); |
$page->add( $table ); |
| 56 |
|
|
| 57 |
print $page->render() |
print $page->render() |
| 58 |
?> |
?> |