余湘云 #2

Merged
p4fmevgyr merged 12 commits from pzkue6pt2/XYSH:master into master 2 years ago

@ -0,0 +1,64 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>receive.jsp</title>
<link href="css/common.css" type="text/css" rel="stylesheet">
<style type="text/css">
table{
text-align: center;
border-collapse: collapse;
}
.bgcolor{
background-color: #F08080;
}
</style>
<script type="text/javascript">
function changeColor(obj){
obj.className = "bgcolor";
}
function changeColor1(obj){
obj.className = "";
}
function confirmDelete(id){
if(window.confirm("真的删除吗really?")){
window.location.href = "/emailSys01/admin/delete?id=" + id;
}
}
</script>
</head>
<body>
<c:if test="${allEmails.size() == 0 }">
您还没有邮件可管理。
</c:if>
<c:if test="${allEmails.size() != 0 }">
<table border="1" bordercolor="PaleGreen">
<tr>
<td width="100px">收件人</td>
<td width="200px">发件人</td>
<td width="300px">主题</td>
<td width="100px">时间</td>
<td width="100px">操作</td>
</tr>
<c:forEach items="${allEmails }" var="email">
<tr onmousemove="changeColor(this)" onmouseout="changeColor1(this)">
<td>${email.email_r }</td>
<td>${email.email_s }</td>
<td>${email.title }</td>
<td>${email.sendtime }</td>
<td><a href="javaScript:confirmDelete('${email.id_email }')">删除</a></td>
</tr>
</c:forEach>
</table>
</c:if>
</body>
</html>

@ -0,0 +1,72 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>receive.jsp</title>
<link href="css/common.css" type="text/css" rel="stylesheet">
<style type="text/css">
table{
text-align: center;
border-collapse: collapse;
}
.bgcolor{
background-color: #F08080;
}
</style>
<script type="text/javascript">
function changeColor(obj){
obj.className = "bgcolor";
}
function changeColor1(obj){
obj.className = "";
}
function confirmLock(id){
if(window.confirm("真的锁定吗really?")){
window.location.href = "/emailSys01/admin/lock?id=" + id;
}
}
function confirmUnlock(id){
if(window.confirm("真的解锁吗really?")){
window.location.href = "/emailSys01/admin/unLock?id=" + id;
}
}
</script>
</head>
<body>
<c:if test="${allUsers.size() == 0 }">
您还没有用户可管理。
</c:if>
<c:if test="${allUsers.size() != 0 }">
<table border="1" bordercolor="PaleGreen">
<tr>
<td width="100px">用户ID</td>
<td width="200px">用户Email</td>
<td width="100px">操作</td>
</tr>
<c:forEach items="${allUsers }" var="u">
<tr onmousemove="changeColor(this)" onmouseout="changeColor1(this)">
<td>${u.id }</td>
<td>${u.bemail }</td>
<td>
<c:if test="${u.islock == 0 }">
<a href="javaScript:confirmLock('${u.id }')">锁定</a>
</c:if>
<c:if test="${u.islock == 1 }">
<a href="javaScript:confirmUnlock('${u.id }')">解锁</a>
</c:if>
</td>
</tr>
</c:forEach>
</table>
</c:if>
</body>
</html>

@ -0,0 +1,71 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后台登录</title>
<style type="text/css">
table{
text-align: center;
}
.textSize{
width: 120px;
height: 25px;
}
* {
margin: 0px;
padding: 0px;
}
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
margin: 10px 10px auto;
background-image: url(images/bb.jpg);
}
</style>
<script type="text/javascript">
//确定按钮
function gogo(){
document.forms[0].submit();
}
//取消按钮
function cancel(){
document.forms[0].action = "";
}
</script>
</head>
<body>
<form:form action="admin/login" modelAttribute="auser" method="post">
<table>
<tr>
<td colspan="2"><img src="images/login.gif"></td>
</tr>
<tr>
<td>姓名:</td>
<td>
<form:input path="aname" cssClass="textSize"/>
</td>
</tr>
<tr>
<td>密码:</td>
<td>
<form:password path="apwd" cssClass="textSize" maxlength="20"/>
</td>
</tr>
<tr>
<td colspan="2">
<input type="image" src="images/ok.gif" onclick="gogo()" >
<input type="image" src="images/cancel.gif" onclick="cancel()" >
</td>
</tr>
</table>
</form:form>
${msg }
</body>
</html>

@ -0,0 +1,127 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<title>后台主页面</title>
<style type="text/css">
* {
margin: 0px;
padding: 0px;
}
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
margin: 0px auto;
height: auto;
width: 800px;
border: 1px solid #006633;
}
#header {
height: 90px;
width: 800px;
background-image: url(images/bb.jpg);
margin: 0px 0px 3px 0px;
}
#header h1 {
text-align: center;
font-family: 华文彩云;
color: #000000;
font-size: 30px
}
#navigator {
height: 25px;
width: 800px;
font-size: 14px;
background-image: url(images/bb.jpg);
}
#navigator ul {
list-style-type: none;
}
#navigator li {
float: left;
position: relative;
}
#navigator li a {
color: #000000;
text-decoration: none;
padding-top: 4px;
display: block;
width: 98px;
height: 22px;
text-align: center;
background-color: PaleGreen;
margin-left: 2px;
}
#navigator li a:hover {
background-color: #006633;
color: #FFFFFF;
}
#navigator ul li ul {
visibility: hidden;
position: absolute;
}
#navigator ul li:hover ul,
#navigator ul a:hover ul{
visibility: visible;
}
#content {
height: auto;
width: 780px;
padding: 10px;
}
#content iframe {
height: 300px;
width: 780px;
}
#footer {
height: 30px;
width: 780px;
line-height: 2em;
text-align: center;
background-color: PaleGreen;
padding: 10px;
}
</style>
</head>
<body>
<div id="header">
<br>
<br>
<h1>欢迎${auser.aname}进入后台管理系统!</h1>
</div>
<div id="navigator">
<ul>
<li><a>邮件管理</a>
<ul>
<li><a href="admin/selectEmail" target="center">删除邮件</a></li>
</ul>
</li>
<li><a>用户管理</a>
<ul>
<li><a href="admin/selectUser" target="center">解锁用户</a></li>
</ul>
</li>
</ul>
</div>
<div id="content">
<iframe src="admin/selectEmail" name="center" frameborder="0"></iframe>
</div>
<div id="footer">Copyright ©清华大学出版社</div>
</body>
</html>
Loading…
Cancel
Save