Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
4.phpt: 2 row 2 column with various options
3
--FILE--
4
<?php
5
// $Id: 4.phpt 297540 2010-04-05 19:58:39Z wiesemann $
6
require_once 'HTML/Table.php';
7
$table = new HTML_Table('width="400"');
8
 
9
$data[0][] = 'Test';
10
$data[0][] = 'Test';
11
$data[1][] = 'Test';
12
$data[1][] = 'Test';
13
 
14
foreach($data as $key => $value) {
15
    $table->addRow($value, 'bgcolor = "yellow" align = "right"');
16
}
17
 
18
// output
19
echo $table->toHTML();
20
?>
21
--EXPECT--
22
<table width="400">
23
	<tr>
24
		<td bgcolor="yellow" align="right">Test</td>
25
		<td bgcolor="yellow" align="right">Test</td>
26
	</tr>
27
	<tr>
28
		<td bgcolor="yellow" align="right">Test</td>
29
		<td bgcolor="yellow" align="right">Test</td>
30
	</tr>
31
</table>