<!--#include file="userCheck.asp"-->
<!--#include file="conn.asp"-->
<%
function selectTreeList(i,deep)
	dim sql
	dim rs
	dim tempi
	dim rsID
	set rs=server.createObject("adodb.recordset")
	sql="select * from productSort where fatherID="&i
	rs.open sql,conn,1,1
	if rs.eof then
		exit function
	else
		do while not rs.eof 
			rsID=rs("id")
			rsName=rs("name")
			if deep=0 then
'				response.write "<option value='0'"
			else
				response.write "<option value='"&rsID&"'"
			end if
			if rsID=productSort then response.write " selected"
			response.write ">"
			for tempi=1 to deep
					response.write "&nbsp;"
			next
			response.write rsName&"</option>"
			call selectTreeList(rsID,deep+1)
			rs.movenext
		loop
	end if
end function

dim rs,sql
dim productSort
sql="select * from product where id="&Request("id")
set rs=conn.execute (sql)
%>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>会员管理中心</title>
<link href="css/comm.css" rel="stylesheet" type="text/css" />
<script language=Javascript>
<!--
function checkForm(){
if (form1.productSort.value=='0'){
	alert("请选择栏目");
	return false;
	}
return true;
}	
//-->
function openScript(url, width, height){
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}
function openem()
{ 
openScript('../upload.asp',350,200); 
}
function openem2()
{ 
openScript('../upload2.asp',350,200); 
}
function openem3()
{ 
openScript('../upload3.asp',350,200); 
}
function openem4()
{ 
openScript('../upload4.asp',350,200); 
}
function openem5()
{ 
openScript('../upload5.asp',350,200); 
}
</script>
</head>

<body>
<%if rs.eof or err then%>
该汽车已被删除,<a href=Javascript:window.history.go(-1)>返回</a> 
<%
else 
productSort=rs("productSort")
%>
<table width="910" border="0" align="center" cellpadding="0" cellspacing="0">
  
  <tr>
    <td height="2" colspan="2"><!--#include file="user_top.asp"--></td>
  </tr>
  <tr>
    <td width="178" style="border-right:dotted 1px #CCCCCC; background-color:#F8F8F6;" height="200" valign="top">
    <!--#include file="user_left.asp"-->
    </td>
    <td width="732" valign="top">
	  <div style=" margin-top:2px;">
	  <table width="100%" border=0 align="center" cellPadding=0 cellSpacing=1 bordercolor="#626D78" borderColorLight=#626D78 borderColorDark=#ffffff bgcolor="#CCCCCC" style="text-align:left;">
        <form name="form" method="post" action="user_myproModi_fun.asp">
          <tr bgcolor="#FFFFFF"> 
            <td height="20" colspan="3" align="right"><div style="line-height:30px; text-align:center;"><strong>修改出售信息</strong></div></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="80" align="right">卖主姓名:</td>
            <td colspan="2"> <input name="sell_name" type="text" id="sell_name" value="<%=rs("sell_name")%>" size="15"> 
              <font color="#FF0000">&nbsp; </font></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="20" align="right">联系电话:</td>
            <td colspan="2"> <input name="tel" type="text" id="tel2" value="<%=rs("tel")%>">            </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="20" align="right">联系地址:</td>
            <td colspan="2"> <input name="addr" type="text" id="addr" value="<%=rs("addr")%>" size="20">            </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="right">E-mail&nbsp;:</td>
            <td colspan="2"> <input name="email" type="text" id="email" value="<%=rs("email")%>" size="20"></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="right">发布类型:</td>
            <td colspan="2"> <input name="fa_class" type="radio" value="私人" <%if rs("fa_class")="私人" then%>checked<%end if%>>
              私人
			  <%
			  if request.cookies("ifchehang") <> "1" then
			  	response.write "<input name='fa_class' type='radio' value='车行' disabled='disabled' />车行"
				response.write "&nbsp;&nbsp;&nbsp;&nbsp;<a href='user_chehang.asp' target='main'>申请车行会员</a>"
			else
				if rs("fa_class")="车行" then
					response.write "<input name='fa_class' type='radio' value='车行' checked='checked' />车行"
				else
					response.write "<input name='fa_class' type='radio' value='车行' />车行"
				end if
			end if
			  %>
                </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="right">品 牌 :</td>
            <td colspan="2"> <select name="productSort">
                <%call selectTreeList(0,0)%>
              </select> <input type="hidden" name="id" value="<%=Request("id")%>">            </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="right">型 号 :</td>
            <td colspan="2"> <input name="carclass" type="text" id="carclass" value="<%=rs("carclass")%>" size="20"> 
              <font color="#FF0000">*</font></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="right">交易地区:</td>
            <td colspan="2">
			<select name="provice" id="provice">
                <option value="福建省" <% if rs("provice")="福建省" then%> selected <%end if%>>福建省</option>
                <option value="浙江省" <% if rs("provice")="浙江省" then%> selected <%end if%>>浙江省</option>
                <option value="北京市" <% if rs("provice")="北京市" then%> selected <%end if%>>北京市</option>
                <option value="黑龙江" <% if rs("provice")="黑龙江" then%> selected <%end if%>>黑龙江</option>
                <option value="吉林省" <% if rs("provice")="吉林省" then%> selected <%end if%>>吉林省</option>
                <option value="辽宁省" <% if rs("provice")="辽宁省" then%> selected <%end if%>>辽宁省</option>
                <option value="河南省" <% if rs("provice")="河南省" then%> selected <%end if%>>河南省</option>
                <option value="河北省" <% if rs("provice")="河北省" then%> selected <%end if%>>河北省</option>
                <option value="天津市" <% if rs("provice")="天津市" then%> selected <%end if%>>天津市</option>
                <option value="山东省" <% if rs("provice")="山东省" then%> selected <%end if%>>山东省</option>
                <option value="山西省" <% if rs("provice")="山西省" then%> selected <%end if%>>山西省</option>
                <option value="安徽省" <% if rs("provice")="安徽省" then%> selected <%end if%>>安徽省</option>
                <option value="上海市" <% if rs("provice")="上海市" then%> selected <%end if%>>上海市</option>
                <option value="江西省" <% if rs("provice")="江西省" then%> selected <%end if%>>江西省</option>
                <option value="江苏省" <% if rs("provice")="江苏省" then%> selected <%end if%>>江苏省</option>
                <option value="湖南省" <% if rs("provice")="湖南省" then%> selected <%end if%>>湖南省</option>
                <option value="湖北省" <% if rs("provice")="湖北省" then%> selected <%end if%>>湖北省</option>
                <option value="贵州省" <% if rs("provice")="贵州省" then%> selected <%end if%>>贵州省</option>
                <option value="重庆市" <% if rs("provice")="重庆市" then%> selected <%end if%>>重庆市</option>
                <option value="四川省" <% if rs("provice")="四川省" then%> selected <%end if%>>四川省</option>
                <option value="陕西省" <% if rs("provice")="陕西省" then%> selected <%end if%>>陕西省</option>
                <option value="宁夏" <% if rs("provice")="宁夏" then%> selected <%end if%>>宁夏</option>
                <option value="青海省" <% if rs("provice")="青海省" then%> selected <%end if%>>青海省</option>
                <option value="甘肃省" <% if rs("provice")="甘肃省" then%> selected <%end if%>>甘肃省</option>
                <option value="广东省" <% if rs("provice")="广东省" then%> selected <%end if%>>广东省</option>
                <option value="广西省" <% if rs("provice")="广西省" then%> selected <%end if%>>广西省</option>
                <option value="云南省" <% if rs("provice")="云南省" then%> selected <%end if%>>云南省</option>
                <option value="海南省" <% if rs("provice")="海南省" then%> selected <%end if%>>海南省</option>
                <option value="新疆" <% if rs("provice")="新疆" then%> selected <%end if%>>新疆</option>
                <option value="西藏" <% if rs("provice")="西藏" then%> selected <%end if%>>西藏</option>
                <option value="内蒙古" <% if rs("provice")="内蒙古" then%> selected <%end if%>>内蒙古</option>
                <option value="澳门" <% if rs("provice")="澳门" then%> selected <%end if%>>澳门</option>
                <option value="香港" <% if rs("provice")="香港" then%> selected <%end if%>>香港</option>
                <option value="台湾省" <% if rs("provice")="台湾省" then%> selected <%end if%>>台湾省</option>
                <option value="->" <% if rs("provice")="->" then%> selected <%end if%>>其它</option>
              </select>
              市区 
              <input name="provice_shi" type="text" id="provice_shi" value="<%=rs("provice_shi")%>" size="10"></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="right">年 限 :</td>
            <td colspan="2"> <input name="caryear" type="text" id="caryear" value="<%=rs("caryear")%>" size="5">
              年 <font color="#FF0000"> 
              <input name="carmonth" type="text" id="carmonth" value="<%=rs("carmonth")%>" size="5">
              </font>月<font color="#FF0000"> *</font></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="right">新 车 价:</td>
            <td colspan="2"> <input name="marketPrice" type="text" value="<%=rs("marketPrice")%>" size="12">
              元 </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="right" valign="top">出 售 价:</td>
            <td colspan="2" valign="top"> <input name="memberPrice" type="text" value="<%=rs("memberPrice")%>" size="12">
              元 <font color="#FF0000">* 填 0 ，表示：价格面议；</font></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <%if Request.Cookies("oklook")=1 then
			  response.Write"<font size=2 color=""#FF0000"">您是免费用户不能上传车辆图片！</font>"%>
            <%else%>
            <td align="right" valign="top">汽车图片:</td>
            <td colspan="2" valign="top"> <input name="smallimg" type="text" id="smallimg" value="<%=rs("smallimg")%>" size="20" maxlength="200"> 
              <font color="#FF0000">*</font> [图片1] </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="right" valign="top">前方视图:</td>
            <td colspan="2" valign="top"> <input name="smallimg2" type="text" id="smallimg2" value="<%=rs("smallimg2")%>" size="20" maxlength="200">
              * [图片2] </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="right" valign="top">汽车横图:</td>
            <td colspan="2" valign="top"> <input name="smallimg3" type="text" id="smallimg3" value="<%=rs("smallimg3")%>" size="20" maxlength="200">
              * [图片3] </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="right" valign="top">车内视图:</td>
            <td colspan="2" valign="top"> <input name="smallimg4" type="text" id="smallimg4" value="<%=rs("smallimg4")%>" size="20" maxlength="200">
              * [图片4] </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="right" valign="top">车箱视图:</td>
            <td colspan="2" valign="top"> <input name="smallimg5" type="text" id="smallimg5" value="<%=rs("smallimg5")%>" size="20" maxlength="200">
              * [图片5] </td>
            <%end if%>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="right" valign="top">汽车颜色:</td>
            <td colspan="2" valign="top"><input name="carcolor" type="radio" value="黑色" <%if rs("carcolor")="黑色" then%>checked<%end if%>>
              黑色 
              <input type="radio" name="carcolor" value="白色" <%if rs("carcolor")="白色" then%>checked<%end if%>>
              白色 
              <input type="radio" name="carcolor" value="蓝色" <%if rs("carcolor")="蓝色" then%>checked<%end if%>>
              蓝色 
              <input type="radio" name="carcolor" value="红色" <%if rs("carcolor")="红色" then%>checked<%end if%>>
              红色 
              <input type="radio" name="carcolor" value="绿色" <%if rs("carcolor")="绿色" then%>checked<%end if%>>
              绿色 
              <input type="radio" name="carcolor" value="黄色" <%if rs("carcolor")="黄色" then%>checked<%end if%>>
              黄色 
              <input type="radio" name="carcolor" value="紫色" <%if rs("carcolor")="紫色" then%>checked<%end if%>>
              紫色 
              <input type="radio" name="carcolor" value="银色" <%if rs("carcolor")="银色" then%>checked<%end if%>>
              银色 
              <input type="radio" name="carcolor" value="珍珠白" <%if rs("carcolor")="珍珠白" then%>checked<%end if%>>
              珍珠白 
              <input type="radio" name="carcolor" value="炭灰色" <%if rs("carcolor")="炭灰色" then%>checked<%end if%>>
              炭灰色 
              <input type="radio" name="carcolor" value="墨绿色" <%if rs("carcolor")="墨绿色" then%>checked<%end if%>>
              墨绿色 
              <input type="radio" name="carcolor" value="保蓝色" <%if rs("carcolor")="保蓝色" then%>checked<%end if%>>
              保蓝色 
              <input type="radio" name="carcolor" value="棗紅色" <%if rs("carcolor")="棗紅色" then%>checked<%end if%>>
              棗紅色</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td align="right" valign="top">标准配置:</td>
            <td colspan="2" valign="top"><p><br>
<%call exportModiPZ(rs("bz"),"peizhichk","130px")%>
			<br />附加配置:  <input name="introduce" type="text" id="introduce" value="<%=rs("introduce")%>" size="55"></p></td>
          </tr>
          <!--
		  <tr bgcolor="#FFFFFF"> 
            <td height="120" rowspan="5" align="right" valign="top" >引擎参数:</td>
            <td width="189" valign="top">排 量CC: 
              <input name="can1" type="text" id="can1" value="<%=rs("can1")%>" size="10">            </td>
            <td valign="top"> 气 门 数&nbsp;: 
              <input name="can2" type="text" id="can2" value="<%=rs("can2")%>" size="10">
              个</td>
          </tr>
          <tr> 
            <td valign="top" bgcolor="#FFFFFF">最大功率: 
              <input name="can3" type="text" id="can3" value="<%=rs("can3")%>" size="10">
              Kw/rpm</td>
            <td valign="top" bgcolor="#FFFFFF">最大扭矩: 
              <input name="can4" type="text" id="can4" value="<%=rs("can4")%>" size="10">
              nm/rpm</td>
          </tr>
          <tr> 
            <td height="19" valign="top" bgcolor="#FFFFFF">燃油系统: 
              <input name="can5" type="text" id="can5" value="<%=rs("can5")%>" size="10">            </td>
            <td valign="top" bgcolor="#FFFFFF">油 耗 : 
              <input name="can6" type="text" id="can6" value="<%=rs("can6")%>" size="10">
              升/百公里</td>
          </tr>
          <tr> 
            <td valign="top" bgcolor="#FFFFFF">最高时速: 
              <input name="can7" type="text" id="can7" value="<%=rs("can7")%>" size="10">
              km/h</td>
            <td valign="top" bgcolor="#FFFFFF">0-100km/h加速时间: 
              <input name="can8" type="text" id="can8" value="<%=rs("can8")%>" size="10">
              秒</td>
          </tr>
          <tr> 
            <td colspan="2" valign="top" bgcolor="#FFFFFF">备注信息:              </td>
          </tr>
		  -->
          <tr bgcolor="#FFFFFF"> 
            <td valign="top" bgcolor="#FFFFFF">费用情况:</td>
            <td colspan="2" valign="top" bgcolor="#FFFFFF">
			<%
			yl = rs("yanglufei")
			bx = rs("baoxian")
			nj = rs("nianjian")
			%>
			<div style="margin-bottom:5px;">养路费：              
                <input name="yl1" type="text" id="yl1" value="<%=left(yl,instr(yl,"到")-1)%>" />
              到
              <input name="yl2" type="text" id="yl2" value="<%=right(yl,len(yl)-instr(yl,"到"))%>" /></div>
			  <div style="margin-bottom:5px;">保&nbsp;&nbsp;&nbsp;&nbsp;险：              
			    <input name="bx1" type="text" id="bx1" value="<%=left(bx,instr(bx,"到")-1)%>" />
			  到
			  <input name="bx2" type="text" id="bx2" value="<%=right(bx,len(bx)-instr(bx,"到"))%>"></div>
		    <div style="margin-bottom:5px;">年&nbsp;&nbsp;&nbsp;&nbsp;检：              
		      <input name="nj1" type="text" id="nj1" value="<%=left(nj,instr(nj,"到")-1)%>" />
		    到
		    <input name="nj2" type="text" id="nj2" value="<%=right(nj,len(nj)-instr(nj,"到"))%>" /></div>
			</td>
          </tr>
		  <tr bgcolor="#FFFFFF"> 
            <td valign="top" bgcolor="#FFFFFF">车主自述:</td>
            <td colspan="2" valign="top" bgcolor="#FFFFFF"><textarea name="explain" cols="55" rows="8" id="explain"><%=toText(rs("explain"))%></textarea></td>
          </tr>
		  <tr bgcolor="#FFFFFF"> 
            <td colspan="3" align="right" valign="top" bgcolor="#FFFFFF"> <div align="center"> 
                <input type="submit" name="Submit2" value="修改" class="an">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                <input type="button" name="Submit22" value="返回" onClick="window.history.go(-1)">
              </div></td>
          </tr>
        </form>
        <script language=Javascript>
<!--
function deleteMe(){
	if(confirm("确定删除？一但删除无法恢复，请确认！")==1){
		window.location="admin/saveProductDel.asp?id=<%=rs("id")%>"
	}
}
//-->
</script>
        <%end if %>
      </table>
	  </div></td>
  </tr>
</table>
<table width="910" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!--#include file="model_bottom.asp"--></td>
  </tr>
</table>

</body>
</html>
<%
'================================================
'功能：获得出售或求购信息个数
function getNum(qk)
	dim yu123
	if qk = "出售" then
		rs.open "select * from product where memberid='"& request.cookies("memberid") &"' order by id desc",conn,1,1
	elseif qk = "求购" then
		rs.open "select * from buy_product where memberid='"& request.cookies("memberid") &"' order by id desc",conn,1,1
	end if
	if rs.eof then
		yu123 = 0
	else
		yu123 = rs.recordcount
	end if
	rs.close
	getNum = yu123
end function
%>