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

Annotation of /nfo/php/libs/com.newsblob.phphtmllib/test/test.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Fri Sep 19 22:49:58 2003 UTC (20 years, 11 months ago) by jonen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -4 lines
+ updated whole phphtmllib to v2.3.0

1 jonen 1.1 <?php
2    
3     include_once("localinc.php");
4    
5     $page = new HTMLPageClass("First example script", XHTML_STRICT);
6     $page->set_text_debug( $_GET["debug"] );
7    
8    
9     $attributes = array("width"=>"600",
10     "border"=>1,
11     "cellspacing"=>0,
12     "cellpadding"=>0);
13     $table = new TABLEtag( $attributes );
14     $td = new TDtag( array("bgcolor"=>"#FFFFFF",
15     "colspan" => 4) );
16    
17 jonen 1.2 $td->add( "Hello World" );
18 jonen 1.1
19 jonen 1.2 $table->add_row( $td );
20     $table->add_row( "test", "1", "2", "3");
21     $page->add( $table, html_br(),
22 jonen 1.1 build_spacergif_imgtag(1,1));
23    
24     print $page->render();
25     ?>

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