blob: c54409968bfa149b079211c37d959f185d857848 (
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 Home 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";
}
}
?>
|