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

📄 30d9f461663c001d1beaa29818841073

📁 自己做的一个火车票售票网站是课程设计 用的是servlet+jsp 数据库是ms
💻
字号:
<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="com.vo.*"%>
<%@ page import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>无标题文档</title>
		<style type="text/css">
html,body,iframe,table,td,tr,h3 {
	margin: 0;
	padding: 0;
}

body {
	font-family: "宋体";
	font-size: 12px;
}

#mainContent {
	margin: 20px auto;
	border-top: 2px dashed #e4da56;
	padding-top: 10px;
	width: 760px;
}

h3 {
	color: #FF0000;
}

.bianse {
	background-color: #cbcbcb;
}

.biankuang {
	border-left: 2px solid #FF6666;
}
</style>
		<script type="text/javascript">
function bianse(object){
document.getElementById(object.id).className='bianse';}
function huifu(object){
document.getElementById(object.id).className='none';}

</script>

	</head>

	<body>
		<center>
			<div id="mainTop">

				<div id="header">
<div id="top">
<div id="sub1">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','760','height','120','title','xianshi','src','flash/1','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','flash/1','wmode','transparent' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="760" height="120" title="xianshi">
  
  <param name="movie" value="flash/1.swf" />
  <param name="quality" value="high" />
  
  
  <param name="wmode" value="transparent" />
  <embed src="flash/1.swf" width="760" height="120" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>
</object>
</noscript>
</div>
<div id="left">
<img src="img/train.gif" />
</div>
<div id="right">
<ul>
<li><img src="img/health10.gif" /></li>
<li><a href="main.jsp" target="_top" onclick="alter("df")"><img src="img/images021.gif"/></a></li>
<li><img src="img/health10.gif" /></li>
<li><a href="zhuce1.jsp"><img src="img/bt_register_b.gif"/></a></li>
</ul>
</div>
</div>
<div id="bottom">
<form name="form1" action="/kechengsheji/LoginServlet" method="post" target="_top" id="form1" >
<ul>
<li><span>User :</span><input type="text"  name="userName" class="inputstyle1"/></li>
<li><span>Password  :</span><input type="password" name="userPassword" class="inputstyle1" /></li>
<li><input type="submit"  class="inputstyle2" value=""/></li>
</ul>
</form>
</div>
<div id="bottom2">
<div id="bottom2-1">
<ul>
<li id="tab_1" class="change" onmouseover="hover(1)"><h3>始发/终点(站)搜索</h3></li>
<li id="tab_2" class="unchange" onmouseover="hover(2)"><h3>车站查询</h3></li>
<li id="tab_3" class="unchange" onmouseover="hover(3)"><h3>车次查询</h3></li>
</ul>
</div>
<div id="bottom2-2">

<div id="tab1" class="dis"><form action="/kechengsheji/StartEndServlet" method="post"><img src="img/d_search.gif" />我要搜&nbsp;<span>始发站</span><input type="text" value="哈尔滨" name="start" class="inputstyle1"/>&nbsp;<span>终点站</span><input type="text" name="end" class="inputstyle1"/>&nbsp;<input type="submit"  class="inputstyle" value="" /><br /><p></p>
(本站只提供哈尔滨列车时刻服务,所以默认始发站为<span>哈尔滨</span>)</form>
</div>
<div id="tab2" class="undis"><form action="/kechengsheji/ChezhanServlet" method="post"><img src="img/d_search.gif" />我要搜&nbsp;<span>车站</span><input type="text" class="inputstyle1" name="ChezhanName" />&nbsp;<input type="submit" class="inputstyle" value="" /><br /><p></p>
(查询进过<span>本车站</span>的所有列车车次)
</form>
 </div>
<div id="tab3" class="undis"><form action="/kechengsheji/CheciServlet" method="post"><img src="img/d_search.gif" />我要搜&nbsp;<span>车次</span><input type="text" class="inputstyle1" name="CheciNumber"/>&nbsp;<input type="submit" class="inputstyle" value="" /><br /><p></p>
(查询<span>此车次</span>的详细路线)
</form>
</div>

</div>
</div>

</div>

			</div>
			<div id="mainContent">
				<table cellspacing="0" cellpadding="0" border="0" width="100%">
					<tr>
						<td colspan="7">
							<img src="img/center_ht0005.gif" height="30" width="100%" />
						</td>
					</tr>
					<tr>




						<td>
							<h3>
								车次
							</h3>
						</td>
						<td>
							<h3>
								始发站
							</h3>
						</td>
						<td>
							<h3>
								终点站
							</h3>
						</td>
						<td>
							<h3>
								发车时间
							</h3>
						</td>
						<td>
							<h3>
								到站时间
							</h3>
						</td>
						<td>
							<h3>
								里程数
							</h3>
						</td>
						<td>
							<h3>
								列车类型
							</h3>
						</td>
					</tr>
					<%
				request.setCharacterEncoding("utf-8");
				Collection newCollection = (Collection) request
						.getAttribute("allCheciVO");
				Iterator it = newCollection.iterator();
				while (it.hasNext()) {
					CheciVO vo = (CheciVO) it.next();
					String number = vo.getCheciNumber();
					if (number == null) {
						response.sendRedirect("error.jsp");
					}
					String start = vo.getCheciStart();
					String end = vo.getCheciEnd();
					String startTime = vo.getCheciStartTime();
					String endTime = vo.getCheciEndTime();
					int length = vo.getCheciLength();
					String type = vo.getCheciType();
			%>
					<tr onmouseover="bianse(this)" onmouseout="huifu(this)" id="tr2"
						class="biankuang">
						<td>
							<%=number %>
						</td>
						<td>
							<%=start %>
						</td>
						<td>
							<%=end %>
						</td>
						<td>
						<%=startTime %>
						</td>
						<td>
						<%=endTime %>
						</td>
						<td>
						<%=length %>
						</td>
						<td>
						<%=type %>
						</td>
					</tr>
					<%} %>


					<tr>
						<td colspan="7">
							<img src="img/center_ht0003.gif" width="100%" />
						</td>
					</tr>
				</table>

			</div>
			<div id="mainFooter">
				<iframe src="footer.html" frameborder="0" scrolling="no"
					width="760px" id="mainIframe2" name="mainIFrame2">
				</iframe>
			</div>
		</center>
	</body>
</html>

⌨️ 快捷键说明

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