Subversion Repositories bacoAlunos

Rev

Rev 1310 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
144 jmachado 1
<%@ page contentType="text/html" %>
2
<%@ page pageEncoding="UTF-8" %>
3
<%@ page import="java.util.*" %>
4
<%@ page import="jomm.web.utils.NavPlace" %>
5
<%@ page import="jomm.utils.MessageResources" %>
1 fvelez 6
<%@ page import="jomm.web.utils.NavPlaceServer" %>
7
<%@ page import="jomm.web.utils.TopNav" %>
144 jmachado 8
<div id="topnav">
9
    <ul>
10
        <%
11
            TopNav topNav = NavPlaceServer.getTopNav(request);
12
            List<NavPlace> navKeys = topNav.getNavPlaces();
1312 jmachado 13
            for(int i = 0; i < navKeys.size() ; i++)
144 jmachado 14
            {
1312 jmachado 15
                NavPlace navPlace = navKeys.get(i);
250 jmachado 16
 
144 jmachado 17
                if (navPlace.getUrl() != null)
18
                {
250 jmachado 19
                  String context = "";
20
                  if(navPlace.getUrl().startsWith("/"))
21
                    context = request.getContextPath();
144 jmachado 22
        %>
1312 jmachado 23
        <li class="navPlace"><a href="<%=context + navPlace.getUrl()%>"><%=navPlace.getMessage(request)%></a>
24
            <%
25
                if(i + 1 <  navKeys.size() )
26
                {
27
            %>
28
            <span class="glyphicon glyphicon-menu-right"/>
29
            <%
30
                }
31
            %>
32
        </li>
144 jmachado 33
        <%
34
        }
35
        else
39 fvelez 36
        {
144 jmachado 37
        %>
198 jmachado 38
        <li class="navPlace">
39
            <%=navPlace.getMessage(request)%>
1312 jmachado 40
            <%
41
                if(i + 1 <  navKeys.size() )
42
                {
43
            %>
44
            <span class="glyphicon glyphicon-menu-right"/>
45
            <%
46
                }
47
            %>
144 jmachado 48
        </li>
49
        <%
50
                }
1 fvelez 51
            }
144 jmachado 52
        %>
53
    </ul>
54
</div>