📄 commen.jsp
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@ page language="java" import="java.util.*,popten.web.*,popten.util.*" %>
<%@ page errorPage="error.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>POPTEN</title>
<link rel="stylesheet" type="text/css" href="../style/style.css">
</head>
<body>
<%if(request.getParameter("act")!=null && request.getParameter("act").equals("del")){
Commen.delCommen(request.getParameter("commen_id"));%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="80%">
<tr>
<td width="100%" align="center"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="560" bgcolor="#f2f8ff">
<tr>
<td width="15" class="td4">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<th width="525" class="td5">
<img border="0" src="../img/null.gif" width="2" height="2">系统信息</th>
<td width="20" class="td6">
<img border="0" src="../img/jiao3.gif" width="20" height="20"></td>
</tr>
<tr>
<td width="100%" colspan="3" class="td7" align="center"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width=98%>
<tr>
<td width="100%"><b>详细信息:</b><br>□评论删除成功!</td>
</tr>
<tr>
<td width="100%" align="center"><br><br><a href="commen.jsp"><img border="0" src="../img/button-back.gif" name="Submit"></a><br></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="15">
<img border="0" src="../img/jao5.gif" width="15" height="15"></td>
<td width="525" class="td8">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<td width="20" class="td9">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
</tr>
</table></td>
</tr>
</table>
<%}
else{%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="100%">
<tr>
<td width="100%" align="center">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="560" bgcolor="#f2f8ff">
<tr>
<td width="15" class="td4">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<th width="525" class="td5">
<img border="0" src="../img/null.gif" width="2" height="2">访客文章评论</th>
<td width="20" class="td6">
<img border="0" src="../img/jiao3.gif" width="20" height="20"></td>
</tr>
<tr>
<td width="100%" colspan="3" class="td7" valign="top" align="center">
<%GetSession sess001 = new GetSession();
Admin user001 = sess001.getAdminSession(session);
int clas=Integer.parseInt(user001.getclas());
Commen comment=new Commen();
Vector comments=comment.loadCommen();
if(comments.size()>0){
for(int i=0;i<comments.size();i++){
Commen commen=(Commen)comments.elementAt(i);
%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="98%">
<tr>
<td width="100%" onmouseover="this.bgColor='#deeeff';" onmouseout="this.bgColor='#f2f8ff';"><a href="news.jsp?news_id=<%=commen.getnews_id()%>"><%=commen.getnews_title()%></a><br><%=commen.getcommen_content()%><br><br> <%=commen.getcommen_date()%> <%if(clas<2 && clas>0){%><a href="commen.jsp?act=del&commen_id=<%=commen.getcommen_id()%>">删除</a><%}%><br><hr noshade color="#BEDEFF" width="98%" size="1"></td>
</tr>
</table>
<%}}
else{out.print("没有任何评论");}%>
</td>
</tr>
<tr>
<td width="15">
<img border="0" src="../img/jao5.gif" width="15" height="15"></td>
<td width="525" class="td8">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
<td width="20" class="td9">
<img border="0" src="../img/null.gif" width="2" height="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<%}%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -