-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccount.jsp
58 lines (58 loc) · 2.13 KB
/
account.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
<html>
<head>
<title>Main page</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/newFB.css">
<link href='https://fonts.googleapis.com/css?family=Roboto:400,500,700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Amatica+SC:400,700' rel='stylesheet' type='text/css'>
</head>
</head>
<body>
<%
if(session.getAttribute("user")== null){
response.setStatus(response.SC_MOVED_TEMPORARILY);
response.setHeader("Location", "login.jsp");
}
%>
<div class="navbar navbar-blue navbar-static-top">
<div id="navi">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="/" class="navbar-brand logo">SB</a>
<a class="navbar-brand" id="Brandname" href="index.jsp">ShareBoard</a>
</div>
<nav class="collapse navbar-collapse" role="navigation">
<ul class="nav navbar-nav navbar-right">
<li><a href="account.jsp"><span class="glyphicon glyphicon-user"></span> Account</a></li>
<li><a href="settings.jsp"><span class="glyphicon glyphicon-cog"></span> Settings</a></li>
<li><a href="logout.jsp"><span class="glyphicon glyphicon-off"></span> Logout</a></li>
</ul>
</nav>
</div>
</div>
<div id="accinfo">
</div>
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$.ajax({
type : "POST",
url : "getUser.jsp",
data : "page=account",
success : function(data) {
$("#accinfo").html(data);
}
});
});
</script>
</body>
</html>