<!-- #include file="conn.asp"-->
<!--#include file="checkUser_free.asp"-->
<html>
<head>
<script language="Javascript">
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); 
}
</script>
<%
typeid=Request.QueryString("typeid")
if Request.QueryString("cz")="editfile" then
id=Request.QueryString("id")
sql = "SELECT * FROM produce where id="&id 
Set rs = Server.CreateObject("ADODB.Recordset")
rs.OPEN sql,Conn,1,1
zl_class=rs("zl_class")
name=rs("name")
car_big=rs("car_big")
day_money=rs("day_money")
month_money=rs("month_money")
year_money=rs("year_money")
more_money=rs("more_money")
typeid=rs("typeid")
lx=rs("lx")
smallimg=rs("smallimg")
bigimg=rs("bigimg")
user=rs("user")
tel=rs("tel")
url=rs("url")
hot=rs("hot")
content=html_1(rs("content"))
rs.close
Set rs=Nothing
function html_1(fString)
	fString = Replace(fString, "</P><P>" , CHR(10) & CHR(10))
	fString = Replace(fString, "<BR>" , CHR(10))
	html_1= fString
end function
title="编辑文件"
cz="editfile"
else
title="添加文件"
cz="addfile"
end if
%>
<title>汽车添加</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body topmargin="0" leftmargin="0">
<table width="100%" height="100%" border=0 cellPadding=0 cellSpacing=1 bordercolor="#666666" borderColorLight="#666666" borderColorDark=#ffffff bgcolor="#CCCCCC">
  <form name="frmAnnounce" method="post" action="zl_savefile.asp?cz=<%=cz%>&typeid=<%=typeid%>&id=<%=id%>">
    <tr bgcolor="#FFFFFF"> 
      <td height="30" colspan="2"> 
        <div align="center"><strong>出租车辆修改</strong></div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="30" align="right">汽车类别：</td>
      <td> 
        <select name="zl_class" id="zl_class">
          <option value="个人闲置车" selected selected>个人闲置车</option>
          <option value="租赁行汽车">租赁行汽车</option>
        </select></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="115" height="30" align="right">汽车名称：</td>
      <td width="565"> 
        <input type="text" name="name"   maxlength="50" value="<%=name%>" size="20">
        *</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="115" height="30" align="right">座位数：</td>
      <td width="565"> 
        <input name="car_big" type="text"   id="car_big" value="<%=car_big%>" size="20" maxlength="50">
        个 </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="115" height="30" align="right">日租价：</td>
      <td> 
        <input name="day_money" type="text"   id="day_money" value="<%=day_money%>" size="20" maxlength="50">
        元/日<font color="#FF0000">注：</font> <font color="#FF0000">如果不显示价格请留空或者填0，则在页面上显示询价功能。</font></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="30" align="right">月租价：</td>
      <td> 
        <input name="month_money" type="text"   id="month_money" value="<%=month_money%>" size="20" maxlength="50">
        元/月</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="30" align="right">年租价：</td>
      <td> 
        <input name="year_money" type="text"   id="year_money" value="<%=year_money%>" size="20" maxlength="50">
        元/年</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="30" align="right">超公里价：</td>
      <td> 
        <input name="more_money" type="text"   id="more_money" value="<%=more_money%>" size="20" maxlength="50">
        元/公里</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="115" height="30" align="right">所属分类：</td>
      <td width="565"> 
        <select name="typeid">
          <%  
sql = "SELECT * FROM type"   
Set rs = Server.CreateObject("ADODB.Recordset")  
rs.OPEN sql,Conn,1,1  
if rs.eof and rs.bof then  
Response.Write"<option>还没有任何分类</option>"  
else  
do while not rs.eof  
Response.Write"<option value='"&rs("id")&"'"  
if typeid=rs("id") then Response.Write" selected"  
Response.Write">"&rs("name")&"</option>"  
rs.movenext  
loop  
end if  
rs.close  
set rs=nothing  
conn.close  
Set conn=Nothing  
%>
        </select>
        * 请选择该产品的归属类型。</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="115" height="30" align="right">文件类型：</td>
      <td width="565"> 
        <select name="lx">
          <%  
if lx=1 then  
Response.Write"<option value='0'>图片</option>"  
else  
Response.Write"<option value='0' selected>照片</option>"  
end if   
%>
        </select>
        注： 仅限*.gif和*.jpg文件</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="115" height="30" align="right">小图片：</td>
      <td width="565"> 
        <input name="smallimg" type="text"   id="img1" value="<%=smallimg%>" size="20" maxlength="200">
        *  
             </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="115" height="30" align="right">大图片：</td>
      <td width="565"> 
        <input name="bigimg" type="text"   id="img2" value="<%=bigimg%>" size="20" maxlength="200">
        *  
             </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="115" height="30" align="right">联系人：</td>
      <td> 
        <input name="user" type="text" id="user" value="<%=user%>" size="20"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="30" align="right">联系电话：</td>
      <td> 
        <input name="tel" type="text" id="tel" value="<%=tel%>" size="20"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="115" height="109" align="right" valign="top"> <font color="#000000">租车说明</font>：</td>
      <td width="565" valign="top"> <br> <textarea name="content" cols="40" rows="5" wrap="VIRTUAL"   id="content"><%=content%></textarea> 
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="23" align="right" valign="top">&nbsp;</td>
      <td valign="top"> 
        <input type="submit" name="Submit2" value="确定操作"  > <input type="reset" name="Submit" value="重新填写"> 
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="18" colspan="2" align="right" valign="top"> 
        <div align="center">请注意，必须填写带有“*”项目，缩略图如果不填写则使用默认图片</div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="23" colspan="2" align="right" valign="top">&nbsp;</td>
    </tr>
  </form>
</table>  
</body> 
</html>