summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket278.php
blob: 1aadee7764385e08204153b4d45db5317f1db100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

class Ticket278 extends TPage
{
	function validator2_onValidate($sender, $param)
	{
		$sender->Enabled = $this->check1->Checked;
	}
	
	function validate2_onPostValidate($sender, $param)
	{
		$sender->Enabled = true;
	}
	
	function onPreRender($param)
	{
		parent::onPreRender($param);
		$this->panel1->Style = 
			$this->check1->Checked ? "display:block" : "display:none";		
	}
}

?>