summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/JuiControls/Samples/TJuiProgressbar/Home.php
blob: 247b88c824cf7bca827853ef569f74fed8e12932 (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 Home extends TPage
{
	public function pbar1_complete($sender,$param)
	{
		$this->label1->Text="Progressbar complete!";
	}

	public function pbar1_changed($sender,$param)
	{
		$this->label1->Text="Progressbar changed.";
	}

	public function pbar2_minus($sender,$param)
	{
		$this->pbar2->getOptions()->value = max(0, $this->pbar2->getOptions()->value - 10);
	}

	public function pbar2_plus($sender,$param)
	{
		$this->pbar2->getOptions()->value = min($this->pbar2->getOptions()->max, $this->pbar2->getOptions()->value + 10);
	}
}