📄 manager.jsp
字号:
<%@ page contentType="text/html; charset=GBK" language="java" import="java.sql.*" errorPage="" %>
<%@page import="bean.User;"%>
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
%>
<%User user=new User();
user=(User)session.getAttribute("user");
if(user.getUsername().equals("")||user.getPassword().equals("")){
response.sendRedirect("error.jsp");
}
%>
<html>
<head>
<title>管理员首页</title>
<style type="text/css">
<!--
a:link {
text-decoration: none;
color: #000000;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
color: #FF0000;
}
a {
font-size: 10pt;
color: #FF0000;
}
body,td,th {
font-size: 10pt;
}
-->
</style>
<script language="javaScript">
function logout(){
window.location.href="http://localhost:8080/Manager/exit.jsp";
}
function tiaozhuan(){
window.location.href="http://localhost:8080/Manager/ChangePwd.jsp";
}
</script>
<script language="javaScript">
</script>
</head>
<body>
<table width="1320" height="479" border="1">
<tr>
<td height="17" colspan="2"> </td>
</tr>
<tr>
<td height="66" ><div class=title>身份:管理员
</div></td>
<td> </td>
</tr>
<tr>
<td width="175"> <div class=title align=center>商品管理</div>
<ul>
<li><a href="" target=_parent
name=addCategory>添加商品分类</a> </li>
<li><a href="/AddProduct.jsp" target=_parent
name=addProduct>添加新商品</a></li>
<li><a href="Manager/GoodsInquire?goodsname=all" target=_parent
name=changeproduct>修改商品信息</a></li>
<li><a href="/DelProduct.jsp" target=_parent
name=delproduct>删除商品</a></li>
</ul>
<div class=title align=center>用户管理</div>
<ul>
<li><a href="Manager/UserSearch?username=all" target="_parent"
name=queryuser>查询用户信息</a></li>
<li><a href="Manager/Delete" target="_parent"
name=deluser>删除用户</a>
</li>
</ul>
<div class=title align=center>订单管理</div>
<ul>
<li><a href="/CheckOrder.jsp" target=_parent
name=mypostreview>查看订单</a></li>
<li><a href="/DealOrder.jsp" target=_parent
name=mypostreview>处理订单</a></li></ul>
<div class=title align=center><input type="button" name="changepwd" value="修改密码" size=10 onClick="tiaozhuan()"/>
<input type="button" name="quit" value="退出登陆" onclick="logout()" ></div></td>
<td width="1637"> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -