blob: 8990c4c3c49b9460dd88c6b9202f6de3571a520d (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 | <?php
class RunBar extends TTemplateControl
{
	public function getPagePath()
	{
		return $this->getViewState('PagePath','');
	}
	public function setPagePath($value)
	{
		$this->setViewState('PagePath',$value,'');
	}
	public function onPreRender($param)
	{
		$pagePath=$this->getPagePath();
		$this->RunButton->NavigateUrl="?page=$pagePath";
		$this->ViewSourceButton->NavigateUrl="?page=ViewSource&path=/".strtr($pagePath,'.','/').'.page';
	}
}
?>
 |