📄 send.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<jsp:useBean id="con" scope="page" class="numb1.com.db"/>
<%@ include file = "include/config.jsp" %>
<%
String bdid=request.getParameter("id");
String id=(String)session.getAttribute("id");
String bdname="";
String main="main.jsp";
if(id==null){response.sendRedirect("login.jsp");}else{
String sql="select name, page from board where id="+bdid;
ResultSet rs=con.query(sql);rs.next();
if(rs.getRow()!=0){
bdname=con.getStr(rs.getString(1));
main=rs.getString(2)+main;
}
con.close();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>发贴</title><style type="text/css">
<!--
td{font-size:13px;}
a:link{text-decoration:none;color:#0000ff}
a:visited{text-decoration:none;color:#0000ff}
a:hover{text-decoration:none;color:#96CCFE}
body {
font-size:13px;
margin-top: 3px;
}
.style1 {color: #FFFFFF}
.style2 {color: #0000FF}
-->
</style>
<script language="JavaScript" src="img/add.js"></script>
</head>
<body>
<form action="action/action.jsp" method="post" name="form1" onSubmit="return check_form(this)">
<table width="788" border="0" align="center">
<tr>
<td height="8"></td>
</tr>
<tr>
<td><table width="88%" border="0" align="center">
<tr>
<td><div align="right" style="font-size:12px "> [<a href="first.jsp">论坛首页</a>]
<% out.print(" [<a href="+main+"?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="88%" 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="#f6f6f6">
<td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<th height="18" bgcolor="#7188e0"><span class="style1">发 贴</span></th>
</tr>
</table></td>
</tr>
<tr bgcolor="#f6f6f6">
<td width="15%" height="20"><div align="right"><strong>主 题:</strong></div></td>
<td width="85%" bgcolor="#f6f6f6"> <input name="title" type="text" id="title" size="50" style="BORDER: #7188e0 1px solid;color:#1818FF;">
<a href="javascript:expand()">多彩文本</a></td>
</tr>
<tr bgcolor="#f8f8f8" id=id_1 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="addu()"><img src="img/u.gif" alt="插入带下划线的文字" width="24" height="24" border="0"></a> <a href="#" onClick="addfly()"><img src="img/fly.gif" alt="插入滚动字幕" 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="#f8f8f8">
<td height="20"><div align="right"><strong>类 型:</strong></div></td>
<td bgcolor="#f8f8f8"><span class="form"> <INPUT name=class type=radio>
普通
<input name=class type=radio value=b>
原创
<INPUT name=class type=radio value=c>
贴图
<INPUT name=class type=radio value=d>
转贴
<INPUT name=class type=radio value=e>
求助</span></td>
</tr>
<tr bgcolor="#f6f6f6">
<td valign="top"><div align="right"><strong>正 文:</strong></div></td>
<td> <textarea name="text" cols="68" rows="10" style="BORDER: #7188e0 1px solid; background:#fdfdff; color:#1818FF; overflow:auto;"></textarea></td>
</tr>
<tr bgcolor="#f8f8f8">
<td height="20"><div align="right"><strong>签名:</strong></div></td>
<td height="20"> <input name="pn" type="radio" value="penname1">
<a href="#1" onClick="window.open('showpenname.php?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.php?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="style2">不使用签名</span></td>
</tr>
<% if(upload_pic_master.compareTo("on") == 0){%>
<tr bgcolor="#f8f8f8" id=id_2 style="display:none">
<td><div align="right"><strong>上传图片:</strong></div></td>
<td> <input name="upload_pic" type="file" id="upload_pic" style="BORDER: #7188e0 1px solid;color:#1818FF;" size="20">
<input name="MAX_FILE_SIZE" type="hidden" id="MAX_FILE_SIZE" value="<? echo $upload_file_size*1024;?>">
允许上传图片大小:<? echo $upload_file_size;?>K <a href="#" title=" <? for($i=0;$i<count($upload_pic_array);$i++){echo $upload_pic_array[$i] . ' ';}?>">上传图片格式(鼠标悬停2秒)</a></td>
</tr>
<% } if(upload_file_master.compareTo("on") == 0){%>
<tr bgcolor="#f8f8f8" id=id_3 style="display:none">
<td><div align="right"><strong>上传文件:</strong></div></td>
<td> <input name="upload_file" type="file" id="upload_file" style="BORDER: #7188e0 1px solid;color:#1818FF;" size="20">
允许上传文件大小:<? echo $upload_file_size;?>K <a href="#" title=" <? for($i=0;$i<count($upload_file_array);$i++){echo $upload_file_array[$i] . ' ';}?>">上传文件格式(鼠标悬停2秒)</a></td>
</tr>
<% }%>
<tr bgcolor="#f8f8f8">
<td colspan="2"> </td>
</tr>
<tr bgcolor="#f8f8f8">
<td height="25" 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="id" type="hidden" value="<%=bdid%>">
<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">
<table width="100%" border="0">
<tr <% if(upload_pic_master.compareTo("off") == 0){out.print("id=id_2 style=\"display:none\""); }%>>
<td></td>
</tr>
<tr <% if(upload_file_master.compareTo("off") == 0){out.print("id=id_3 style=\"display:none\""); }%>>
<td></td>
</tr>
</table>
</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 + -