Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 5 years ago
Size: 960 bytes
 

Contents

Class file image Download
<?php
require_once("domTable.class.php");

//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->tr();
$table->th("Author");
$table->th("Class Name");
$table->th("Description");
$table->th("image");
$table->th("Link");
$table->th("input");

$table->tr(array("style"=>"color: #2A7FFF"));
$table->td("Amin Saeedi", array("style"=>"font-style:italic"));
$table->td("domTable");
$table->td("Create HTML table by DOM");
$table->td(array("img"=>array("src"=>"imageSRC.png")));
$table->td(array("a"=>array("href"=>"http://www.phpclasses.org/browse/package/5494.html","style"=>"font-weight:bold",
"text"=>"Click Here")));
$table->td(array("input"=>array("type"=>"checkbox""value"=>"chkbox""text"=>"CheckBox","checked"=>"checked")));

$table->render(true);
?>