diff options
author | xue <> | 2006-03-25 04:44:38 +0000 |
---|---|---|
committer | xue <> | 2006-03-25 04:44:38 +0000 |
commit | d8d697fe108e488e4b210d96ec08aa69942a3902 (patch) | |
tree | 92976ef03e1dd0b2b28ccddee76d39618d720df0 /demos/quickstart/protected/pages/Controls/Samples/TWizard | |
parent | 8df1407a11df3e5a8c33c6fae1c522707aefccf3 (diff) |
Added TemplatedWizardStep example.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TWizard')
4 files changed, 67 insertions, 2 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample1.page b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample1.page index 05ed32ec..3abf0b5c 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample1.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample1.page @@ -5,7 +5,8 @@ <com:TWizard ID="Wizard1"
BackColor="#FFFBD6"
Width="400px"
- SideBarStyle.Width="100px"
+ SideBarStyle.Width="120px"
+ HeaderText="Please let us know your preference"
OnCompleteButtonClick="wizardCompleted" >
<com:TWizardStep Title="Step 1">
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample2.page b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample2.page index ea01e320..2ac672d8 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample2.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample2.page @@ -8,13 +8,14 @@ BackColor="#EFF3FB"
BorderColor="#B5C7DE"
BorderWidth="1px"
+ BorderStyle="Solid"
HeaderText="Please let us know your preference"
SideBarStyle.Width="100px"
SideBarStyle.Height="100px"
SideBarStyle.BackColor="#507CD1"
SideBarStyle.HorizontalAlign="Center"
StepStyle.HorizontalAlign="Center"
- NavigationStyle.HorizontalAlign="Right"
+ NavigationStyle.HorizontalAlign="Center"
NavigationButtonStyle.BackColor="White"
NavigationButtonStyle.BorderColor="#507CD1"
NavigationButtonStyle.BorderStyle="Solid"
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample5.page b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample5.page new file mode 100644 index 00000000..89a2b8b3 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample5.page @@ -0,0 +1,51 @@ +<com:TContent ID="body">
+
+<h2>Using Templated Wizard Steps</h2>
+
+<com:TWizard ID="Wizard1"
+ BackColor="#FFFBD6"
+ Width="400px"
+ SideBarStyle.Width="120px"
+ HeaderText="Please let us know your preference"
+ 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:TTemplatedWizardStep ID="Step2" Title="Templated Step">
+ <prop:ContentTemplate>
+ <p>
+ Your favorite Sport:
+ <com:TDropDownList ID="DropDownList2">
+ <com:TListItem Value="Baseball" />
+ <com:TListItem Value="Football" />
+ <com:TListItem Value="Tennis" />
+ </com:TDropDownList>
+ </p>
+ </prop:ContentTemplate>
+ </com:TTemplatedWizardStep>
+
+ <com:TWizardStep Title="Complete" StepType="Complete">
+ <h3>Thank you for your answer!</h3>
+ <p>
+ <com:TLabel ID="Result1" /><br/><br/>
+ <com:TLabel ID="Result2" />
+ </p>
+ </com:TWizardStep>
+</com:TWizard>
+
+</com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample5.php b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample5.php new file mode 100644 index 00000000..4ab6d08b --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample5.php @@ -0,0 +1,12 @@ +<?php
+
+class Sample5 extends TPage
+{
+ public function wizardCompleted($sender,$param)
+ {
+ $this->Result1->Text="Your favorite color is: " . $this->DropDownList1->SelectedValue;
+ $this->Result2->Text="Your favorite sport is: " . $this->Step2->DropDownList2->SelectedValue;
+ }
+}
+
+?>
\ No newline at end of file |