%@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" %>
订单