diff options
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.php')
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.php | 25 |
1 files changed, 25 insertions, 0 deletions
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 @@ +<?php
+
+class Sample3 extends TPage
+{
+ public function wizard3Completed($sender,$param)
+ {
+ if($this->StudentCheckBox->Checked)
+ {
+ $str="You are a college student.<br/>";
+ $str.="You are in major: ".$this->DropDownList11->SelectedValue."<br/>";
+ $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 |