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

?>