<!--#include file="../conn.asp"-->
<!--#include file="../SqlIn.Asp"-->
<!--#include file=cookies.asp-->
<!--#include file=../config.asp-->
<!--#include file="../Include/head.asp"-->
<!--#include file="../Include/Function.asp"-->
<!--#include file="../Include/label.asp"-->
<!--#include file="../Include/err.asp"-->

<%
'=====================================
'天天供求信息网站管理系统
'天天网络科技工作室出品
'客服中心:http://www.ip126.com
'微信公众号:ip126com
'QQ:530051328 mail:bbfhq@163.com
'=====================================
%>

<%Dim username,count,b,yz%>
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>编辑信息</title>
<link rel="stylesheet" type="text/css" href="../css/css.css">
<BODY>
<script src="../Include/prototype.js"></script>
<script language=javascript src="../Include/mouse_on_title.js"></script>
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
<script language="javascript">
<!--
//验证邮箱正确性
function checkemail(email){
var str=email;
//在JavaScript中，正则表达式只能使用"/"开头和结束，不能使用双引号
var Expression=/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/; 
var objExp=new RegExp(Expression);
if(objExp.test(str)==true){
return true;
}else{
return false;
}
} 

//说明字节数限制，与下面配合=========
String.prototype.Length=function(){
temp=this.replace(/([^\x00-\xff])/g,"$1$1");
return temp.length
}

function formcheck(){

if (document.myform.city_one.value==0)
	{
	  alert("请选择地区！")
	  document.myform.city_one.focus()
	  return false
	 }

if (document.myform.type_one.value==0)
	{
	  alert("请选择信息一级分类！")
	  document.myform.type_one.focus()
	  return false
	 }
if (document.myform.biaoti.value=="" )
	{
	  alert("请填信息标题")
	  document.myform.biaoti.focus()
	  return false
	 }	 
if (document.myform.biaoti.value.length>100)
	{
	  alert("标题不能超过100个字节")
	  document.myform.biaoti.focus()
	  return false
	 }
if (document.myform.keywords.value=="" )
	{
	  alert("请填信息关键词")
	  document.myform.keywords.focus()
	  return false
	 }
if (document.myform.keywords.value.length>100)
	{
	  alert("关键词不能超过100个字符")
	  document.myform.keywords.focus()
	  return false
	 }
//if (document.myform.scjiage.value=="" )
//	{
//	  alert("请填市场价格！")
//	  document.myform.scjiage.focus()
//	  return false
//	 }
//if (isNaN(document.myform.scjiage.value))
//	{
//	  alert("市场价格应为数字！")
//	  document.myform.scjiage.focus()
//	  return false
//	 }	
if (document.myform.jiage.value=="" )
	{
	  alert("请填交易价格！")
	  document.myform.jiage.focus()
	  return false
	 }		 
if (isNaN(document.myform.jiage.value))
	{
	  alert("交易价格应为数字！")
	  document.myform.jiage.focus()
	  return false
	 }
var editor=KindEditor.create('#editor');
if (editor.isEmpty())
	{
	  alert("信息说明不能为空！")	  
	  return false
	 }
if (document.myform.memo.value.Length()><%=memonum%>)  //字节数限制，与上面配合
     {
	 alert("信息说明长度要求<%=memonum%>字节(<%=memonum/2%>汉字)，请重新输入！");
	  return false
  }		 
if (document.myform.name.value=="" )
	{
	  alert("请填真实姓名")
	  document.myform.name.focus()
	  return false
	 }

	if(document.myform.dianhua.value=="" && document.myform.CompPhone.value=="") 
	{
	    alert("固定电话和移动电话不能同时为空!");
		document.myform.dianhua.focus()
	    return false;
	}
//var sMobile = document.myform.dianhua.value
//if((document.myform.dianhua.value!="") && (!(/^([0\+]\d{2,3}-)?(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/.test(sMobile)))) //(国家代号-区号-电话-分机格式(可选)：+086-010-85858585-2538)
//	{
//		alert("不规范的电话号码");
//		document.myform.dianhua.focus();
//		return false;
//	}		
//	var sMobile = document.myform.CompPhone.value
//	if((document.myform.CompPhone.value!="") && (!(/^((\(\d{3}\))|(\d{3}\-))?13[0-9]\d{8}|15[0-9]\d{8}|18[0-9]\d{8}/.test(sMobile)))) //(检验13，15，18号段)
//	{
//		alert("不是完整的11位手机号或者正确的手机号前七位");
//		document.myform.CompPhone.focus();
//		return false;
//	}
    if((!checkemail(myform.email.value))&&(document.myform.email.value!=""))
	{
    alert("您输入Email地址不正确，请重新输入!");
    document.myform.email.focus();
    return false;
    }
   if(document.myform.email.value.length>30 )
	{
	    alert("信箱不能超过30个字符!");
	    document.myform.email.focus();
	    return false;
	}
    if (document.myform.hfje.value=="" )
	{	  
      alert("竞价金额不能为空，请重新输入或保留为0！");
	  document.myform.hfje.focus()
	  return false
	 }		
	  
}
// --></script>
<!--kindeditor编辑器-->
	<link rel="stylesheet" href="../KindEditor/themes/default/default.css" />
	<link rel="stylesheet" href="../KindEditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="../KindEditor/kindeditor.js"></script>
	<script charset="utf-8" src="../KindEditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../KindEditor/plugins/code/prettify.js"></script>
	<script>
		KindEditor.ready(function(K) {
			var editor = K.create('textarea[name="memo"]', {
				cssPath : '../KindEditor/plugins/code/prettify.css',
				uploadJson : '../KindEditor/asp/upload_json.asp?action=infopic',
				afterBlur: function(){this.sync();},//失去焦点执行this获得值
				allowFileManager : true,				
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
				}
			});
			prettyPrint();
		});
	</script>
<!--kindeditor编辑器END-->
</head>

<body topmargin="0" leftmargin="0" background="img/bg1.gif">

<div align="center">

  <center>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse">
    <tr>
      <td width="100" valign="top" background="img/gggbg.jpg"><div align="center">
      </div></td>
      <td width="100%" align="center" valign="top"  bgcolor="#E3EBF9"><table width="795"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><form action="info_edit_save.asp" name="myform" method="POST" language="javascript" onSubmit="return formcheck()">
            <table width="100%" height="100%" border="0" align="right" cellpadding="6" cellspacing="0" bgcolor="#D6E0F9">
                
 <%dim biaoti,scjiage,jiage,memo,uname,name,tupian,email,dianhua,zt,CompPhone,youbian,dizhi,a,dqsj,hfje,llcs,homeEliteImage,sqljj,rsjj,Amount
id=trim(request("id"))
username=request.cookies("dick")("username")
Call OpenConn
set rs=server.createobject("adodb.recordset")
sql = "select * from [DNJY_info] where id="&cstr(id)
rs.open sql,conn,1,1
if rs.eof then
errdick(0)
response.end
end if
biaoti=rs("biaoti")
keywords=rs("keywords")
leixing=rs("leixing")
scjiage=rs("scjiage")
jiage=rs("jiage")
memo=rs("memo")
uname=rs("username")
name=rs("name")
tupian=rs("tupian")
email=rs("email")
dqsj=rs("dqsj")
fbsj=rs("fbsj")
hfje=rs("hfje")
llcs=rs("llcs")
CompPhone=rs("CompPhone")
qq=rs("qq")
youbian=rs("youbian")
dizhi=rs("dizhi")
dianhua=rs("dianhua")
Readinfo=rs("Readinfo")
yz=rs("yz")
a=rs("a")
b=rs("b")
zt=rs("zt")
homeEliteImage=rs("homeEliteImage")

set rsjj=server.createobject("adodb.recordset")
sqljj = "select * from [DNJY_user] where username='"&uname&"'"
rsjj.open sqljj,conn,1,1
if rsjj.eof Then
Amount=0
else
Amount=rsjj("Amount")
End if
rsjj.close
set rsjj=nothing%>              
                <tr>
                  <td height="10" colspan="2"></td>
                </tr>
                <tr>
                  <td height="25" align="right">交易地区：</td>
                  <td height="25" width="680">
<%
Dim rsi
set rsi=server.createobject("adodb.recordset")
set rsi=conn.execute("select * from DNJY_city where id>0 and twoid>0 and threeid=0")
%>
                                   <SCRIPT language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
		//dim count:
		count = 0
        do while not rsi.eof 
        %>
subcat[<%=count%>] = new Array("<%=rsi("city")%>","<%=rsi("id")%>","<%=rsi("twoid")%>");
        <%
        count = count + 1
        rsi.movenext
        loop
        rsi.close
		set rsi=nothing
        %>
onecount=<%=count%>;
                             </SCRIPT>
                                   <%
set rsi=conn.execute("select * from DNJY_city where id>0 and twoid>0 and threeid>0")
%>
                                   <SCRIPT language = "JavaScript">
var onecount4;
onecount4=0;
subcat4 = new Array();
        <%
		dim count4:count4 = 0
        do while not rsi.eof 
        %>
subcat4[<%=count4%>] = new Array("<%=rsi("city")%>","<%=rsi("id")%>","<%=rsi("twoid")%>","<%=rsi("threeid")%>");
        <%
        count4 = count4 + 1
        rsi.movenext
        loop
        rsi.close
		set rsi = nothing
        %>
onecount4=<%=count4%>;

function changelocation(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 name="city_one" size="1" id="select2" onChange="changelocation(document.myform.city_one.options[document.myform.city_one.selectedIndex].value)">
                                     <OPTION value="" selected>选择城市</OPTION>
                                     <%set rsi=conn.execute("select * from DNJY_city where id>0 and twoid=0 order by indexid asc")
if rsi.eof and rsi.bof then
response.write "<option value=''>没有分类</option>"
else
do until rsi.eof%>
                                     <OPTION value="<%=rsi("id")%>" <%if rsi("id")=rs("city_oneid") then%>selected<%end if%>><%=rsi("city")%></OPTION>
                                     <% rsi.movenext
    loop
end if
rsi.close
set rsi = nothing
%>
                                   </SELECT>
                                   <SELECT name="city_two" id="city_two" onChange="changelocation4(document.myform.city_two.options[document.myform.city_two.selectedIndex].value,document.myform.city_one.options[document.myform.city_one.selectedIndex].value)">
                                     <OPTION value="" selected>选择城市</OPTION>
                                     <%set rsi=conn.execute("select * from DNJY_city where id="&rs("city_oneid")&" and twoid<>0 and threeid=0")
if rsi.eof and rsi.bof then
response.write "<option value=''>没有分类</option>"
else
do until rsi.eof%>
                                     <OPTION value="<%=rsi("twoid")%>" <%if rsi("twoid")=rs("city_twoid") then%>selected<%end if%>><%=rsi("city")%></OPTION>
                                     <% rsi.movenext
    loop
	end if
rsi.close
set rsi = nothing%>
                                   </SELECT>
                                   <SELECT name="city_three" id="city_three">
                                     <OPTION value="" selected>选择城市</OPTION>
                                     <%set rsi=conn.execute("select * from DNJY_city where id="&rs("city_oneid")&" and twoid="&rs("city_twoid")&" and threeid<>0")
if rsi.eof and rsi.bof then
response.write "<option value=''>没有分类</option>"
else
do until rsi.eof%>
                                     <OPTION value="<%=rsi("threeid")%>" <%if rsi("threeid")=rs("city_threeid") then%>selected<%end if%>><%=rsi("city")%></OPTION>
                                     <% rsi.movenext
    loop
	end if
rsi.close
set rsi = nothing%>
                                   </SELECT> <font color="#ff0000"> *</font></td>
                </tr>                <tr>
                  <td height="25" align="right">信息类别：</td>
                  <td height="25">
<%set rsi=conn.execute("select * from DNJY_type where id>0 and twoid>0 and threeid=0")%>
                                 <SCRIPT language = "JavaScript">
var onecount2;
onecount2=0;
subcat2 = new Array();
        <%
		dim count2:count2 = 0
        do while not rsi.eof 
        %>
subcat2[<%=count2%>] = new Array("<%=rsi("name")%>","<%=rsi("id")%>","<%=rsi("twoid")%>");
        <%
        count2 = count2 + 1
        rsi.movenext
        loop
        rsi.close
		set rsi = nothing
        %>
onecount2=<%=count2%>;
                           </SCRIPT>
                                 <%
set rsi=conn.execute("select * from DNJY_type where id>0 and twoid>0 and threeid>0")
%>
                                 <SCRIPT language = "JavaScript">
var onecount3;
onecount3=0;
subcat3 = new Array();
        <%
		dim count3:count3 = 0
        do while not rsi.eof 
        %>
subcat3[<%=count3%>] = new Array("<%=rsi("name")%>","<%=rsi("id")%>","<%=rsi("twoid")%>","<%=rsi("threeid")%>");
        <%
        count3 = count3 + 1
        rsi.movenext
        loop
        rsi.close
		set rsi = nothing
        %>
onecount3=<%=count3%>;



function changelocation2(locationid)
    {
    document.myform.type_two.length = 0; 
    document.myform.type_two.options[0] = new Option('选择信息','');
	document.myform.type_three.length = 0; 
    document.myform.type_three.options[0] = new Option('选择信息','');
    var locationid=locationid;
	var i;
    for (i=0;i < onecount2; i++)
        {
            if (subcat2[i][1] == locationid)
            { 
                document.myform.type_two.options[document.myform.type_two.length] = new Option(subcat2[i][0], subcat2[i][2]);
            }        
        }
       
    }    
     function changelocation3(locationid,locationid1)
    {
    document.myform.type_three.length = 0; 
    document.myform.type_three.options[0] = new Option('选择信息','');
    var locationid=locationid;
	 var locationid1=locationid1;
    var i;
    for (i=0;i < onecount3; i++)
        {
            if (subcat3[i][2] == locationid)
            { 
			if (subcat3[i][1] == locationid1)
			{
                document.myform.type_three.options[document.myform.type_three.length] = new Option(subcat3[i][0], subcat3[i][3]);
            }        
        }
       } 
    }            
	                       </SCRIPT>
                                 <SELECT name="type_one" size="1" id="select3" onChange="changelocation2(document.myform.type_one.options[document.myform.type_one.selectedIndex].value)">
                                   <OPTION value="" selected>选择信息</OPTION>
                                   <%set rsi=conn.execute("select * from DNJY_type where id>0 and twoid=0 order by indexid asc")
if rsi.eof and rsi.bof then
response.write "<option value=''>没有分类</option>"
else
do until rsi.eof%>
                                   <OPTION value="<%=rsi("id")%>" <%if rsi("id")=rs("type_oneid") then%>selected<%end if%>><%=rsi("name")%></OPTION>
                                   <% rsi.movenext
    loop
	end if
rsi.close
set rsi= nothing
%>
                                 </SELECT>
                                 <SELECT name="type_two" id="select4" onChange="changelocation3(document.myform.type_two.options[document.myform.type_two.selectedIndex].value,document.myform.type_one.options[document.myform.type_one.selectedIndex].value)">
                                   <OPTION value="" selected>选择信息</OPTION>
                                   <%
	set rsi=conn.execute("select * from DNJY_type where id="&rs("type_oneid")&" and twoid<>0 and threeid=0")
if rsi.eof and rsi.bof then
response.write "<option value=''>没有分类</option>"
else
do until rsi.eof%>
                                   <OPTION value="<%=rsi("twoid")%>" <%if rsi("twoid")=rs("type_twoid") then%>selected<%end if%>><%=rsi("name")%></OPTION>
                                   <% rsi.movenext
    loop
	end if
rsi.close
set rsi= nothing%>
                                 </SELECT>
                                 <SELECT name="type_three" id="select5">
                                   <OPTION value="" selected>选择信息</OPTION>
                                   <%set rsi=conn.execute("select * from DNJY_type where id="&rs("type_oneid")&" and twoid="&rs("type_twoid")&" and threeid<>0")
if rsi.eof and rsi.bof then
response.write "<option value=''>没有分类</option>"
else
do until rsi.eof%>
                                   <OPTION value="<%=rsi("threeid")%>" <%if rsi("threeid")=rs("type_threeid") then%>selected<%end if%>><%=rsi("name")%></OPTION>
                                   <% rsi.movenext
    loop
	end if
rsi.close
set rsi= Nothing
%>
                                 </SELECT>
                      <input type="hidden" name="id" size="7" maxlength="6" value="<%=id%>"> <font color="#ff0000"> *</font></td>
                </tr>
                <tr>
                  <td height="25" align="right"> 信息标题：</td>
                  <td height="25"><input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" type="text" maxlength="30" name="biaoti" size="50" value="<%=biaoti%>">
                     <font color="#ff0000"> *</font>（<font color="#CC5200">30字以内</font>）
         
        </font> 标题颜色：<font face="宋体">
          
          <select name="a" class="inputa">
            <option style="COLOR: black" value="0" selected>不使用 </option>
            <option style="background: #000088" value="000088" <% if a="000088" Then Response.write("Selected") %>> </option>
            <option style="background: #0000ff" value="0000ff" <% if a="0000ff" Then Response.write("Selected") %>> </option>
            <option style="background: #008800" value="008800" <% if a="008800" Then Response.write("Selected") %>> </option>
            <option style="background: #008888" value="008888" <% if a="008888" Then Response.write("Selected") %>> </option>
            <option style="background: #0088ff" value="0088ff" <% if a="0088ff" Then Response.write("Selected") %>> </option>
            <option style="background: #00a010" value="00a010" <% if a="00a010" Then Response.write("Selected") %>> </option>
            <option style="background: #1100ff" value="1100ff" <% if a="1100ff" Then Response.write("Selected") %>> </option>
            <option style="background: #111111" value="111111" <% if a="111111" Then Response.write("Selected") %>> </option>
            <option style="background: #333333" value="333333" <% if a="333333" Then Response.write("Selected") %>> </option>
            <option style="background: #50b000" value="50b000" <% if a="50b000" Then Response.write("Selected") %>> </option>
            <option style="background: #880000" value="880000" <% if a="880000" Then Response.write("Selected") %>> </option>
            <option style="background: #8800ff" value="8800ff" <% if a="8800ff" Then Response.write("Selected") %>> </option>
            <option style="background: #888800" value="888800" <% if a="888800" Then Response.write("Selected") %>> </option>
            <option style="background: #888888" value="888888" <% if a="888888" Then Response.write("Selected") %>> </option>
            <option style="background: #8888ff" value="8888ff" <% if a="8888ff" Then Response.write("Selected") %>> </option>
            <option style="background: #aa00cc" value="aa00cc" <% if a="aa00cc" Then Response.write("Selected") %>> </option>
            <option style="background: #aaaa00" value="aaaa00" <% if a="aaaa00" Then Response.write("Selected") %>> </option>
            <option style="background: #ccaa00" value="ccaa00" <% if a="ccaa00" Then Response.write("Selected") %>> </option>
            <option style="background: #ff0000" value="ff0000" <% if a="ff0000" Then Response.write("Selected") %>> </option>
            <option style="background: #ff0088" value="ff0088" <% if a="ff0088" Then Response.write("Selected") %>> </option>
            <option style="background: #ff00ff" value="ff00ff" <% if a="ff00ff" Then Response.write("Selected") %>> </option>
            <option style="background: #ff8800" value="ff8800" <% if a="ff8800" Then Response.write("Selected") %>> </option>
            <option style="background: #ff0005" value="ff0005" <% if a="ff0005" Then Response.write("Selected") %>> </option>
            <option style="background: #ff88ff" value="ff88ff" <% if a="ff88ff" Then Response.write("Selected") %>> </option>
            <option style="background: #ee0005" value="ee0005" <% if a="ee0005" Then Response.write("Selected") %>> </option>
            <option style="background: #ee01ff" value="ee01ff" <% if a="ee01ff" Then Response.write("Selected") %>> </option>
            <option style="background: #3388aa" value="3388aa" <% if a="3388aa" Then Response.write("Selected") %>> </option>
            <option style="background: #000000" value="000000" <% if a="000000" Then Response.write("Selected") %>> </option>
          </select>
         
        </font></td>
                </tr>
                <tr>
                  <td height="25" align="right"> 关 键 词：</td>
                  <td height="25"><input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" type="text" maxlength="100" name="keywords" size="50" value="<%=keywords%>"> <font color="#ff0000"> *</font> <input type="button" name="btn" value="从标题复制" title="复制标题到关键词" onClick="CopyWebbiaoti(document.myform.biaoti.value);">（<font color="#CC5200">100字节以内</font>）<br>（多个关键词用“,”号分隔）
					 </td>
                </tr>
                <tr>
                  <td height="25" align="right"> <font color='#0000FF'>首页头条：</font></td>
                  <td height="25"> <input name="homeEliteImage" type="text" id="homeEliteImage" value="<%=homeEliteImage%>" size="50" maxlength="255" readonly onclick="sHomeElite();">
                  <input name="isHomeElite" type="checkbox" id="isHomeElite" value="Yes" onClick="rHomeElite();" <%If homeEliteImage <> "" Then%> checked<%End if%>> <font color='#FF0000'>使用头条横幅（免费版无此功能）</font><br><span id="span_createImage"></span></td>
                </tr>
              <tr>
                  <td height="25" align="right"><font color='#0000FF'>头条参数：</font></td>
				  <td height="25">
                  宽：<input name="homeEliteWidth" type="text" id="homeEliteWidth" value="<%=HomeEliteWidth%>" size="4" maxlength="4" />
                  高：<input name="homeEliteHeight" type="text" id="homeEliteHeight" value="<%=HomeEliteHeight%>" size="4" maxlength="4" />
                  字体：<input name="homeEliteFontFamily" type="text" id="homeEliteFontFamily" value="<%=HomeEliteFontFamily%>" size="12" maxlength="4" />
                  字体大小：<input name="homeEliteFontSize" type="text" id="homeEliteFontSize" value="<%=HomeEliteFontSize%>" size="4" maxlength="4" />
                  颜色：<select name="homeEliteColor" id="homeEliteColor">
                          <option value="000000" selected>颜色</option>
                          <option value="000000" style="background-color:#000000"></option>
                          <option value="FFFFFF" style="background-color:#FFFFFF"></option>
                          <option value="008000" style="background-color:#008000"></option>
                          <option value="800000" style="background-color:#800000"></option>
                          <option value="808000" style="background-color:#808000"></option>
                          <option value="000080" style="background-color:#000080"></option>
                          <option value="800080" style="background-color:#800080"></option>
                          <option value="808080" style="background-color:#808080"></option>
                          <option value="FFFF00" style="background-color:#FFFF00"></option>
                          <option value="00FF00" style="background-color:#00FF00"></option>
                          <option value="00FFFF" style="background-color:#00FFFF"></option>
                          <option value="FF00FF" style="background-color:#FF00FF"></option>
                          <option value="FF0000" style="background-color:#FF0000"></option>
                          <option value="0000FF" style="background-color:#0000FF"></option>
                          <option value="008080" style="background-color:#008080"></option>
                        </select>
                </td>
              </tr>

                <tr>
                  <td height="25" align="right"> 交易类型：</td>
                  <td height="25"><%
				  Dim rslx,sqllx,x,leixinglx,selectedlx
set rslx=server.createobject("adodb.recordset")
sqllx = "select leixing from DNJY_config "
rslx.open sqllx,conn,1,1
leixinglx=split(rslx("leixing"),"|")
selectedlx=""
response.write "<select name=""leixing""><option value=>类型</option>"
for x=0 to ubound(leixinglx)
If leixinglx(x)=leixing Then
selectedlx="selected"
Else
selectedlx=""
End if
response.write "<option value="""&leixinglx(x)&""" "&selectedlx&">"&leixinglx(x)&"</option>"
next
response.write "</select>"
rslx.close
set rslx=nothing%>&nbsp;<font color="#ff0000"> *</font></td>
                </tr>
                <!--<tr>
                  <td height="25"> 市场价格：</td>
                  <td height="25"><input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" type="text" name="scjiage" size="7" maxlength="6" value="<%=scjiage%>" onkeyup="value=value.replace(/[^\d|^\.]/g,'')"   onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d|^\.]/g,''))">
                    元&nbsp;<font color="#ff0000"> *</font>&nbsp;&nbsp; （0<font color="#CC5200">元表示面议</font>）</td>
                </tr>-->
                <tr>
                  <td height="25" align="right"> 交易价格：</td>
                  <td height="25"><input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" type="text" name="jiage" size="7" maxlength="6" value="<%=jiage%>" onkeyup="value=value.replace(/[^\d|^\.]/g,'')"   onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d|^\.]/g,''))">
                    元&nbsp;<font color="#ff0000"> *</font>&nbsp;&nbsp; （0<font color="#CC5200">元表示面议</font>）</td>
                </tr>
                <tr>
                  <td height="25" align="right">交易状态： </td>
                  <td height="25"><select name="zt" style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;">
                      <option <%if zt=0 then%>selected<%end if%> value=0>还未完成交易</option>
                      <option <%if zt=1 then%>selected<%end if%> value=1>已经完成交易</option>
                    </select>
                    （<font color="#CC5200">如果此商品已经销售或者购买成功，请根据实际情况修改</font>） </td>
                </tr>
     <tr> 
      <td height="25" align="right">信息主图：</td>
      <td colspan="2"><input name="tpname" type="text" class="input" id="tpname" size="50" maxlength="255" value="<%=tupian%>"> <font color="#CC5200">（也可在下面信息说明中提取内容第一张图片为主图）</font><br><iframe name="tpname" frameborder=0 width="450" height="35" scrolling=no src="../DNJY_upload.asp?ttup=info"></iframe><br>&nbsp;&nbsp;<font color="#ff0000">允许上传的文件类型：gif|jpgs|jpg|bmp|png 500k以下</font> </td>
    </tr>   

                <tr>
                  <td height="25" align="right"><p>信息说明：</td>
                  <td height="25"><textarea id="editor" name="memo" style="width:670px;height:400px;"><%=HTMLDecode(memo)%></textarea><input type="checkbox" name="T_SaveImg" value="1" /> 保存内容中远程图片到本地&nbsp;&nbsp;<input type="checkbox" name="AspJpeg" value="1" checked/>给上传图片加水印&nbsp;&nbsp;<input type="checkbox" name="T_conpic" value="1" />提取内容第一张图片为主图</td>
       </tr>
                <!--<tr>
                  <td height="25" align="right">外观颜色：</td>
                  <td height="25"><input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" type="text" name="wcolor" size="23" maxlength="15" value="<%=rs("wcolor")%>"> &lt;=【<FONT color=blue><FONT 
      style="CURSOR: hand" onclick="wcolor.value='黑色'" 
      color=#993300>黑色</FONT></FONT>】【<FONT 
      color=blue><FONT style="CURSOR: hand" onclick='wcolor.value="红色"' 
      color=#993300>红色</FONT></FONT>】【<FONT color=blue><FONT 
      style="CURSOR: hand" onclick="wcolor.value='白色'" 
      color=#993300>白色</FONT></FONT>】【<FONT color=blue><FONT 
      style="CURSOR: hand" onclick="wcolor.value='银色'" 
      color=#993300>银色</FONT></FONT>】【<FONT color=blue><FONT 
      style="CURSOR: hand" onclick="wcolor.value='棕色'" 
      color=#993300>棕色</FONT></FONT>】</td>
                </tr>
                <tr>
                  <td height="25" align="right">内饰颜色：</td>
                  <td height="25"><input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" type="text" name="ncolor" size="23" maxlength="15" value="<%=rs("ncolor")%>"> &lt;=【<FONT color=blue><FONT 
      style="CURSOR: hand" onclick="ncolor.value='黑色'" 
      color=#993300>黑色</FONT></FONT>】【<FONT 
      color=blue><FONT style="CURSOR: hand" onclick='ncolor.value="灰色"' 
      color=#993300>灰色</FONT></FONT>】【<FONT color=blue><FONT 
      style="CURSOR: hand" onclick="ncolor.value='棕色'" 
      color=#993300>棕色</FONT></FONT>】【<FONT color=blue><FONT 
      style="CURSOR: hand" onclick="ncolor.value='米色'" 
      color=#993300>米色</FONT></FONT>】【<FONT color=blue><FONT 
      style="CURSOR: hand" onclick="ncolor.value='紫色'" 
      color=#993300>紫色</FONT></FONT>】</td>
                </tr>--->
	   <%dim sj,fbsj
sj=DateDiff("d",""&fbsj&"",""&dqsj&"")%>
                      <tr>
                        <td height="25" align="right">发布天数：</td>
                        <td width="371" height="25"><select name="days" style="BACKGROUND-COLOR: #FFCCFF; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;">
						    <option value="1" <% if sj>=1 Then Response.write("Selected") %>>一天</option>
						    <option value="2" <% if sj>=2 Then Response.write("Selected") %>>二天</option>
						    <option value="3" <% if sj>=3 Then Response.write("Selected") %>>三天</option>
						    <option value="4" <% if sj>=4 Then Response.write("Selected") %>>四天</option>
						    <option value="5" <% if sj>=5 Then Response.write("Selected") %>>五天</option>
						    <option value="6" <% if sj>=6 Then Response.write("Selected") %>>六天</option>
                            <option value="7" <% if sj>=7 Then Response.write("Selected") %>>一星期</option>
							<option value="14" <% if sj>=14 Then Response.write("Selected") %>>二星期</option>
							<option value="21" <% if sj>=21 Then Response.write("Selected") %>>三星期</option>                            
                            <option value="30" <% if sj>=30 Then Response.write("Selected") %>>一个月</option>
							<option value="60" <% if sj>=60 Then Response.write("Selected") %>>二个月</option>
                            <option value="90" <% if sj>=90  Then Response.write("Selected") %>>三个月</option>
							<option value="180" <% if sj>=180  Then Response.write("Selected") %>>半年</option>
                            <option value="365" <% if sj=365 Then Response.write("Selected") %>>一年</option>
							<option value="1100" <% if sj=1100 Then Response.write("Selected") %>>三年</option>
                          </select>
                            </font></td>
                      </tr>
                     <tr>
                        <td height="25" align="right">竞价金额：</td>
                        <td  height="-1"><input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" type="text" name="hfje" size="23" value="0" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"> 元 （<span class="style1">此信息现有竞价余额<%=hfje%>元， 增加的金额将与余额相加。此会员资金帐户余额<%=Amount%>元</span>）</td>
                      </tr> 
                      <tr> 
                        <td height="25" align="right">信息置顶：</td>
                        <td height="0" >
                          <input type="text" name="b" size="23" maxlength="40" value="<%=b%>" style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
                          级 （<span class="style1">置顶将在首页最新信息栏显示，数字越大排序越靠前</span>）</td>
                      </tr>	
                      <tr> 
                        <td height="25" align="right">初始点击：</td>
                        <td height="0" >
                          <input type="text" name="llcs" size="23" maxlength="40" value="<%=llcs%>" style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">
                           （<span class="style1">供作弊，慎用！</span>）</td>
                      </tr>						  
                      <tr> 
                        <td height="25" align="right">阅读权限：</td>
                        <td height="0" ><input type="radio" name="Readinfo" value="0" <%if Readinfo=0 then%>checked<%end if%>>游客	<input type="radio" name="Readinfo" value="1" <%if Readinfo=1 then%>checked<%end if%>>普通会员	<input type="radio" name="Readinfo" value="2" <%if Readinfo=2 then%>checked<%end if%>>VIP会员	
                             <br>（限制信息详细说明及联络方式，会员级别高向低兼容）</td>
                      </tr>
                      <!--<tr> 
                        <td height="25" align="right">阅读权限：</td>
                        <td height="0" ><input type="radio" name="Readinfo" value="1" <%if Readinfo=1 then%>checked<%end if%>>普通会员	<input type="radio" name="Readinfo" value="2" <%if Readinfo=2 then%>checked<%end if%>>VIP会员	
                             <br>（限制信息详细说明及联络方式，会员级别高向低兼容）</td>
                      </tr>-->							  
                      <tr> 
                        <td height="25" align="right">审核验证：</td>
                        <td height="0" >
                          <input type="radio" value="1" name="yz" <%if yz=1 then%>checked<%end if%> >立即通过</font><input type="radio" value="0" name="yz" <%if yz=0 then%>checked<%end if%> >暂不通过</td>
                      </tr>					
                <tr>
                  <td height="25" align="right">真实姓名：</td>
                  <td height="25"><input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" type="text" name="name" size="23" maxlength="15" value="<%=name%>"> <font color="#ff0000"> *</font></td>
                </tr>


                       <tr>
                        <td height="25" align="right">移动电话：</td>
                        <td height="25"><input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" type="text" name="CompPhone" size="23" maxlength="40" value="<%=CompPhone%>" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')">  <font color="#0000ff"> *</font> （<font color="#CC5200">固定电话和移动电话必填其一</font>）</td>
                      </tr>
                <tr>
                  <td height="25" align="right"> 固定电话：</td>
                  <td height="25"><input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" type="text" name="dianhua" size="23" maxlength="40" value="<%=dianhua%>">  <font color="#0000ff"> *</font> （<font color="#CC5200">固定电话和移动电话必填其一</font>）<br>(国家代号-区号-电话-分机格式(可只填区号+电话或电话)：+086-010-85858585-2538)</td>
                </tr>
                <tr>
                  <td height="25" align="right"> 传真号码：</td>
                  <td height="25"><input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" type="text" name="fax" size="23" maxlength="40" value="<%=rs("fax")%>">  (国家代号-区号-电话-分机格式(可只填区号+电话或电话)：+086-010-85858585-2538)</td>
                </tr>
                <tr>
                  <td height="25" align="right"> 电子信箱：</td>
                  <td height="25"><input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" type="text" name="email" size="23" maxlength="40" value="<%=email%>">
                    （<font color="#CC5200">该邮件地址将接收你的交易信息</font>）</td>
                </tr>					  
                      <tr>
                        <td height="25" align="right">QQ 号 码：</td>
                        <td width="371" height="-1"><input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" type="text" name="qq" size="23" maxlength="40" value="<%=qq%>" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"></td>
                      </tr> 
                <tr>
                  <td height="25" align="right"> 微信号码：</td>
                  <td height="25"><input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" type="text" name="weixin" size="23" maxlength="50" value="<%=rs("weixin")%>"></td>
                </tr>						  
                      <tr>
                        <td height="25" align="right">邮政编码：</td>
                        <td width="371" height="-1"><input style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" type="text" name="youbian" size="23" maxlength="6" value="<%=youbian%>" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"></td>
                      </tr> 
                      <tr>
                        <td height="25" align="right"> 公司名称：</td>
                        <td height="25" width="371">
                            <input name="mpname" type="text" style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" size="50" maxlength="50" value="<%=rs("mpname")%>">
                          &nbsp; 
                          </td>
                      </tr>
                        <tr>
                        <td height="25" align="right"> 联系地址：</td>
                        <td height="25" width="371">
                            <input name="dizhi" type="text" style="BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #FFFFFF 1px solid; BORDER-LEFT: #a2a2a2 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #a2a2a2 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" size="50" maxlength="100" value="<%=dizhi%>">
                          &nbsp; 
                          </td>
                      </tr>
				  
                  <td height="1" colspan="2"></td>
                </tr>
                <tr>
                  <td height="4" colspan="2"></td>
                </tr><input type="hidden" name="uname" value="<%=uname%>">
                <tr>
                  <td height="25" colspan="2" align="center"><table width="50%"  border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><div align="center">
                            <input name="I2" type="submit" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: #a2a2a2 1px solid; BORDER-LEFT: #ffffff 1px solid; BORDER-RIGHT: #a2a2a2 1px solid; BORDER-TOP: #ffffff 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" onClick="javascript:return formcheck();" value="确认编辑" border="0">
                        </div></td>
                        <td><div align="center">
                            <input name="I2" type="reset" style="BACKGROUND-COLOR: #eeeeee; BORDER-BOTTOM: #a2a2a2 1px solid; BORDER-LEFT: #ffffff 1px solid; BORDER-RIGHT: #a2a2a2 1px solid; BORDER-TOP: #ffffff 1px solid; COLOR: #333333; FONT-SIZE: 9pt; HEIGHT: 19px;" onClick="javascript:return CheckForm();" value="还原编辑" border="0">
                        </div></td>
                      </tr>
                  </table></td>
                </tr>
              </table>
          </form></td>
        </tr>
      </table></td>
      <td width="4" align="right" valign="top" bgcolor="#e6e6e6"></td>
    </tr>
<%rs.close
set rs= Nothing
Call CloseDB(conn)%>   
  </table>
  </center>
</div>
</body>
</html>
