summaryrefslogtreecommitdiff
path: root/demos/personal/protected/a/HomePage.php
blob: 6c69e44b7f9f2910533126ebbcedd99900d9f786 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

class HomePage extends TPage
{
	public function onPreInit($param)
	{
		parent::onPreInit($param);
		if(!$this->getUser()->getIsGuest())
			$this->setTheme('');
	}

	public function testClick($sender,$param)
	{
		if($sender->BackColor==='')
			$sender->BackColor='blue';
		else
			$sender->BackColor='';
	}
}

?>