Rev 1387 | Rev 1737 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1312 | jmachado | 1 | <%@ page import="pt.estgp.estgweb.Globals" %> |
2 | <%@ page import="pt.estgp.estgweb.domain.UserSession" %> |
||
3 | <%@ page import="pt.estgp.estgweb.web.UserSessionProxy" %> |
||
4 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
||
5 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
||
6 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
||
7 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
||
8 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
||
9 | |||
10 | <tiles:useAttribute name="separator" id="separator" classname="org.apache.struts.tiles.DirectStringAttribute"/> |
||
11 | |||
12 | <% |
||
13 | UserSession userSession = UserSessionProxy.loadUserSessionFromRequest(request); |
||
14 | int sep = 1; |
||
15 | try |
||
16 | { |
||
17 | sep = Integer.parseInt(separator.toString()); |
||
18 | } |
||
19 | catch(NumberFormatException e) |
||
20 | {} |
||
21 | catch(NullPointerException e) |
||
22 | {} |
||
23 | |||
24 | //String sep0 = ""; |
||
25 | String sep1 = ""; |
||
26 | /*String sep2 = ""; |
||
27 | String sep3 = ""; |
||
28 | String sep4 = ""; |
||
29 | String sep5 = ""; |
||
30 | String sep6 = ""; |
||
31 | String sep7 = ""; |
||
32 | String sep8 = "";*/ |
||
33 | |||
34 | |||
35 | |||
36 | //String link0 = "href=\"" + request.getContextPath() + Globals.SYSTEM_PUBLIC_URL + "\""; |
||
37 | String link1 = "href=\"" + request.getContextPath() + "/user/homePae.do\""; |
||
38 | /*String link2 = "href=\"" + request.getContextPath() + "/user/startCourseUnits.do\""; |
||
39 | String link3 = "href=\"" + request.getContextPath() + "/user/startProfile.do\""; |
||
40 | String link4 = "href=\"" + request.getContextPath() + "/user/startServiceZone.do\""; |
||
41 | String link5 = "href=\"" + request.getContextPath() + "/proxy/layoutIOnline/ionline/\""; |
||
42 | String link6 = "href=\"" + request.getContextPath() + "/dir/utilsIntranet/utils/intranet/escola/utils.html\""; |
||
43 | String link7 = "href=\"" + request.getContextPath() + "/proxy/layoutIntranetContacts/estgp/intranet/contactos/servicos.html\""; |
||
44 | String link8 = "href=\"" + request.getContextPath() + "/user/loapPageSeparatorDocuments.do?pageCode=documents\"";*/ |
||
45 | |||
46 | /*if(sep == 0) |
||
47 | { |
||
48 | sep0 ="class=\"active\""; |
||
49 | // link0 = ""; |
||
50 | } |
||
51 | else*/ if(sep == 1) |
||
52 | { |
||
53 | sep1 ="class=\"active\""; |
||
54 | // link1 = ""; |
||
55 | } |
||
56 | /*else if(sep == 2) |
||
57 | { |
||
58 | sep2 ="class=\"active\""; |
||
59 | // link2 = ""; |
||
60 | } |
||
61 | else if(sep == 3) |
||
62 | { |
||
63 | // link3 = ""; |
||
64 | sep3 ="class=\"active\""; |
||
65 | } |
||
66 | else if(sep == 4) |
||
67 | { |
||
68 | // link4 = ""; |
||
69 | sep4 ="class=\"active\""; |
||
70 | } |
||
71 | else if(sep == 5) |
||
72 | { |
||
73 | link5 = ""; |
||
74 | sep5 ="class=\"active\""; |
||
75 | } |
||
76 | else if(sep == 6) |
||
77 | { |
||
78 | // link6 = ""; |
||
79 | sep6 ="class=\"active\""; |
||
80 | } |
||
81 | else if(sep == 7) |
||
82 | { |
||
83 | // link7 = ""; |
||
84 | sep7 ="class=\"active\""; |
||
85 | } |
||
86 | else if(sep == 8) |
||
87 | { |
||
88 | // link8 = ""; |
||
89 | sep8 ="class=\"active\""; |
||
90 | }*/ |
||
91 | |||
92 | |||
93 | |||
94 | %> |
||
95 | <nav class="navbar navbar-default" style="margin-bottom: 0px"> |
||
96 | <div class="container-fluid"> |
||
97 | <div class="navbar-header"> |
||
98 | <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> |
||
99 | <span class="sr-only">Toggle navigation</span> |
||
100 | <span class="icon-bar"></span> |
||
101 | <span class="icon-bar"></span> |
||
102 | <span class="icon-bar"></span> |
||
103 | </button> |
||
1408 | jmachado | 104 | <a class="navbar-brand" href="#"> |
105 | <img class="logoIpp" src="<%=request.getContextPath()%>/layout/themes/ipp/logo.png"/> |
||
106 | </a> |
||
107 | <a class="navbar-brand navbar-brand-2"> |
||
108 | PAE v1 |
||
109 | </a> |
||
1312 | jmachado | 110 | </div> |
111 | <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> |
||
112 | <ul class="nav navbar-nav"> |
||
113 | <%--<li <%=sep0%>><a <%=link0%>><span class="glyphicon glyphicon-globe"></span> <span class="glyphicon glyphicon-menu-left"></span> <bean:message key="intranet.separator.welcome.home"/></a></li>--%> |
||
114 | <li <%=sep1%>><a <%=link1%>><span class="glyphicon glyphicon-home"></span> <bean:message key="intranet.separator.home"/></a></li> |
||
115 | <%--<li <%=sep3%>><a <%=link3%>><span class="glyphicon glyphicon-user"></span> <bean:message key="intranet.separator.profile"/></a></li> |
||
116 | <baco:hasNotRole role="student,invited"> |
||
117 | <li <%=sep4%>><a <%=link4%>><span class="glyphicon glyphicon-wrench"></span> <bean:message key="intranet.separator.service.zone"/></a></li> |
||
118 | </baco:hasNotRole> |
||
119 | <li <%=sep5%>><a <%=link5%>><span class="glyphicon glyphicon-folder-open"></span> <bean:message key="intranet.separator.ionline"/></a></li> |
||
120 | <li <%=sep7%>><a <%=link7%>><span class="glyphicon glyphicon-list-alt"></span> <bean:message key="intranet.separator.contacts"/></a></li> |
||
121 | <li <%=sep6%>><a <%=link6%>><span class="glyphicon glyphicon-random"></span> <bean:message key="intranet.separator.utils"/></a></li> |
||
122 | <li <%=sep8%>><a <%=link8%>><span class="glyphicon glyphicon-random"></span> <bean:message key="intranet.separator.utils"/></a></li>--%> |
||
123 | </ul> |
||
124 | |||
125 | |||
126 | <ul class="nav navbar-nav navbar-right"> |
||
127 | <baco:isAdmin> |
||
128 | <li> |
||
129 | <html:link action="/user/startHome"> |
||
130 | <span class="glyphicon glyphicon-log-out"></span> MODO BACO |
||
131 | </html:link> |
||
132 | </li> |
||
133 | </baco:isAdmin> |
||
134 | <li> |
||
1387 | jmachado | 135 | <a href="<%=request.getContextPath()%><%=Globals.SYSTEM_REDIRECTIONS_POLICY_AUTHENTICATION_LOGOUT_ACTION%>"> |
1312 | jmachado | 136 | <span class="glyphicon glyphicon-log-out"></span> <bean:message key="logout"/> |
1387 | jmachado | 137 | </a> |
1312 | jmachado | 138 | </li> |
139 | |||
140 | </ul> |
||
141 | </div> |
||
142 | |||
143 | </div> |
||
144 | </nav> |
||
145 |