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

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

class Ticket504 extends TPage
{
	private $panels = array('panelA', 'panelB', 'panelC','panelD',);
	private function showPanel($id, $param) {
  		foreach($this->panels as $panel) {
  			if($id == $panel) {
  				$this->$panel->setAttribute('style', 'display: block;');
  				$this->$panel->render($param->NewWriter);
				$this->$panel->setVisible(true);
  			} else {
  				$this->$panel->setVisible(false);
  			}
  		}
  	}
	public function changePanel($sender,$param){
		$this->showPanel($param->CallbackParameter, $param);
	}
	public function loadData_Callback($sender, $param){
		die("parameter is ".$param->CallbackParameter);
	}
}

?>