Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
23.phpt: thead, tbody and addRow (tfoot not in output)
3
--FILE--
4
<?php
5
// $Id: 23.phpt 297540 2010-04-05 19:58:39Z wiesemann $
6
require_once 'HTML/Table.php';
7
$table = new HTML_Table();
8
 
9
$thead =& $table->getHeader();
10
$tbody =& $table->getBody();
11
 
12
$data[0][] = 'Test';
13
$data[1][] = 'Test';
14
 
15
foreach($data as $key => $value) {
16
    $thead->addRow($value);
17
    $tbody->addRow($value);
18
}
19
 
20
// output
21
echo $table->toHTML();
22
?>
23
--EXPECT--
24
<table>
25
	<thead>
26
		<tr>
27
			<td>Test</td>
28
		</tr>
29
		<tr>
30
			<td>Test</td>
31
		</tr>
32
	</thead>
33
	<tbody>
34
		<tr>
35
			<td>Test</td>
36
		</tr>
37
		<tr>
38
			<td>Test</td>
39
		</tr>
40
	</tbody>
41
</table>