⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 auditcomment.jsp

📁 使用JAVA语言实现新闻管理系统
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=GBK" %>
<%
long newsid = Long.parseLong(request.getParameter("newsid"));
String strPageNo=request.getParameter("pageNo");
int pageNo=1;
try{
	pageNo = Integer.parseInt(strPageNo);
}catch(Exception e){}
com.mycompany.news.service.NewsCommentService service = new com.mycompany.news.service.NewsCommentService();
com.mycompany.news.dto.News news = new com.mycompany.news.dto.News();
news.setNewsId(new Long(newsid));
java.util.List comments =service.listComment(news,pageNo,200);
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
	<link href="../css/common.css" rel="stylesheet" type="text/css"><meta http-equiv="Content-Type" content="text/html; charset=GBK"><title>审核评论</title></head><body><table>
	<%for(int i=0;i<comments.size();i++){
		com.mycompany.news.dto.NewsComment comment =(com.mycompany.news.dto.NewsComment)comments.get(i);
	%>
	<form name="frm<%=comment.getCommentId()%>" action="<%=request.getContextPath() %>/servlet/auditcomment">
		<input type="hidden" name="commentId" value="<%=comment.getCommentId() %>">
	<tr>
		<td>
		<%=comment.getCommentSubject() %> 
		<font color="blue"> 
		<%if(comment.getAuditStatus()==0)out.println("("+"未审核"+")"); %>
		<%if(comment.getAuditStatus()==1)out.println("('"+comment.getAuditPerson()+"'审核通过"+")"); %>
		<%if(comment.getAuditStatus()==-1)out.println("('"+comment.getAuditPerson()+"'审核不通过"+")"); %>
		</font>
		</td>
		<td><%=comment.getCommentPerson() %></td>
	</tr>		
	<tr>
		<td colspan="2">
		<textarea cols="90" rows="5" readonly="readonly"><%=comment.getCommentContent() %></textarea>
		</td>
	</tr>		
	<tr>
		<td colspan="2">
		<input type="radio" name="auditStatus" value="1" checked="checked">通过
		<input type="radio" name="auditStatus" value="-1">不通过
		<p>审核人<input type="text" name="auditPerson" value="">
		<input type="submit" name="b" value="提交">
		</td>
	</tr>		
	</form>
	<%} %>
</table></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -