You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
GenFlightRec/WebContent/admin/ticket_information.jsp

105 lines
3.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@page import="java.sql.ResultSet"%>
<%@page import="javabean.db_conn"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="verify_login.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="asset/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="asset/css/plugins/font-awesome.min.css"/>
<link rel="stylesheet" type="text/css" href="asset/css/plugins/animate.min.css"/>
<link href="asset/css/style.css" rel="stylesheet">
</head>
<body>
<div class="panel">
<div class="panel-body">
<div class="col-md-12">
<h3 class="animated fadeInLeft">查看现有机票信息</h3>
<p class="animated fadeInDown">机票管理<span class="fa-angle-right fa"></span>查看现有机票信息</p>
</div>
</div>
</div>
<div class="col-md-12 padding-0 form-element">
<div class="panel">
<div class="panel-heading">
<h3>列表内容</h3>
</div>
<div class="panel-body">
<div class="responsive-table">
<div id="datatables-example_wrapper" class="dataTables_wrapper form-inline dt-bootstrap no-footer">
<div class="row">
<div class="col-sm-12">
<table class="table table-striped table-bordered dataTable no-footer" width="100%" cellspacing="0" style="width: 100%;">
<thead>
<tr role="row">
<th class="sorting_asc"style="width:10%;">机票订单号</th>
<th class="sorting" style="width:8%;">航班号</th>
<th class="sorting" style="width:10%;">日期</th>
<th class="sorting" style="width:5%;">座位号</th>
<th class="sorting" style="width:8%;">余票数目</th>
<th class="sorting" style="width:15%;">乘车人身份证号</th>
<th class="sorting" style="width:15%;">购买人身份证号</th>
<th class="sorting" style="width:10%;">是否付款1付款0未付款</th>
<th class="sorting" style="width:5%;">操作</th>
</tr>
</thead>
<tbody>
<%
db_conn conn=new db_conn();
String sql="select * from ticket";
ResultSet res=conn.executeQuery(sql);
while(res.next()){
String f_i=res.getString(1);
String s_p=res.getString(2);
String a_p=res.getString(3);
String s_a=res.getString(4);
String a_a=res.getString(5);
String s_t=res.getString(6);
String a_t=res.getString(7);
String f_p=res.getString(8);
String row=null;
if(res.getRow()%2==0){
row="even";
}else{
row="odd";
}
%>
<tr role="row" class="<%=row%>">
<td class="sorting_1"><%=f_i %></td>
<td><%=s_p %></td>
<td><%=a_p %></td>
<td><%=s_a %></td>
<td><%=a_a %></td>
<td><%=s_t %></td>
<td><%=a_t %></td>
<td><%=f_p %></td>
<td><a style="text-decoration:none;" >删除</a></td>
</tr>
<%
}
%>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>