📄 index.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<% option explicit %>
<% randomize%>
<!--#include file="function.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>公交车查询</title>
<script language="JavaScript">
function keydown(){
if(window.event.keyCode==13){
event.returnValue=false;
}
}
function do1(){
var busStationStartKey=document.form1.start.value;
var busStationToKey=document.form1.to.value;
if (busStationStartKey==""){
alert("请输入起点站!");
}else
if(busStationToKey==""){
alert("请输入目的站!");
}else
{
document.form1.submit();
}
}
function do2(){
if (document.form2.text.value==""){
alert("请输入车次!");
}else{
//核对查询的车次是否存在,如存在,则索取相应的页面
document.form2.submit();
}
}
function do3(){
if (document.form3.text.value==""){
alert("请输入站名!");
}else{
//核对查询的站点是否存在,如存在,则索取相应的页面
document.form3.submit();
}
}
</script>
<!--加一个参数,使浏览器不会读缓冲区数据-->
<script language="JavaScript" src="buffer/data.js?temp=<% = rnd %>"></script>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<div align="center">
<table border="0" width="100%" height="101%" cellspacing="0" cellpadding="0" style="font-size: 0">
<tr>
<td align="center" height="146" background="image/top1.jpg">
</td>
</tr>
<tr>
<td align="center" height="14">
</td>
</tr>
<tr>
<td align="center" height="260" valign="top" style="font-size: 0">
<table border="1" width="724" height="254" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolordark="#E5E5E5" bordercolorlight="#E5E5E5">
<!-- MSTableType="nolayout" -->
<tr>
<td height="23" style="font-family: Arial Black; font-size: 10pt; color:#666699" background="image/1.jpg" >
〓〓站站查询〓〓 ━━
输入起点站和目的站,就可以查询出经过这两站的直达公交车或者换乘建议</td>
</tr>
<tr>
<td height="47" style="font-family: Arial Black; font-size: 1px; color:#666699" background="image/2.gif" align="center" >
<table border="0" width="97%" cellpadding="0" style="border-collapse: collapse ont-family: Arial Black; font-size: 10pt; color:#666699">
<tr>
<td width="139">
输入起点站和目的站<td width="50">起点站</td>
<td width="193">
<form name="form1" method="POST" action="busStationToStation.asp">
<input type="text" name="start" size="20" style="width:140;border: 1px solid #e5e5e5;height: 19px;font-size: 13px;"></td>
<td width="61">目的站</td>
<td>
<input type="text" name="to" size="20" style="width:140;border: 1px solid #e5e5e5;height: 19px;font-size: 13px;"></td>
<td width="74">
<img border="0" src="image/button.gif" width="57" height="21" onClick="do1();"></td>
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="23" style="font-family: Arial Black; font-size: 10pt; color:#666699" background="image/1.jpg" >
〓〓车次查询〓〓 ━━ 输入要查询的车次即可查出本车次的停靠站</td>
</tr>
<tr>
<td height="44" style="font-family: Arial Black; font-size: 10pt; color:#666699" background="image/2.gif" align="center" >
<table border="0" width="97%" cellpadding="0" style="border-collapse: collapse ont-family: Arial Black; font-size: 10pt; color:#666699">
<tr>
<td width="29">
<form name="form2" method="POST" action="busId.asp">
<td width="160">请输入车次</td>
<td>
<input type="text" name="text" size="20" style="width:140;border: 1px solid #e5e5e5;height: 19px;font-size: 13px;"></td>
<td width="74">
<img border="0" src="image/button.gif" width="57" height="21" onClick="do2();"></td>
</form>
</tr>
</table>
</td>
</tr>
<tr>
<td style="font-family: Arial Black; font-size: 10pt; color:#666699" background="image/1.jpg" >
〓〓站点查询〓〓 ━━ 输入一个站点,就可以查询出经过该站点的所有公交车</td>
</tr>
<tr>
<td height="49" style="font-family: Arial Black; font-size: 10pt; color:#666699" background="image/2.gif" align="center" >
<table border="0" width="97%" cellpadding="0" style="border-collapse: collapse ont-family: Arial Black; font-size: 10pt; color:#666699">
<tr>
<td width="11">
<form name="form3" method="POST" action="busState.asp">
<td width="178">请输入站点名称</td>
<td>
<input type="text" name="text" size="20" style="width:140;border: 1px solid #e5e5e5;height: 19px;font-size: 13px;"></td>
<td width="74">
<img border="0" src="image/button.gif" width="57" height="21" onClick="do3();"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="44" style="font-family: Arial Black; font-size: 10pt; color:#666699" align="center" bgcolor="#FFFFFF" background="image/2.gif" >
<table border="0" width="96%" cellspacing="0" cellpadding="0">
<tr>
<td width="447" align="right" style="font-family: Arial Black; font-size: 10pt; color:#666699">管理员登陆</td>
<td align="right">
<a href="manage.asp">
<img border="0" src="image/button2.gif" width="57" height="21"></a></td>
<td width="15"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" height="156" background="image/buttom1.jpg">
</td>
</tr>
<tr>
<td align="center" bgcolor="#f3f2ef" style="font-size: 8" width="100%" height="8">
</td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -