diff options
author | xue <> | 2005-12-31 01:56:58 +0000 |
---|---|---|
committer | xue <> | 2005-12-31 01:56:58 +0000 |
commit | e050f7f5e259ffc9df018a7021e8ed946b4d614e (patch) | |
tree | 7f9c12ac56ba77052a9227c5d231e6cff97bf7f8 /demos/quickstart/protected/pages/Controls/Samples/TDropDownList/Home.php | |
parent | 21b205564dd4a6602a29b48fb314c4d3d5130ef6 (diff) |
Added TDropDownList samples.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TDropDownList/Home.php')
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TDropDownList/Home.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TDropDownList/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TDropDownList/Home.php new file mode 100644 index 00000000..3835d3c3 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TDropDownList/Home.php @@ -0,0 +1,22 @@ +<?php
+
+class Home extends TPage
+{
+ public function selectionChanged($sender,$param)
+ {
+ $index=$sender->SelectedIndex;
+ $value=$sender->SelectedValue;
+ $text=$sender->SelectedItem->Text;
+ $this->SelectionResult->Text="Your selection is (Index: $index, Value: $value, Text: $text).";
+ }
+
+ public function buttonClicked($sender,$param)
+ {
+ $index=$this->ListBox1->SelectedIndex;
+ $value=$this->ListBox1->SelectedValue;
+ $text=$this->ListBox1->SelectedItem->Text;
+ $this->SelectionResult2->Text="Your selection is (Index: $index, Value: $value, Text: $text).";
+ }
+}
+
+?>
\ No newline at end of file |