📄 listback.jsp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=gb2312"%>
<%@page import="java.util.*,java.text.*"%>
<%
com.util.DealString ds = new com.util.DealString();
com.db.CommonBean myBean = new com.db.CommonBean();
String id = ds.toString(request.getParameter("id")) ;
String backid = ds.toString(request.getParameter("backid")) ;
String title = ds.toGBK(request.getParameter("title")) ;
//删除
if(!backid.equals(""))myBean.getDataBySql("delete from kjc_back where id="+backid);
Vector vect = myBean.getDataBySql("select a.*,b.name from kjc_back a,kjc_people b where a.backer=b.id and a.objectid="+id+" order by backtime desc");
Vector vect2 = myBean.getDataBySql("select froms from kjc_publish where id="+id);
String froms = (String)((Hashtable)vect2.get(0)).get("froms");
myBean.closeConn ( ) ;
%>
<html>
<head>
<link rel=stylesheet href="../index.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>通知栏</title>
</head>
<body>
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="40"> </td>
<td width="910"><table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" class="title_s"> 您已登陆: <%=ds.toString((String)session.getAttribute("NAME"))%> </td>
</tr>
<tr>
<td height="5" bgcolor="#A3BED9"></td>
</tr>
<tr>
<td height="1" bgcolor="#0A1870"></td>
</tr>
</table></td>
<td width="50"> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="40"> </td>
<td width="910">
<table class="main_w" width="100%" border="1" cellpadding="4" cellspacing="0" bordercolor="FFFFFF" bgcolor="E7F2FF">
<tr bgcolor="#FFFFFF" class="title_s">
<td height="20" colspan="6"><div align="center">当前通知标题:<%=title%>
</div> <div align="center"></div></td>
</tr>
<tr>
<td width="25" align=center>序号</td>
<td width="80" height="20" align=center>回复人</td>
<td width="*" height="20" align=center>回复内容</td>
<td width="80" height="20" align=center>回复日期</td>
<td width="60" height="20" align=center>状态</td>
<td width="60" height="20" align=center>操作</td>
</tr>
<%
String uid = ds.toString((String)session.getAttribute("ID"));
for(int i=0;i<vect.size();i++){
Hashtable hash = (Hashtable)vect.get(i);
backid = (String)hash.get("id");
String ifread = ds.toString((String)hash.get("ifread"));
String backer = ds.toString((String)hash.get("backer"));
String backs = (String)hash.get("backs");
//状态
String status = "";
if(!backs.equals(""))status = "<font color=#FF9933>已回</font>" ;
else if(ifread.equals("1"))status = "<font color=#669933>已读</font>" ;
else status = "<font color=red>未读</font>" ;
%>
<tr>
<td height="20" align=center><%=(i+1)%></td>
<td height="20" align=center><%=(String)hash.get("name")%></td>
<td height="20"><%=backs%> </td>
<td height="20" align=center><%=(String)hash.get("backtime")%> </td>
<td height="20" align=center><%=status%> </td>
<td height="20" align=center><%if(froms.equals(uid)){%><a href="listback.jsp?id=<%=id%>&backid=<%=backid%>&title=<%=title%>">删除</a><%}else{%> <%}%></a></td>
</tr>
<%
}
%>
</table></td>
<td width="50"> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -