--- nfo/php/libs/com.newsblob.phphtmllib/test/test2.php 2003/01/30 03:29:41 1.1 +++ nfo/php/libs/com.newsblob.phphtmllib/test/test2.php 2003/09/19 22:49:58 1.2 @@ -5,7 +5,7 @@ $page = new HTMLPageClass("Test script #2"); $style = new STYLEtag(); -$style->push( " +$style->add( " TABLE.frame { background:#000000; font-size:10pt; @@ -31,7 +31,7 @@ //Add the raw style tag and content //to the of the page. -$page->push_head_content( $style ); +$page->add_head_content( $style ); @@ -51,13 +51,13 @@ "cellspacing"=>0, "cellpadding"=>2, "class"=>"frame") ); -$td->push( "Some Title Here" ); -$title_table->push_row( $td ); +$td->add( "Some Title Here" ); +$title_table->add_row( $td ); $td2->set_tag_attributes( array("valign"=>"top", "class"=>"head") ); -$td2->push( $title_table ); -$table->push_row( $td2 ); +$td2->add( $title_table ); +$table->add_row( $td2 ); $content_table = new TABLEtag; $content_table->set_tag_attributes( array("width"=>"100%", "border"=>0, @@ -66,31 +66,31 @@ $tr->set_tag_attributes( array("class" => "cell1") ); //set all of the td's that get created in -//tr's push function to have attributes of +//tr's add function to have attributes of //allign=center $tr->set_default_td_attributes(array("align"=>"center")); $center = new Ptag(); $str = "some example string"; -$center->push( $str, html_br(), html_br() ); -$center->push( $str, html_br(), html_br() ); -$center->push( $str ); -$tr->push( $center ); +$center->add( $str, html_br(), html_br() ); +$center->add( $str, html_br(), html_br() ); +$center->add( $str ); +$tr->add( $center ); -$tr->push( html_p( "Some lame stuff", html_br(), html_br(), +$tr->add( html_p( "Some lame stuff", html_br(), html_br(), "some more stuff", html_br(), html_br(), "and even more") ); -$content_table->push_row( $tr ); +$content_table->add_row( $tr ); $td2 = new TDtag( array( "class" => "head2") ); -$td2->push( $content_table ); +$td2->add( $content_table ); -$table->push_row( $td2 ); +$table->add_row( $td2 ); -$page->push( $table ); +$page->add( $table ); print $page->render(); ?>