diff options
author | wei <> | 2006-07-29 00:09:57 +0000 |
---|---|---|
committer | wei <> | 2006-07-29 00:09:57 +0000 |
commit | 6385105e7793509de726b2941d038840c04195c1 (patch) | |
tree | 398a93f1d8399107fbca29b41714a94115858e24 /demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl | |
parent | 7e0f1b300ee20c24702fcd3b1ce242ef0169ccc3 (diff) |
Add icon images to theme
Diffstat (limited to 'demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl')
-rw-r--r-- | demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl b/demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl index 0d79c1e2..8eff7572 100644 --- a/demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl +++ b/demos/time-tracker/protected/pages/TimeTracker/SiteMap.tpl @@ -1,18 +1,24 @@ <com:TPanel CssClass="sitemap" Visible="true">
<ul class="level1">
<li class="<com:TPlaceHolder ID="LogMenu" />">
- <a class="menuitem" href="?page=TimeTracker.LogTimeEntry">Log</a>
+ <a class="menuitem" href="?page=TimeTracker.LogTimeEntry">
+ <img src="<%= $this->Page->Theme->BaseUrl %>/time.gif" width="16" height="16" alt="">
+ <span>Log</span></a>
</li>
<com:TPlaceHolder Visible=<%= $this->User->isInRole('manager') %> >
<li class="<com:TPlaceHolder ID="ReportMenu" />">
- <a class="menuitem" href="?page=TimeTracker.ReportProject">Reports</a>
+ <a class="menuitem" href="?page=TimeTracker.ReportProject">
+ <img src="<%= $this->Page->Theme->BaseUrl %>/report.gif" width="16" height="16" alt="">
+ <span>Reports</span></a>
<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 class="<com:TPlaceHolder ID="ProjectMenu" />">
- <a class="menuitem" href="?page=TimeTracker.ProjectList">Projects</a>
+ <a class="menuitem" href="?page=TimeTracker.ProjectList">
+ <img src="<%= $this->Page->Theme->BaseUrl %>/bell.gif" width="16" height="16" alt="">
+ <span>Projects</span></a>
<ul class="level2">
<li><a href="?page=TimeTracker.ProjectDetails">Create New Project</a></li>
<li><a href="?page=TimeTracker.ProjectList">List Projects</a></li>
@@ -21,7 +27,9 @@ </com:TPlaceHolder>
<com:TPlaceHolder Visible=<%= $this->User->isInRole('admin') %> >
<li class="<com:TPlaceHolder ID="AdminMenu" />">
- <a class="menuitem" href="?page=TimeTracker.UserList">Adminstration</a>
+ <a class="menuitem" href="?page=TimeTracker.UserList">
+ <img src="<%= $this->Page->Theme->BaseUrl %>/group.gif" width="16" height="16" alt="">
+ <span>Adminstration</span></a>
<ul class="level2">
<li><a href="?page=TimeTracker.UserCreate">Create New User</a></li>
<li><a href="?page=TimeTracker.UserList">List Users</a></li>
@@ -41,7 +49,10 @@ {
Element.removeClassName(item.parentNode, "active");
});
- Element.addClassName(Event.element(ev).parentNode, "active");
+ node = Event.element(ev).parentNode;
+ if(node.tagName.toLowerCase() != 'li')
+ node = node.parentNode;
+ Element.addClassName(node, "active");
});
});
});
|