From de4e0fc293b8f5a9d009cf40018bba88d9416b41 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 25 Mar 2006 14:29:46 +0000 Subject: Finished all TWizard demos. --- .../pages/Controls/Samples/TWizard/Sample3.page | 61 ++++++++++++++++ .../pages/Controls/Samples/TWizard/Sample3.php | 25 +++++++ .../pages/Controls/Samples/TWizard/Sample4.page | 85 ++++++++++++++++++++++ .../pages/Controls/Samples/TWizard/Sample4.php | 11 +++ .../protected/pages/Controls/Wizard.page | 7 +- 5 files changed, 186 insertions(+), 3 deletions(-) create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.php create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample4.page create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample4.php (limited to 'demos/quickstart/protected') diff --git a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.page b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.page new file mode 100644 index 00000000..bb0a251c --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.page @@ -0,0 +1,61 @@ + + +

Nonlinear Wizard Navigation Sample

+ +

+In the following survey, if you are a college student, you will be asked which major you are in. Otherwise, the question is skipped to your favorite sport. This demo also shows unidrectional navigation. +

+ + + + + <%= $this->Parent->Title %> +

+ +

+
+ + + <%= $this->Parent->Title %> +

+ My major is + + + + + + +

+
+ + + <%= $this->Parent->Title %> +

+ My favorite Sport is + + + + + +

+
+ + +

Thank you for taking this survey!

+

+ +

+
+ +
+ +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.php b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.php new file mode 100644 index 00000000..d85d041a --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.php @@ -0,0 +1,25 @@ +StudentCheckBox->Checked) + { + $str="You are a college student.
"; + $str.="You are in major: ".$this->DropDownList11->SelectedValue."
"; + $str.="Your favorite sport is: ".$this->DropDownList22->SelectedValue; + } + else + $str="Your favorite sport is: ".$this->DropDownList22->SelectedValue; + $this->Wizard3Result->Text=$str; + } + + public function wizard3NextStep($sender,$param) + { + if($param->CurrentStepIndex===0 && !$this->StudentCheckBox->Checked) + $this->Wizard3->ActiveStepIndex=2; + } +} + +?> \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample4.page b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample4.page new file mode 100644 index 00000000..8687d842 --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample4.page @@ -0,0 +1,85 @@ + + +

Customized Wizard Template Sample

+ + + + + Header Template +
+ Step <%= $this->Parent->Parent->ActiveStepIndex+1 %> of 3 +
+ + + SideBar Template +
+ + + + + + + + +
+ + + +
+ Start Navigation Template +
+ + + + +
+ Step Navigation Template +
+ + + All navigation buttons are removed. +
+ Step Navigation Template +
+ + + Wizard Step Content +

+ Your favorite color: + + + + + + + + + + + +

+
+ + + Wizard Step Content +

+ +

+
+ + + Wizard Step Content +

+ Thank you for completing this survey.
+

+
+
+ +
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample4.php b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample4.php new file mode 100644 index 00000000..6b79698d --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample4.php @@ -0,0 +1,11 @@ +Result->Text="Your favorite color is: " . $this->DropDownList1->SelectedValue; + } +} + +?> \ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Wizard.page b/demos/quickstart/protected/pages/Controls/Wizard.page index 29718930..7d83c697 100644 --- a/demos/quickstart/protected/pages/Controls/Wizard.page +++ b/demos/quickstart/protected/pages/Controls/Wizard.page @@ -9,6 +9,10 @@

components of wizard +

+By default, TWizard embeds the above components in an HTML table so that the side bar is displayed on the left while the rest on the right. If UseDefaultLayout is set to false, no HTML table will be used, and developers should use pure CSS techniques to position the wizard components. Note, each component is displayed as a <div> and the wizard itself is also a <div> that encloses its components' <div>. +

+

Wizard steps are represented by TWizardStep and are maintained in TWizard through its WizardSteps property. At any time, only one step is visible, which is determined by the ActiveStep property. The ActiveStepIndex property gives the index of the active step in the step collection. Clicking on navigation buttons can activate different wizard steps.

@@ -85,9 +89,6 @@ Given a set of wizard steps, TWizard supports three different ways of n
  • Navigation - StartNavigationTemplate, StepNavigationTemplate, FinishNavigationTemplate.
  • Side bar - SideBarTemplate.
  • -Note about side bar button IDs, navigation button commands -headertext vs. headertemplate -tablelayout vs pure div layout

    Using Templated Wizard Steps

    -- cgit v1.2.3