summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TTable/Home.php
blob: fa5efe38b28eccfc660d92b3ea356647250c8dd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php

class Home extends TPage
{
	public function onLoad($param)
	{
		$this->Table->GridLines='Both';

		$row=new TTableRow;
		$this->Table->Rows[]=$row;

		$cell=new TTableHeaderCell;
		$cell->Text='Header 1';
		$row->Cells[]=$cell;

		$cell=new TTableHeaderCell;
		$cell->Text='Header 2';
		$row->Cells[]=$cell;

		$row=new TTableRow;
		$this->Table->Rows[]=$row;

		$cell=new TTableCell;
		$cell->Text='Cell 1';
		$row->Cells[]=$cell;

		$cell=new TTableCell;
		$cell->Text='Cell 2';
		$row->Cells[]=$cell;
	}
}

?>