recbin.jsp

来自「采用j2ee架构做的bbs」· JSP 代码 · 共 80 行

JSP
80 行
字号
<%@ page contentType="text/html;charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<script language=JavaScript>
  function   selectUrl()   
  {   
    var   aUrl=document.getElementsByName("checkbox");   
    for(icount=0;icount<aUrl.length;icount++)   
        {aUrl[icount].checked=(document.getElementById("selchk").checked==true)?true:false;}   
  }   
  </script>
<%@include file="conn.jsp" %>
<%
String sql1="select * from icefish_msg where msg_from = 'longlong'and msg_belong='false'"+"order by msg_new<>true";
Statement stmt1=conn.createStatement();
ResultSet rs1=stmt1.executeQuery(sql1);
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>废件箱</title>
<style type="text/css">
<!--
a:hover.xh{text-decoration:underline}a.zh{text-decoration:none;color:#000000}a:hover.zh{text-decoration:underline;color:blue}
.STYLE10 {font-weight: bold; font-size: 12px; }
.STYLE12 {font-weight: bold; font-size: 12px; color: #FFFFFF; }
.STYLE14 {font-size: 12px}
.STYLE18 {font-size: 12px;}
.STYLE19 {font-family: Arial, Helvetica, sans-serif}
-->
</style>
</head>
<body>
	<form>
<table  width="778" border="1" align="center" bordercolorlight="#7777FF" bordercolordark="#7777FF" style="border-collapse:collapse">
<tr>
<td height="25" colspan="4" background="images/skin/1/bg_td.gif"align="left"><span class="STYLE12">-=>废件箱</span></td>
	 <td align="right"background="images/skin/1/bg_td.gif"><a href="message.jsp"class=zh><span class="STYLE12">-=><span class="STYLE25 STYLE19">Message</span></span></a></td>
</tr>
<td width="42" height="25" bgcolor="#EBEBEB" ><center><span class="STYLE10">状态</span></center></td>
	<td width="157" height="25" bgcolor="#EBEBEB" align="center"><span class="STYLE10">收件人</span></td>
		<td width="295" height="25" bgcolor="#EBEBEB" align="center"><span class="STYLE10">主题</span></td>
		<td width="147" height="25" bgcolor="#EBEBEB" align="center"><span class="STYLE10">日期</span></td>
<td width="103" height="25" bgcolor="#EBEBEB" align="center"><span class="STYLE10">选择</span></td>
</tr>
	<%while(rs1.next()){
			String msg_id=rs1.getString("msg_id");
			Boolean msg_new=rs1.getBoolean("msg_new");
%>
<tr>
<td width="42" height="25" align="center">
	<%if (msg_new==true){%>
	<img src="images/button/folder.gif" width="18" height="12">
<%	}
else{%>
		<img src="images/button/olds.gif" width="21" height="14">
<%	}
	%>
	
	</td>
	<td width="157" height="25" align="center"><span class="STYLE14"><%=rs1.getString("msg_from")%></span></td>
		<td width="295" height="25" >&nbsp;<a class=zh href="receivemsg.jsp?msg_id=<%=rs1.getString("msg_id")%>"><span class="STYLE14"><%=rs1.getString("msg_topic")%></span></a></td>
		<td width="147" height="25" align="center"><span class="STYLE14"><%=rs1.getString("msg_time")%></span></td>
<td width="103" height="25" align="center"><input type= checkbox  name= checkbox   value=checkbox></td>
</tr>
	<%}
		rs1.close();
		stmt1.close();
		conn.close();
		%>
<tr>
  <td height="25" colspan="6" align="right" bgcolor="#EBEBEB" class="STYLE18">节省每一份空间,请及时清理无用信息.
<input type=checkbox onClick="selectUrl()" id=selchk>
	全选/反选
    <input type="submit" name="Submit" value="删除选中信息">
    <input type="submit" name="Submit" value="清空废件箱">
  </td>
 </tr>
</table>
</form>

</body>
</html>

⌨️ 快捷键说明

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