summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages
diff options
context:
space:
mode:
authorxue <>2006-04-02 00:58:06 +0000
committerxue <>2006-04-02 00:58:06 +0000
commit3f003a625159217eddedeaa02c999f76f351525e (patch)
tree75c8f28e1f2534ae03cf7e4049e3c208ba0ca542 /demos/quickstart/protected/pages
parent87aaba0aa45ea3ead27966923fa5702817731e7d (diff)
Added TMultiView demo.
Diffstat (limited to 'demos/quickstart/protected/pages')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TMultiView/Home.page37
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TMultiView/Home.php15
2 files changed, 52 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TMultiView/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TMultiView/Home.page
new file mode 100644
index 00000000..b0e2386d
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TMultiView/Home.page
@@ -0,0 +1,37 @@
+<com:TContent ID="body">
+
+<h1>TMultiView Samples</h1>
+
+<com:TMultiView ID="MultiView" ActiveViewIndex="0" OnActiveViewChanged="viewChanged">
+ <com:TView ID="View1">
+ <h2>View 1</h2>
+ <p>Please enter a paragraph:</p>
+ <com:THtmlArea ID="Memo" />
+ <hr/>
+ <com:TButton Text="View 2" CommandName="NextView" />
+ <com:TButton Text="View 3" CommandName="SwitchViewIndex" CommandParameter="2" />
+ </com:TView>
+ <com:TView>
+ <h2>View 2</h2>
+ <p>Please choose a color:</p>
+ <com:TDropDownList ID="DropDownList">
+ <com:TListItem Value="Red" />
+ <com:TListItem Value="Blue" />
+ <com:TListItem Value="Green" />
+ </com:TDropDownList>
+ <hr/>
+ <com:TButton Text="View 1" CommandName="PreviousView" />
+ <com:TButton Text="View 3" CommandName="NextView" />
+ </com:TView>
+ <com:TView>
+ <h2>View 3</h2>
+ <com:TLabel ID="Result1" />
+ <br/>
+ <com:TLabel ID="Result2" />
+ <hr/>
+ <com:TButton Text="View 1" CommandName="SwitchViewID" CommandParameter="View1" />
+ <com:TButton Text="View 2" CommandName="PreviousView" />
+ </com:TView>
+</com:TMultiView>
+
+</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TMultiView/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TMultiView/Home.php
new file mode 100644
index 00000000..1a5dbed3
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TMultiView/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