⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 advancequery.jsp

📁 基于JSP的公交查询系统,很好用的,适于学习,操作语句全在jsp页面里
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script language="JavaScript">
function checkadvance1(){
     advance1=document.advance1query.advance1.value;
	 if(advance1==""||advance1==" ")
	     { alert("高级查询一的关键字不能为空!");
		    return false;
		 }
	}	
	
function checkadvance2(){
     s_station=document.advance2.s_station.value;
	 e_station=document.advance2.e_station.value;
	 
	 if(s_station==""||s_station==" ")	
	     {  alert("高级查询二的起始站点不能为空!");
		    return false;
		 }
	 if(e_station==""||e_station==" ")	 
	     { alert("高级查询二的终点站点不能为空!")	;
		   return false;}
	}
 </script>		   
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>南昌公交查询网</title>
<style type="text/css">
<!--
body {
	background-image:  url();
	margin-left: 100px;
	margin-right: 100px;
	margin-top: 0px;
	margin-bottom: 0px;
	background-color: #999999;
}
.STYLE4 {font-size: 14px}
.STYLE7 {font-weight: bold}
.STYLE2 {font-weight: bold}
.style11 {font-size: smaller}
.style13 {font-size: small; font-weight: bold; }
.style6 {font-size: small}
a:link {
	color: #000000;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: none;
	color: #FF0000;
}
a:active {
	text-decoration: none;
	color: #FF0000;
}
.style14 {
	font-size: large;
	font-weight: bold;
}
-->
</style></head>

<body>
  <table width="787" height="692" border="0" bgcolor="#FFFFFF">
    <tr>
      <td height="181" colspan="3"><table width=772 height="179" border=0 align=center cellpadding=0 cellspacing=0 bordercolor="#FFFFFF">
        <tbody>
          <tr>
            <td height="30" colspan="7" bordercolor="#FF0000"><img src="Picture/top.files/top2004-p1.jpg" width="800" height="30"></td>
          </tr>
          <tr>
            <td height="30" colspan="7" bordercolor="#FF0000"><img src="Picture/top.files/top2004-p2.jpg" width="800" height="30"></td>
          </tr>
          <tr>
            <td height="41" colspan="7" bordercolor="#FF0000"><img src="Picture/top.files/top2004-p3.jpg" width="800" height="41"></td>
          </tr>
          <tr>
            <td height="35" colspan="7" bordercolor="#FF0000"><img src="Picture/top.files/top2004-p4.jpg" width="800" height="35"></td>
          </tr>
          <tr>
            <td width=215
          height=13   background="Picture/topbg.gif">
              <p align=left>&nbsp;&nbsp;<font style="FONT-FAMILY: Verdana" 
            color=#ffffff>
                <script language=JavaScript class=black 
             src="css/date.js"></script>
            </font></p></td>
            <td width="80" bordercolor="#FF0000" background="Picture/topbg.gif"><span class="style6">
              <div align="center" class="style6"> <a href="http://www.0951.cc/tel/" target="_blank"><strong><strong></strong></strong></a><a href="homepage.jsp" target="_self"><strong><strong>|首页</strong></strong><strong>|</strong></a></div>
              <a href="default.html" target="mainFrame"> </a><a href="http://www.0951.cc/adxx/tielu/" target="_blank">
              <div align="center" class="style13"></div>
            </a></span></td>
            <td width="104" bordercolor="#FF0000" background="Picture/topbg.gif"><span class="style6"><a href="index.jsp" target="_self">
              <div align="center" class="style13">|本站导航|</div>
            </a></span></td>
            <td width="106" bordercolor="#FF0000" background="Picture/topbg.gif"><div align="center" class="style13"><a href="advancequery.jsp">|高级搜索|</a></div></td>
            <td width="98" bordercolor="#FF0000" background="Picture/topbg.gif"><div align="center" class="style6"><strong><strong>|<a href="news.jsp">公交新闻</a>|</strong></strong></div></td>
            <td width="110" bordercolor="#FF0000" background="Picture/topbg.gif"><div align="center" class="style6"><strong>|<a href="messages.jsp">留言板</a>|</strong></div></td>
            <td width="87" bordercolor="#FF0000" background="Picture/topbg.gif"><div align="center" class="style6"><strong><a href="login.html" target="_parent">|系统维护|</a></strong></div></td>
          </tr>
          <tr>
            <td
          height=24 colspan="3" background="Picture/l33.gif" bgcolor="#6699FF"><marquee onMouseOver="fhhg" >
              <code><strong>网内公告:欢迎访问南昌公交查询网站!</strong> </code>
            </marquee>            </td>
            <td
          height=24 colspan="4" background="Picture/l33.gif" bgcolor="#FFFFFF"><div align="right" class="style6"><span class="style11"><a href="#" class=Bottom onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://localhost:8080/nbos/homepage.jsp');">|设为首页|</a><a href="javascript:window.external.AddFavorite('http://localhost:8080/nbos/homepage.jsp','南昌公交查询网')">加入收藏|</a><a href="mailto:software_wei@163.com" class=Bottom>联系站长</a><a href="mailto:software_wei@163.com" class=Bottom>|</a></span></div></td>
          </tr>
        </tbody>
      </table></td>
    </tr>
    <tr >
      <td width="77" height="439" bgcolor="#99CCFF">&nbsp;        </td>
      <td width="640" height="439"><div align="center">
        <TABLE cellSpacing=0 cellPadding=0 width=662 align=center bgColor=#003399 
border=0>
      <td width="662"><TBODY>
      
  <TR>
        <TD background=Picture/topbg.gif height=20></TD>
      </TR>
      <TR bgColor=#7da4ec>
        <TD height=124 bgcolor="#7da4ec">
          <DIV align=left class="style6">
            <p><FONT color=#ffffff><STRONG>◆◆高级查询一◆◆ </STRONG></FONT></p>
            <p><span class="STYLE2"><font color="#ffffff">1.按车次查询:输入车次号,返回该车次经过的所有站点,</font></span></p>
            <p><FONT color=#ffffff><STRONG> 2.按站点查询:输入一个关键字,返回所有与输入关键字匹配的所有站点。 </STRONG></FONT></p>
            <p><FONT color=#ffffff><STRONG>3.按路线查询:输入关键字,若有多个用空格间隔,返回所有与输入关键字匹配的所有车次。 &nbsp;</STRONG></FONT></p>
          </DIV></TD>
      </TR>
      <TR bgColor=#e8f3ff>
        <TD height=59 bgcolor="#e8f3ff">
          <form name="advance1query" method="post" target="_blank"   onSubmit="return checkadvance1();" action="resultadvance1.jsp">
		  <TABLE width=606 border=0>
            
              <TBODY>
                <TR>
                  <TD width=142><div align="left"><span class="style13">请输入关键字:</span></div></TD>
                  <TD vAlign=top width=152><input name="advance1" id="advance1" type="text" size="20"></TD>
                  <TD width="134"><select name="select">
                    <option>按车次查询</option>
                    <option>按站点查询</option>
					<option>按路线查询</option>
                  </select></TD>
                  <TD width="160"><input type="submit" name="Submit" value="查询"></TD>
                </TR>
         </TABLE>
          </form>	</TD>
      </TR>
      </TBODY>
        </TABLE>
        </div>
      <div align="justify">
        <TABLE cellSpacing=0 cellPadding=0 width=662 align=center bgColor=#003399 
border=0>
      <td width="665">
      <TBODY>
        <TR bgColor=#7da4ec>
          <TD height="20" background="Picture/topbg.gif" bgcolor="#7da4ec">
            <DIV align=left class="style6"></DIV>            </TD>
        </TR>
        <TR bgColor=#7da4ec>
          <TD height="107" bgcolor="#7da4ec"><DIV align=left class="style6"><FONT color=#ffffff><STRONG>◆◆高级查询二◆◆ </STRONG></FONT></DIV>
            <p class="style6"><FONT color=#ffffff><STRONG>1。输入起点站和目的站,就可以查询出经过这两站的直达公交车或者换乘建议</STRONG></FONT></p>
            <p class="style13"><font color="#ffffff">2。其中起点站和终点站可以使用模糊查询,如南昌航空大学,只要输入航空就可以。</font></p></TD>
        </TR>
        <TR bgColor=#e8f3ff>
          <TD height=72>
		  <form name="advance2" action="resultadvance2.jsp" target="_blank" onSubmit="return checkadvance2();">
		  <TABLE width=629 border=0>
            
              <TBODY>
                <TR>
                  <TD width=138><div align="center"><span class="style13">请输入关键字 : </span></div></TD>
                  <TD width=166>起点
                    <input name="s_station" type="text" size="15">
</TD>
                  <TD vAlign=bottom width=32><span class="style14">-&gt;</span></TD>
                  <TD width=166>目的
                    <input name="e_station" type="text" size="15">
</TD>
                  <TD width=105 vAlign=bottom><input type="submit" name="Submit2" value="查询">  </TD>
                  </TR>
            
          </TABLE>
		  </form>
		  
		  </TD>
        </TR>
        <TR bgColor=#e8f3ff>
          <TD height=40 bgcolor="#e8f3ff">&nbsp; </TD>
        </TR>
        <TR>
          <TD background=Picture/bottombg.gif 
height=20></TD>
        </TR>
      </TBODY>
        </TABLE>
        </div>
      <p>&nbsp;</p>      <p><span class="style6">&nbsp;</span></p></td>
      <td width="77" bgcolor="#99CCFF">&nbsp;</td>
    </tr>
    <tr >
      <td height="38" colspan="3" background="Picture/mainbottom.jpg">          <div align="center"></div></td>
    </tr>
    <tr background="Picture/topBar_bg.gif">
      <td height="24" colspan="3"><div align="center"><span class="css">Copyright &copy; 南昌公交查询网. All rights reserved 2007-2010</span></div></td>
    </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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