📄 index.php
字号:
<?
include_once("inc/auth.php");
?>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language="JavaScript">
function Check1()
{
if(document.form1.START.value=="" || document.form1.END.value=="")
{
alert("起始站与终到站均不能为空!可以输入不完整名称");
return (false);
}
else
document.form1.submit();
}
function New()
{
url="new.php?CITY="+document.form1.CITY.value;
location=url;
}
function Check2()
{
if(document.form1.LINEID.value=="")
{
alert("线路查询中公交线路不能为空!");
return (false);
}
else
document.form1.submit();
}
</script>
</head>
<body class="bodycolor" topmargin="5" onload="document.form1.START.focus();">
<form action="search.php" name="form1">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/infofind.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 选择城市 </span><br>
</td>
</tr>
</table>
<div align="center">
<select name="CITY" class="BigSelect">
<option value="BS" <?if($BUS_CITY=="BS")echo "selected";?>>本市 </option>
<option value="BJ" <?if($BUS_CITY=="BJ")echo "selected";?>>北京 </option>
<option value="CD" <?if($BUS_CITY=="CD")echo "selected";?>>成都 </option>
<option value="CQ" <?if($BUS_CITY=="CQ")echo "selected";?>>重庆 </option>
<option value="GZ" <?if($BUS_CITY=="GZ")echo "selected";?>>广州 </option>
<option value="HZ" <?if($BUS_CITY=="HZ")echo "selected";?>>杭州 </option>
<option value="KM" <?if($BUS_CITY=="KM")echo "selected";?>>昆明 </option>
<option value="NJ" <?if($BUS_CITY=="NJ")echo "selected";?>>南京 </option>
<option value="QD" <?if($BUS_CITY=="QD")echo "selected";?>>青岛 </option>
<option value="SH" <?if($BUS_CITY=="SH")echo "selected";?>>上海 </option>
<option value="SZ" <?if($BUS_CITY=="SZ")echo "selected";?>>深圳 </option>
<option value="TJ" <?if($BUS_CITY=="TJ")echo "selected";?>>天津 </option>
<option value="WH" <?if($BUS_CITY=="WH")echo "selected";?>>武汉 </option>
<option value="XA" <?if($BUS_CITY=="XA")echo "selected";?>>西安 </option>
</select>
<?
if($LOGIN_USER_PRIV==1)
{
?>
<input type="button" value="新建线路" class="BigButton" title="新建公交线路" onclick="New()">
<?
}
?>
</div>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
<tr>
<td background="/images/dian1.gif" width="100%"></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/infofind.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 按车站查询 </span><br>
</td>
</tr>
</table>
<div align="center">
<span class="big3">
起始站:<input type="text" name="START" size="10" maxlength="50" class="BigInput" value="<?=$START_NAME?>" title="起始站与终到站可以输入不完整名称">
终到站:<input type="text" name="END" size="10" maxlength="50" class="BigInput" value="<?=$END_NAME?>" title="起始站与终到站可以输入不完整名称">
<input type="button" value="查询" class="BigButton" title="开始查询" onclick="Check1()">
</span>
</div>
<br>
<table width="95%" border="0" cellspacing="0" cellpadding="0" height="3">
<tr>
<td background="/images/dian1.gif" width="100%"></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/menu/infofind.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 按线路查询 </span><br>
</td>
</tr>
</table>
<div align="center">
<span class="big3">
公交线路:<input type="text" name="LINEID" size="10" maxlength="50" class="Biginput" value="<?=$LINEID?>" title="输入公交线路(阿拉伯数字)">
<input type="button" value="查询" class="BigButton" title="开始查询" onclick="Check2()">
</span>
</div>
</form>
<br>
<?
Message("","数据仅供参考");
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -