summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket671.php
blob: 04bd1a7e5bcf36e37b2f1fda272b65e029d41c67 (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
<?php

prado::using ('System.Web.UI.ActiveControls.*');

class Ticket671 extends TPage
{
	public function validateSelection($sender, $param)
	{
		$param->setIsValid($param->getValue()==3);
	}
	
	public function selectItem ($sender, $param)
	{
		$this->lblResult->text="You have selected '".$sender->getSelectedItem()->getText()."'.";
		if (!$this->getIsValid()) $this->lblResult->text .= " But this is not valid !";
	}
	
	public function submit ($sender, $param)
	{
		$this->lblResult->text="You have successfully validated the form";
	}
	
	public function validateTextBox($sender,$param)	{
		$param->setIsValid(strtolower($param->getValue())=="prado");
	}

	public function submit2($sender,$param) {
		$this->lblResult2->text="Thanks !";
	}

	
}
?>