Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

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