📄 addxinxi.asp
字号:
<!--#include file="conn1.asp"-->
<!--#include file="err.asp"-->
<!--#include file=usercookies.asp-->
<!--#include file="config.asp"-->
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=title%>-信息发布</title>
<link href="inc_style.css" rel="stylesheet" type="text/css">
</head>
<SCRIPT language=javascript>
<!--
function CheckForm()
{
if(document.myform.biaoti.value.length<1)
{
alert("信息标题没有填写!");
return false;
}
if(document.myform.jiage.value.length<1)
{
alert("价格填写不正确!");
return false;
}
if(document.myform.diqu.value.length<1 )
{
alert("交易地区没有填写!");
return false;
}
if(document.myform.memo.value.length<1)
{
alert("信息内容没有填写!");
return false;
}
if(document.myform.name.value.length<1)
{
alert("联系人姓名没有填写!");
return false;
}
if(document.myform.dianhua.value.length<1)
{
alert("联系电话没有填写!");
return false;
}
}
//-->
</SCRIPT>
<body topmargin="0">
<!--#include file=usertop.asp-->
<div align="center">
<center>
<table border="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" width="760" bgcolor="#FFFFFF">
<tr>
<td width="163" valign="top">
<!--#include file=userleft.asp--></td>
<td width="570" height="533"><div align="center">
<center>
<form action="addxinxichk.asp" name="myform" method="POST">
<TABLE class=pt9 cellSpacing=0 cellPadding=0 width=600 bgColor=#F1FAE6
style="border-collapse: collapse" border="1" bordercolor="#009999">
<tr>
<td height="27" colspan="2" bgColor=#cbdcb6>
<p align="center"><b>发布信息</b></td>
</tr>
<tr>
<td height="25" width="17%" align="right" bgcolor="#CBDCB6">
信息类别:</td>
<td height="25" width="83%">
<%
dim rs,sql,count,username
username=request.cookies("cnmai")("username")
set rs=server.createobject("adodb.recordset")
sql = "select * from class1 order by paixu desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "请先添加栏目。"
response.end
else
%>
<SELECT name="class1" size="1">
<OPTION selected value="0">==分类==</OPTION>
<%do while not rs.eof
%><OPTION value="<%=trim(rs("id"))%>"><%=trim(rs("class1"))%></OPTION>
<%
rs.movenext
loop
end if
rs.close
%></SELECT>
<font color="#FF0000">*</font> </td>
</tr>
<tr>
<td height="25" width="17%" align="right" bgcolor="#CBDCB6">
信息标题:</td>
<td height="19" width="83%">
<input type="text" maxlength="40" name="biaoti" size="43">(<font color="#CC5200">40字以内</font>) <font color="#FF0000">*</font> </td>
</tr>
<tr>
<td height="25" width="17%" align="right" bgcolor="#CBDCB6">
交易方式:</td>
<td height="25" width="83%">
<select name="leixing">
<%
dim rslx,sqllx
set rslx=server.createobject("adodb.recordset")
sqllx="select * from [leixing] "
rslx.open sqllx,conn,1,1
do while not rslx.eof
%>
<option value=<%=rslx("id")%>><%=rslx("leixing")%></option>
<%rslx.movenext
loop
rslx.close
set rslx=nothing
%>
</select></td>
</tr>
<tr>
<td height="25" width="17%" align="right" bgcolor="#CBDCB6">
物品价格:</td>
<td height="25" width="83%">
<!--webbot bot="Validation" s-data-type="String" b-allow-letters="TRUE" b-allow-digits="TRUE" b-allow-whitespace="TRUE" i-maximum-length="30" --><input type="text" name="jiage" size="10" maxlength="30" value="0">
元 (<font color="#CC5200">建议写清楚有关费用方面的信息,</font>0<font color="#CC5200">元表示面议</font>)</td>
</tr>
<tr>
<td height="25" width="17%" align="right" bgcolor="#CBDCB6">
交易地区:</td>
<td height="25" width="83%">
<input type="text" maxlength="40" name="diqu" size="43"><font color="#FF0000">*</font> </td>
</tr>
<tr>
<td height="25" width="17%" align="right" bgcolor="#CBDCB6">
详细说明:</td>
<td height="25" width="83%">
<textarea rows="20" name="memo" cols="65"></textarea> <font color="#FF0000">*</font> </td>
</tr>
<%
sql = "select * from [user] where username='"&username&"'"
rs.open sql,conn,1,1
if rs.eof then
errcnmai(9)
response.end
end if
%>
<tr>
<td height="25" width="17%" align="right" bgcolor="#CBDCB6">
联系人:</td>
<td height="25" width="83%">
<input type="text" name="name" size="26" maxlength="20" value="<%=rs("name")%>">
<font color="#FF0000">*</font> </td>
</tr>
<tr>
<td height="25" width="17%" align="right" bgcolor="#CBDCB6">
联系电话:</td>
<td height="25" width="83%">
<input type="text" name="dianhua" size="26" maxlength="40" value="<%=rs("dianhua")%>"> <font color="#FF0000">*</font> </td>
</tr>
<tr>
<td height="25" width="17%" align="right" bgcolor="#CBDCB6">
QQ或MSN:</td>
<td height="25" width="83%">
<input type="text" name="qq" size="26" maxlength="40" value="<%=rs("qq")%>"></td>
</tr>
<tr>
<td height="25" width="17%" align="right" bgcolor="#CBDCB6">
Email:</td>
<td height="25" width="83%">
<input type="text" name="email" size="26" maxlength="40" value="<%=rs("email")%>">
<font color="#FF0000">*</font>
(<font color="#CC5200">该邮件地址将接收你的交易信息</font>)</td>
</tr>
<tr>
<td height="25" width="17%" align="right" bgcolor="#CBDCB6">
联系地址:</td>
<td height="25" width="83%">
<input type="text" name="dizhi" size="54" maxlength="54" value="<%=rs("dizhi")%>"></td>
</tr>
<tr>
<td height="25" width="17%" align="right" bgcolor="#CBDCB6">
发布天数:</td>
<td height="25" width="83%">
<select name="days" size="1">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7" selected>7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="60">两个月</option>
<option value="90">三个月</option>
<option value="180">半年</option>
<option value="360">一年</option>
<option value="88888">长期</option>
</select> 天</td>
</tr>
<tr>
<td height="28" colspan="2"><table width="100%" border="0">
<tr>
<td width="33%" align="center"> <input type="radio" value="1" name="zd">
<span lang="zh-cn">置顶</span>
<input type="radio" value="0" checked name="zd">
不置顶 </td>
<td width="67%">消费虚拟货币数:<%=hb_zd%>(VIP会员自由发布)</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="29" colspan="2">
<table width="100%" border="0">
<tr>
<td width="33%" align="center"><input type="radio" value="1" name="yz">
验证
<input type="radio" value="0" checked name="yz">
不验证</td>
<td width="67%">消费虚拟货币数:<%=hb_yz%>(VIP会员自由发布)</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="33" colspan="2">
<p align="center">
<input border="0" onClick="javascript:return CheckForm();" src="images/Login_but.gif" name="I2" type="image"></td>
</tr>
</table>
</form>
</center>
</div>
<p> </td>
</tr>
</table>
</center>
</div>
<!--#include file=end.htm-->
</body>
</html>
<%
rs.close
set rs=nothing
closedb
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -