summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.php
blob: 8bbc0d55f39b7805b30e00a7695fb605d7004d19 (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
<?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;
	}
}