📄 mresend.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<jsp:useBean id="con" scope="page" class="numb1.com.db"/>
<jsp:useBean id="ht" scope="page" class="numb1.com.Dohtml"/>
<%
String id=(String)session.getAttribute("id");id=ht.donull(id);
String editid=request.getParameter("id");
String toid;
String title;
String txt;
if(!ht.isNumber(editid) || id.compareTo("")==0){
out.print("<meta http-equiv=\"refresh\" content=\"3;URL=../index.jsp\"><br><br><center><font color=#FF0000><strong>参数错误!</strong></font></center>");
}else{
String sql="select toid,title,txt from massage where id="+editid+" and frid='"+id+"' and isread=0";
ResultSet rs=con.query(sql);rs.next();
if(rs.getRow()==0){
out.print("<meta http-equiv=\"refresh\" content=\"3;URL=../index.jsp\"><br><br><center><font color=#FF0000>你无权编辑该留言</font></center>");
}else{
toid=rs.getString(1);
title=con.getStr(rs.getString(2));
txt=con.getStr(rs.getString(3));
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>发送短消息</title>
<style type="text/css">
<!--
.style2 {color: #FFFFFF}
td{font-size:13px;color:#868686}
th{font-size:15px}
-->
</style>
</head>
<body><br>
<br>
<%
String acid=request.getParameter("id");
%><form name="form1" method="post" action="actresend.jsp">
<table width="480" border="0" align="center" cellspacing="1" bgcolor="#cccccc">
<tr bgcolor="#7188e0">
<th colspan="2"><span class="style2">发 送 留 言</span></th>
</tr>
<tr bgcolor="#f8f8f8">
<td width="79"><div align="right">收信人ID:</div></td>
<td width="364"><%=toid%>
<input name="id" type="hidden" id="id" value="<%=editid%>">
<input name="toid" type="hidden" id="toid" value="<%=toid%>"></td>
</tr>
<tr bgcolor="#f8f8f8">
<td><div align="right">留言主题:</div></td>
<td> <input name="title" type="text" id="title" style="BORDER: #aaaaaa 1px solid;color:#686868;" value="<%=title%>" size="30">
</td>
</tr>
<tr bgcolor="#f8f8f8">
<td><div align="right">留言内容:<br>
≤100汉字 </div></td>
<td> <textarea name="text" cols="45" rows="5" id="text" style="BORDER: #aaaaaa 1px solid; background:#f8f8f8; color:#686868; overflow:auto;"><%=txt%></textarea></td>
</tr>
<tr bgcolor="#f8f8f8">
<th colspan="2"> <input name="imageField" type="image" src="../img/next1.gif" onMouseOver="this.src='../img/next2.gif'" onMouseout="this.src='../img/next1.gif'" width="60" height="22" border="0"> <a href="javascript:history.back()"><img src="../img/back1.gif" width="60" height="22" border="0" onMouseOver="this.src='../img/back2.gif'" onMouseout="this.src='../img/back1.gif'"></a></th>
</tr>
</table>
</form>
</body>
</html>
<%
}
}
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -