<%@ Language=VBScript %>
<!--#include file="conn.asp"-->
<html>
<head>
<title>连动测试</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<SCRIPT LANGUAGE=javascript>
<!--
var Lineid=new Array(); //线路id
var LineName=new Array(); //线路名称
var LineContent=new Array(); //线路行程
var LinePrice=new Array(); //线路价格
function init(){
<%
i=0
set rs=cn.execute("select * from Line_ZT")
if not rs.eof then
do while not rs.eof
j=0
%>
Lineid[<%=i%>]="<%=trim(rs("id"))%>";
<%
set rs2=cn.execute("select * from Line_ZT where id="&trim(rs("id"))&"")
if not rs2.eof then
%>
LineName[<%=i%>]=new Array()
LineContent[<%=i%>]=new Array()
LinePrice[<%=i%>]=new Array()
<%
do while not rs2.eof
%>
LineName[<%=i%>][<%=j%>]="<%=trim(rs2("LineName"))%>"
LineContent[<%=i%>][<%=j%>]="<%=trim(rs2("LineContent"))%>"
LinePrice[<%=i%>][<%=j%>]="<%=trim(rs2("LinePrice"))%>"
<%
j=j+1
rs2.movenext
loop
end if
rs2.close
set rs2=nothing
i=i+1
rs.movenext
loop
end if
rs.close
set rs=nothing
%>
// 结束查询,建立城市信息数组