summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTableRow/Home.php
blob: d710b0718d6eabbb435ba4bab91e22697255fa0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

// $Id: Home.php 1405 2006-09-10 01:03:56Z wei $
class Home extends TPage
{

	public function clickCell ($sender, $param)
	{
		$sender->Text .= "<br/>Clicked";
		$this->lblResult->Text='You clicked on cell #'.$param->SelectedCellIndex.' with id='.$sender->id;
		$sender->render($param->NewWriter);
	}

	public function clickRow ($sender, $param)
	{
		$sender->BackColor="yellow";
		$this->lblResult->Text='You clicked on row #'.$param->SelectedRowIndex.' with id='.$sender->id;
		$sender->render($param->NewWriter);
	}
}