📄 reply.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<jsp:useBean id="con" scope="page" class="numb1.com.db"/>
<%
String id=(String)session.getAttribute("id");
String bdid=request.getParameter("bdid");
String bbsid=request.getParameter("bbsid");
String userid=request.getParameter("user");
String username="";
String table="";
String bdname="";
if(id==null){response.sendRedirect("login.jsp");}
String bdsql="select btable,name from board where id="+bdid;
ResultSet bd=con.query(bdsql);bd.next();
if(bd.getRow()!=0){
table=bd.getString(1);
bdname=con.getStr(bd.getString(2));
}
String sql="select name from user where userid='"+userid+"'";
ResultSet rs=con.query(sql);rs.next();
if(rs.getRow()!=0){
username=con.getStr(rs.getString(1));
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>回贴</title>
<script language="JavaScript" src="img/add.js"></script>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
td{font-size:13px;}
a:link{text-decoration:none;color:#0000ff}
a:visited{text-decoration:none;color:#0000ff}
a:hover{text-decoration:underline;color:#96CCFE}
body {
font-size:13px;
margin-top: 3px;
}
.style2 {color: #0000FF}
-->
</style>
</head>
<body>
<form name="form1" method="post" action="action/actreply.jsp" onSubmit="return check_form(this)">
<table width="750" border="0" align="center">
<tr>
<td height="8"></td>
</tr>
<tr>
<td><table width="660" border="0" align="center">
<tr>
<td><div align="right" style="font-size:12px "> [<a href="index.html" target="_parent">论坛首页</a>]
<% out.print(" [<a href=main.jsp?id="+bdid+"><font color=#FF0000>"+bdname+"</font></a>]");%>
[<font color="#FF0000">回贴</font>] </div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="88"> </td>
</tr>
<tr>
<td><table width="660" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#7188e0" style="BORDER-BOTTOM: #7188e0 1px solid; BORDER-LEFT: #7188e0 1px solid; BORDER-RIGHT: #7188e0 1px solid; BORDER-TOP: #7188e0 1px solid">
<tr bgcolor="#FFFFFF">
<td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<th bgcolor="#7188e0"><span class="style1">回 贴</span></th>
</tr>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="13%" height="22"><div align="right"><strong>主 题:</strong></div></td>
<td width="83%"> <input name="title" type="text" id="title" value="Re:" size="50" style="BORDER: #7188e0 1px solid;color:#1818FF;">
<input name="onshow" type="checkbox" id="onshow" value="1" onclick=show()>
<span id="word">多彩文本</span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="22"><div align="right"><strong>类 型:</strong></div></td>
<td><span class="form">
<INPUT name=class type=radio value=a>
普通
<INPUT name=class type=radio value=b>
原创
<INPUT name=class type=radio value=c>
贴图
<INPUT name=class type=radio value=d>
转贴 </span></td>
</tr>
<tr bgcolor="#FFFFFF" id="color" style="display: none">
<td><div align="right"><strong>多彩文本:</strong></div></td>
<td> <a href="#" onClick="addi()"><img src="img/i.gif" alt="插入斜体字" width="24" height="24" border="0"></a> <a href="#" onClick="addbold()"><img src="img/bold.gif" alt="插入粗体字" width="24" height="24" border="0"></a> <a href="#" onClick="addfly()"><img src="img/fly.gif" width="24" height="24" border="0"></a> <a href="#" onClick="addimg()"><img src="img/img.gif" alt="插入图片" width="24" height="24" border="0"></a> <a href="#" onClick="addurl()"><img src="img/url.gif" alt="插入连接" width="24" height="24" border="0"></a> <a href="#" onClick="addflash()"><img src="img/flash.gif" alt="插入Flash" width="24" height="24" border="0"></a> <a href="#" onClick="addmail()"><img src="img/email.gif" alt="插入E-mail" width="24" height="24" border="0"></a> <a href="#" onClick="addmp3()"><img src="img/mp3.gif" width="23" height="22" border="0"></a> <a href="#" onClick="addmtv()"><img src="img/mtv.gif" width="23" height="22" border="0"></a></td>
</tr>
<tr bgcolor="#FFFFFF">
<td valign="top"><div align="right"><strong>正 文:</strong></div></td>
<td> <textarea name="text" cols="68" rows="10" style="BORDER: #7188e0 1px solid; background:#f8f8f8; color:#1818FF; overflow:auto;">回复【<%=username%>(<%=userid%>)】
</textarea></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="22"><div align="right"><strong>签名:</strong></div></td>
<td><input name="pn" type="radio" value="penname1">
<a href="#1" onClick="window.open('showpenname.jsp?pn1=y','face','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,top=150,left=100,width=480,height=320');">第一签名</a>
<input type="radio" name="pn" value="penname2">
<a href="#1" onClick="window.open('showpenname.jsp?pn2=y','face','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,top=150,left=100,width=480,height=320');">第二签名</a>
<input type="radio" name="pn" value="no">
<span class="style6 style2">不使用签名</span></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="2"><div align="center">
<input name="imageField" type="image" src="img/ok1.gif" width="60" height="22" border="0" onMouseout="this.src='img/ok1.gif'" onMouseOver="this.src='img/ok2.gif'">
<input name="bdid" type="hidden" id="bdid" value="<%=bdid%>">
<input name="bbsid" type="hidden" id="bbsid" value="<%=bbsid%>">
<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> </div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="88"> </td>
</tr>
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="20" bgcolor="#f0f0f0"><div align="center"></div></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -