📄 sendmessage.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="errorpage.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>sendmessage</title>
<link href="mycss.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
-->
</style>
</head>
<%
request.setCharacterEncoding("gb2312");
String toid="";
if (request.getParameter("fromid")!=null) toid=request.getParameter("fromid");
%>
<body>
<%
String id=(String)session.getAttribute("id");
if(id!=null){%>
<table width="626" height="320" border="1" align="left" bgcolor="#FFFFFF">
<tr>
<td height="23" colspan="2" bgcolor="#996666"><div align="center" class="STYLE4 STYLE1">快捷操作</div></td>
<td width="490" rowspan="10"><table width="439" height="276" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="507" height="211"><form id="form1" name="form1" method="post" action="sendmessage">
<table width="437" height="185" border="1" align="left" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td height="20" colspan="2" bgcolor="#996666"><span class="STYLE7 STYLE1">发送短消息:</span></td>
</tr>
<tr>
<td width="60" height="20"><p align="left">收信人:</p></td>
<td width="367"><input name="toid" type="text" id="toid" value="<%=toid%>" /></td>
</tr>
<tr>
<td height="22">标题:</td>
<td height="22"><input name="title" type="text" id="title" /></td>
</tr>
<tr>
<td height="90"><p align="left">内容:</p>
<p align="left">不得超过80字。</p></td>
<td height="90"><textarea name="message" cols="50" rows="5" id="message"></textarea></td>
</tr>
<tr>
<td height="31" colspan="2"><div align="center">
<input name="send" type="submit" id="send" value="发送" />
</div></td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td height="53"> </td>
</tr>
</table></td>
</tr>
<tr>
<td width="20" height="23"><div align="center"><img src="../pic/fileopen.png" width="16" height="14" /></div></td>
<td width="94" bgcolor="#ECE9D8"><div align="center"><a href="sendmessage.jsp" target="_self">发送消息</a></div></td>
</tr>
<tr>
<td height="23"><div align="center"><img src="../pic/file.gif" width="16" height="14" /></div></td>
<td><div align="center"><a href="serchmessage.jsp">搜索消息</a></div></td>
</tr>
<tr>
<td height="23"><div align="center"><img src="../pic/file.gif" width="16" height="14" /></div></td>
<td><div align="center"><a href="zhuyi.jsp">注意事项</a></div></td>
</tr>
<tr>
<td height="49" colspan="2"> </td>
</tr>
<tr>
<td height="23" colspan="2" bgcolor="#996666"><div align="center" class="STYLE4 STYLE1">消息箱</div></td>
</tr>
<tr>
<td height="23"><div align="center"><img src="../pic/file.gif" width="16" height="14" /></div></td>
<td><div align="center"><a href="sendbox.jsp">发件箱</a></div></td>
</tr>
<tr>
<td height="23"><div align="center"><img src="../pic/file.gif" width="16" height="14" /></div></td>
<td><div align="center"><a href="message.jsp" target="_self">收件箱</a></div></td>
</tr>
<tr>
<td height="23"><div align="center"><img src="../pic/file.gif" width="16" height="14" /></div></td>
<td><div align="center"><a href="friend.jsp">联系人</a></div></td>
</tr>
<tr>
<td height="37" colspan="2"> </td>
</tr>
</table>
<%
}
else
{
%>
<script language="JavaScript">
alert("出错!您还没登陆!点确定返回首页登陆部落....");
</script>
<meta HTTP-EQUIV=REFRESH CONTENT="0;URL=/xunibuluo/index.jsp"></meta>
<%
}
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -