From ffc9318788952a879815cfa01a8b17b7ddae89b1 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Thu, 2 Jun 2011 11:16:04 +0000 Subject: added documentation and examples for TActiveCheckBoxList, TActiveDropDownList, TActiveListBox, TActiveRadioButtonList classes --- .../Samples/TActiveCheckBoxList/Home.php | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCheckBoxList/Home.php (limited to 'demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCheckBoxList/Home.php') diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCheckBoxList/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCheckBoxList/Home.php new file mode 100644 index 00000000..3644721e --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCheckBoxList/Home.php @@ -0,0 +1,26 @@ +SelectedIndices; + $result=''; + foreach($indices as $index) + { + $item=$input->Items[$index]; + $result.="(Index: $index, Value: $item->Value, Text: $item->Text)"; + } + if($result==='') + $output->Text='Your selection is empty.'; + else + $output->Text='Your selection is: '.$result; + } + + public function selectionChanged($sender,$param) + { + $this->collectSelectionResult($this->CheckBoxList,$this->SelectionResult); + } +} + +?> \ No newline at end of file -- cgit v1.2.3