📄 managemsg.jsp
字号:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@include file="./tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<script type="text/javascript" language="javascript">
function formSubmit(method,msgid){
document.forms[0].action = '${pageContext.request.contextPath}/MessageHandle?method=' + method + '&id=' + msgid ;
return true;
}
</script>
<body>
<form action="" method="post"><c:if test="${see =='yes'}">
<table align="center" border="1">
<tr>
<td>Title</td>
<td>Date</td>
<td>Replies</td>
<td>Operations</td>
</tr>
<c:forEach var="msg" items="${msgList}">
<tr>
<td>${msg.msgTitle }</td>
<td>${msg.msgDate }</td>
<td>${msg.msgReplies }</td>
<td><input type="submit" value="delete" name="d"
onclick="formSubmit('delete','${msg.msgID }')" /><input
type="submit" value="check" name="c"
onclick="formSubmit('check','${msg.msgID }')" /></td>
</tr>
</c:forEach>
</table>
</c:if> <!-- check messages --> <c:if test="${check == 'yes'}">
<table width="779" border="1" align="center" cellpadding="0"
cellspacing="0">
<tr>
<th width="96" height="24" scope="col">Name</th>
<th width="471" align="left" scope="col"> ${msg.msgTitle }</th>
<th width="204" align="left" scope="col"> ${msg.msgDate }</th>
</tr>
<tr>
<td height="81" align="center"> ${userName }</td>
<td colspan="2" valign="top"> ${msg.msgContent }</td>
</tr>
<c:forEach var="rep" items="${replyList}">
<tr>
<td height="96" rowspan="2"> ${userName}</td>
<td colspan="2"> ${rep.replyDate }</td>
</tr>
<tr>
<td height="79" colspan="2" valign="top"> ${rep.content }</td>
</tr>
</c:forEach>
</table>
</c:if></form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -