summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/JuiControls/Samples/TJuiDatePicker/Home.php
blob: 5126f68ecdf0aca2059b2f5db4bbdf555807166c (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
<?php

class Home extends TPage
{

	public function change4($sender, $param)
	{
		$this->dp4->getOptions()->showAnim = $sender->getSelectedValue();
	}

	public function change5($sender, $param)
	{
		$value = $sender->getValue();
		switch ($value) {
		  case 'button':
		    $this->dp5->getOptions()->showButtonPanel = $sender->getChecked();
		    break;
		  case 'menu':
		    $this->dp5->getOptions()->changeYear = $this->dp5->getOptions()->changeMonth = $sender->getChecked();
		    break;
		  case 'week':
		    $this->dp5->getOptions()->showWeek = $sender->getChecked();
		    break;
		  case 'month':
		    $this->dp5->getOptions()->numberOfMonths =  $sender->getChecked() ? 3 : 1;
		    break;
		}
	}

}