Subversion Repositories bacoAlunos

Rev

Rev 1387 | Rev 1737 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1387 Rev 1408
1
<%@ page import="pt.estgp.estgweb.Globals" %>
1
<%@ page import="pt.estgp.estgweb.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
        int sep = 1;
14
        int sep = 1;
15
        try
15
        try
16
        {
16
        {
17
            sep = Integer.parseInt(separator.toString());
17
            sep = Integer.parseInt(separator.toString());
18
        }
18
        }
19
        catch(NumberFormatException e)
19
        catch(NumberFormatException e)
20
        {}
20
        {}
21
        catch(NullPointerException e)
21
        catch(NullPointerException e)
22
        {}
22
        {}
23
 
23
 
24
        //String sep0 = "";
24
        //String sep0 = "";
25
        String sep1 = "";
25
        String sep1 = "";
26
        /*String sep2 = "";
26
        /*String sep2 = "";
27
        String sep3 = "";
27
        String sep3 = "";
28
        String sep4 = "";
28
        String sep4 = "";
29
        String sep5 = "";
29
        String sep5 = "";
30
        String sep6 = "";
30
        String sep6 = "";
31
        String sep7 = "";
31
        String sep7 = "";
32
        String sep8 = "";*/
32
        String sep8 = "";*/
33
 
33
 
34
 
34
 
35
 
35
 
36
        //String link0 = "href=\"" + request.getContextPath() + Globals.SYSTEM_PUBLIC_URL + "\"";
36
        //String link0 = "href=\"" + request.getContextPath() + Globals.SYSTEM_PUBLIC_URL + "\"";
37
        String link1 = "href=\"" + request.getContextPath() + "/user/homePae.do\"";
37
        String link1 = "href=\"" + request.getContextPath() + "/user/homePae.do\"";
38
        /*String link2 = "href=\"" + request.getContextPath() + "/user/startCourseUnits.do\"";
38
        /*String link2 = "href=\"" + request.getContextPath() + "/user/startCourseUnits.do\"";
39
        String link3 = "href=\"" + request.getContextPath() + "/user/startProfile.do\"";
39
        String link3 = "href=\"" + request.getContextPath() + "/user/startProfile.do\"";
40
        String link4 = "href=\"" + request.getContextPath() + "/user/startServiceZone.do\"";
40
        String link4 = "href=\"" + request.getContextPath() + "/user/startServiceZone.do\"";
41
        String link5 = "href=\"" + request.getContextPath() + "/proxy/layoutIOnline/ionline/\"";
41
        String link5 = "href=\"" + request.getContextPath() + "/proxy/layoutIOnline/ionline/\"";
42
        String link6 = "href=\"" + request.getContextPath() + "/dir/utilsIntranet/utils/intranet/escola/utils.html\"";
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\"";
43
        String link7 = "href=\"" + request.getContextPath() + "/proxy/layoutIntranetContacts/estgp/intranet/contactos/servicos.html\"";
44
        String link8 = "href=\"" + request.getContextPath() + "/user/loapPageSeparatorDocuments.do?pageCode=documents\"";*/
44
        String link8 = "href=\"" + request.getContextPath() + "/user/loapPageSeparatorDocuments.do?pageCode=documents\"";*/
45
 
45
 
46
        /*if(sep == 0)
46
        /*if(sep == 0)
47
        {
47
        {
48
            sep0 ="class=\"active\"";
48
            sep0 ="class=\"active\"";
49
           // link0 = "";
49
           // link0 = "";
50
        }
50
        }
51
        else*/ if(sep == 1)
51
        else*/ if(sep == 1)
52
        {
52
        {
53
            sep1 ="class=\"active\"";
53
            sep1 ="class=\"active\"";
54
          //  link1 = "";
54
          //  link1 = "";
55
        }
55
        }
56
        /*else if(sep == 2)
56
        /*else if(sep == 2)
57
        {
57
        {
58
            sep2 ="class=\"active\"";
58
            sep2 ="class=\"active\"";
59
            //   link2 = "";
59
            //   link2 = "";
60
        }
60
        }
61
        else if(sep == 3)
61
        else if(sep == 3)
62
        {
62
        {
63
           //    link3 = "";
63
           //    link3 = "";
64
            sep3 ="class=\"active\"";
64
            sep3 ="class=\"active\"";
65
        }
65
        }
66
        else if(sep == 4)
66
        else if(sep == 4)
67
        {
67
        {
68
            //   link4 = "";
68
            //   link4 = "";
69
            sep4 ="class=\"active\"";
69
            sep4 ="class=\"active\"";
70
        }
70
        }
71
        else if(sep == 5)
71
        else if(sep == 5)
72
        {
72
        {
73
               link5 = "";
73
               link5 = "";
74
            sep5 ="class=\"active\"";
74
            sep5 ="class=\"active\"";
75
        }
75
        }
76
        else if(sep == 6)
76
        else if(sep == 6)
77
        {
77
        {
78
             //  link6 = "";
78
             //  link6 = "";
79
            sep6 ="class=\"active\"";
79
            sep6 ="class=\"active\"";
80
        }
80
        }
81
        else if(sep == 7)
81
        else if(sep == 7)
82
        {
82
        {
83
             //  link7 = "";
83
             //  link7 = "";
84
            sep7 ="class=\"active\"";
84
            sep7 ="class=\"active\"";
85
        }
85
        }
86
        else if(sep == 8)
86
        else if(sep == 8)
87
        {
87
        {
88
            //  link8 = "";
88
            //  link8 = "";
89
            sep8 ="class=\"active\"";
89
            sep8 ="class=\"active\"";
90
        }*/
90
        }*/
91
 
91
 
92
 
92
 
93
 
93
 
94
    %>
94
    %>
95
    <nav class="navbar navbar-default" style="margin-bottom: 0px">
95
    <nav class="navbar navbar-default" style="margin-bottom: 0px">
96
        <div class="container-fluid">
96
        <div class="container-fluid">
97
            <div class="navbar-header">
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">
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>
99
                    <span class="sr-only">Toggle navigation</span>
100
                    <span class="icon-bar"></span>
100
                    <span class="icon-bar"></span>
101
                    <span class="icon-bar"></span>
101
                    <span class="icon-bar"></span>
102
                    <span class="icon-bar"></span>
102
                    <span class="icon-bar"></span>
103
                </button>
103
                </button>
104
                <a class="navbar-brand" href="#"> PAE v1</a>
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>
105
            </div>
110
            </div>
106
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
111
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
107
                <ul class="nav navbar-nav">
112
                <ul class="nav navbar-nav">
108
                    <%--<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>--%>
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>--%>
109
                    <li <%=sep1%>><a <%=link1%>><span class="glyphicon glyphicon-home"></span> <bean:message key="intranet.separator.home"/></a></li>
114
                    <li <%=sep1%>><a <%=link1%>><span class="glyphicon glyphicon-home"></span> <bean:message key="intranet.separator.home"/></a></li>
110
                    <%--<li <%=sep3%>><a <%=link3%>><span class="glyphicon glyphicon-user"></span> <bean:message key="intranet.separator.profile"/></a></li>
115
                    <%--<li <%=sep3%>><a <%=link3%>><span class="glyphicon glyphicon-user"></span> <bean:message key="intranet.separator.profile"/></a></li>
111
                    <baco:hasNotRole role="student,invited">
116
                    <baco:hasNotRole role="student,invited">
112
                    <li <%=sep4%>><a <%=link4%>><span class="glyphicon glyphicon-wrench"></span> <bean:message key="intranet.separator.service.zone"/></a></li>
117
                    <li <%=sep4%>><a <%=link4%>><span class="glyphicon glyphicon-wrench"></span> <bean:message key="intranet.separator.service.zone"/></a></li>
113
                    </baco:hasNotRole>
118
                    </baco:hasNotRole>
114
                    <li <%=sep5%>><a <%=link5%>><span class="glyphicon glyphicon-folder-open"></span> <bean:message key="intranet.separator.ionline"/></a></li>
119
                    <li <%=sep5%>><a <%=link5%>><span class="glyphicon glyphicon-folder-open"></span> <bean:message key="intranet.separator.ionline"/></a></li>
115
                    <li <%=sep7%>><a <%=link7%>><span class="glyphicon glyphicon-list-alt"></span> <bean:message key="intranet.separator.contacts"/></a></li>
120
                    <li <%=sep7%>><a <%=link7%>><span class="glyphicon glyphicon-list-alt"></span> <bean:message key="intranet.separator.contacts"/></a></li>
116
                    <li <%=sep6%>><a <%=link6%>><span class="glyphicon glyphicon-random"></span> <bean:message key="intranet.separator.utils"/></a></li>
121
                    <li <%=sep6%>><a <%=link6%>><span class="glyphicon glyphicon-random"></span> <bean:message key="intranet.separator.utils"/></a></li>
117
                    <li <%=sep8%>><a <%=link8%>><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>--%>
118
                </ul>
123
                </ul>
119
 
124
 
120
 
125
 
121
                <ul class="nav navbar-nav navbar-right">
126
                <ul class="nav navbar-nav navbar-right">
122
                    <baco:isAdmin>
127
                    <baco:isAdmin>
123
                        <li>
128
                        <li>
124
                            <html:link action="/user/startHome">
129
                            <html:link action="/user/startHome">
125
                                <span class="glyphicon glyphicon-log-out"></span> MODO BACO
130
                                <span class="glyphicon glyphicon-log-out"></span> MODO BACO
126
                            </html:link>
131
                            </html:link>
127
                        </li>
132
                        </li>
128
                    </baco:isAdmin>
133
                    </baco:isAdmin>
129
                    <li>
134
                    <li>
130
                        <a href="<%=request.getContextPath()%><%=Globals.SYSTEM_REDIRECTIONS_POLICY_AUTHENTICATION_LOGOUT_ACTION%>">
135
                        <a href="<%=request.getContextPath()%><%=Globals.SYSTEM_REDIRECTIONS_POLICY_AUTHENTICATION_LOGOUT_ACTION%>">
131
                            <span class="glyphicon glyphicon-log-out"></span> <bean:message key="logout"/>
136
                            <span class="glyphicon glyphicon-log-out"></span> <bean:message key="logout"/>
132
                        </a>
137
                        </a>
133
                    </li>
138
                    </li>
134
 
139
 
135
                </ul>
140
                </ul>
136
            </div>
141
            </div>
137
 
142
 
138
        </div>
143
        </div>
139
    </nav>
144
    </nav>