<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<!--#include file="inc/conn.asp"-->
<!--#include file="inc/jle_sub.asp"-->
<!--#include file="stop_post.asp"-->
<script language="JavaScript">
function InitAjax() {
    var xmlhttp = false;
    try {
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch(e) {
        try {
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch(E) {
            xmlhttp = false;
        }
    }
    if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
        xmlhttp = new XMLHttpRequest();
    }
    return xmlhttp;
}

function GetpidText(qid) {
    var xmlhttp = InitAjax();
    xmlhttp.onreadystatechange = function() {
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            var data = unescape(xmlhttp.responseText);
            var dataArray = data.split("@@@@");
            document.getElementById("Pid").options.length = 0;
            for (var i = 0; i < dataArray.length; i++) {
                if (dataArray[i] == "") {
                    continue;
                }
                var optionArray = dataArray[i].split('$$$$');
                var oOption = document.createElement("OPTION");
                oOption.text = optionArray[1];
                oOption.value = optionArray[0];
                if (optionArray[2] == 1) {
                    oOption.selected = true;
                }
                document.getElementById("Pid").options.add(oOption);
            }

            for (var i = Cid.options.length - 1; i >= 0; i--) {
                Cid.options[i] = null;
            }

            var iOption = document.createElement("OPTION");
            iOption.text = "全部";
            iOption.value = "";

            document.getElementById("Cid").options.add(iOption);

            for (var i = Xid.options.length - 1; i >= 0; i--) {
                Xid.options[i] = null;
            }

            iOption = document.createElement("OPTION");
            iOption.text = "全部";
            iOption.value = "";

            document.getElementById("Xid").options.add(iOption);

        }
    }
    xmlhttp.open("get", "GetNormalData.asp?Act=Province&id=" + qid, true);
    xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    xmlhttp.send(null);
}

function GetcidText(qid) {
    var xmlhttp = InitAjax();
    xmlhttp.onreadystatechange = function() {
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            var data = unescape(xmlhttp.responseText);
            var dataArray = data.split("@@@@");
            document.getElementById("Cid").options.length = 0;
            for (var i = 0; i < dataArray.length; i++) {
                if (dataArray[i] == "") {
                    continue;
                }
                var optionArray = dataArray[i].split('$$$$');
                var oOption = document.createElement("OPTION");
                oOption.text = optionArray[1];
                oOption.value = optionArray[0];
                if (optionArray[2] == 1) {
                    oOption.selected = true;
                }

                document.getElementById("Cid").options.add(oOption);
            }
            if (Cid.options.length == 0) {
                document.getElementById("Cid").options.add(new option("全部", ""));

            }
            for (var i = Xid.options.length - 1; i >= 0; i--) {
                Xid.options[i] = null;
            }

            var iOption = document.createElement("OPTION");
            iOption.text = "全部";
            iOption.value = "";

            document.getElementById("Xid").options.add(iOption);

        }
    }
    xmlhttp.open("get", "GetNormalData.asp?Act=City&id=" + qid, true);
    xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    xmlhttp.send(null);
}

function GetxidText(qid) {
    var xmlhttp = InitAjax();
    xmlhttp.onreadystatechange = function() {
        if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
            var data = unescape(xmlhttp.responseText);
            var dataArray = data.split("@@@@");
            document.getElementById("Xid").options.length = 0;
            for (var i = 0; i < dataArray.length; i++) {
                if (dataArray[i] == "") {
                    continue;
                }
                var optionArray = dataArray[i].split('$$$$');
                var oOption = document.createElement("OPTION");
                oOption.text = optionArray[1];
                oOption.value = optionArray[0];
                if (optionArray[2] == 1) {
                    oOption.selected = true;
                }

                document.getElementById("Xid").options.add(oOption);
            }

        }
    }
    xmlhttp.open("get", "GetNormalData.asp?Act=county&id=" + qid, true);
    xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    xmlhttp.send(null);
}
</script>
<%
'    @@@@@@ www..com.cn @@@@@@@@@@@@@@
'   @                                        @
'  @                                          @
'  @         吉林信息网。服务百姓生活   @
'  @                                          @
'   @                                        @
'    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><%=title%>-免费发布信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="Keywords"  content="<%=metakey%>" />
<meta name="Description" content="<%=metades%>" />
<link rel="icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<%=web%>/favicon.ico" type="image/x-icon" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language= "JavaScript" src="inc/zoom.js"></script>
<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.class1.value=="")
	{
	    alert("请选择一级分类!");
        document.myform.class1.focus();
        return false;
	}
if(document.myform.class2.value=="")
	{
	    alert("请选择二级分类!!");
        document.myform.class2.focus();
        return false;
	}
if(document.myform.diqu.value=="选择地区")
	{
	    alert("请您选择地区！");
        document.myform.diqu.focus();
        return false;
	}

if(document.myform.leixing.value.length<1)
	{
	    alert("请选择信息类别!");
        document.myform.leixing.focus();
	    return false;
	}
if(document.myform.biaoti.value.length<3)
	{
	    alert("信息标题没有填写或内容太少!");
        document.myform.biaoti.focus();
        document.myform.biaoti.select();
	    return false;
	}
if(document.myform.memo.value.length>1500)
	{
	    alert("请把信息内容的字数控制在1500以内！");
        document.myform.memo.focus();
        document.myform.memo.select();
	    return false;
	}

if(document.myform.memo.value.length<3)
	{
	    alert("信息内容没有填写或内容太少!");
        document.myform.memo.focus();
        document.myform.memo.select();
	    return false;
	}
	
//if (document.myform.name.value.length == 0) {
//		alert("请您填写联系人姓名！");
//		document.myform.name.focus();
//		return false;
//	}
//	var str="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ,./'[]{}`1234567890-=\~!@#$%^&*()_+|?><:";
//	var errorChar
//	errorChar = isCharsInBag(myform.name.value,str)
//	if (errorChar != "" )
//	{
//		alert('联系人姓名必须是中文！');
	//	myform.name.focus();
	//	return false;
	//} 
//function isCharsInBag (s, bag)
//{ 
//var i,c;
//for (i = 0; i < s.length; i++)
//{ 
//c = s.charAt(i);//字符串s中的字符
//if (bag.indexOf(c) > -1) 
//return c;
//}
//return "";
//}

//if(document.myform.name.value.length<2||document.myform.name.value.length>4)
//	{
//	    alert("联系人姓名不能少于2字多于4字！");
  //      document.myform.name.focus();
    //    document.myform.name.select();
	  //  return false;
//	}
if(document.myform.dianhua.value.length<7)
	{
	    alert("请填写您的联系电话,不能小于七位！");
       document.myform.dianhua.focus();
      document.myform.dianhua.select();
	    return false;
	}
if(document.myform.days.value=="选择有效期")
	{
	    alert("请您选择有效期限！");
        document.myform.days.focus();
        return false;
	}
if (document.Login.kqiqi_checkcode.value.length == 0)
   {
       alert ("请输入您的验证码！");
       document.Login.kqiqi_checkcode.focus();   
       return(false);
    }

}
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">      
<!-- Begin
maxLen = 1500;
function checkMaxInput(form) {
if (form.memo.value.length > maxLen)
form.remLen.value = 0;
else form.remLen.value = maxLen - form.memo.value.length;
}
//  End -->
</SCRIPT>
</head>
<body>
<%call top()%><div id="Fmain">

<div id=FFTit><a href="/" class=F12bold>首页</a>>><a href="#" class=F12bold>发布信息</a></div>
<div class=kon></div>
<div id="Pleft">
  <div id=FFTit class=F12bold>本站声明</div><div id=FFContent><div Class='FFdiv'>

1.请不要发布有害国家和他人形象的信息,造成后果我们将您的IP地址提供给公安部门。<br />
-------------------------------
<br>
2.请在指定的栏目内发布您的信息；请不要在标题加特殊字符；
<font color="#FF0000">请不要重复发布信息，或同条信息同一天内连续发布。<br />
</font>
-------------------------------<br>
3.请您认真审核您所发的信息内容，不要发文不对题或已经有人发布过的信息。转发信息请注明来处。
<br />
------------------------------- <br>
4.与主题内容无关的回复或者“一字帖”，系统将会删除。<br>
您发布的信息也许有人回复,请您常来关注! 
</div></div><div class=kon></div>
<div id=FFTit class=F12bold>为什么要注册？</div><div id=FFContent><div Class='FFdiv'>
会员发布信息,享受强大的会员管理功能:<br>
①发布的信息可以直接管理<br />
------------------------------- <br>
②可以收藏/管理信息，③置顶/推荐两大功能<br />
------------------------------- <br>
④发布天数更长，<br />
------------------------------- ⑤可以免费发布/上传图片<br />
------------------------------- <br>
这么多的好处还等什么呢？赶快注册一个会员体验吧！
<a target="_blank" href="jle_reg_520.asp""><font color="#0000FF">点此免费注册</font></a>
</div></div></div>
<div id="Pright"><div id=FFContent><div Class='FFdiv'>
<table width="100%" cellspacing="0" cellpadding="0" background="img/fbbg.jpg">
<tr>
<td>
<form action="xx_fabu_check.asp?jle=add" name="myform" method="POST">
<table width="100%" border="0" cellpadding="0">
<tr>
<td width="27%" height="88">
  <p align="center" style="font-family:黑体;color:#f00;font-size:32px;line-height:180%; font-weight:bold">免费发布</td>
<td width="73%"><font color=#0000FF>温馨提醒：</font><font color=#EE113D>请共同维护网站秩序,不要发布违法、重复的信息,如在使用过程中遇到困难,请向QQ客服咨询,<font color=#EE113D>如果找不到您信息所归类别,请向客服反应,我们将及时添加.谢谢大家的支持.愿我们能给您的生活带来便利.祝您生活愉快！</font></font></td>
</tr>

<tr>
<td height="27" colspan="2">
<p style="margin-left: 25px">分类信息版块：
<%
dim rsclass,sqlclass
username=request.cookies("jle")("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="">== 请选择主分类 ==</OPTION>
<%do while not rsclass.eof
%>
<OPTION value="<%=trim(rsclass("id"))%>"><%=trim(rsclass("class1"))%></OPTION>
<%
rsclass.movenext
loop
end if
rsclass.close
%>
</SELECT> 
<SELECT name="class2"><OPTION selected value="">== 次分类 ==</OPTION></SELECT>
<font color="#FF0000">*请选择您要发布信息所属的栏目类别</font> <br />
</td>
</tr>
<tr>
<td height="26" colspan="2">
<div style="margin-left: 50px;float:left;">所在地区：</div>

<div style="width:100%; float:left;">
			<div style="float:left; padding:5px;">
			<select style="width:60px;" name="sheng_id" onChange="GetpidText(this.options[this.selectedIndex].value);">
                <option value="">全部</option>
                <% 
          
			sql="select * from sc_sheng "
			set rs_p=Conn.execute(sql)
			do while not rs_p.eof
		%>
                <option value="<%=rs_p("sheng_id")%>"><%=rs_p("sheng_name")%></option>
                <%
			rs_p.movenext
			loop
			rs_p.close
			set rs_p=nothing
			
		%>
                </select>
               
              </div><div style="float:left; padding:5px 10px 5px 0px;">省</div>
                <div id="province" style="float:left;padding:5px;">
                  <select name='Pid' style="width:60px;" id="Pid" onChange="GetcidText(this.options[this.selectedIndex].value);">
                    <option value="">全部</option>
                  </select>
                  </div><div style="float:left; padding:5px 10px 5px 0px;">市</div> 
             
            
                <div id="city" style="float:left;padding:5px;">
                  <select name='Cid' style="width:60px;" id="Cid" onChange="GetxidText(this.options[this.selectedIndex].value);">
                    <option value="">全部</option>
                  </select>
                  </div><div style="float:left; padding:5px 10px 5px 0px;">区</div>
            <div id="county" style="float:left;padding:5px 10px 5px 0px;">
                  <select name='Xid' style="width:60px;" id="Xid">
                    <option value="">全部</option>
                  </select>
                </div>
            
          
               
				
				</div>
</td>
</tr>
<tr>
<td height="26" colspan="2">
<p style="margin-left: 50px">信息类别：<%call leixs()%>&nbsp;标题： 
<input type="text" maxlength="25" name="biaoti" size="40"> 
<font color="#FF0000">*</font>标题请简要描述,比如出售电脑一台</td>
</tr>
<tr>
<td height="26" colspan="2">
<p style="margin-left: 50px">信息内容：
<textarea  rows="14" name="memo" id="memo" cols="71" onKeyDown="checkMaxInput(this.form)" onKeyUp="checkMaxInput(this.form)"></textarea>
<img border="0" src="image/plus.gif" width="20" height="20" onMouseOver="this.style.cursor='hand'" onClick="sizeContent(5,'memo')" alt="增大输入框">
<img border="0" src="image/minus.gif" width="20" height="20" onMouseOver="this.style.cursor='hand'" onClick="sizeContent(-5,'memo')" alt="缩小输入框">

<BR>
*&nbsp;1500字以内&nbsp;目前还可以写
<INPUT readonly type=text name=remLen size=4 maxlength=2 value="1500" style="border: 1 solid #888888">
个字
<font color="#FF0000">*</font>
</td>
</tr>
<tr>
<td height="26" colspan="2" bgcolor="#D6EFF6">
<p style="margin-left: 50px">图片地址：<input type="text" name="tupian" size="40"> 游客可以提交图片链接地址,会员不限制 <a target="_blank" href="jle_reg_520.asp""><font color="#0000FF">免费注册</font></a>
</td>
</tr>
<tr>
<td height="26" colspan="2">
<p style="margin-left: 50px">&nbsp; 联系人：<input type="text" name="name" size="15" maxlength="20">
<font color="#FF0000">*</font>&nbsp;&nbsp;您的姓名或称呼(中文2~4字)
</td>
</tr>
<tr>
<td height="26" colspan="2" bgcolor="#D6EFF6">
<p style="margin-left: 50px">联系电话：<input type="text" name="dianhua" size="21" maxlength="40" onKeyUp="value=value.replace(/[^\d,.,-]/g,'')">
<font color="#FF0000">*</font>&nbsp;&nbsp;您的手机或电话号码(不能写英文字母或汉字)
</td>
</tr>
<tr>
<td height="26" colspan="2">
<p style="margin-left: 50px">&nbsp;&nbsp; Email：<input type="text" name="email" size="21" maxlength="40">
QQ:<input type="text" name="qq" size="12" maxlength="10">
</td>
</tr>
<tr>
<td height="26" colspan="2" bgcolor="#D6EFF6">
<p style="margin-left: 25px">&nbsp;&nbsp;&nbsp; 联系地址：<input type="text" name="dizhi" size="64" maxlength="20">
</td>
</tr>
<%

if username<>"" then
'if request.cookies("jle")("username")<>"" or request.cookies("jle")("per")<>"" or request("jle")<>"" then
set rs=server.createobject("adodb.recordset")
if request.cookies("jle")("com")="" then
sql = "select * from [user] where username='"&username&"'"
else
sql = "select * from [jle_shop] where username='"&username&"'"
end if
rs.open sql,conn,1,1
if rs.eof then
response.write "没有找到该用户"
response.end
end if
%> 
<tr>
<td height="26" colspan="2">
<p style="margin-left: 25px">图片链接地址：<input type="text" name="tupian" size="32" id="tupian" maxlength="200"> 
<span id="followImg1" style="CURSOR: hand" title="选中上传图片" onClick="loadThreadFollow(1,5)">无现成图片,</span>
<span id="followImg1" style="CURSOR: hand" onClick="loadThreadFollow(1,5)"><input type="checkbox" name="C3" value="ON"></span>
<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" colspan="2">
<p style="margin-left: 50px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<iframe name="I1" frameborder="0" width="80%" height="30" scrolling="no" src="uploadinfo.asp"></iframe>
</td>
</tr>
<tr>
<td height="26" colspan="2" bgcolor="#D6EFF6">
<p style="margin-left: 50px">&nbsp; 联系人：<input type="text" name="name" size="13" maxlength="20" value="<%=rs("name")%>"> 
<%if request.cookies("jle")("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" colspan="2">
<p style="margin-left: 50px">联系电话：<input type="text" name="dianhua" size="23" maxlength="40" value="<%=rs("dianhua")%>"> 
<font color="#FF0000">*</font>(7位以上数字,不能写英文字母或汉字,否则将无法显示。)
</td>
</tr>
<tr>
<td height="26" colspan="2" bgcolor="#D6EFF6">
<p style="margin-left: 50px">&nbsp;&nbsp; Email：<input type="text" name="email" size="23" maxlength="40" value="<%=rs("email")%>"> 
腾讯QQ:<input type="text" name="qq" size="12" maxlength="10" value="<%=rs("QQ")%>">
</td>
</tr>
<tr>
<td height="26" colspan="2"><p style="margin-left: 50px">联系地址：<input type="text" name="dizhi" size="43" maxlength="20" value="<%=rs("dizhi")%>">
</td>
</tr>
<tr>
<td height="26" colspan="2" bgcolor="#D6EFF6">
<p style="margin-left: 50px">是否推荐：<%if request.cookies("jle")("vip")=1 then%>
<input type="radio" value="1" name="tui" title="选中推荐您的信息">推荐
<input type="radio" name="tui" value="0" checked>不推荐
<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="26" colspan="2">
<p style="margin-left: 50px">成为贴贴墙：<%if request.cookies("jle")("vip")=1 then%>
<input type="radio" value="1" name="sj" title="选中成为贴贴墙">选择 
<input type="radio" name="sj" value="0" checked>不选择
<font color="#C0C0C0">
<%else%>
</font>
<input type="radio" name="sj" value="0" checked>
<font color="#FF0000">您不是VIP会员,不能制作贴贴墙</font>
<%end if%>
</td>
</tr>

<%end if%> 
<tr>
<td height="26" colspan="2">
<p style="margin-left: 50px">信息有效期：<select name="days" size="1">
           <OPTION value="365">一年</OPTION>
          <OPTION value="31">一个月</OPTION>
          <OPTION value="61">两个月</OPTION>
          <OPTION value="92">三个月</OPTION>
          <OPTION value="183">半年</OPTION>
          
</select>
</td>
</tr>
<tr> 
<td height="28" colspan="2">
<p style="margin-left: 50px">验 证 码：&nbsp;&nbsp;   
  <input name="kqiqi_checkcode"  type="text"  id="kqiqi_checkcode" style="width:80px;border-style:solid;border-width:1px;padding-left:4px;padding-right:4px;;padding-top:4px;padding-bottom:4px;" maxlength="5" size="11"><img src=getcode.asp alt="验证码,看不清楚请点击刷新验证码" title="看不清请点击刷新验证码" style="cursor:pointer;height:20px;" onClick="this.src='getcode.asp?rand='+Math.random()"> </td>
</tr>
<tr>
<td colspan="2">
<p align="center">发布信息前请确认您的输入正确无误，并且不要输入不良字眼？以保证您发布的信息获得更好的价值！
</td>
</tr>

<tr>
<td height="44" colspan="2">
<p align="center"><input type="submit" onClick="javascript:return CheckForm();" value="发布信息" name="B1">　<input type="reset" value="重新来过" name="B2"> <INPUT type="button" value="返回" name="back" onClick="javascript:history.back()">

</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</div></div>
 <br style="clear:both;" />
</div>


<div id="footer">
<%call bottom()%>
</div>
</div>
</body>
</html>