diff options
author | ctrlaltca@gmail.com <> | 2011-06-01 22:14:00 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-06-01 22:14:00 +0000 |
commit | 67666aaccb4b4743a084b214722e1173e827e9d1 (patch) | |
tree | e0b6204f917845f382c33bcbe5c2a6822e856020 /demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView | |
parent | 6521eecc250d756a9bb1a8b2f9a2c6a579accadd (diff) |
upported recent documentation changes from branch/3.1 to trunk/
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView')
-rw-r--r-- | demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page | 37 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php | 15 |
2 files changed, 52 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page new file mode 100644 index 00000000..6888ad78 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.page @@ -0,0 +1,37 @@ +<com:TContent ID="body">
+
+<h1>TActiveMultiView Samples</h1>
+
+<com:TActiveMultiView ID="MultiView" ActiveViewIndex="0" OnActiveViewChanged="viewChanged">
+ <com:TView ID="View1">
+ <h2>View 1</h2>
+ <p>Please enter a memo:</p>
+ <com:TActiveTextBox ID="Memo" />
+ <hr/>
+ <com:TActiveButton Text="View 2" CommandName="NextView" />
+ <com:TActiveButton Text="View 3" CommandName="SwitchViewIndex" ActiveControl.CallbackParameter="2" />
+ </com:TView>
+ <com:TView>
+ <h2>View 2</h2>
+ <p>Please choose a color:</p>
+ <com:TActiveDropDownList ID="DropDownList">
+ <com:TListItem Value="Red" />
+ <com:TListItem Value="Blue" />
+ <com:TListItem Value="Green" />
+ </com:TActiveDropDownList>
+ <hr/>
+ <com:TActiveButton Text="View 1" CommandName="PreviousView" />
+ <com:TActiveButton Text="View 3" CommandName="NextView" />
+ </com:TView>
+ <com:TView>
+ <h2>View 3</h2>
+ <com:TActiveLabel ID="Result1" />
+ <br/>
+ <com:TActiveLabel ID="Result2" />
+ <hr/>
+ <com:TActiveButton Text="View 1" CommandName="SwitchViewID" ActiveControl.CallbackParameter="View1" />
+ <com:TActiveButton Text="View 2" CommandName="PreviousView" />
+ </com:TView>
+</com:TActiveMultiView>
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php new file mode 100644 index 00000000..1a5dbed3 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveMultiView/Home.php @@ -0,0 +1,15 @@ +<?php
+
+class Home extends TPage
+{
+ public function viewChanged($sender,$param)
+ {
+ if($this->MultiView->ActiveViewIndex===2)
+ {
+ $this->Result1->Text="Your text input is: ".$this->Memo->Text;
+ $this->Result2->Text="Your color choice is: ".$this->DropDownList->SelectedValue;
+ }
+ }
+}
+
+?>
\ No newline at end of file |