rendered paste body<?php
include('html.cls.php');
$html = new html;
$html->title('Test Title');
$html->style('');
$html->initbody();
$table[0] = array('content1', 'content2', 'content3', 'content4');
$table[1] = array('content1', 'content2', 'content3', 'content4');
$table[2] = array('content1', 'content2', 'content3', 'content4');
$table[3] = array('content1', 'content2', 'content3', 'content4');
$table[4] = array('content1', 'content2', 'content3', 'content4');
$html->table($table);
$form[] = array('tag' => 'input', 'type' => 'text', 'name' => 'example', 'value' => 'example');
$form[] = array('tag' => 'input', 'type' => 'checkbox', 'name' => 'example2', 'value' => 'example');
$form[] = array('tag' => 'input', 'type' => 'checkbox', 'name' => 'example2', 'value' => 'example');
$html->form('', 'post', $form);
$html->foot();
echo $html->rhtml();
?>
output:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Test Title</title>
<meta http-equiv="Content-type" CONTENT="text/html; charset=UTF-8">
<style type="text/css">
</style>
</head>
<body>
<table>
<tr>
<td>content1</td>
<td>content2</td>
<td>content3</td>
<td>content4</td>
</tr>
<tr>
<td>content1</td>
<td>content2</td>
<td>content3</td>
<td>content4</td>
</tr>
<tr>
<td>content1</td>
<td>content2</td>
<td>content3</td>
<td>content4</td>
</tr>
<tr>
<td>content1</td>
<td>content2</td>
<td>content3</td>
<td>content4</td>
</tr>
<tr>
<td>content1</td>
<td>content2</td>
<td>content3</td>
<td>content4</td>
</tr>
</table>
<form action=""" method="post" />
<input type="text" name="example" value="example" />
<input type="checkbox" name="example2" value="example" />
<input type="checkbox" name="example2" value="example" />
<input type="submit" name="submit" value="Submit" />
</form>
</body>
</html>