📄 addfree.asp
字号:
<!--#include file="conn1.asp"-->
<!--#include file="err.asp"-->
<!--#include file="config.asp"-->
<html>
<head>
<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.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;
}
if(document.myform.email.value.length<1)
{
alert("电子邮件没有填写!");
return false;
}
}
//-->
</SCRIPT>
<body topmargin="0">
<!--#include file=top.asp-->
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="778" height="528">
<tr>
<td width="122" height="528" valign="top"><br>
</td>
<td width="526" height="528" valign="top"><div align="center">
<center>
<table width="489" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
<form action="addfreechk.asp" name="myform" method="POST">
<tr>
<td width="16">
<img src="images/obj_waku3_01.gif"></td>
<td width="456">
<img src="images/ba_home.gif" width="475" height="31"></td>
<td width="17">
<img src="images/obj_waku3_02.gif"></td>
</tr>
<tr>
<td width="16" background="images/obj_waku3_03.gif">
</td>
<td width="456" bgcolor="#EEEEEE">
<table width="469" border="0" cellspacing="0" cellpadding="0" height="126">
<tr>
<td height="27" bgcolor="#EEEEEE" colspan="2" width="454">
<p align="center">快速发布信息</td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE" width="77" align="right">
信息类别:</td>
<td height="19" bgcolor="#EEEEEE" width="392">
<%
dim rs
dim sql
dim count,username
username=request.cookies("cnmai")("username")
set rs=server.createobject("adodb.recordset")
sql = "select * from class2 order by paixu desc"
rs.open sql,conn,1,1
%><SCRIPT language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
<%
count = 0
do while not rs.eof
%>
subcat[<%=count%>] = new Array("<%= trim(rs("class2"))%>","<%= trim(rs("class1"))%>","<%= trim(rs("id"))%>");
<%
count = count + 1
rs.movenext
loop
rs.close
%>
onecount=<%=count%>;
function changelocation(locationid)
{
document.myform.class2.length = 0;
var locationid=locationid;
var i;
for (i=0;i < onecount; i++)
{
if (subcat[i][1] == locationid)
{
document.myform.class2.options[document.myform.class2.length] = new Option(subcat[i][0], subcat[i][2]);
}
}
}
</SCRIPT>
<%
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" onChange="changelocation(document.myform.class1.options[document.myform.class1.selectedIndex].value)" 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>
<SELECT name="class2">
<OPTION selected value="0">==二级分类==</OPTION>
</SELECT> <font color="#FF0000">*</font> </td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE" width="77" align="right">
信息标题:</td>
<td height="25" bgcolor="#EEEEEE" width="392">
<input type="text" maxlength="28" name="biaoti" size="42">
<font color="#FF0000">*</font>(<font color="#CC5200">28字以内</font>)</td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE" width="77" align="right">
交易方式:</td>
<td height="25" bgcolor="#EEEEEE" width="392">
<select name="leixing">
<option value="1"><%=leixing1%></option>
<option value="2"><%=leixing2%></option>
<option value="3"><%=leixing3%></option>
<option value="4"><%=leixing4%></option>
<option value="5"><%=leixing5%></option>
<option value="6"><%=leixing6%></option>
<option value="7"><%=leixing7%></option>
<option value="8"><%=leixing8%></option>
<option value="9"><%=leixing9%></option>
</select></td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE" width="77" align="right">
物品价格:</td>
<td height="25" bgcolor="#EEEEEE" width="392">
<!--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="12" maxlength="30" value="0">
元 (<font color="#CC5200">建议写清有关费用的信息,</font>0<font color="#CC5200">元表示面议</font>)</td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE" width="77" align="right">
交易地区:</td>
<td height="25" bgcolor="#EEEEEE" width="392">
<!--webbot bot="Validation" S-Data-Type="String" B-Allow-Letters="TRUE" B-Allow-Digits="TRUE" B-Allow-WhiteSpace="TRUE" I-Maximum-Length="20" -->
<input type="text" name="diqu" size="12" maxlength="20"></td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE" width="77" align="right">
<p>信息说明:</td>
<td height="25" bgcolor="#EEEEEE" width="392">
<textarea rows="9" name="memo" cols="53"></textarea>
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE" width="77" align="right">
联系人:</td>
<td height="25" bgcolor="#EEEEEE" width="392">
<input type="text" name="name" size="13" maxlength="20">
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE" width="77" align="right">
联系电话:</td>
<td height="25" bgcolor="#EEEEEE" width="392">
<input type="text" name="dianhua" size="23" maxlength="40">
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE" width="77" align="right">
Email:</td>
<td height="25" bgcolor="#EEEEEE" width="392">
<input type="text" name="email" size="23" maxlength="40">
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE" width="77" align="right">
QQ或MSN:</td>
<td height="25" bgcolor="#EEEEEE" width="392">
<input type="text" name="qq" size="23" maxlength="20"> </td>
</tr>
<tr>
<td height="25" bgcolor="#EEEEEE" width="77" align="right">
发布天数:</td>
<td height="25" bgcolor="#EEEEEE" width="392">
<font face="宋体" size="2">
<select name="days">
<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>
</select>
<font face="宋体" size="2" class="a1">天<font color="#ff0000"> </font></font></td>
</tr>
<tr>
<td height="37" bgcolor="#EEEEEE" colspan="2" width="454">
—快速发布不能使用<font color="#FF0000"><a target="_blank" href="about/help.asp"><u>相关道具</u></a></font>和管理信息,<font color="#FF0000">并需要在1~3个小时
内审核通
过方可显示</font><br>
—不想审核通过直接显示,您可以选择<font color="#FF0000"> </font>
<a href="addxinxi.asp"><font color="#FF0000">完全发布</font></a>,<font color="#FF0000">"*"</font>为必添内容</td>
</tr>
<tr>
<td height="22" bgcolor="#EEEEEE" colspan="2" width="454">
<p align="center">
<input border="0" onclick="javascript:return CheckForm();" src="images/Login_but.gif" name="I2" type="image"></td>
</tr>
<tr>
<td height="20" bgcolor="#EEEEEE" colspan="2" width="454">
<p align="left"> </td>
</tr>
</table>
</td>
<td width="17" background="images/obj_waku3_04.gif">
</td>
</tr>
<tr>
<td width="16">
<img src="images/obj_waku3_05.gif"></td>
<td width="456">
<img src="images/obj_waku3_06.gif" width="475" height="13"></td>
<td width="17">
<img src="images/obj_waku3_07.gif"></td>
</tr>
</form>
</table>
</center>
</div>
</td>
</tr>
<!--#include file=end.htm-->
</table>
</center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -