<!--#include file="../conn.asp"-->
<%
session("zucheing") = "yes"		'标记正在操作租车

session("quche_city1")     = ""
session("quche_city2")     = ""
session("quche_fangshi")   = ""
session("quche_addr")      = ""
session("quche_date")      = ""
session("quche_hourStart") = ""
session("quche_hourEnd")   = ""
session("huanche_city1")   = ""
session("huanche_city2")   = ""
session("zuqi")            = ""

set rs = server.CreateObject("adodb.recordset")
rs.open "select * from rent_qucheCity where id="& request.Form("leaseCity") &"",conn,1,1
if not rs.eof then
	tt=rs("name1")
else
	tt="未知地址"
end if
rs.close
set rs=nothing

'获得还车城市的名字
set rs = server.CreateObject("adodb.recordset")
rs.open "select * from rent_qucheCity where id="& request.Form("returnCity") &"",conn,1,1
if not rs.eof then
	returnCity=rs("name1")
else
	returnCity="未知地址"
end if
rs.close
set rs=nothing

session("quche_city1")     = tt
session("quche_city2")     = request.Form("leaseDepartment")
session("quche_fangshi")   = request.Form("getcartype")
session("quche_addr")      = trim(request.Form("quchefs_men_add"))
session("quche_date")      = request.Form("leaseTime")
session("quche_hourStart") = request.Form("quchehourstart")
session("quche_hourEnd")   = request.Form("quchehourend")
session("huanche_city1")   = returnCity
session("huanche_city2")   = request.Form("returnAddr")
session("zuqi")            = request.Form("zuqi")

if session("userId23") = "" then
	response.Redirect "alertLogin.asp"
	response.End()
else
	response.Redirect "rent2.asp"
end if
%>