<!--#include file="pysjzx_conn.asp"-->
<!--#include file="session.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css/style.css" rel="stylesheet" type="text/css">
</head>
<%
id=trim(request("id"))
		if IsNumeric(request.QueryString("id"))=False or request.QueryString("id")="" then
		response.write"<SCRIPT language=JavaScript>alert('参数错误！');"
		response.end	
		end if

set rs=server.CreateObject ("adodb.recordset")
sql="select * from lease where  id="&id
rs.open sql,conn,1,1
if rs.eof then
response.write"<SCRIPT language=JavaScript>alert('参数错误！');"
response.end	
end if
%>
<script language="JavaScript">
<!--
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

function checkform() {
    if(checkspace(document.formpub.titlename.value)) {
    alert("请输入信息标题！");
	formpub.titlename.focus();
	return false;
	  }
	  if (  formpub.titlename.value.indexOf("%") != -1 || formpub.titlename.value.indexOf("'") != -1 || formpub.titlename.value.indexOf('"') != -1 || formpub.titlename.value.indexOf("=") != -1 || formpub.titlename.value.indexOf("<") != -1 || formpub.titlename.value.indexOf(">") != -1) {
		alert("信息标题中不能有%、'、=、<和>等非法字符！");
	    formpub.titlename.focus();
		return false;
}
  if ( formpub.titlename.value.length < 4 || formpub.titlename.value.length > 40 ){
    alert("信息标题长度在4-40个字符！");
    formpub.titlename.focus();
    return false;
  }
  if(checkspace(document.formpub.cartype.value)) {
    alert("请选择汽车分类！"); 
	formpub.cartype.focus();
	return false;
  }

  if(checkspace(document.formpub.nclass.value)) {
    alert("请选择汽车品牌！"); 
	formpub.nclass.focus();
	return false; 
  }
   if ( formpub.type.value !="" ) {
    if (formpub.type.value.indexOf("%") != -1 || formpub.type.value.indexOf("'") != -1 || formpub.type.value.indexOf('"') != -1 || formpub.type.value.indexOf("=") != -1 || formpub.type.value.indexOf("<") != -1 || formpub.type.value.indexOf(">") != -1) {
		alert("汽车型号中不能有%、'、=、<和>等非法字符！");
	    formpub.type.focus();
		return false;
}
}
  if(checkspace(document.formpub.yuanmoney.value)) {
      alert("请输入原购车价！"); 
	formpub.yuanmoney.focus();
	return false;
	 }
    for ( i = 1 ; i <= formpub.yuanmoney.value.length ; i++ ) {
        charaa =formpub.yuanmoney.value.charAt(i-1);
        if  ( charaa != 0 && charaa != 1 && charaa != 2 && charaa != 3 && charaa != 4 && charaa != 5 && charaa != 6 && charaa != 7 && charaa != 8  && charaa != 9 && charaa != ".") {
        alert("原车购价格式错误！");
        formpub.yuanmoney.focus(); 
        		return false;
         }
                  }
           if ( formpub.sellmoney.value !="" ) {
    for ( ii = 1 ; ii <= formpub.sellmoney.value.length ; ii++ ) {
        charaaa =formpub.sellmoney.value.charAt(ii-1);
        if  ( charaaa != 0 && charaaa != 1 && charaaa != 2 && charaaa != 3 && charaaa != 4 && charaaa != 5 && charaaa != 6 && charaaa != 7 && charaaa != 8  && charaaa != 9 && charaaa != ".") {
        alert("出售价格式错误！");
        formpub.sellmoney.focus(); 
        		return false;
         }
  }
  }
 if ( formpub.color.value !="" ) {
  if (formpub.color.value.indexOf("%") != -1 || formpub.color.value.indexOf("'") != -1 || formpub.color.value.indexOf('"') != -1 || formpub.color.value.indexOf("=") != -1 || formpub.color.value.indexOf("<") != -1 || formpub.color.value.indexOf(">") != -1) {
		alert("汽车颜色中不能有%、'、=、<和>等非法字符！");
	    formpub.color.focus();
		return false;
}
}
 if ( formpub.purpose.value !="" ) {
  if (formpub.purpose.value.indexOf("%") != -1 || formpub.purpose.value.indexOf("'") != -1 || formpub.purpose.value.indexOf('"') != -1 || formpub.purpose.value.indexOf("=") != -1 || formpub.purpose.value.indexOf("<") != -1 || formpub.purpose.value.indexOf(">") != -1) {
		alert("原车用途中不能有%、'、=、<和>等非法字符！");
	    formpub.purpose.focus();
		return false;
}
}


             if ( formpub.shangpai.value !="" ) {
    for ( ii = 1 ; ii <= formpub.shangpai.value.length ; ii++ ) {
        charaaa =formpub.shangpai.value.charAt(ii-1);
        if  ( charaaa != 0 && charaaa != 1 && charaaa != 2 && charaaa != 3 && charaaa != 4 && charaaa != 5 && charaaa != 6 && charaaa != 7 && charaaa != 8  && charaaa != 9 && charaaa != "-") {
        alert("上牌日期格式错误！");
        formpub.shangpai.focus(); 
        		return false;
         }
  }
  }
           if ( formpub.seat.value !="" ) {
    for ( ii = 1 ; ii <= formpub.seat.value.length ; ii++ ) {
        charaaa =formpub.seat.value.charAt(ii-1);
        if  ( charaaa != 0 && charaaa != 1 && charaaa != 2 && charaaa != 3 && charaaa != 4 && charaaa != 5 && charaaa != 6 && charaaa != 7 && charaaa != 8  && charaaa != 9 ) {
        alert("座位数格式错误！");
        formpub.seat.focus(); 
        		return false;
         }
  }
  }
      if ( formpub.journey.value !="" ) {
    for ( ii = 1 ; ii <= formpub.journey.value.length ; ii++ ) {
        charaaa =formpub.journey.value.charAt(ii-1);
        if  ( charaaa != 0 && charaaa != 1 && charaaa != 2 && charaaa != 3 && charaaa != 4 && charaaa != 5 && charaaa != 6 && charaaa != 7 && charaaa != 8  && charaaa != 9 ) {
        alert("行驶路程格式错误！");
        formpub.journey.focus(); 
        		return false;
         }
  }
  }
       if ( formpub.youhao.value !="" ) {
    for ( ii = 1 ; ii <= formpub.youhao.value.length ; ii++ ) {
        charaaa =formpub.youhao.value.charAt(ii-1);
        if  ( charaaa != 0 && charaaa != 1 && charaaa != 2 && charaaa != 3 && charaaa != 4 && charaaa != 5 && charaaa != 6 && charaaa != 7 && charaaa != 8  && charaaa != 9 ) {
        alert("百里油耗格式错误！");
        formpub.youhao.focus(); 
        		return false;
         }
  }
  }
   if ( formpub.motor.value !="" ) {
  if (formpub.motor.value.indexOf("%") != -1 || formpub.motor.value.indexOf("'") != -1 || formpub.motor.value.indexOf('"') != -1 || formpub.motor.value.indexOf("=") != -1 || formpub.motor.value.indexOf("<") != -1 || formpub.motor.value.indexOf(">") != -1) {
		alert("发动机形中不能有%、'、=、<和>等非法字符！");
	    formpub.motor.focus();
		return false;
}
}
  if ( formpub.pailiang.value !="" ) {
    for ( ii = 1 ; ii <= formpub.pailiang.value.length ; ii++ ) {
        charaaa =formpub.pailiang.value.charAt(ii-1);
        if  ( charaaa != 0 && charaaa != 1 && charaaa != 2 && charaaa != 3 && charaaa != 4 && charaaa != 5 && charaaa != 6 && charaaa != 7 && charaaa != 8  && charaaa != 9 && charaaa != "." ) {
        alert("汽车排量格式错误！");
        formpub.pailiang.focus(); 
        		return false;
         }
  }
  }
  
   if(checkspace(document.formpub.content.value)) {
    alert("请输入车况描述！"); 
	formpub.content.focus();
	return false;
  }

      if(checkspace(document.formpub.name.value)) {
    alert("请输入联系人！"); 
	formpub.name.focus();	
	return false;	
		  }
 if (formpub.name.value.indexOf("%") != -1 || formpub.name.value.indexOf("'") != -1 || formpub.name.value.indexOf('"') != -1 || formpub.name.value.indexOf("=") != -1 || formpub.name.value.indexOf("<") != -1 || formpub.name.value.indexOf(">") != -1) {
		alert("联系人中不能有%、'、=、<和>等非法字符！");
	    formpub.name.focus();
		return false;
}
      if(checkspace(document.formpub.tel.value)) {
    alert("请输入联系电话！"); 
	formpub.tel.focus();
	return false;			
	  }
	      for ( iii = 1 ; iii <= formpub.tel.value.length ; iii++ ) {
        charaaaa =formpub.tel.value.charAt(iii-1);
        if  ( charaaaa != 0 && charaaaa != 1 && charaaaa != 2 && charaaaa != 3 && charaaaa != 4 && charaaaa != 5 && charaaaa != 6 && charaaaa != 7 && charaaaa != 8  && charaaaa != 9 && charaaaa != "-") {
        alert("电话号码格式错误！");
        formpub.tel.focus(); 
        		return false;
         }
  }
     if(checkspace(document.formpub.address.value)) {
    alert("请输入联系地址！"); 
	formpub.address.focus();
	return false;
	  }
	   if (formpub.address.value.indexOf("%") != -1 || formpub.address.value.indexOf("'") != -1 || formpub.address.value.indexOf('"') != -1 || formpub.address.value.indexOf("=") != -1 || formpub.address.value.indexOf("<") != -1 || formpub.address.value.indexOf(">") != -1) {
		alert("联系地址中不能有%、'、=、<和>等非法字符！");
	    formpub.address.focus();
		return false;
}
       if ( formpub.company.value !="" ) {
 if (formpub.company.value.indexOf("%") != -1 || formpub.company.value.indexOf("'") != -1 || formpub.company.value.indexOf('"') != -1 || formpub.company.value.indexOf("=") != -1 || formpub.company.value.indexOf("<") != -1 || formpub.company.value.indexOf(">") != -1) {
		alert("公司名称中不能有%、'、=、<和>等非法字符！");
	    formpub.company.focus();
		return false;
}
}
       if ( formpub.email.value !="" ) {
         if ( formpub.email.value.length < 6 || formpub.email.value.length > 30 ){
    alert("电子邮箱长度在6-30个字符！");
    formpub.email.focus();
    return false;
  }

if ( formpub.email.value.indexOf(".") == -1 || formpub.email.value.indexOf("@") == -1 ) {
		alert("电子邮件地址的格式不正确，请重新填写！");
	    formpub.email.focus();
		return false;
}

	}  
 if ( formpub.web.value !=""  &&  formpub.web.value !="http://") {
  if ( formpub.web.value.indexOf(".") == -1 ) {
		alert("公司网址格式错误！");
	    formpub.web.focus();
		return false;
		}
}
  if ( formpub.kefuqq.value !="" ){
      for ( iiii = 1 ; iiii <= formpub.kefuqq.value.length ; iiii++ ) {
        charaaaa =formpub.kefuqq.value.charAt(i-1);
        if  ( charaaa != 0 && charaaa != 1 && charaaa != 2 && charaaa != 3 && charaaa != 4 && charaaa != 5 && charaaa != 6 && charaaa != 7 && charaaa != 8  && charaaa != 9 ) {
        alert("QQ号码格式错误！");
        formpub.kefuqq.focus(); 
        		return false;
         }
  }
  
 if ( formpub.kefuqq.value.length < 5 || formpub.kefuqq.value.length > 15 ){
    alert("QQ号码长度在5-15个字符！");
    formpub.kefuqq.focus();
    return false;
  }
  }
  if ( formpub.mobile.value !="" ) {
  if (formpub.mobile.value.substring( 0,2 ) != "13" ){
    alert("手机号码格式错误！");
    formpub.mobile.focus();
    return false;
  }

    for ( ii = 1 ; ii <= formpub.mobile.value.length ; ii++ ) {
        charaaa =formpub.mobile.value.charAt(ii-1);
        if  ( charaaa != 0 && charaaa != 1 && charaaa != 2 && charaaa != 3 && charaaa != 4 && charaaa != 5 && charaaa != 6 && charaaa != 7 && charaaa != 8  && charaaa != 9 ) {
        alert("手机号码格式错误！");
        formpub.mobile.focus(); 
        		return false;
         }
  }
  if ( formpub.mobile.value.length != 11 ){
    alert("手机号码长度在11个字符！");
    formpub.mobile.focus();
    return false;
  } 
  }
  if ( formpub.fax.value !="" ) {
	      for ( iii = 1 ; iii <= formpub.fax.value.length ; iii++ ) {
        charaaaa =formpub.fax.value.charAt(iii-1);
        if  ( charaaaa != 0 && charaaaa != 1 && charaaaa != 2 && charaaaa != 3 && charaaaa != 4 && charaaaa != 5 && charaaaa != 6 && charaaaa != 7 && charaaaa != 8  && charaaaa != 9 && charaaaa != "-") {
        alert("联系传真格式错误！");
        formpub.fax.focus(); 
        		return false;
         }
  }
   }
          if ( formpub.jyfw.value !="" ) {
 if (formpub.jyfw.value.indexOf("%") != -1 || formpub.jyfw.value.indexOf("'") != -1 || formpub.jyfw.value.indexOf('"') != -1 || formpub.jyfw.value.indexOf("=") != -1 || formpub.jyfw.value.indexOf("<") != -1 || formpub.jyfw.value.indexOf(">") != -1) {
		alert("主要业务中不能有%、'、=、<和>等非法字符！");
	    formpub.jyfw.focus();
		return false;
}
}
   
   
} 
// -->
</script>

<script language=JavaScript>
<%dim i1,j1
	set rs_s=server.createobject("adodb.recordset")
	sql="select * from anclass order by anclassidorder"
	rs_s.open sql,conn,1,1
%>
	var selects1=[];
	selects1['xxx']=new Array(new Option('--请选择品牌--','xxx'));
<%
	for i=1 to rs_s.recordcount
%>
	selects1['<%=rs_s("anclassid")%>']=new Array(

new Option('--请选择品牌--','xx'),
<%
	set rs_s1=server.createobject("adodb.recordset")
	sql="select * from nclass where anclassid="&rs_s("anclassid")&" order by nclassidorder"
	rs_s1.open sql,conn,1,1
	if rs_s1.recordcount>0 then 
	%>


	<%		for j1=1 to rs_s1.recordcount
		if j1=rs_s1.recordcount then 
%>
		new Option('<%=trim(rs_s1("nclass"))%>','<%=trim(rs_s1("nclassid"))%>'));
<%		else
%>
		new Option('<%=trim(rs_s1("nclass"))%>','<%=trim(rs_s1("nclassid"))%>'),
<%
		end if
		rs_s1.movenext
		next
	else 
%>
		new Option('','0'));
<%
	end if
	rs_s1.close
	set rs_s1=nothing
	rs_s.movenext
	next
rs_s.close
set rs_s=nothing
%>
	function chsel1(){
		with (document.formpub){
			if(anclass.value) {
				nclass.options.length=0;
				for(var i=0;i<selects1[anclass.value].length;i++){
					nclass.add(selects1[anclass.value][i]);
				}
			}
		}
	}
</script>
<script language=JavaScript>
<%dim i_1,j_1
	set rs_s=server.createobject("adodb.recordset")
	sql="select * from province order by shengorder"
	rs_s.open sql,conn,1,1
%>
	var selects=[];
	selects['xxx']=new Array(new Option('--不限城市--','xxx'));
<%
	for i=1 to rs_s.recordcount
%>
	selects['<%=rs_s("ShengNo")%>']=new Array(

new Option('--不限城市--','xx'),
<%
	set rs_s1=server.createobject("adodb.recordset")
	sql="select * from city where shengid="&rs_s("id")&" order by shiorder"
	rs_s1.open sql,conn,1,1
	if rs_s1.recordcount>0 then 
	%>


	<%		for j=1 to rs_s1.recordcount
		if j=rs_s1.recordcount then 
%>
		new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'));
<%		else
%>
		new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'),
<%
		end if
		rs_s1.movenext
		next
	else 
%>
		new Option('','0'));
<%
	end if
	rs_s1.close
	set rs_s1=nothing
	rs_s.movenext
	next
rs_s.close
set rs_s=nothing
%>
	function chsel(){
		with (document.formpub){
			if(province.value) {
				city.options.length=0;
				for(var i=0;i<selects[province.value].length;i++){
					city.add(selects[province.value][i]);
				}
			}
		}
	}
</script>
<script>
function IsDigit()
{
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>

<body>

    <div align="center">
<table width="95%" border="1" bordercolor="#C0C0C0" style="border-collapse: collapse" cellspacing="1" cellpadding="3">
<form name="formpub" method="post"  onsubmit="return checkform();" action="savelease.asp?action=edit&id=<%=id%>">
  <td colspan="3" bgcolor="#E8F1FF">
   <p align="center">修改租赁车</td>
  <tr>
   <td width="645" colspan="3" bgcolor="#F7F7F7">
   　</td>
  </tr>
  <tr>
   <td width="645" colspan="3" bgcolor="#F7F7F7"><span lang="zh-cn">基本信息</span></td>
  </tr>
  <tr>
   <td width="188" bgcolor="#F7F7F7">　</td>
   <td width="106" bgcolor="#F7F7F7">
	品牌</td>
   <td width="623" bgcolor="#F7F7F7">
					<select size="1" name="anclass" onChange=chsel1()  class="wenbenkuang">
          <option value="xxx" selected>--请选择品牌--</option>
          <%dim tmppingpaiid
tmppingpaiid=0
set rs_s=server.createobject("adodb.recordset")
sql="select * from anclass  order by anclassidorder"
rs_s.open sql,conn,1,1
while not rs_s.eof
           if rs("anclass")=rs_s("anclassid") then
          tmppingpaiid=rs_s("anclassid")
        
%>

          <option value="<%=rs_s("anclassid")%>" selected ><%=rs_s("letter")%>-<%=trim(rs_s("anclass"))%><%=tmppingpaiid%></option>
          <%
     else
%>
          <option value="<%=rs_s("anclassid")%>" ><%=rs_s("letter")%>-<%=trim(rs_s("anclass"))%></option>
            <%
     end if    


  
 
    rs_s.movenext
wend
rs_s.close
set rs_s=nothing
%> </select></td>
  </tr>
  <tr>
   <td  bgcolor="#F7F7F7">　</td>
   <td width="106" bgcolor="#F7F7F7">系列</td>
   <td width="623" bgcolor="#F7F7F7">
<select size="1" size="18" name="nclass"  class="wenbenkuang">
                        <option value="" >--请选择系列--</option>

 <%
set rs_s=server.createobject("adodb.recordset")
sql="select * from nclass where anclassid="&tmppingpaiid&" order by nclassidorder"
rs_s.open sql,conn,1,1
while not rs_s.eof
%>
          <option value="<%=rs_s("nclassid")%>" <%if rs("nclass")=rs_s("nclassid") then%> selected<%end if%>><%=trim(rs_s("nclass"))%></option>
          <%
    rs_s.movenext
wend
rs_s.close
set rs_s=nothing
%></select></td>
   </font></td>
  </tr>
 <tr> 
  <td  bgcolor="#F7F7F7">　</td>
  <td width="106" bgcolor="#F7F7F7">车型</td>
  <td width="623" bgcolor="#F7F7F7">
 					<input class="wenbenkuang" maxLength="40" name="model"  value="<%=rs("model")%>"   ></td>
 </tr>
 
 <tr> 
  <td  bgcolor="#F7F7F7">　</td>
  <td width="106" bgcolor="#F7F7F7">日租价</td>
  <td width="623" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="day_lease_price" value="<%=rs("day_lease_price")%>" ONKEYPRESS="event.returnValue=IsDigit();"> 元(不填<span lang="zh-cn">和0 </span>
					表示面议) (<span lang="zh-cn">限数字</span>)</td>
 </tr>
 
 <tr> 
  <td  bgcolor="#F7F7F7" height="28">　</td>
  <td width="106" bgcolor="#F7F7F7" height="28">月租价</td>
  <td width="623" bgcolor="#F7F7F7" height="28">
					<input class="wenbenkuang" maxLength="40" name="month_lease_price" value="<%=rs("month_lease_price")%>" ONKEYPRESS="event.returnValue=IsDigit();"> 元(不填和0 表示面议) 
					(<span lang="zh-cn">限数字</span>)</td>
 </tr>
 
 <tr> 
  <td  bgcolor="#F7F7F7">　</td>
  <td width="106" bgcolor="#F7F7F7">变速器</td>
  <td width="623" bgcolor="#F7F7F7">
										
					<select class="select" class="wenbenkuang" size="1" name="derailleur" >
					<option value="自动档" <%if rs("derailleur")="自动档" then %> selected <%end if%>>自动档</option>
					<option value="手动档" <%if rs("derailleur")="手动档" then %> selected <%end if%>>手动档</option>
					</select></td>
 </tr>
 
 <tr> 
  <td  bgcolor="#F7F7F7">　</td>
  <td width="106" bgcolor="#F7F7F7">基本里程</td>
  <td width="623" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="15" name="basic_mileage" value="<%=rs("basic_mileage")%>" > 
					参考<span lang="en-us">:</span>100公里/日 8小时/日</td>
 </tr>
 
 <tr> 
  <td  bgcolor="#F7F7F7">　</td>
  <td width="106" bgcolor="#F7F7F7">超出部分</td>
  <td width="623" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="15" name="over_step" value="<%=rs("over_step")%>" > 
					参考<span lang="en-us">:</span>40元/小时 4.0元/公里</td>
 </tr>
 
 <tr> 
  <td  bgcolor="#F7F7F7">　</td>
  <td width="106" bgcolor="#F7F7F7">费用包括</td>
  <td width="623" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="15" name="charge_inc" value="<%=rs("charge_inc")%>" > 参考<span lang="en-us">:</span>司机工资+汽油费+保险</td>
 </tr>
 
 <tr> 
  <td  bgcolor="#F7F7F7">　</td>
  <td width="106" bgcolor="#F7F7F7">另付费用</td>
  <td width="623" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="15" name="other_charge" value="<%=rs("other_charge")%>" > 参考<span lang="en-us">:</span>过桥过+路费+停车费+超小时超公里费用</td>
 </tr>
 
 	<tr>
  <td  bgcolor="#F7F7F7">　</td>
  <td width="106" bgcolor="#F7F7F7">颜色</td>
  <td width="623" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="15" name="color"   value="<%=rs("color")%>" ></td>
 	</tr>
 
 <tr> 
  <td  bgcolor="#F7F7F7">　</td>
  <td width="106" bgcolor="#F7F7F7">百里油耗</td>
  <td width="623" bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="20" name="oil_wear"  value="<%=rs("oil_wear")%>" >(升/100公里)</td>
 </tr>
 
 <tr> 
  <td  bgcolor="#F7F7F7">　</td>
  <td width="106" bgcolor="#F7F7F7">排量</td>
  <td width="623" bgcolor="#F7F7F7">
					
					<input class="wenbenkuang" maxLength="20" name="displacement"  value="<%=rs("displacement")%>" >(升)</td>
 </tr>
 
  <tr> 
   <td height="18"  bgcolor="#F7F7F7">　</td>
   <td height="18" width="106" bgcolor="#F7F7F7">最初图片</td>
   <td height="18" width="623" bgcolor="#F7F7F7"><%
					ServerName1=Cstr(Request.ServerVariables("HTTP_REFERER"))
					%><input name="pic" type="text" id="pic" size="30" class="wenbenkuang" value="<%=rs("pic")%>" >　<input  type="button" name="Submit2" value="上传图片" onClick="window.open('../Up_byshopPic2.asp?formname=formpub&editname=pic&byshopuppath=upload/lease&filelx=jpg&picclass=2&ServerName1=<%=ServerName1%>','','status=no,scrollbars1=no,top=20,left=110,width=420,height=165')" class="go-wenbenkuang">
   </td>
 </tr>
 <tr> 
   <td height="18"  bgcolor="#F7F7F7"></td>
   <td height="18" width="106" bgcolor="#F7F7F7"> 图1</td>
   <td height="18" width="623" bgcolor="#F7F7F7"> 
   					<input name="pic1" type="text" id="pic1" size="30" class="wenbenkuang"  value="<%=rs("pic1")%>" >　<input  type="button" name="Submit3" value="上传图片" onClick="window.open('../Up_byshopPic2.asp?formname=formpub&editname=pic1&byshopuppath=upload/second&filelx=jpg&picclass=2&ServerName1=<%=ServerName1%>','','status=no,scrollbars1=no,top=20,left=110,width=420,height=165')" class="go-wenbenkuang"></td>
 </tr>
 <tr> 
   <td height="18"  bgcolor="#F7F7F7"></td>
   <td height="18" width="106" bgcolor="#F7F7F7"> 图2</td>
   <td height="18" width="623" bgcolor="#F7F7F7"> 
   					<input name="pic2" type="text" id="pic2" size="30" class="wenbenkuang"  value="<%=rs("pic2")%>" >　<input  type="button" name="Submit4" value="上传图片" onClick="window.open('../Up_byshopPic2.asp?formname=formpub&editname=pic2&byshopuppath=upload/second&filelx=jpg&picclass=2&ServerName1=<%=ServerName1%>','','status=no,scrollbars1=no,top=20,left=110,width=420,height=165')" class="go-wenbenkuang"></td>
 </tr>
 <tr> 
   <td height="18"  bgcolor="#F7F7F7"></td>
   <td height="18" width="106" bgcolor="#F7F7F7"> 图3</td>
   <td height="18" width="623" bgcolor="#F7F7F7"> 
   <input name="pic3" type="text" id="pic3" size="30" class="wenbenkuang"  value="<%=rs("pic3")%>">　<input  type="button" name="Submit5" value="上传图片" onClick="window.open('../Up_byshopPic2.asp?formname=formpub&editname=pic3&byshopuppath=upload/second&filelx=jpg&picclass=2&ServerName1=<%=ServerName1%>','','status=no,scrollbars1=no,top=20,left=110,width=420,height=165')" class="go-wenbenkuang"></td>
 </tr>
 <tr> 
   <td height="18"  bgcolor="#F7F7F7"></td>
   <td height="18" width="106" bgcolor="#F7F7F7">图4</td>
   <td height="18" width="623" bgcolor="#F7F7F7"> 
   					<input name="pic4" type="text" id="pic4" size="30" class="wenbenkuang" value="<%=rs("pic4")%>" >　<input  type="button" name="Submit6" value="上传图片" onClick="window.open('../Up_byshopPic2.asp?formname=formpub&editname=pic4&byshopuppath=upload/second&filelx=jpg&picclass=2&ServerName1=<%=ServerName1%>','','status=no,scrollbars1=no,top=20,left=110,width=420,height=165')" class="go-wenbenkuang"> 
   </td>
 </tr>
 <tr> 
  <td valign="top"  bgcolor="#F7F7F7">　</td>
  <td valign="top" width="106" align="left" bgcolor="#F7F7F7">
	<p align="left">车况描述</td>
  <td width="623" bgcolor="#F7F7F7">

					<textarea class="smallarea" style="FONT-FAMILY: 宋体" name="description" rows="5" cols="49" class="wenbenkuang" ><%=rs("description")%></textarea> <font color="#FF6600">(最多500字)</font><font color="#ff6600">*</font></td>
 </tr>
 <tr> 
  <td valign="top" width="639" colspan="3" bgcolor="#F7F7F7">联系方式</td>
 </tr>
 <tr> 
  <td valign="top"  bgcolor="#F7F7F7">　</td>
  <td valign="top" width="106" bgcolor="#F7F7F7"><span lang="zh-cn">交易地址</span></td>
  <td width="623" bgcolor="#F7F7F7">

					<select size="1" name="province" onChange=chsel()  class="wenbenkuang">
          <option value="xxx" selected>--不限省份--</option>
          <%dim tmpShengid
tmpShengid=0
set rs_s=server.createobject("adodb.recordset")
sql="select * from province  order by shengorder"
rs_s.open sql,conn,1,1
while not rs_s.eof%>
    <%
           if rs("province")=rs_s("ShengNo") then
          tmpShengid=rs_s("id")
%>
          <option value="<%=rs_s("ShengNo")%>" selected ><%=trim(rs_s("ShengName"))%></option>
          <%
     else
%>
          <option value="<%=rs_s("ShengNo")%>" ><%=trim(rs_s("ShengName"))%></option>
            <%
     end if        
 
    rs_s.movenext
wend
rs_s.close
set rs_s=nothing
%>
        </select><select size="1" size="18" name="city"  class="wenbenkuang"  >
                        <option value="" >--不限城市--</option>

            

 <%
set rs_s=server.createobject("adodb.recordset")
sql="select * from city where shengid="&tmpShengid&" order by shiorder"
rs_s.open sql,conn,1,1
while not rs_s.eof
%>
  <option value="<%=rs_s("ShiNo")%>" <%if rs("city")=rs_s("ShiNo") then%>selected<%end if%>><%=trim(rs_s("ShiName"))%></option>

      
          <%
    rs_s.movenext
wend
rs_s.close
set rs_s=nothing
%>
					 </select></td>
 </tr>
 <tr> 
  <td valign="top"  bgcolor="#F7F7F7">　</td>
  <td valign="top" width="106" bgcolor="#F7F7F7">联系地址</td>
  <td width="623" bgcolor="#F7F7F7">

					<input class="wenbenkuang" maxLength="40" name="address"  value="<%=rs("address")%>" ><font color="#ff6600"> *</font></td>
 </tr>
 <tr> 
  <td valign="top"  bgcolor="#F7F7F7">　</td>
  <td valign="top" width="106" bgcolor="#F7F7F7">联 系 人</td>
  <td width="623" bgcolor="#F7F7F7">

					<input class="wenbenkuang" maxLength="15" name="linkname"  value="<%=rs("linkname")%>"  ><font color="#ff6600"> *</font></td>
 </tr>
 <tr> 
  <td valign="top"  bgcolor="#F7F7F7">　</td>
  <td valign="top" width="106" bgcolor="#F7F7F7">
					联系电话</td>
  <td width="623" bgcolor="#F7F7F7">

					<input class="wenbenkuang" maxLength="15" name="tel"  value="<%=rs("tel")%>" ><font color="#ff6600"> *</font></td>
 </tr>
 <tr> 
  <td valign="top"  height="25" bgcolor="#F7F7F7">　</td>
  <td valign="top" width="106" height="25" bgcolor="#F7F7F7">手机号码</td>
  <td width="623" height="25" bgcolor="#F7F7F7">

					<input class="wenbenkuang" maxLength="11" name="mobile"  value="<%=rs("mobile")%>" ></td>
 </tr>
 <tr> 
  <td valign="top"  height="25" bgcolor="#F7F7F7">　</td>
  <td valign="top" width="106" height="25" bgcolor="#F7F7F7">即时通讯</td>
  <td width="623" height="25" bgcolor="#F7F7F7">

					<input id="Contract_QQ" type="radio"  value="qq" <%if rs("Contract")="qq" then %> CHECKED <%end if%> name="Contract"><label for="Contract_QQ">QQ</label>
	<input id="Contract_MSN" type="radio" value="msn" name="Contract"  <%if rs("Contract")="msn" then %> <%end if%>><label for="Contract_MSN">MSN</label> 
					<input class="wenbenkuang" maxLength="15" name="Contract2" value=<%=rs("contract2")%> ></td>
 </tr>
 <tr> 
  <td valign="top"  height="25" bgcolor="#F7F7F7">　</td>
  <td valign="top" width="106" height="25" bgcolor="#F7F7F7">电子邮件</td>
  <td width="623" height="25" bgcolor="#F7F7F7">

					<input class="wenbenkuang" maxLength="40" name="email"  value="<%=rs("email")%>" ></td>
 </tr>
 <tr> 
  <td valign="top"  height="25" bgcolor="#F7F7F7">　</td>
  <td valign="top" width="106" height="25" bgcolor="#F7F7F7">
					<span lang="zh-cn">传真号码</span></td>
  <td width="623" height="25" bgcolor="#F7F7F7">

					<input class="wenbenkuang" maxLength="15" name="fax" value="<%=rs("fax")%>" ></td>
 </tr>
 <tr> 
  <td  bgcolor="#F7F7F7" colspan="3">信息状态</td>
   </tr>
 <tr> 
  <td  bgcolor="#F7F7F7">　</td>
  <td  bgcolor="#F7F7F7">审核状态</td>
  <td  bgcolor="#F7F7F7"><select name="estate" >
  <option value="1" <%if rs("estate")=1 then %>selected <%end if%> >通过</option>
   <option value="0" <%if rs("estate")=0 then %>selected <%end if%> >待审核</option>
    <option value="-1" <%if rs("estate")=-1 then %>selected <%end if%> >未通过</option>
</select></td>
   </tr>
 <tr> 
  <td  bgcolor="#F7F7F7">　</td>
  <td  bgcolor="#F7F7F7">发布者</td>
  <td  bgcolor="#F7F7F7"><%
 color=""
				set rs4=server.createobject("adodb.recordset")
sql4="select company,username,userid,sort,reglx,linkname from pysjzx_user  where username='"&rs("username")&"'"
rs4.open sql4,conn,1,1
if not rs4.eof then
if rs4("reglx")=2 then
color="<font color='#008080'>"
end if
if rs4("sort")=2 then
response.write "<a href=listcompany.asp?id="&rs4("userid")&" target=_blank>"&color&rs4("company")&"</a>"
end if
if rs4("sort")=1 then
response.write "<a href=listuser.asp?id="&rs4("userid")&" target=_blank>"&color&rs4("linkname")&"</a>"
end if
rs4.close
else
response.write "本站发布"
end if
%></td>
   </tr>
 <tr> 
  <td  bgcolor="#F7F7F7">　</td>
  <td  bgcolor="#F7F7F7">浏览次数</td>
  <td  bgcolor="#F7F7F7">
					<input class="wenbenkuang" maxLength="40" name="browse_count" value="<%=rs("browse_count")%>"  ></td>
   </tr>
 <tr> 
  <td  bgcolor="#F7F7F7">　</td>
  <td  bgcolor="#F7F7F7">发布日期</td>
  <td  bgcolor="#F7F7F7"><%=rs("adddate")%>　</td>
   </tr>
 <tr> 
  <td  bgcolor="#F7F7F7" colspan="3">　</td>
   </tr>
 <tr> 
  <td height="32" bgcolor="#F7F7F7" colspan="3"><div align="center"><input type="submit" name="Submit" value="修  改"  class=wenbenkuang >
	<input type="reset" name="Submit7" value="清  除"  class=wenbenkuang >
<input type="button" value="返回上一页" onClick="javascript:history.go(-1)" class="unnamed5" name="button"></div>
	</td>
   </tr>
   </form>
   </table>
   	</div>
   
</body>
</html> 
  