blob: 0d79c1e2920d309aa167a2238b5674d8ddb3b036 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<com:TPanel CssClass="sitemap" Visible="true">
<ul class="level1">
<li class="<com:TPlaceHolder ID="LogMenu" />">
<a class="menuitem" href="?page=TimeTracker.LogTimeEntry">Log</a>
</li>
<com:TPlaceHolder Visible=<%= $this->User->isInRole('manager') %> >
<li class="<com:TPlaceHolder ID="ReportMenu" />">
<a class="menuitem" href="?page=TimeTracker.ReportProject">Reports</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>
<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>
</com:TPlaceHolder>
<com:TPlaceHolder Visible=<%= $this->User->isInRole('admin') %> >
<li class="<com:TPlaceHolder ID="AdminMenu" />">
<a class="menuitem" href="?page=TimeTracker.UserList">Adminstration</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>
</ul>
</li>
</com:TPlaceHolder>
</ul>
<com:TClientScript PradoScripts="prado">
Event.OnLoad(function()
{
menuitems = $$(".menuitem");
menuitems.each(function(el)
{
Event.observe(el, "mouseover", function(ev)
{
menuitems.each(function(item)
{
Element.removeClassName(item.parentNode, "active");
});
Element.addClassName(Event.element(ev).parentNode, "active");
});
});
});
</com:TClientScript>
</com:TPanel>
|