From 930c51a6d618d487105cd46c517f36c3b1fe3b44 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 28 Dec 2005 18:31:03 +0000 Subject: --- demos/quickstart/protected/controls/RunBar.php | 23 +++++++++++++++++++++++ demos/quickstart/protected/controls/RunBar.tpl | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 demos/quickstart/protected/controls/RunBar.php create mode 100644 demos/quickstart/protected/controls/RunBar.tpl (limited to 'demos/quickstart/protected/controls') diff --git a/demos/quickstart/protected/controls/RunBar.php b/demos/quickstart/protected/controls/RunBar.php new file mode 100644 index 00000000..0d20e0d4 --- /dev/null +++ b/demos/quickstart/protected/controls/RunBar.php @@ -0,0 +1,23 @@ +getViewState('PagePath',''); + } + + public function setPagePath($value) + { + $this->setViewState('PagePath',$value,''); + } + + protected function onPreRender($param) + { + $pagePath=$this->getPagePath(); + $this->RunButton->NavigateUrl="?page=$pagePath"; + $this->ViewSourceButton->NavigateUrl="?page=ViewSource&path=/".strtr($pagePath,'.','/').'.page'; + } +} + +?> \ No newline at end of file diff --git a/demos/quickstart/protected/controls/RunBar.tpl b/demos/quickstart/protected/controls/RunBar.tpl new file mode 100644 index 00000000..14e57fc3 --- /dev/null +++ b/demos/quickstart/protected/controls/RunBar.tpl @@ -0,0 +1,4 @@ +
\ No newline at end of file -- cgit v1.2.3