/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/test/test5.php
ViewVC logotype

Diff of /nfo/php/libs/com.newsblob.phphtmllib/test/test5.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by jonen, Thu Jan 30 03:29:41 2003 UTC revision 1.2 by jonen, Fri Sep 19 22:49:58 2003 UTC
# Line 5  include_once("localinc.php"); Line 5  include_once("localinc.php");
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;
# Line 29  TR.cell1 { Line 29  TR.cell1 {
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",
# Line 41  $tr = new TRtag(); Line 41  $tr = new TRtag();
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  ?>  ?>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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