<!--#include file="conn.asp"-->
<!--#include file="top.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>站名查询</title>
<link rel="stylesheet" href="css1.css" type="text/css"> 
<STYLE type=text/css>TD {
	FONT-SIZE: 9pt; LINE-HEIGHT: 14px
}
A {
	COLOR: #000000; TEXT-DECORATION: none
}
A:hover {
	COLOR: #000000; TEXT-DECORATION: underline
}
#ancf {
	COLOR: #ffffff; TEXT-DECORATION: none
}
#bd {
	FONT-SIZE: 9pt
}
.style3 {
	COLOR: #ff0000
}
</STYLE>
</head>

<body>
<center>
<table width="777" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="100%" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="2">
        <tr> <td width="160" valign="top"><!--#include file="leftmenu.asp"--></td>
          <td width="100%" valign="top">
<center>
                <table width="611" cellspacing=1 CLASS="table1">
                  <!--DWLayoutTable-->
                  <%
		  set rs=Server.CreateObject("Adodb.Recordset")
		    set checirs=Server.CreateObject("Adodb.Recordset")
		  sql="select * from [stationinfo] where name = '"&request("zhanming")&"'"
		  rs.open sql,trainconn,1,1

		  %>
                  <tr> 
                    <td width="100%" colspan=5 CLASS=td1><font color="#000000">经过 
                      <%=request("zhanming")%> 的所有车次</font></td>
                  </tr>
                  <td WIDTH='96' CLASS=td2><font color="#000000">车次</font></td>
                  <td WIDTH='96' CLASS=td2><font color="#000000">始发站</font></td>
                  <td WIDTH='97' CLASS=td2><font color="#000000">终到站</font></td>
                  <td WIDTH='97' CLASS=td2><font color="#000000">到达时刻</font></td>
                  <td CLASS=td2 WIDTH='97'><font color="#000000">开车时刻</font></td>
                  </tr>
                  <%

   for i =  1 to rs.recordcount
	checisql="select * from [traininfo] where checi='"&rs("checi")&"'"
	checirs.open checisql,trainconn,1,1
%>
                  <tr> 
                    <td CLASS=td3 ><div align="center"><a href='<%response.write "cccx2.asp?checi="&server.urlencode(rs("checi"))&"&flag="&server.URLEncode(request("zhanming"))&""%>' class=title1><%=rs("checi")%></a></div></td>
                    <td CLASS=td3><div align="center"><%=checirs("startstation")%></div></td>
                    <td CLASS=td3><div align="center"><%=checirs("to")%></div></td>
                    <td CLASS=td3><div align="center"><%=rs("arrtime")%></div></td>
                    <td CLASS=td3><div align="center"><%=rs("starttime")%></div></td>
                  </tr>
                  <%
checirs.close

rs.movenext
next

rs.close
set rs=nothing
set checirs=nothing
%>
                </table>
</center>
		  
		  </td>
        </tr>
      </table></td>
  </tr>    
    <tr> 
      <td valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
    </tr>

</table></center>
</body>
</html>
<!--#include file="bottom.asp"-->