summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php
blob: 10c45aa3ead170c0c84e044e92625b0889a97f1e (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...';
	}

}


?>