From 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 12 Jul 2012 11:21:01 +0000 Subject: standardize the use of unix eol; use svn properties to enforce native eol --- .../protected/pages/TimeTracker/SiteMap.php | 112 ++++++++++----------- 1 file changed, 56 insertions(+), 56 deletions(-) (limited to 'demos/time-tracker/protected/pages/TimeTracker/SiteMap.php') diff --git a/demos/time-tracker/protected/pages/TimeTracker/SiteMap.php b/demos/time-tracker/protected/pages/TimeTracker/SiteMap.php index dde4b44d..cb923178 100644 --- a/demos/time-tracker/protected/pages/TimeTracker/SiteMap.php +++ b/demos/time-tracker/protected/pages/TimeTracker/SiteMap.php @@ -1,57 +1,57 @@ - - * @link http://www.pradosoft.com/ - * @copyright Copyright © 2005-2006 PradoSoft - * @license http://www.pradosoft.com/license/ - * @version $Id$ - * @package Demos - */ - -/** - * SiteMap menu is rendered depending on user roles. - * - * @author Wei Zhuo - * @version $Id$ - * @package Demos - * @since 3.1 - */ -class SiteMap extends TTemplateControl -{ - /** - * Sets the active menu item using css class. - */ - public function onPreRender($param) - { - parent::onPreRender($param); - - $page = explode('.',$this->Request->ServiceParameter); - $active = null; - switch($page[count($page)-1]) - { - case 'ProjectList': - case 'ProjectDetails': - $active = $this->ProjectMenu; - break; - case 'UserList': - case 'UserCreate': - $active = $this->AdminMenu; - break; - case 'ReportProject': - case 'ReportResource': - $active = $this->ReportMenu; - break; - default: - $active = $this->LogMenu; - break; - } - - //add 'active' string to place holder body. - if(!is_null($active)) - $active->Controls[] = 'active'; - } -} - + + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005-2006 PradoSoft + * @license http://www.pradosoft.com/license/ + * @version $Id$ + * @package Demos + */ + +/** + * SiteMap menu is rendered depending on user roles. + * + * @author Wei Zhuo + * @version $Id$ + * @package Demos + * @since 3.1 + */ +class SiteMap extends TTemplateControl +{ + /** + * Sets the active menu item using css class. + */ + public function onPreRender($param) + { + parent::onPreRender($param); + + $page = explode('.',$this->Request->ServiceParameter); + $active = null; + switch($page[count($page)-1]) + { + case 'ProjectList': + case 'ProjectDetails': + $active = $this->ProjectMenu; + break; + case 'UserList': + case 'UserCreate': + $active = $this->AdminMenu; + break; + case 'ReportProject': + case 'ReportResource': + $active = $this->ReportMenu; + break; + default: + $active = $this->LogMenu; + break; + } + + //add 'active' string to place holder body. + if(!is_null($active)) + $active->Controls[] = 'active'; + } +} + ?> \ No newline at end of file -- cgit v1.2.3