<!--#include file="inc/conn.asp"-->
<!--#include file="inc/jle_sub.asp"-->
<!--#include file="stop_post.asp"-->
<%
'    @@@@@@ 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;
	}



}
//-->
</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">
<table width="1300" border="0" cellspacing="0" cellpadding="0" background="img/titlebg.png" style="background-repeat:repeat-x; height:32px; border:1px #EEEEEE solid; margin-bottom:10px;">
  <tr>
    <td style="padding-left:20px;"><a href="/" class="F12bold">首页</a>&gt;&gt;<a href="#" class="F12bold">会员发布信息</a></td>
  </tr>
</table>
<table width="1300" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="277" valign="top"><table width="265" border="0" cellspacing="0" cellpadding="0" background="img/titlebg.png" style="background-repeat:repeat-x; height:32px; border:1px #EEEEEE solid; margin-bottom:10px;">
      <tr>
        <td height="32" style="padding-left:20px; color:#FF0000;">本站声明</td>
      </tr>
	  <tr>
        <td style="padding:5px;">1.请不要发布有害国家和他人形象的信息,造成后果我们将您的IP地址提供给公安部门。<br />
------------------------------- <br />
2.请在指定的栏目内发布您的信息；请不要在标题加特殊字符； <font color="#FF0000">请不要重复发布信息，或同条信息同一天内连续发布。<br />
</font> -------------------------------<br />
3.请您认真审核您所发的信息内容，不要发文不对题或已经有人发布过的信息。转发信息请注明来处。 <br />
------------------------------- <br />
4.与主题内容无关的回复或者“一字帖”，系统将会删除。<br />
您发布的信息也许有人回复,请您常来关注! </td>
      </tr>
    </table>
      <table width="265" border="0" cellspacing="0" cellpadding="0" background="img/titlebg.png" style="background-repeat:repeat-x; height:32px; border:1px #EEEEEE solid; margin-bottom:10px;">
        <tr>
          <td height="32" style="padding-left:20px; color:#FF0000;">为什么要注册？</td>
        </tr>
        <tr>
          <td style="padding:5px;">会员发布信息,享受强大的会员管理功能:<br>
①发布的信息可以直接管理<br />
------------------------------- <br>
②可以收藏/管理信息，③置顶/推荐两大功能<br />
------------------------------- <br>
④发布天数更长，<br />
------------------------------- ⑤可以免费发布/上传图片<br />
------------------------------- <br>
这么多的好处还等什么呢？赶快注册一个会员体验吧！
<a target="_blank" href="jle_reg_520.asp"><font color="#FF0000">点此免费注册</td>
        </tr>
      </table></td>
    <td width="1023" valign="top"><table width="100%" cellspacing="0" cellpadding="0"  style="border:1px #EEEEEE solid;">
      <tr>
        <td><form action="xx_fabu_check.asp?jle=add" method="post" name="myform" id="myform">
            <table width="100%" border="0" cellpadding="0" background="img/titlebg.png" style="background-repeat:repeat-x; margin-bottom:8px; background-position:bottom">
              <tr>
                <td height="88" style="padding:10px;">                  <font color="#FF0000">温馨提醒：</font><font color="#EE113D">请共同维护网站秩序,不要发布违法、重复的信息,如在使用过程中遇到困难,请向QQ客服咨询,<font color="#EE113D">如果找不到您信息所归类别,请向客服反应,我们将及时添加.谢谢大家的支持.愿我们能给您的生活带来便利.祝您生活愉快！</font></font></td>
                </tr>
            </table>
          <table width="100%" border="0" cellpadding="0">
              <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" type="text/javascript">
var classcount;
classcount=0;
subclass = new Array();
        <%
        count = 0
        do while not rsclass.eof 
        %>
subclass[<%=count%>] = new Array("<%= trim(rsclass("class2"))%>","<%= trim(rsclass("class1"))%>","<%= trim(rsclass("id"))%>");
        <%
        count = count + 1
        rsclass.movenext
        loop
        rsclass.close
        %>
classcount=<%=count%>;

function changeclass(classid)
    {
    document.myform.class2.length = 0; 

    var classid=classid;
    var i;
    for (i=0;i < classcount; i++)
        {
            if (subclass[i][1] == classid)
            { 
                document.myform.class2.options[document.myform.class2.length] = new Option(subclass[i][0], subclass[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="changeclass(document.myform.class1.options[document.myform.class1.selectedIndex].value)" size="1">
                          <option selected="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="selected" value="">== 次分类 ==</option>
                        </select>
                  <font color="#FF0000">*<font color="#FF0000">请选择您要发布信息所属的栏目类别</font></font> </p></td>
              </tr>
              <tr>
                <td height="28" colspan="2"><p style="margin-left: 50px">所在地区：
                  <!---区域start-->
                        <script language="JavaScript" type="text/javascript">
var onecount;
onecount=0;
subcat = new Array();
        
		<%
		i=0
		set rs2=server.createobject("ADODB.Recordset")
            sql2="select shi_id,shi_name,sheng_id from sc_shi"
            rs2.open sql2,conn,1,3
            If Not rs2.Eof Then 
            do while not rs2.eof
			
            %>
			subcat[<%=i%>] = new Array("<%=rs2("shi_name")%>","<%=rs2("sheng_id")%>","<%=rs2("shi_id")%>");
            <%
			i=i+1
              rs2.movenext
              loop
              end if
              rs2.close
              set rs2=nothing
            %>

onecount=<%=i%>;

var onecount4;
onecount4=0;
subcat4 = new Array();
     
<%
		i=0
		set rs3=server.createobject("ADODB.Recordset")
            sql3="select a.qu_id,a.qu_name,a.shi_id,b.shi_name,b.sheng_id from sc_qu a inner join sc_shi b on a.shi_id=b.shi_id"
            rs3.open sql3,conn,1,3
            If Not rs3.Eof Then 
            do while not rs3.eof
			
            %>
			subcat4[<%=i%>] = new Array("<%=rs3("qu_name")%>","<%=rs3("sheng_id")%>","<%=rs3("shi_id")%>","<%=rs3("qu_id")%>");
            <%
			i=i+1
              rs3.movenext
              loop
              end if
              rs3.close
              set rs3=nothing
            %>

onecount4=<%=i%>;

	 

 
 
 
function changelocation_shi(locationid)
    {
    document.myform.city_two.length = 0; 
	document.myform.city_two.options[0] = new Option('选择城市','');
	document.myform.city_three.length = 0; 
	document.myform.city_three.options[0] = new Option('选择城市','');
    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform.city_two.options[document.myform.city_two.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
	
	function changelocation4(locationid,locationid1)
    {
    document.myform.city_three.length = 0; 
    document.myform.city_three.options[0] = new Option('选择城市','');
    var locationid=locationid;
	 var locationid1=locationid1;
    var i;
    for (i=0;i < onecount4; i++)
        {
            if (subcat4[i][2] == locationid)
            { 
			if (subcat4[i][1] == locationid1)
			{
                document.myform.city_three.options[document.myform.city_three.length] = new Option(subcat4[i][0], subcat4[i][3]);
            }        
        }
       } 
    }            
        </script>
                        <select onChange="changelocation_shi(document.myform.city_one.options[document.myform.city_one.selectedIndex].value)" id="select" size="1" name="city_one">
                          <option selected="selected" value="">选择城市</option>
                          <%set rs1=server.createobject("ADODB.Recordset")
            sql1="select sheng_id,sheng_name from sc_sheng"
            rs1.open sql1,conn,1,3
            If Not rs1.Eof Then 
            do while not rs1.eof
            %>
                          <option value='<%=rs1("sheng_id")%>'><%=rs1("sheng_name")%></option>
                          <%
              rs1.movenext
              loop
              end if
              rs1.close
              set rs1=nothing
            %>
                        </select>　
                        <select onChange="changelocation4(document.myform.city_two.options[document.myform.city_two.selectedIndex].value,document.myform.city_one.options[document.myform.city_one.selectedIndex].value)" id="select6" name="city_two">
                        </select>
                        　
                        <select id="select7" name="city_three">
                        </select>
                </p></td>
              </tr>
              <tr>
                <td height="26" colspan="2"><p style="margin-left: 50px">信息类别：
                      <%call leixs()%>
                  &nbsp;&nbsp;&nbsp;　标题：　
                  <input type="text" maxlength="25" name="biaoti" size="40" />
                        <font color="#FF0000">*</font>标题请简要描述,比如出售电脑一台</p></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="readonly" type="text" name="remLen" size="4" maxlength="2" value="1500" style="border: 1 solid #888888" />
                  个字 <font color="#FF0000">*</font> </p></td>
              </tr>
              <%if jle="free" and  username="" then%>
              <tr>
                <td width="12%" height="26" bgcolor="#F6F6F6"><p style="margin-left: 50px">图片地址：
                  </p></td>
                <td width="88%" bgcolor="#F6F6F6"><span style="margin-left: 50px">
                  <input name="tupian" type="text" id="tupian" size="40" />
游客可以提交图片链接地址,会员不限制 <a target="_blank" href="jle_reg_520.asp"><font color="#FF0000">免费注册</font></a></span></td>
              </tr>
              <tr>
                <td height="26"><p style="margin-left: 50px">&nbsp; 联系人：
                      </p></td>
                <td height="26"><span style="margin-left: 50px">
                  <input name="name" type="text" id="name" size="15" maxlength="20" />
                  <font color="#FF0000">*</font>&nbsp;&nbsp;您的姓名或称呼(中文2~4字) </span></td>
              </tr>
              <tr>
                <td height="26" bgcolor="#F6F6F6"><p style="margin-left: 50px">联系电话：
                      </p></td>
                <td height="26" bgcolor="#F6F6F6"><span style="margin-left: 50px">
                  <input name="dianhua" type="text" id="dianhua" onKeyUp="value=value.replace(/[^\d,.,-]/g,'')" size="21" maxlength="40" />
                  <font color="#FF0000">*</font>&nbsp;&nbsp;您的手机或电话号码(不能写英文字母或汉字) </span></td>
              </tr>
              <tr>
                <td height="26"><p style="margin-left: 50px">&nbsp;&nbsp; Email：
                      </p></td>
                <td height="26"><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" bgcolor="#F6F6F6"><p style="margin-left: 25px">&nbsp;&nbsp;&nbsp; 联系地址：
                      
                </p></td>
                <td height="26" bgcolor="#F6F6F6"><input type="text" name="dizhi" size="64" maxlength="20" /></td>
              </tr>
              <%
end if
if username="" and jle<>"free" then
response.redirect "login.asp"
end if
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" align="right">图片链接地址：</td>
                <td height="26" align="left"><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">上传图片</td>
              </tr>
              <tr style="display:none" id="follow1">
                <td height="26" colspan="2"><p style="margin-left: 50px">
                        <iframe src="uploadinfo.asp" name="I1" width="800" height="30" scrolling="No" frameborder="0" id="I1"></iframe>
                </p></td>
              </tr>
              <tr>
                <td height="26" bgcolor="#F6F6F6"><p style="margin-left: 50px">&nbsp; 联系人：
                      </p></td>
                <td height="26" bgcolor="#F6F6F6"><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="com2" size="25" maxlength="20" value="<%=rs("com")%>" />
                        <%else%>
                        <%end if%>
                        <font color="#FF0000">*</font> </td>
              </tr>
              <tr>
                <td height="26" bgcolor="#F6F6F6"><p style="margin-left: 50px">联系电话：
                      </p></td>
                <td height="26" bgcolor="#F6F6F6"><input type="text" name="dianhua" size="23" maxlength="40" value="<%=rs("dianhua")%>" />
                        <font color="#FF0000">*</font>(7位以上数字,不能写英文字母或汉字,否则将无法显示。) </td>
              </tr>
              <tr>
                <td height="26" bgcolor="#F6F6F6"><p style="margin-left: 50px">&nbsp;&nbsp; Email：
                      </p></td>
                <td height="26" bgcolor="#F6F6F6"><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" bgcolor="#F6F6F6"><p style="margin-left: 50px">联系地址：
                      
                </p></td>
                <td height="26" bgcolor="#F6F6F6"><input type="text" name="dizhi" size="43" maxlength="20" value="<%=rs("dizhi")%>" /></td>
              </tr>
              <tr>
                <td height="26" colspan="2" bgcolor="#F6F6F6"><p style="margin-left: 50px"><font color="#FF0000">是否推荐：</font>
                      <%if request.cookies("jle")("vip")=1 then%>
                        <input type="radio" value="1" name="tui" title="选中推荐您的信息" />
                  推荐
                  <input type="radio" name="tui" value="0" checked="checked" />
                  不推荐 <font color="#C0C0C0">
                    <%else%>
                    </font>
                        <input type="radio" name="tui" value="0" checked="checked" />
                        <font color="#FF0000">您不是VIP会员,不能使用推荐,请联系我们推荐您的信息</font>
                        <%end if%>
                </p></td>
              </tr>
              <tr>
                <td height="26" colspan="2" bgcolor="#F6F6F6"><p style="margin-left: 50px"><font color="#FF0000">成为贴贴墙：</font>
                      <%if request.cookies("jle")("vip")=1 then%>
                        <input type="radio" value="1" name="sj" title="选中成为贴贴墙" />
                  选择
                  <input type="radio" name="sj" value="0" checked="checked" />
                  不选择 <font color="#C0C0C0">
                        <%else%>
                        </font>
                        <input type="radio" name="sj" value="0" checked="checked" />
                        <font color="#FF0000">您不是VIP会员,不能制作贴贴墙</font>
                        <%end if%>
                </p></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>
                </p></td>
              </tr>
              <tr>
                <td colspan="2"><p align="center"><font color="#FF0000">发布信息前请确认您的输入正确无误，并且不要输入不良字眼？以保证您发布的信息获得更好的价值！</font> </p></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()" />
                </p></td>
              </tr>
            </table>
        </form></td>
      </tr>
    </table></td>
  </tr>
</table>

</div>
<%call bottom()%>

</body>
</html>