📄 write.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="com.tiandinet.HiMessage.Conf" %>
<%@ page import="com.tiandinet.HiMessage.Msg" %>
<%@ page import="java.text.DateFormat" %>
<%
Msg replyMsg = (Msg)request.getAttribute("replyMsg");
String writeTitle = "留言";
String reply = "";
if (replyMsg != null) {
writeTitle = "回复";
reply += "<table width=\"80%\" border=\"0\" cellspacing=\"5\" cellpadding=\"5\" align=\"center\">";
reply += " <tr>";
reply += " <tr>";
reply += " <td bgcolor=\"#F1F1F1\" align=\"left\"><input name=\"reId\" type=\"hidden\" id=\"reId\" value=\"" + replyMsg.getMsgId() + "\" />";
reply += "最初由 <strong>" + replyMsg.getName() + "</strong> 发表于 <strong>" + DateFormat.getDateTimeInstance().format(replyMsg.getPostTime()) + "</strong><br /><br />";
reply += replyMsg.getContent();
reply += " </td>";
reply += "</table>";
}
Conf conf = (Conf)request.getAttribute("conf");
String headimaSelect = (String)request.getAttribute("headimaSelect");
String indexServletURL = response.encodeURL("IndexServlet");
%>
<!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><%=writeTitle%> - <%=conf.getTitle()%></title>
<script language="javascript">
function changeHeadima(fileName)
{
if (fileName != "NONE")
{
var imaSpan = document.getElementById("headimaSpan");
imaSpan.innerHTML = "<img src=\"images/headimas/" + fileName + "\" border=\"0\" />";
}
return;
}
</script>
<link href="css_js/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a name="top" />
<div id="mainDiv">
<div id="titleDiv">
<div id="titleImageDiv">
<img src="images/title.gif" border="0" width="234" height="88" />
</div>
<div id="poweredByDiv"><br /><img src="images/tiandinet.com.gif" border="0" width="140" height="65" /></div>
</div>
<div id="navBarDiv"><a href="<%=indexServletURL%>">Back</a> </div>
<div id="messagesDiv">
<form action="WriteServlet" method="post" enctype="multipart/form-data" name="form1" id="form1">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle"><table width="60%" border="0" align="center" cellpadding="10" cellspacing="5">
<tr>
<td align="left" colspan="2"> </td>
</tr>
<tr>
<td align="left" colspan="2"> <strong><%=writeTitle%></strong></td>
</tr>
<%
if (!reply.equals("")) {
%>
<tr>
<td align="center" colspan="2">
<%=reply%>
</td>
</tr>
<%
}
%>
<tr>
<td align="right"> </td>
<td> </td>
</tr>
<tr>
<td width="25%" align="right">姓名 </td>
<td width="75%" align="left"><input name="name" type="text" id="name" maxlength="20" /></td>
</tr>
<tr>
<td width="25%" align="right">头象 </td>
<td width="75%" align="left"><!-- input name="headima" type="text" id="headima" maxlength="20" / --><%=headimaSelect%> <span id="headimaSpan" /></td>
</tr>
<tr>
<td width="25%" align="right">QQ </td>
<td width="75%" align="left"><input name="qq" type="text" id="qq" maxlength="20" /></td>
</tr>
<tr>
<td width="25%" align="right">MSN </td>
<td width="75%" align="left"><input name="msn" type="text" id="msn" maxlength="50" /></td>
</tr>
<tr>
<td width="25%" align="right">Email </td>
<td width="75%" align="left"><input name="email" type="text" id="email" maxlength="50" /></td>
</tr>
<tr>
<td width="25%" align="right" valign="top">留言 </td>
<td width="75%" align="left" valign="top"><textarea name="content" cols="35" rows="8" id="content"></textarea></td>
</tr>
<tr>
<td width="25%" align="right">图片 </td>
<td width="75%" align="left"><input name="pic" type="file" id="pic" /></td>
</tr>
<tr>
<td width="25%"> </td>
<td width="75%" align="right"><input type="submit" name="Submit" /></td>
</tr>
</table></td>
</tr>
</table>
</form>
</div>
<div id="bottomNavBarDiv"> </div>
<div id="copyrightDiv">
<div id="copyrightFontDiv"> © Since 2003 <a href="http://www.tiandinet.com" target="_blank">天地网络</a> All Rights Reserved <strong>Powered</strong> by <a href="mailto:tiandinet_support@hotmail.com">Tiandi</a></div>
<div id="hibernateLog"><a href="http://www.hibernate.org" target="_blank"><img src="images/hibernate.gif" border="0" width="226" height="40" /></a></div>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -