summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php
blob: eb77073b54881fc0adca9b8a3e78e26c8d5fccfe (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
28
<?php

class RadioButtonListTest extends TPage
{
	public function radChange($sender,$param){
	  $choice = 'Choice : ';
	  switch($this->rad_button_list->SelectedValue){
	    case 'yes':
	      $choice.='Yes :-)';
	    break;
	    case 'no':
	      $choice.='No :-(';
	    break;
	    case 'whynot':
	      $choice.='Why not ???';
	    break;
	  }
	  $this->label->Text = $choice;
	}
	
	public function action($sender,$param){
	  $this->label->Text = 'Action...';
	}

}


?>