<!--#include file="geditop.asp"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>免费发布信息--<%=title%>--<%=web%></title>
</head>

<body>
<script LANGUAGE=JavaScript>
  function textLimitCheck(thisArea, maxLength){
    if (thisArea.value.length > maxLength){
      alert(maxLength + ' 个字限制. \r超出的将自动去除.');
      thisArea.value = thisArea.value.substring(0, maxLength);
      thisArea.focus();
    }
    /*回写span的值，当前填写文字的数量*/
    messageCount.innerText = thisArea.value.length;
  }
</script>
<div align="center">
<script language="JavaScript">
  function isDigit(c)
{
    if(c.length > 1){
        return false;
    }
    ic = c - '0';
    return ic >= 0 && ic <= 9;
}
function checkinput(){

        	if(form_fox.company.value.length<2 || form_fox.company.value.length>12 ){
            alert("标题名称在2-12字之间！");
            form_fox.company.focus();
            return false;
        }
	       if(form_fox.memo.value.length<1 || form_fox.memo.value.length>500 ){
            alert("内容不合要求！");
            form_fox.memo.focus();
            return false;
        } 
			if(form_fox.class1.value == "0" || form_fox.class1.value == ""){
            alert("请选择信息大类！");
            form_fox.class1.focus();
            return false;
        } 
			if(form_fox.class2.value == "0" || form_fox.class2.value == ""){
            alert("请选择信息小类！");
            form_fox.class2.focus();
            return false;
        } 
            if(form_fox.youxiao.value == ""){
            alert("请输入有效期！");
            form_fox.youxiao.focus();
            return false;
        }  
            if(form_fox.jiage.value == ""){
            alert("请输入参考价格！");
            form_fox.jiage.focus();
            return false;
        }
            if(form_fox.lxrname.value == ""){
            alert("请输入您真实姓名！");
            form_fox.lxrname.focus();
            return false;
        } 
　　　　　　if(form_fox.usertel.value == ""){
            alert("请输入联系电话！");
            form_fox.usertel.focus();
            return false;
        } 
			if(form_fox.sheng.value == "0" || form_fox.sheng.value == ""){
            alert("请选择省份大类！");
            form_fox.sheng.focus();
            return false;
        } 
			if(form_fox.shi.value == "0" || form_fox.shi.value == ""){
            alert("请选择市区小类！");
            form_fox.shi.focus();
            return false;
        }
			if(form_fox.dizhi.value == ""){
            alert("请输入通讯地址！");
            form_fox.dizhi.focus();
            return false;
        } 
		　　if(form_fox.code.value == ""){
            alert("请输入邮编！");
            form_fox.code.focus();
            return false;
        } 
 
	if(form_fox.email.value == ""){
            alert("请输入您有效的电子邮件,方便我们能联系到您！");
            form_fox.email.focus();
            return false;
        }
    return true;
}  
function isEmail(strEmail) {
 if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
  return true;
 else
  alert("请输入您有效的电子邮件,方便我们能联系到您！");
}
</script>
<table cellSpacing="0" cellPadding="0" width="930" border="0" id="table1" class="table2">
		<tr bgColor="#d9ebe5">
			<td  height="25" colspan="3" bgcolor="#C0C0C0"><b>&nbsp;<img border="0" src="images/z1.gif" width="50" height="18"> 您的位置  
			<font color="#FFFFFF">-></font> <a class="scap1" href="index.htm"><%=title%></a>
			<font color="#FFFFFF">-></font> 发布信息：</b></td>
		</tr>
		<tr bgColor="#d9ebe5">
			<td  width="333" bgcolor="#FFFFFF" rowspan="2" valign="top">
<table border="1" width="98%" id="table2" bordercolorlight="#D9EBE5" cellpadding="0" bordercolordark="#D9EBE5" style="border-collapse: collapse">
				<tr>
					<td bgcolor="#D9EBE5"><b>
					<img border="0" src="images/a01.gif" width="25" height="25">会员类型说明：</b></td>
				</tr>
				<tr>
					<td class="tdtxt06">●[<font color="#FF3300"><b><%=aname%>会员</b></font>]<br>
&nbsp; 可以发布信息，但须本站审核，信息有效期由本站审核设置。
					<br>　但不能发布图片信息，无网上店铺。
					<br>
&nbsp; 注册时无须审核。<br>
&nbsp; 会员有效期：<font color="#FF0000"><%=dqsja%></font>天。</td>
				</tr>
				<tr>
					<td class="tdtxt06">●[<font color="#FF3300"><b><%=bname%>会员</b></font>]<br>
&nbsp; 可以发布信息，每次<font color="#FF0000"><%=hxb%></font><%=bname%>，无须本站审核，信息有效期扣除<%=bname%>。
					<br>　能发布图片信息，每次扣除<font color="#FF0000"><%=tdxb%></font><%=bname%>。
					<br>  &nbsp;  网上店铺凭<font color="#FF0000"><%=ddxb%></font><%=bname%>申请，由本店审核后才能开通。<br>
&nbsp; 注册时须审核。 <br>
&nbsp; 有效期：<font color="#FF0000"><%=dxb%></font><%=bname%>用完止。</td>
				</tr>
				<tr>
					<td class="tdtxt06">●[<font color="#FF3300"><b><%=cname%>会员</b></font>]<br>
&nbsp; 可以发布信息，无须本站审核，信息有效期自主设定。
					<br>　发布图片信息无限制，拥有个人网上店铺。<br>
&nbsp; 为高级用户，可以审核本站信息及商品信息。<br>
&nbsp; 注册时须审核。 <br>
&nbsp; 会员有效期：<font color="#FF0000"><%=dqsjc%></font>天。</td>
				</tr>
				<tr>
					<td class="tdtxt06">●<font color="#FF3300"><b><%=cname%>会员</b></font>及<font color="#FF3300"><b><%=bname%>会员</b></font>在本站未审核前享受<font color="#FF3300"><b><%=aname%>会员</b></font>权利，本站审核并确认后方可享受相应权利。</td>
				</tr>
				<tr>
					<td class="tdtxt06" bgcolor="#D9EBE5">●免费会员发布注意</td>
				</tr>
				<tr>
					<td class="tdtxt07"><font color="#FF0000">&nbsp; 
					你只享受发布权，其他权利没有，请遵守互联网有关规定。<br>
&nbsp; 不得发布虚假、违法、重复信息，否则本站一律给予删除！<br>
&nbsp; 你发布的信息将有一个标注：即一般游客发布。</font></td>
				</tr>
			</table>			</td>
			<td  width="48" bgcolor="#FFFFFF" rowspan="2" valign="top">
　</td>
		<tr bgColor="#d9ebe5">
			<td valign="top" width="549" height="315" bgcolor="#FFFFFF">
			<%if lanhua<>"" then
			Response.Write "<script>alert('你是会员，请到会员中心发布！');this.location.href='xinxima.asp';</SCRIPT>"
            Response.end
            Response.Redirect "xinxima.asp"%>
			<%else%>
			<table border="1" width="100%" id="table2" bordercolorlight="#D9EBE5" bordercolordark="#D9EBE5" style="border-collapse: collapse" cellpadding="0" cellspacing="0">
				<tr>
					<td class="tdtxt07" bgcolor="#D9EBE5">&nbsp;<img border="0" src="images/a01.gif" width="25" height="25"> 
					快速发布信息专区（为保证你更好的享受服务，建议注册会员）</td>
				</tr>
				<tr>
					<td class="tdtxt07" bgcolor="#D9EBE5" height="20">
					<table border="0" width="100%" id="table3" cellspacing="1">
						<tr>
							<td bgcolor="#FFFFFF" colspan="2" height="40" class="tdtxt07">
							<p align="center">
							<img border="0" src="images/a01.gif" width="25" height="25"><b>信－息－免－费－发－布</b>
	<form name="form_fox" onsubmit="return checkinput()" method="post" action="addfreexinxichk.asp">

						<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							信息ID：</td>
							<td bgcolor="#FFFFFF" height="30" width="77%"><%dim aa,sid
					aa="2008"
					sid=now()&aa
		sid=replace(sid,"-","")
        sid=replace(sid," ","")
        sid=replace(sid,":","")%><b><font color="#FF0000"><%=sid%>
</font></b><input name="xxid" type="hidden" value="<%=sid%>"><input name="ts" type="hidden" value="0">
</td>
						</tr>

						<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							<font color="#FF0000">信息标题：</font></td>
							<td bgcolor="#FFFFFF" height="30" width="77%">
			<input id="topic6" maxLength="12" size="20" name="company" class="button01"> <font color="#FF0000">
			*</font></td>
						</tr>
<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							信息所属：</td>
							<td bgcolor="#FFFFFF" width="77%" height="30" align="right">
							<p align="left">
<%
dim rsclass
dim sqlclass
dim count1
set rsclass=server.createobject("adodb.recordset")
sqlclass = "select * from FOX_class2 order by paixu desc"
rsclass.open sqlclass,conn,1,1
%><SCRIPT language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count1 = 0
        do while not rsclass.eof 
        %>
subcat[<%=count1%>] = new Array("<%= trim(rsclass("class2"))%>","<%= trim(rsclass("class1"))%>","<%= trim(rsclass("id"))%>");
        <%
        count1 = count1 + 1
        rsclass.movenext
        loop
        rsclass.close
        %>
onecount=<%=count1%>;

function changelocation(locationid)
    {
    document.form_fox.class2.length = 0; 

    var locationid=locationid;
    var io;
    for (io=0;io < onecount; io++)
        {
            if (subcat[io][1] == locationid)
            { 
                document.form_fox.class2.options[document.form_fox.class2.length] = new Option(subcat[io][0], subcat[io][2]);
            }        
        }
        
    }    
                      </SCRIPT><%
sqlclass = "select * from FOX_class1 order by paixu desc"
rsclass.open sqlclass,conn,1,1
if rsclass.eof and rsclass.bof then
response.write "请先添加栏目。"
response.end
else
%><SELECT name="class1" onChange="changelocation(document.form_fox.class1.options[document.form_fox.class1.selectedIndex].value)" size="1" class="right_bg01">
<OPTION selected value="0">==分类==</OPTION>
                                <%do while not rsclass.eof
%>
                                <OPTION value="<%=trim(rsclass("id"))%>"><%=trim(rsclass("class1"))%></OPTION>
                                <%
        rsclass.movenext
        loop
	    end if
        rsclass.close
        set rsclass=nothing
%>
                              </SELECT>
                              <SELECT name="class2" size="1" class="right_bg01">
                                <OPTION selected value="0">==二级分类==</OPTION>
                              </SELECT> <font color="#FF0000">*</font></td>
						</tr>
<%
dim rs1,sql1
set rs1=server.createobject("adodb.recordset")
sql1 = "select * from [FOX_lei] order by paixu desc"
rs1.open sql1,conn,1,1
%>    
						<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							信息类型：</td>
							<td bgcolor="#FFFFFF" height="30" width="77%">
	<select size="1" name="leixing" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: red; FONT-SIZE: 9pt; HEIGHT: 19px;">
                                <%do while not rs1.eof
%><option value="<%=rs1("id")%>"><%=rs1("leixing")%></option>
<%rs1.movenext
loop
rs1.close
set rs1=nothing%>						</select> <font color="#FF0000">*</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							参考报价：</td>
							<td bgcolor="#FFFFFF" width="77%" height="30" align="right">
							<p align="left">
							<input id="topic8" maxLength="6" size="6" name="jiage" class="button01" value="0"> 
			元&nbsp;<font color="#FF0000">* （“0”为面议）</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							信息内容：</td>
							<td bgcolor="#FFFFFF" height="30" width="77%">
			<textarea  class="button02" rows="8" onkeyUp="textLimitCheck(this, 500);" name="memo" cols="48"></textarea>&nbsp;<font color="#FF0000">*</font><br><font color=#666666>限 5-500 个字符  已输入 <font color="#CC0000"><span id="messageCount">0</span></font> 个字</font></td>
						</tr>
						
						
						<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							<font color="#FF0000">信息有效期：</font></td>
							<td bgcolor="#FFFFFF" width="77%" height="30" align="right">
							<p align="left">
							<select size="1" name="youxiao">
							<option selected value="1">一天</option>
							<option value="3">三天</option>
							<option value="7">一周</option>
							<option value="15">半月</option>
							<option value="30">一月</option>
							</select><font color="#FF0000">* </font></td>
						</tr>

							<td bgcolor="#D9EBE5" width="99%" height="30" align="right" colspan="2">
							<p align="left">
							<b>联系方式：</b></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							联系人：</td>
							<td bgcolor="#FFFFFF" height="30" width="77%">
			<input id="topic0" maxLength="4" size="14" name="lxrname" class="button01" value="">
			<font color="#FF0000">*</font><input name="username" type="hidden" value="000000"><input name="huitype" type="hidden" value="0">
			</td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							联系电话：</td>
							<td bgcolor="#FFFFFF" height="30" width="77%">
			<input id="topic1" maxLength="30" size="14" name="usertel" class="button01" value="">
			<font color="#FF0000">*</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							常用手机：</td>
							<td bgcolor="#FFFFFF" height="30" width="77%">
			<input id="topic2" maxLength="12" size="14" name="phone" class="button01" value="">
			<font color="#FF0000">*</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							联系QQ：</td>
							<td bgcolor="#FFFFFF" height="30" width="77%">
			<input id="topic9" maxLength="12" size="14" name="qq" class="button01" value=""></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							EMAIL：</td>
							<td bgcolor="#FFFFFF" height="30" width="77%">
			<input id="topic3" maxLength="30" size="23" onblur="isEmail(this.value)" name="email" class="button01" value="">
			<font color="#FF0000">*</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							所属地区：</td>
							<td bgcolor="#FFFFFF" height="30" width="77%">
<%
dim rs
dim sql
dim count,count2,count3
set rs=server.createobject("adodb.recordset")
sql = "select * from FOX_shi order by paixu desc"
rs.open sql,conn,1,1
%>
<script language = "JavaScript"> 
var onecount1; 
onecount1=0; 
subcat1 = new Array(); 
<% 
count = 0 
do while not rs.eof 
%> 
subcat1[<%=count%>] = new Array("<%= trim(rs("shi"))%>","<%= trim(rs("sheng"))%>","<%= trim(rs("id"))%>"); 
<% 
count = count + 1 
rs.movenext 
loop 
rs.close 
set rs=nothing 
%> 
onecount1=<%=count%>; 

function changelocation1(shiid) 
{ 
document.form_fox.shi.length = 0; 

var shiid=shiid; 
var i; 
document.form_fox.shi.options[0] = new Option('=所属城市=',''); 
for (i=0;i < onecount1; i++) 
{ 
if (subcat1[i][1] == shiid) 
{ 
document.form_fox.shi.options[document.form_fox.shi.length] = new Option(subcat1[i][0], subcat1[i][2]); 
} 
} 

} 
</script> 
<%dim rs2,sql2
set rs2=server.createobject("adodb.recordset")
sql2 = "select * from FOX_xiang order by paixu desc"
rs2.open sql2,conn,1,1
%>
<script language = "JavaScript"> 
var onecount2; 
onecount2=0; 
subcat2 = new Array(); 
<% 
count2 = 0 
do while not rs2.eof 
%> 
subcat2[<%=count2%>] = new Array("<%= trim(rs2("xiang"))%>","<%= trim(rs2("shi"))%>","<%= trim(rs2("id"))%>"); 
<% 
count2 = count2 + 1 
rs2.movenext 
loop 
rs2.close 
set rs2=nothing 
%> 
onecount2=<%=count2%>; 

function changelocation2(xiangid) 
{ 
document.form_fox.xiang.length = 0; 

var xiangid=xiangid; 
var j; 
document.form_fox.xiang.options[0] = new Option('=所属区县=',''); 
for (j=0;j < onecount2; j++) 
{ 
if (subcat2[j][1] == xiangid) 
{ 
document.form_fox.xiang.options[document.form_fox.xiang.length] = new Option(subcat2[j][0], subcat2[j][2]); 
} 
} 

} 
</script> 

                     
<select name="sheng" onChange="changelocation1(document.form_fox.sheng.options[document.form_fox.sheng.selectedIndex].value)" size="1" class="button01"> 
<option selected value="0">所属省份</option> 
<% 
dim rs51,sql51
set rs51=server.createobject("adodb.recordset")
sql51 = "select * from FOX_sheng order by paixu desc"
rs51.open sql51,conn,1,1
do while not rs51.eof 
%> 
<option value="<%=trim(rs51("id"))%>"><%=trim(rs51("sheng"))%></option> 

<% 
rs51.movenext 
loop 
rs51.close 
set rs51 = nothing 
%> 
</select><select name="shi" onChange="changelocation2(document.form_fox.shi.options[document.form_fox.shi.selectedIndex].value)" class="button01" size="1"> 
<option selected value="0">==所属城市==</option> 
</select>
</select><select name="xiang" size="1" class="button01"> 
<option selected value="0">==所属县区==</option> 
</select> <font color="#FF0000">*</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							详细地址：</td>
							<td bgcolor="#FFFFFF" height="30" width="77%">
			<input id="topic4" maxLength="40" size="30" name="dizhi" class="button01" value="">
			<font color="#FF0000">*</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							邮政编码：</td>
							<td bgcolor="#FFFFFF" height="30" width="77%">
			<input id="topic5" maxLength="6" size="6" name="code" class="button01" value="">
			<font color="#FF0000">*</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="22%" height="30" align="right">
							　</td>
							<td bgcolor="#FFFFFF" height="30" width="77%">
			<input class="inputb" border="0" name="I5" type="submit" value="发布信息"></td>
						</tr></form>
					</table>
					<%end if%>
					</td>
				</tr>
			</table>
			</td>
			</tr>

</table>
</div>

</body>
<!--#include file="ffbottom.asp"--></body></html>

</body></html>