summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl
diff options
context:
space:
mode:
authorwei <>2006-07-17 23:19:39 +0000
committerwei <>2006-07-17 23:19:39 +0000
commit319df8f534520c8c926d0cdaa1f5577c7bd8a909 (patch)
tree743a3a2e3e7092e0f474baf8592b3ba3824fc506 /demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl
parentb230beea20bc18f05d51b8e1f76c99c74a12fff4 (diff)
Update time-tracker application
Diffstat (limited to 'demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl')
-rw-r--r--demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl14
1 files changed, 10 insertions, 4 deletions
diff --git a/demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl b/demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl
index 48187b52..808c233b 100644
--- a/demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl
+++ b/demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl
@@ -1,27 +1,33 @@
<com:TPanel CssClass="sitemap" Visible="true">
<ul class="level1">
- <li class="active"><a class="menuitem" href="?page=TimeTracker.TimeEntry">Log</a>
+ <li class="<com:TPlaceHolder ID="LogMenu" />">
+ <a class="menuitem" href="?page=TimeTracker.TimeEntry">Log</a>
</li>
- <li><span class="menuitem">Reports</span>
+ <com:TPlaceHolder Visible=<%= $this->User->isInRole('manager') %> >
+ <li class="<com:TPlaceHolder ID="ReportMenu" />">
+ <span class="menuitem">Reports</span>
<ul class="level2">
<li><a href="?page=TimeTracker.ReportProject">Project Reports</a></li>
<li><a href="?page=TimeTracker.ReportResource">Resources Report</a></li>
</ul>
</li>
- <li>
+ <li class="<com:TPlaceHolder ID="ProjectMenu" />">
<span class="menuitem">Projects</span>
<ul class="level2">
<li><a href="?page=TimeTracker.ProjectDetails">Create New Project</a></li>
<li><a href="?page=TimeTracker.ProjectList">List Projects</a></li>
</ul>
</li>
- <li>
+ </com:TPlaceHolder>
+ <com:TPlaceHolder Visible=<%= $this->User->isInRole('admin') %> >
+ <li class="<com:TPlaceHolder ID="AdminMenu" />">
<span class="menuitem">Adminstration</span>
<ul class="level2">
<li><a href="?page=TimeTracker.UserCreate">Create New User</a></li>
<li><a href="?page=TimeTracker.UserList">List Users</a></li>
</ul>
</li>
+ </com:TPlaceHolder>
</ul>
<com:TClientScript PradoScripts="prado">
Event.OnLoad(function()