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

📄 piao.jsp

📁 JSP+SQL2000做的火车站售票管理系统
💻 JSP
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;Charset=GB2312" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<%@ include file="connection.jsp" %>
<%
ResultSet rsVerify;
String cs_trainno,cs_city1,cs_city2,cs_time,cs_chex,cs_zuow,cs_id,cs_price,sqlVerify,chex,zuow,id,price;
%>
<head>
<title>网上购票</title>
<link href="css/rege.css" rel="stylesheet" type="text/css">
<script type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
</head>
 <body>
<div id="container">
	<div id="banner"><img src="image/top.jpg" width="700" height="93"></div>
	<%@ include file="dat/head.txt"%>
 <div id="main">
	<p>请确认火车票信息</p>
	<table width="500" border="1">
    <th>编号
    <th>车次
	<th>出发站
    <th>目的站
    <th>日期
    <th>车厢
    <th>座位(卧铺)号
    <th>票价
    <%
	cs_trainno=request.getParameter("cs_trainno");
	cs_city1=request.getParameter("cs_city1");
	cs_city2=request.getParameter("cs_city2");
	cs_time=request.getParameter("cs_time");
	sqlVerify="select * from cs_piao where trainno='"+cs_trainno+"'";
    rsVerify=sql.executeQuery(sqlVerify);
   while(rsVerify.next())
   { 
	 cs_id=(String)rsVerify.getString("id");
	 session.setAttribute("cs_trainno",rsVerify.getString("trainno"));
	 cs_chex=(String)rsVerify.getString("chex");
	 session.setAttribute("cs_chex",rsVerify.getString("chex"));
	 cs_zuow=(String)rsVerify.getString("zuow");
	 cs_price=(String)rsVerify.getString("price");
   %>
   <tr>
     <td><%=cs_id%></td>
	 <td><%=cs_trainno%></td>
	 <td><%=cs_city1%></td>
	 <td><%=cs_city2%></td>
	 <td><%=cs_time%></td>
	 <td><%=cs_chex%></td>
	 <td><%=cs_zuow%></td>
	 <td><%=cs_price%></td>
 </th>
	<%}%>
	</table>
	<%	
   Conn.close();
   
   %>
   
	<label>
	<input name="Submit" type="button" onclick="MM_goToURL('parent','topiao.jsp');return document.MM_returnValue" value="确定" />
	</label>
 </div>
</body>
</html>

⌨️ 快捷键说明

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