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