From 85a8e37118107312b971aba4065be4e850441866 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 24 Jan 2006 05:13:51 +0000 Subject: Added TRadioButton demo and FT. --- .../pages/Controls/Samples/TRadioButton/Home.page | 102 +++++++++++++++++++++ .../pages/Controls/Samples/TRadioButton/Home.php | 27 ++++++ 2 files changed, 129 insertions(+) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TRadioButton/Home.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TRadioButton/Home.php (limited to 'demos/quickstart/protected/pages/Controls/Samples/TRadioButton') diff --git a/demos/quickstart/protected/pages/Controls/Samples/TRadioButton/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TRadioButton/Home.page new file mode 100644 index 00000000..4cda20d8 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TRadioButton/Home.page @@ -0,0 +1,102 @@ + + +

TRadioButton Samples

+ + + + + + + + + + + + + + + +
+A radiobutton with customized text alignment, color and font: + + +
+A radiobutton with label and input attributes: + + +
+An auto postback radiobutton: + + +
+A radiobutton causing validation on a textbox: + + + + +
+A radiobutton validated by a required field validator: + + + + +
+A radiobutton group: + + + + + +
+ + +
+ +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TRadioButton/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TRadioButton/Home.php new file mode 100644 index 00000000..034d2fcc --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TRadioButton/Home.php @@ -0,0 +1,27 @@ +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; + } +} + +?> \ No newline at end of file -- cgit v1.2.3