You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
1.9 KiB

2 years ago
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" isELIgnored="false"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<script type="text/javascript">
var _menus="<%=request.getSession().getAttribute("user") == null? "": request.getSession().getAttribute("user")%>";
if(_menus=='')
{
window.open('<%=basePath%>admin/login.jsp', '_self');
}
function modifypwd() {
window.open('users/modifypwd.jsp');
}
function tuichu() {
$.ajax({
url : "../UsersServlet?method=tuichu",
type : "POST",
async : false,
dataType : 'json',
data : {
},
contentType : "application/x-www-form-urlencoded;charset=UTF-8",
success : function(data) {
window.open('../home/index.jsp', '_self');
}
});
}
</script>
<!-- 页面头部 -->
<header class="main-header">
<!-- Logo -->
<a href="all-admin-index.html" class="logo"> <!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>社团</b></span> <!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>社团</b>后台管理</span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas"
role="button"> <span class="sr-only">Toggle navigation</span>
</a>
<div class="navbar-custom-menu">
<table style="width:300px;color:white;height:60px;">
<tr>
<td>欢迎您:<%
out.println(session.getAttribute("username"));
%>
</td>
<td><span><a style="color:white;" target="right"
href="users/modifypwd.jsp">修改密码</a></span></td>
<td><a href="javascript:void(0)" style="color:white;" onclick="tuichu()">退出</a></td>
</tr>
</table>
</ul>
</div>
</nav>
</header>
<!-- 页面头部 /-->