diff options
author | xue <> | 2006-03-24 04:07:34 +0000 |
---|---|---|
committer | xue <> | 2006-03-24 04:07:34 +0000 |
commit | 9ca759cbfd2c6438dce417e3840462e85aed88f6 (patch) | |
tree | ef3ca0db52168cf32f19b96d0880fd6d68362f04 /demos/quickstart/protected/pages/Controls/Samples | |
parent | 252f43cbafdff06d308863507db600966e6ae640 (diff) |
Added two wizard demos.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples')
4 files changed, 114 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample1.page b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample1.page new file mode 100644 index 00000000..05ed32ec --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample1.page @@ -0,0 +1,38 @@ +<com:TContent ID="body">
+
+<h2>A Single-Step Wizard</h2>
+
+<com:TWizard ID="Wizard1"
+ BackColor="#FFFBD6"
+ Width="400px"
+ SideBarStyle.Width="100px"
+ OnCompleteButtonClick="wizardCompleted" >
+
+ <com:TWizardStep Title="Step 1">
+ <h3>Wizard Step 1</h3>
+ <p>
+ Your favorite color:
+ <com:TDropDownList ID="DropDownList1">
+ <com:TListItem Value="Red" />
+ <com:TListItem Value="Blue" />
+ <com:TListItem Value="Green" />
+ <com:TListItem Value="Purple" />
+ <com:TListItem Value="Black" />
+ <com:TListItem Value="Yellow" />
+ <com:TListItem Value="Orange" />
+ <com:TListItem Value="Pink" />
+ <com:TListItem Value="Cyan" />
+ </com:TDropDownList>
+ </p>
+ </com:TWizardStep>
+
+ <com:TWizardStep Title="Step 2" StepType="Complete">
+ <h3>Wizard Step 2</h3>
+ <p>
+ <com:TLabel ID="Result" />
+ </p>
+ </com:TWizardStep>
+
+</com:TWizard>
+
+</com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample1.php b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample1.php new file mode 100644 index 00000000..20440e62 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample1.php @@ -0,0 +1,11 @@ +<?php
+
+class Sample1 extends TPage
+{
+ public function wizardCompleted($sender,$param)
+ {
+ $this->Result->Text="Your favorite color is: " . $this->DropDownList1->SelectedValue;
+ }
+}
+
+?>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample2.page b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample2.page new file mode 100644 index 00000000..727179bd --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample2.page @@ -0,0 +1,54 @@ +<com:TContent ID="body">
+
+<h2>Wizard with Customized Styles</h2>
+
+<com:TWizard ID="Wizard1"
+ Width="400px"
+ Height="100px"
+ BackColor="#EFF3FB"
+ BorderColor="#B5C7DE"
+ BorderWidth="1px"
+ HeaderText="Please let us know your preference"
+ SideBarStyle.Width="100px"
+ SideBarStyle.Height="100px"
+ SideBarStyle.BackColor="#507CD1"
+ NavigationStyle.HorizontalAlign="Right"
+ NavigationButtonStyle.BackColor="White"
+ NavigationButtonStyle.BorderColor="#507CD1"
+ NavigationButtonStyle.BorderStyle="Solid"
+ NavigationButtonStyle.BorderWidth="1px"
+ NavigationButtonStyle.ForeColor="#284E98"
+ SideBarButtonStyle.ForeColor="White"
+ HeaderStyle.BackColor="#284E98"
+ HeaderStyle.Font.Bold="True"
+ HeaderStyle.ForeColor="White"
+ HeaderStyle.HorizontalAlign="Center"
+ OnCompleteButtonClick="wizardCompleted" >
+
+ <com:TWizardStep Title="Step 1">
+ <p>
+ Your favorite color:
+ <com:TDropDownList ID="DropDownList1">
+ <com:TListItem Value="Red" />
+ <com:TListItem Value="Blue" />
+ <com:TListItem Value="Green" />
+ <com:TListItem Value="Purple" />
+ <com:TListItem Value="Black" />
+ <com:TListItem Value="Yellow" />
+ <com:TListItem Value="Orange" />
+ <com:TListItem Value="Pink" />
+ <com:TListItem Value="Cyan" />
+ </com:TDropDownList>
+ </p>
+ </com:TWizardStep>
+
+ <com:TWizardStep Title="Step 2" StepType="Complete">
+ <h3>Thank you for your answer!</h3>
+ <p>
+ <com:TLabel ID="Result" />
+ </p>
+ </com:TWizardStep>
+
+</com:TWizard>
+
+</com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample2.php b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample2.php new file mode 100644 index 00000000..a508fbf3 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample2.php @@ -0,0 +1,11 @@ +<?php
+
+class Sample2 extends TPage
+{
+ public function wizardCompleted($sender,$param)
+ {
+ $this->Result->Text="Your favorite color is: " . $this->DropDownList1->SelectedValue;
+ }
+}
+
+?>
\ No newline at end of file |