PHP Classes

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Classes of Amin Saeidi  >  DOM Table class  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example file
Class: DOM Table class
Compose HTML tables programmatically using DOM
Author: By
Last change: some new examples has been added
Date: 6 years ago
Size: 960 bytes


Class file image Download

//constructor could be without any parameter if your table doesn`t have any attribute( $table = new domTable; )
$table = new domTable(array("cellpadding"=>"5", "cellspacing"=>"5", "border"=>"1", "style"=>"text-align:center"));

$table->th("Class Name");

$table->tr(array("style"=>"color: #2A7FFF"));
$table->td("Amin Saeedi", array("style"=>"font-style:italic"));
$table->td("Create HTML table by DOM");
"text"=>"Click Here")));
$table->td(array("input"=>array("type"=>"checkbox", "value"=>"chkbox", "text"=>"CheckBox","checked"=>"checked")));