From 9ca759cbfd2c6438dce417e3840462e85aed88f6 Mon Sep 17 00:00:00 2001
From: xue <>
Date: Fri, 24 Mar 2006 04:07:34 +0000
Subject: Added two wizard demos.
---
.gitattributes | 5 ++
.../pages/Controls/Samples/TWizard/Sample1.page | 38 +++++++++++++
.../pages/Controls/Samples/TWizard/Sample1.php | 11 ++++
.../pages/Controls/Samples/TWizard/Sample2.page | 54 ++++++++++++++++++
.../pages/Controls/Samples/TWizard/Sample2.php | 11 ++++
.../protected/pages/Controls/Wizard.page | 63 +++++++++++++++++++++
.../quickstart/protected/pages/Controls/wizard.gif | Bin 0 -> 4102 bytes
framework/Web/UI/WebControls/TWizard.php | 10 ++--
8 files changed, 187 insertions(+), 5 deletions(-)
create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample1.page
create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample1.php
create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample2.page
create mode 100644 demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample2.php
create mode 100644 demos/quickstart/protected/pages/Controls/wizard.gif
diff --git a/.gitattributes b/.gitattributes
index c9f50d37..365361e6 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -225,6 +225,10 @@ demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page -text
demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.php -text
demos/quickstart/protected/pages/Controls/Samples/TValidationSummary/Home.page -text
demos/quickstart/protected/pages/Controls/Samples/TValidationSummary/Home.php -text
+demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample1.page -text
+demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample1.php -text
+demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample2.page -text
+demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample2.php -text
demos/quickstart/protected/pages/Controls/Samples/config.xml -text
demos/quickstart/protected/pages/Controls/Simple.page -text
demos/quickstart/protected/pages/Controls/Standard.page -text
@@ -234,6 +238,7 @@ demos/quickstart/protected/pages/Controls/TextBox.page -text
demos/quickstart/protected/pages/Controls/TextHighlighter.page -text
demos/quickstart/protected/pages/Controls/Validation.page -text
demos/quickstart/protected/pages/Controls/Wizard.page -text
+demos/quickstart/protected/pages/Controls/wizard.gif -text
demos/quickstart/protected/pages/Fundamentals/Applications.page -text
demos/quickstart/protected/pages/Fundamentals/Architecture.page -text
demos/quickstart/protected/pages/Fundamentals/Components.page -text
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 @@
+
+ Your favorite color:
+
+
+ Your favorite color:
+
+ A Single-Step Wizard
+
+Wizard Step 1
+ Wizard Step 2
+ Wizard with Customized Styles
+
+Thank you for your answer!
+
+TWizard is analogous to the installation wizard commonly used to install software on Windows. It splits a large form and presents the user with a series of smaller forms, called wizard steps, to complete. The following figure shows how a wizard is composed of when presented to users, where step content is the main content of a wizard step for users to complete, header refers to header content common to all steps, navigation contains buttons that allow users to navigate step by step, and side bar contains a list of hyperlinks by which users can reach to any step with one click. +
+ + ++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. +
+ ++Wizard steps are typically added to a wizard through template as follows, +
+ ++In the above, StepType refers to the type of a wizard step, which can affect how the navigation appearance and behavior of the step. A wizard step can be of one of the following types: +
++In this sample, we use wizard to collect user's preference of color. In the first step, the user is presented with a dropdown list from which he can choose hist favorite color. In the second step, the complete step, his choice in the previous step is displayed. In real application, at this step the choice may be stored in database in the backend. +
++TWizard defines a whole set of properties for customization of its various components as shown in the above figure. In particular, the following properties are provided: +
+\n");
+ $writer->write("\n
|