summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TRadioButton/Home.php
diff options
context:
space:
mode:
authorxue <>2006-01-24 05:13:51 +0000
committerxue <>2006-01-24 05:13:51 +0000
commit85a8e37118107312b971aba4065be4e850441866 (patch)
tree5b8a320a42dbca31718bf537a00bd0159a1fcdee /demos/quickstart/protected/pages/Controls/Samples/TRadioButton/Home.php
parent230067c5425f9e95e601d682a8b9bb523190856e (diff)
Added TRadioButton demo and FT.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TRadioButton/Home.php')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TRadioButton/Home.php27
1 files changed, 27 insertions, 0 deletions
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 @@
+<?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;
+ }
+}
+
+?> \ No newline at end of file