summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.page
blob: a12502f735e6c4ba4f1b19997cebe83a03aaf881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<com:TContent ID="body">

<h2>Nonlinear Wizard Navigation Sample</h2>

<p>
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.
</p>

<com:TWizard ID="Wizard3"
		BackColor="#FFFBD6"
		Width="300px"
		HeaderText="A Mini Survey"
		ShowSideBar="false"
		HeaderStyle.BackColor="PaleGoldenrod"
		HeaderStyle.HorizontalAlign="Center"
		NavigationStyle.HorizontalAlign="Center"
		OnNextButtonClick="wizard3NextStep"
		OnCompleteButtonClick="wizard3Completed" >

  <com:TWizardStep Title="Background" AllowReturn="false">
    <b><%= $this->Title %></b>
    <br/><br/>
    <com:TCheckBox ID="StudentCheckBox" Text="I am a college student." />
    <br/><br/>
  </com:TWizardStep>

  <com:TWizardStep Title="Major" AllowReturn="false">
    <b><%= $this->Title %></b>
    <br/><br/>
    My major is
      <com:TDropDownList ID="DropDownList11">
        <com:TListItem Value="Computer Science" />
        <com:TListItem Value="Chemistry" />
        <com:TListItem Value="Mathematics" />
        <com:TListItem Value="Others" />
      </com:TDropDownList>
    <br/><br/>
  </com:TWizardStep>

  <com:TWizardStep Title="Hobbies" AllowReturn="false">
    <b><%= $this->Title %></b>
    <br/><br/>
    My favorite Sport is
      <com:TDropDownList ID="DropDownList22">
        <com:TListItem Value="Baseball" />
        <com:TListItem Value="Football" />
        <com:TListItem Value="Tennis" />
      </com:TDropDownList>
    <br/><br/>
  </com:TWizardStep>

  <com:TWizardStep Title="Summary" StepType="Complete">
    <h3>Thank you for taking this survey!</h3>
    <p>
    <com:TLabel ID="Wizard3Result" />
    </p>
  </com:TWizardStep>

</com:TWizard>

</com:TContent>