summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.php
blob: 034d2fcce449c61937d767d2b8516652f6b84a82 (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
<?php

class Home extends TPage
{
	public function radiobuttonClicked($sender,$param)
	{
		$sender->Text="I'm clicked";
	}

	public function selectRadioButton($sender,$param)
	{
		$selection='';
		if($this->Radio1->Checked)
			$selection.='1';
		if($this->Radio2->Checked)
			$selection.='2';
		if($this->Radio3->Checked)
			$selection.='3';
		if($this->Radio4->Checked)
			$selection.='4';
		if($selection==='')
			$selection='empty';
		$this->Result->Text='Your selection is '.$selection;
	}
}

?>