summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TRadioButton/Home.php
blob: 8518351abaf4920e9a5a282cc23a4c9b4e2f2cf2 (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
<?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;
	}
}