index.php

来自「极限网络智能办公系统 Office Automation V3.0官方100%源」· PHP 代码 · 共 78 行

PHP
78
字号
<?
include_once("inc/auth.php");
?>

<html>
<head>
<title>列车时刻查询</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language="JavaScript">
function CheckForm1()
{
   if(document.form1.START.value=="" || document.form1.END.value=="")
   { alert("模糊查询中起始站与终到站均不能为空!可以输入不完整名称");
     return (false);
   }
   return (true);
}

function CheckForm2()
{
   if(document.form2.TRAIN.value=="")
   { alert("精确查询中车次不能为空!");
     return (false);
   }
   return (true);
}
</script>
</head>

<body class="bodycolor" topmargin="5" onload="document.form1.START.focus();">

<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">
 <form action="search.php"  name="form1" onsubmit="return CheckForm1();">
    	起始站:<input type="text" name="START" size="10" maxlength="50" class="BigInput" value="<?=$START_NAME?>" title="起始站与终到站可以输入不完整名称">&nbsp;&nbsp;
        终到站:<input type="text" name="END" size="10" maxlength="50" class="BigInput" value="<?=$END_NAME?>" title="起始站与终到站可以输入不完整名称">
      	<input type="submit" value="查询" class="BigButton" name="button" title="开始查询">
 </form>
 </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">
 <form action="search.php" name="form2" onsubmit="return CheckForm2();">
	车次:<input type="text" name="TRAIN" size="10" maxlength="50" class="Biginput" value="<?=$TRAIN?>">
        <input type="submit" value="查询" class="BigButton" name="button">
 </form>
 </span>
</div>

<br>
<?
Message("","数据仅供参考");
?>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?