<%@page import="javabean.db_conn"%> <%@page import="java.sql.ResultSet"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="verify_login.jsp" %><%--包含验证登陆代码--%> "/> <% //添加URL session ,作为用户登录后跳转回来的依据,登录servlet中已经写了判断程序,如果有url_cookie,就跳转到url_cookie,如果没有,就跳转到用户中心 session.setAttribute("url", request.getRequestURI()); session.setAttribute("p_tel",session.getAttribute("user_id")); session.setAttribute("f",request.getParameter("flight_id")); %> <%! String user_name; String flight_id=null; String grade=null; String grade_character=null; String s_p=null;//起飞地点 String e_p=null;//到达地点 String s_a=null;//起飞机场 String e_a=null;//目的机场 String t_t=null;//起飞时间 String l_t=null;//到达时间 %> <% flight_id=request.getParameter("flight_id"); if(flight_id==null){ flight_id="SU2312"; } %> <% db_conn conn=new db_conn(); String sql="select * from flight where f_n='"+flight_id+"'"; ResultSet res=conn.executeQuery(sql); if(res.next()){ s_p=res.getString(2); e_p=res.getString(3); s_a=res.getString(4); e_a=res.getString(5); t_t=res.getString(6); l_t=res.getString(7); } %> <%@ include file="verify_login.jsp" %> 订单
<%-- --%>

订票日期:

本人及关联旅客信息:

<% int i=0; db_conn conn2=new db_conn(); String user_id=session.getAttribute("user_id").toString(); String sql2="select * from p_inf where p_id in "+ "(select p_id2 from ptp where p_id in "+ "(select p_id from p_inf where p_tel='"+user_id+"'))"; ResultSet res2=conn2.executeQuery(sql2); while(res2.next()){ %> <%} %>
姓名 身份证号 电话 是否订购
<%=res2.getString(2) %> <%=res2.getString(1) %> <%=res2.getString(3) %>

<%=s_p %>-<%=e_p %>

<%=t_t %>
<%=s_a %>
------
乘坐<%=flight_id %>
<%=l_t %>
<%=e_a %>