PHPBuilder - PHP Layout Class Page 4



RSS Twitter
Articles Html

PHP Layout Class - Page 4

by: Robbin Zhang
|
July 30, 2000

We can add more fancy things now with the function 'setdefault' at the beginning of the script.

<?php
    setdefault
("window",array("bgcolor"=>"white"));
    
setdefault("table",array("cellpadding"=>"0"));
    
setdefault("text",array("size"=>"2"));
?>
These functions set the default attributes for the 'window', 'table' and 'text' objects. The result would be:
<BODY BGCOLOR="white">
<P>
<TABLE WIDTH="650" CELLPADDING="0">
<P>
<FONT SIZE="2">
Is this simple enough? Ok. Many of you may ask: How about much more complex situations? Let's go over the source of http://www.vhconsultants.com/index.htm
line 1: <?php
line 2: include("/apache/htdocs/template1.inc");

« Previous Page
1
|
2
|
3
|
4
|
5
|
6
|
7
Next Page »

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Robbin Zhang

Comment:



Comment:

(Maximum characters: 1200). You have characters left.