Rev 1814 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1814 | jmachado | 1 | <%@ page import="pt.estgp.estgweb.utils.Globals" %> |
1312 | jmachado | 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); |
||
1737 | jmachado | 14 | String sep = "1"; |
15 | if(separator != null) |
||
16 | sep = separator.toString(); |
||
1312 | jmachado | 17 | |
18 | String sep0 = ""; |
||
19 | String sep1 = ""; |
||
20 | String sep2 = ""; |
||
21 | String sep3 = ""; |
||
22 | String sep4 = ""; |
||
23 | String sep5 = ""; |
||
24 | String sep6 = ""; |
||
25 | String sep7 = ""; |
||
26 | String sep8 = ""; |
||
27 | |||
28 | |||
29 | |||
1830 | jmachado | 30 | String link0 = "href=\"" + request.getContextPath() + "/Welcome.do\""; |
1312 | jmachado | 31 | String link1 = "href=\"" + request.getContextPath() + "/user/startHome.do\""; |
32 | String link2 = "href=\"" + request.getContextPath() + "/user/startCourseUnits.do\""; |
||
33 | String link3 = "href=\"" + request.getContextPath() + "/user/startProfile.do\""; |
||
34 | String link4 = "href=\"" + request.getContextPath() + "/user/startServiceZone.do\""; |
||
35 | String link5 = "href=\"" + request.getContextPath() + "/proxy/layoutIOnline/ionline/\""; |
||
36 | String link6 = "href=\"" + request.getContextPath() + "/dir/utilsIntranet/utils/intranet/escola/utils.html\""; |
||
37 | String link7 = "href=\"" + request.getContextPath() + "/proxy/layoutIntranetContacts/estgp/intranet/contactos/servicos.html\""; |
||
38 | String link8 = "href=\"" + request.getContextPath() + "/user/loapPageSeparatorDocuments.do?pageCode=documents\""; |
||
39 | |||
1737 | jmachado | 40 | if(sep.equals("0")) |
1312 | jmachado | 41 | { |
42 | sep0 ="class=\"active\""; |
||
43 | // link0 = ""; |
||
44 | } |
||
1737 | jmachado | 45 | if(sep.equals("1")) |
1312 | jmachado | 46 | { |
47 | sep1 ="class=\"active\""; |
||
48 | // link1 = ""; |
||
49 | } |
||
1737 | jmachado | 50 | else if(sep.equals("2")) |
1312 | jmachado | 51 | { |
52 | sep2 ="class=\"active\""; |
||
53 | // link2 = ""; |
||
54 | } |
||
1737 | jmachado | 55 | else if(sep.equals("3")) |
1312 | jmachado | 56 | { |
57 | // link3 = ""; |
||
58 | sep3 ="class=\"active\""; |
||
59 | } |
||
1737 | jmachado | 60 | else if(sep.equals("4")) |
1312 | jmachado | 61 | { |
62 | // link4 = ""; |
||
63 | sep4 ="class=\"active\""; |
||
64 | } |
||
1737 | jmachado | 65 | else if(sep.equals("5")) |
1312 | jmachado | 66 | { |
67 | link5 = ""; |
||
68 | sep5 ="class=\"active\""; |
||
69 | } |
||
1737 | jmachado | 70 | else if(sep.equals("6")) |
1312 | jmachado | 71 | { |
72 | // link6 = ""; |
||
73 | sep6 ="class=\"active\""; |
||
74 | } |
||
1737 | jmachado | 75 | else if(sep.equals("7")) |
1312 | jmachado | 76 | { |
77 | // link7 = ""; |
||
78 | sep7 ="class=\"active\""; |
||
79 | } |
||
1737 | jmachado | 80 | else if(sep.equals("8")) |
1312 | jmachado | 81 | { |
82 | // link8 = ""; |
||
83 | sep8 ="class=\"active\""; |
||
84 | } |
||
85 | |||
86 | |||
87 | |||
88 | %> |
||
89 | <nav class="navbar navbar-default" style="margin-bottom: 0px"> |
||
90 | <div class="container-fluid"> |
||
91 | <div class="navbar-header"> |
||
92 | <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> |
||
93 | <span class="sr-only">Toggle navigation</span> |
||
94 | <span class="icon-bar"></span> |
||
95 | <span class="icon-bar"></span> |
||
96 | <span class="icon-bar"></span> |
||
97 | </button> |
||
98 | <a class="navbar-brand" href="#"> BACO v3</a> |
||
99 | </div> |
||
100 | <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> |
||
101 | <ul class="nav navbar-nav"> |
||
102 | <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> |
||
103 | <li <%=sep1%>><a <%=link1%>><span class="glyphicon glyphicon-home"></span> <bean:message key="intranet.separator.home"/></a></li> |
||
104 | <li <%=sep3%>><a <%=link3%>><span class="glyphicon glyphicon-user"></span> <bean:message key="intranet.separator.profile"/></a></li> |
||
105 | <baco:hasNotRole role="student,invited"> |
||
106 | <li <%=sep4%>><a <%=link4%>><span class="glyphicon glyphicon-wrench"></span> <bean:message key="intranet.separator.service.zone"/></a></li> |
||
107 | </baco:hasNotRole> |
||
108 | <li <%=sep5%>><a <%=link5%>><span class="glyphicon glyphicon-folder-open"></span> <bean:message key="intranet.separator.ionline"/></a></li> |
||
109 | <li <%=sep7%>><a <%=link7%>><span class="glyphicon glyphicon-list-alt"></span> <bean:message key="intranet.separator.contacts"/></a></li> |
||
110 | <li <%=sep6%>><a <%=link6%>><span class="glyphicon glyphicon-random"></span> <bean:message key="intranet.separator.utils"/></a></li> |
||
1361 | jmachado | 111 | <%--<li <%=sep8%>><a <%=link8%>><span class="glyphicon glyphicon-random"></span> <bean:message key="intranet.separator.utils"/></a></li>--%> |
1737 | jmachado | 112 | |
113 | <jsp:include page="eSchoolSeparators.jsp"/> |
||
114 | |||
1312 | jmachado | 115 | </ul> |
116 | |||
117 | |||
118 | <ul class="nav navbar-nav navbar-right"> |
||
119 | <baco:isAdmin> |
||
120 | <li> |
||
1830 | jmachado | 121 | <a href="<%=request.getContextPath()%>/user/homePae.do"> |
122 | <span data-toggle="tooltip" data-title="PAE"><span class="glyphicon glyphicon-log-out" ></span> Serviços IPP</span> |
||
123 | </a> |
||
1312 | jmachado | 124 | </li> |
125 | </baco:isAdmin> |
||
1462 | jmachado | 126 | <%-- <baco:isNotAdmin> |
1394 | jmachado | 127 | <li> |
128 | <html:link action="/user/homePae"> |
||
129 | <span class="glyphicon glyphicon-log-out"></span> MODO PAE |
||
130 | </html:link> |
||
131 | </li> |
||
1462 | jmachado | 132 | </baco:isNotAdmin>--%> |
1312 | jmachado | 133 | <li> |
1387 | jmachado | 134 | <a href="<%=request.getContextPath()%><%=Globals.SYSTEM_REDIRECTIONS_POLICY_AUTHENTICATION_LOGOUT_ACTION%>"> |
1312 | jmachado | 135 | <span class="glyphicon glyphicon-log-out"></span> <bean:message key="logout"/> |
1387 | jmachado | 136 | </a> |
1312 | jmachado | 137 | </li> |
1320 | jmachado | 138 | <li id="google_translate_element" style="padding-top: 3px"></li> |
139 | |||
1312 | jmachado | 140 | </ul> |
141 | </div> |
||
142 | |||
143 | </div> |
||
144 | </nav> |
||
145 | |||
146 | |||
147 | <%-- |
||
148 | <nav class="navbar navbar-default"> |
||
149 | <div class="container-fluid"> |
||
150 | <!-- Brand and toggle get grouped for better mobile display --> |
||
151 | <div class="navbar-header"> |
||
152 | <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> |
||
153 | <span class="sr-only">Toggle navigation</span> |
||
154 | <span class="icon-bar"></span> |
||
155 | <span class="icon-bar"></span> |
||
156 | <span class="icon-bar"></span> |
||
157 | </button> |
||
158 | <a class="navbar-brand" href="#">Brand</a> |
||
159 | </div> |
||
160 | |||
161 | <!-- Collect the nav links, forms, and other content for toggling --> |
||
162 | <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> |
||
163 | <ul class="nav navbar-nav"> |
||
164 | <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li> |
||
165 | <li><a href="#">Link</a></li> |
||
166 | <li class="dropdown"> |
||
167 | <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a> |
||
168 | <ul class="dropdown-menu"> |
||
169 | <li><a href="#">Action</a></li> |
||
170 | <li><a href="#">Another action</a></li> |
||
171 | <li><a href="#">Something else here</a></li> |
||
172 | <li role="separator" class="divider"></li> |
||
173 | <li><a href="#">Separated link</a></li> |
||
174 | <li role="separator" class="divider"></li> |
||
175 | <li><a href="#">One more separated link</a></li> |
||
176 | </ul> |
||
177 | </li> |
||
178 | </ul> |
||
179 | <!-- |
||
180 | <form class="navbar-form navbar-left" role="search"> |
||
181 | <div class="form-group"> |
||
182 | <input type="text" class="form-control" placeholder="Search"> |
||
183 | </div> |
||
184 | <button type="submit" class="btn btn-default">Submit</button> |
||
185 | </form> |
||
186 | --> |
||
187 | <ul class="nav navbar-nav navbar-right"> |
||
188 | <li><a href="#">Link</a></li> |
||
189 | <li class="dropdown"> |
||
190 | <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a> |
||
191 | <ul class="dropdown-menu"> |
||
192 | <li><a href="#">Action</a></li> |
||
193 | <li><a href="#">Another action</a></li> |
||
194 | <li><a href="#">Something else here</a></li> |
||
195 | <li role="separator" class="divider"></li> |
||
196 | <li><a href="#">Separated link</a></li> |
||
197 | </ul> |
||
198 | </li> |
||
199 | </ul> |
||
200 | </div><!-- /.navbar-collapse --> |
||
201 | </div><!-- /.container-fluid --> |
||
202 | </nav>--%> |