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

?>