--- nfo/php/libs/com.newsblob.phphtmllib/test/test5.php 2003/01/30 03:29:41 1.1
+++ nfo/php/libs/com.newsblob.phphtmllib/test/test5.php 2003/09/19 22:49:58 1.2
@@ -5,7 +5,7 @@
$page = new HTMLPageClass("test #5");
$style = new STYLEtag();
-$style->push("
+$style->add("
TD.head {
font-family:arial,helvetica,lucida;
font-size:11pt;
@@ -29,7 +29,7 @@
font-size:10pt;
}\n");
-$page->push_head_content( $style );
+$page->add_head_content( $style );
$attributes = array("width"=>"300",
@@ -41,18 +41,18 @@
$td = new TDtag( array("class"=>"head", "valign"=>"top", "align"=>"center") );
//build the content tr
-$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",
html_br(), html_br(),"even more");
-$table->push_row( $td );
-$table->push_row( "this is a test", "and another test" );
-$table->push_row( "this is a test2", "and another test2" );
+$table->add_row( $td );
+$table->add_row( "this is a test", "and another test" );
+$table->add_row( "this is a test2", "and another test2" );
$td = new TDtag( array("class" => "head3") );
-$td->push( "help me dude" );
-$table->push_row( $td, "and another test3" );
+$td->add( "help me dude" );
+$table->add_row( $td, "and another test3" );
$table->set_cell_attributes( 1, 0, array("width" => "10") );
-$page->push( $table );
+$page->add( $table );
print $page->render()
?>