-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavbar.jsp
81 lines (66 loc) · 4.02 KB
/
navbar.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<%--
Document : navbar.jsp
Created on : Apr 26, 2020, 5:39:16 PM
Author : Kavishka Wijesekera
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="bootstrap.html"/>
<link rel="stylesheet" type="text/css" href="css/dropdown.css">
<link href="css/navbar.css" rel="stylesheet">
<link href="assets/css/font-awesome.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="unitocar/index.jsp">
<img src="img/home.jpg" style="height:43px; width: 43px;">
<!--
<!--<p style="padding-right:80px;padding-bottom:100px;">SUIC</p>-->
</a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<% try {
String UN = request.getSession().getAttribute("setus").toString();
if (UN.equals("1")) {
%>
<li><a href="Unistudent.jsp" style="background-color: #269abc "><span class="glyphicon glyphicon-user"></span> <%out.print(request.getSession().getAttribute("uname"));%></a></li>
<li><a href="categorySignup.jsp" style="background-color: #449d44 "><span class="glyphicon glyphicon-edit"></span> New Sign-up  </a></li>
<li><a href="logout.jsp" style="background-color: #F05F40 "><span class="glyphicon glyphicon-off"></span> LogOut</a></li>
<% } else if (UN.equals("0")) { %>
<li><a href="categoryLogin.jsp" style="background-color: #00a3cc "><span class="glyphicon glyphicon-user"></span> Login</a></li>
<li><a href="categorySignup.jsp" style="background-color: #0066cc "><span class="glyphicon glyphicon-edit"></span> Sign-up</a></li>
<% } else if (UN.equals("2")){ %>
<li><a href="industrylogin.jsp" style="background-color: #269abc "><span class="glyphicon glyphicon-user"></span> <%out.print(request.getSession().getAttribute("uname"));%></a></li>
<li><a href="categorySignup.jsp" style="background-color: #449d44 "><span class="glyphicon glyphicon-edit"></span> New Sign-up  </a></li>
<li><a href="logout.jsp" style="background-color: #F05F40 "><span class="glyphicon glyphicon-off"></span> LogOut</a></li>
<% } %>
<% }
catch (Exception e) { %>
<li><a href="categoryLogin.jsp" style="background-color: #00a3cc "><span class="glyphicon glyphicon-user"></span> Login</a></li>
<li><a href="categorySignup.jsp" style="background-color: #0066cc "><span class="glyphicon glyphicon-edit"></span> Sign-up</a></li>
<% }%>
</ul>
</div>
</div>
</nav>
<script type="text/javascript">
$(".navbar-toggle").click(function (event) {
$(".navbar-collapse").toggle('in');
});
</script>
</body>
</body>
</html>