<!--#include file="inc/conn.asp"-->
<!--#include file="config.asp"-->
<!--#include file="inc/ip.asp"-->
<!--#include file="inc/err.asp"-->
<%
if request.cookies("cnmai")("username")<>"" or request.cookies("cnmai")("per")<>"" or request("cnmai")<>"" then
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta name="keywords" content="供求信息,二手网,二手商品,电子商务,供求网站,免费发布供求信息,商业信息,贸易网,求购,求购信息,出售，供应,供求信息网，招商投资 生活服务 家电家居  旅游出行 招聘求职  房产信息 
建材装饰 烟酒副食 电脑网络  餐饮酒店  医药保健  农林牧渔  安全防护  包装纸张 办公文教  电子通讯  
纺织皮革  服装服饰  工业机械 仪器仪表 交通运输 车及配件 工艺礼品 文化艺术 冶金矿产 出版印刷 能源动力 环境保护 
化工行业 玩具体育 园林绿化 广告服务 商务服务 分类广告 搜索引擎 企业行业黄页 分类信息网 集市">
<title>晋城供求信息发布-<%=title%></title>
<script>
function loadThreadFollow(t_id,b_id){
	var targetImg =eval("document.all.followImg" + t_id);
	var targetDiv =eval("document.all.follow" + t_id);
	
	if ("object"==typeof(targetImg)){
		if (targetDiv.style.display!='block'){
			targetDiv.style.display="block";
			
		}else{
			targetDiv.style.display="none";
		}
	}
}
</script>

<SCRIPT language=javascript>
<!--
function CheckForm()
{
if(document.myform.biaoti.value.length<3)
	{
	    alert("信息标题没有填写或内容太少!");
	    return false;
	}
if(document.myform.memo.value.length<3)
	{
	    alert("信息内容没有填写或内容太少!");
	    return false;
	}
if(document.myform.name.value.length<1)
	{
	    alert("联系人姓名没有填写!");
	    return false;
	}
if(document.myform.dianhua.value.length<1)
	{
	    alert("联系电话没有填写!");
	    return false;
	}
}
//-->
</SCRIPT>
<SCRIPT language=javascript>
<!--
function CheckForm1()
{
if(document.myform1.biaoti.value.length<3)
	{
	    alert("信息标题没有填写或内容太少!");
	    return false;
	}
if(document.myform1.memo.value.length<3)
	{
	    alert("信息内容没有填写或内容太少!");
	    return false;
	}
if(document.myform1.name.value.length<1)
	{
	    alert("联系人姓名没有填写!");
	    return false;
	}
if(document.myform1.dianhua.value.length<1)
	{
	    alert("联系电话没有填写!");
	    return false;
	}
}
//-->
</SCRIPT>
</head>
<body topmargin="0">
<div align="center"><!--#include file="topcnmai.asp"-->
<table width="760" id="table1" bgcolor="#FFFFFF" style="border-left:1px solid #CCCCCC; border-right:1px solid #CCCCCC; padding:1px; border-top-width:1px; border-bottom-width:1px" cellspacing="0" cellpadding="0">
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td height="30" class=td5_muen></td>
</tr>
<tr>
<td valign="top">
<%if request("cnmai")="free" then%>
<form action="addxinxichk.asp" name="myform" method="POST">
<div align="center">
<table width="510" border="0" bordercolor="#FFFFFF" cellpadding="0" style="border-collapse: collapse">               
<tr> 
<td height="26" align="center">游客快速发布</td>
</tr>
<tr> 
<td>
<IMG src="image/a_1.gif" width="515" height="10"></td>
</tr>
<tr> 
<td height="26" width="528" background="image/b_1.gif">
<p style="margin-left: 50px">信息版块：<%
dim rsclass,sqlclass
dim count,username
username=request.cookies("cnmai")("username")
set rsclass=server.createobject("adodb.recordset")
sqlclass = "select * from class2 order by paixu desc"
rsclass.open sqlclass,conn,1,1
%><SCRIPT language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rsclass.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rsclass("class2"))%>","<%= trim(rsclass("class1"))%>","<%= trim(rsclass("id"))%>");
        <%
        count = count + 1
        rsclass.movenext
        loop
        rsclass.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><%
sqlclass = "select * from 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.myform.class1.options[document.myform.class1.selectedIndex].value)" size="1">
<OPTION selected value="0">信息类别</OPTION>
<%do while not rsclass.eof
%><OPTION value="<%=trim(rsclass("id"))%>"><%=trim(left(rsclass("class1"),4))%></OPTION>
<%
rsclass.movenext
loop
end if
rsclass.close
%></SELECT>
<SELECT name="class2">
<OPTION selected value="0">二级分类</OPTION>
</SELECT>
<font color="#FF0000" value="">*</font>    
<select name="leixing" size="1">
<option selected value="0">类型选择</option>
<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>
<option>没有类型</option>
</select></td>
</tr>
<tr> 
<td height="26" width="528" background="image/b_1.gif">
<p style="margin-left: 50px">信息标题：<input type="text" maxlength="30" name="biaoti" size="40">
<font color="#FF0000">*</font></td>
</tr>
<tr> 
<td height="26" width="528" background="image/b_1.gif">
<p style="margin-left: 50px">参考价格：<input type="text" maxlength="28" name="jiage" size="13">
没有价格留空</td>
</tr>
<tr> 
<td height="26" width="528" background="image/b_1.gif">
<p style="margin-left: 50px">信息地区：<SELECT name="diqu">
  <option value="市辖区">市辖区</option>
  <option value="高平市">高平市</option>
  <option value="阳城县">阳城县</option>
  <option value="泽州县">泽州县</option>
  <option value="沁水县">沁水县</option>
  <option value="陵川县">陵川县</option>
</SELECT></td></tr>
<tr> 
<td height="26" width="528" background="image/b_1.gif"><p style="margin-left: 50px">详细说明：<textarea rows="5" name="memo" cols="39"></textarea><font color="#FF0000">*</font></td></tr>

<tr>
<td height="26" width="528" background="image/b_1.gif"><p style="margin-left: 50px">图片地址：<input type="text" name="tupian" size="40"></td></tr>

<tr>
<td height="26" width="528" background="image/b_1.gif"><p style="margin-left: 50px">&nbsp; 联系人：<input type="text" name="name" size="15" maxlength="20"><font color="#FF0000">*</font></td></tr>
<tr>
<td height="26" width="528" background="image/b_1.gif"><p style="margin-left: 50px">联系电话：<input type="text" name="dianhua" size="21" maxlength="40"><font color="#FF0000"> *</font></td>
</tr>
<tr>
<td height="26" width="528" background="image/b_1.gif"><p style="margin-left: 50px">&nbsp;&nbsp; Email：<input type="text" name="email" size="21" maxlength="40"><font color="#FF0000"> *</font>QQ:<!--webbot bot="Validation" s-data-type="Number" s-number-separators="x." i-maximum-length="10" --><input type="text" name="qq" size="12" maxlength="10"><font color="#FF0000">*</font></td>
</tr>
<tr><td height="26" width="528" background="image/b_1.gif"><p style="margin-left: 50px">联系地址：<input type="text" name="dizhi" size="40" maxlength="20"></td>
</tr>
<tr><td height="26" width="528" background="image/b_1.gif">
<p style="margin-left: 50px">发布天数：<font face="宋体" size="2"><select name="days" size="1">
<option value="1">一天</option>
<option value="7" selected>一周</option>
<option value="15">半个月</option>
<option value="90">三个月</option>
<option value="180">六个月</option>
<option value="360">一年</option>
<option value="1080">三年</option>
</select></td>
</tr>
<tr> 
<td height="44" width="531" background="image/b_1.gif">
<p align="center">
<input type="submit" onClick="javascript:return CheckForm();" value="提交信息" name="B1">　<input type="reset" value="重新填写" name="B2"></td>
</tr>             
<tr> 
<td>
<IMG src="image/c_1.gif" width="515" height="9"></td>
</tr>             
</table>
</div>
</form>
<%else%>
<form action="addxinxichk.asp" name="myform1" method="POST">
<div align="center">
<table width="510" border="0" bordercolor="#FFFFFF" cellpadding="0" style="border-collapse: collapse">               
<tr> 
<td height="26" align="center">会员发布信息</td>
</tr>
<tr> 
<td>
<IMG src="image/a_1.gif" width="515" height="10"></td>
</tr>
<tr> 
<td height="26" background="image/b_1.gif">
<p style="margin-left: 50px">信息版块：<%
username=request.cookies("cnmai")("username")
set rsclass=server.createobject("adodb.recordset")
sqlclass = "select * from class2 order by paixu desc"
rsclass.open sqlclass,conn,1,1
%><SCRIPT language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rsclass.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rsclass("class2"))%>","<%= trim(rsclass("class1"))%>","<%= trim(rsclass("id"))%>");
        <%
        count = count + 1
        rsclass.movenext
        loop
        rsclass.close
        %>
onecount=<%=count%>;

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

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform1.class2.options[document.myform1.class2.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
</SCRIPT><%
sqlclass = "select * from 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.myform1.class1.options[document.myform1.class1.selectedIndex].value)" size="1">
<OPTION selected value="0">信息分类</OPTION>
<%do while not rsclass.eof
%><OPTION value="<%=trim(rsclass("id"))%>"><%=trim(mid(rsclass("class1"),1,4))%></OPTION>
<%
rsclass.movenext
loop
end if
rsclass.close
%></SELECT>
<SELECT name="class2">
<OPTION selected value="0">二级分类</OPTION>
</SELECT>
<font color="#FF0000">*</font>    
<select name="leixing" size="1">
<option selected value="0">类型选择</option>
<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>
<option>没有类型</option>
</select></td>
</tr>
<tr>
<%
dim rs,sql
set rs=server.createobject("adodb.recordset")
if request.cookies("cnmai")("com")="" then
sql = "select * from [user] where username='"&username&"'"
else
sql = "select * from [com] where username='"&username&"'"
end if
rs.open sql,conn,1,1
if rs.eof then
errcnmai(9)
response.end
end if
%>
<td height="26" background="image/b_1.gif">
<p style="margin-left: 50px">信息标题：<input type="text" maxlength="80" name="biaoti" size="31">
<font color="#FF0000">*</font><%if rs("a")>0 then%>
<select name="a">
<option style="COLOR: black" value="0" selected 　title="醒目您的信息，推荐使用[标题变色]需要花1个[变色道具]">标题变色</option>
<option style="background: #FF0000" value="FF0000"></option>
<option style="background: #CC9900" value="CC9900"></option>
<option style="background: #0000FF" value="0000FF"></option>
<option style="background: #000000" value="000000"></option>
</select>
<%else%> <font color="#999999">没有变色道具,请[兑换道具]吧</font>
<%end if%></td>
</tr>
<tr> 
<td height="26" background="image/b_1.gif">
<p style="margin-left: 50px">参考价格：<input type="text" maxlength="28" name="jiage" size="13">
没有价格留空</td>
</tr>
<tr> 
<td height="26" background="image/b_1.gif">
<p style="margin-left: 50px">信息地区：<SELECT name="diqu">
  <option value="市辖区">市辖区</option>
  <option value="高平市">高平市</option>
  <option value="泽州县">泽州县</option>
  <option value="阳城县">阳城县</option>
  <option value="沁水县">沁水县</option>
  <option value="陵川县">陵川县</option>
</SELECT></td>
</tr>
<tr> 
<td height="26" background="image/b_1.gif">
<p style="margin-left: 50px">信息内容：<textarea rows="9" name="memo" cols="44"></textarea>
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="26" background="image/b_1.gif">
　　图片链接地址：<input type="text" name="tupian" size="32" id="tupian" maxlength="200"> <span id="followImg1" style="CURSOR: hand" title="选中上传店标图片" onClick="loadThreadFollow(1,5)">无现成图片,可<font color="#FF0000">上传图片</font>↓</span></td>
</tr>
<tr style="display:none" id="follow1">
<td height="26" background="image/b_1.gif">
<p style="margin-left: 50px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<iframe name="I1" frameborder="0" width="71%" height="30" scrolling="no" src="uploadxinxi.asp"></iframe></td>
</tr>
<tr>
<td height="26" background="image/b_1.gif">
<p style="margin-left: 50px">&nbsp; 联系人：<input type="text" name="name" size="13" maxlength="20" value="<%=rs("name")%>">
<%if request.cookies("cnmai")("com")<>"" then%>－<input type="hidden" name="comper" value="com"><input type="text" name="com" size="25" maxlength="20" value="<%=rs("com")%>"><%else%><%end if%><font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="26" background="image/b_1.gif">
<p style="margin-left: 50px">联系电话：<input type="text" name="dianhua" size="23" maxlength="40" value="<%=rs("dianhua")%>">
<font color="#FF0000">*</font></td>
</tr>
<tr>
<td height="26" background="image/b_1.gif">
<p style="margin-left: 50px">&nbsp;&nbsp; Email：<input type="text" name="email" size="23" maxlength="40" value="<%=rs("email")%>">
<font color="#FF0000">* </font>QQ:<!--webbot bot="Validation" s-data-type="Number" s-number-separators="x." i-maximum-length="10" --><input type="text" name="qq" size="12" maxlength="10" value="<%=rs("QQ")%>"><font color="#FF0000">*</font></td>
</tr>
<tr> 
<td height="26" background="image/b_1.gif">
<p style="margin-left: 50px">联系地址：<input type="text" name="dizhi" size="43" maxlength="20" value="<%=rs("dizhi")%>"></td>
</tr>
<tr> 
<td height="26" background="image/b_1.gif">
<p style="margin-left: 50px">发布天数：<select name="days" size="1">
<option value="1">一天</option>
<option value="3">三天</option>
<option value="7" selected>一周</option>
<option value="15">半个月</option>
<option value="30">一个月</option>
<option value="90">三个月</option>
<option value="180">六个月</option>
<option value="360">一年</option>
<option value="1080">三年</option>
</select>&nbsp;&nbsp;&nbsp;  置顶排行：<%
dim b,i
b=rs("b")
%><%if b>0 then%><select name="b">
<option value="0">不使用</option>
<%for i=1 to b%>
<option value="<%=i%>"><%=i%></option>
<%next%>
</select>个
<img border="0" src="image/num/jsq.gif" title="使您的信息排在最前，数字越大越靠前,使用需要花n个[置顶道具]" width="10" height="11">
<%else%> <font color="#999999">没有道具,请[兑换道具]吧</font>
<%end if%></td>
</tr>
<tr> 
<td height="26" background="image/b_1.gif">
<p style="margin-left: 50px">验证通过：<%if rs("d")>0 then%><input type="hidden" value="1" name="d" checked title="选中发布信息直接在页面显示，使用需要花1个[验证道具]">直接通过<%else%></font><input type="hidden" value="0" name="d" checked><font color="#ACACAC">没有验证道具，请[兑换道具]吧</font><%end if%></td>
</tr>
<tr> 
<td height="26" background="image/b_1.gif">
<p style="margin-left: 50px">是否推荐：<%if request.cookies("cnmai")("vip")=1 then%><input type="radio" value="1" name="tui" title="选中推荐您的信息">推荐 
<input type="radio" name="tui" value="0">不推荐<font color="#C0C0C0"><%else%></font><input type="radio" name="tui" value="0" checked><font color="#FF0000">您不是VIP会员，不能使用推荐，请联系我们推荐您的信息</font><%end if%></td>
</tr>
<tr> 
<td height="40" background="image/b_1.gif">
<p align="center">
<input type="submit" onClick="javascript:return CheckForm1();" value="提交信息" name="B1">　<input type="reset" value="重新填写" name="B2"></td>
</tr>             
<tr> 
<td>
<IMG src="image/c_1.gif" width="515" height="9"></td>
</tr>             
</table>
</div>
</form>
<%
rs.close
set rs=nothing
closedb
end if
%></td>
</tr>
</table>
<!--#include file="endcnmai.asp"-->
</div>
</body>
</html>
<%
else
response.redirect "login.asp"
end if %>