diff options
author | wei <> | 2007-01-04 11:23:26 +0000 |
---|---|---|
committer | wei <> | 2007-01-04 11:23:26 +0000 |
commit | dd028bec3822d1d9c28c35d599d687e038c7705f (patch) | |
tree | f3d2fb7f95073ea481a4dec86f0f0d30c7fe3588 /tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php | |
parent | cac90ea6547fe194ab6ab101dfe11a0b751823ca (diff) |
Add chat demo and tutorial.
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php b/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php new file mode 100644 index 00000000..10c45aa3 --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php @@ -0,0 +1,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...';
+ }
+
+}
+
+
+?>
\ No newline at end of file |