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.
94 lines
2.6 KiB
94 lines
2.6 KiB
<%@page import="java.sql.ResultSet"%>
|
|
<%@ page import="javabean.db_conn" %>
|
|
<%@ include file="verify_login.jsp" %>
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
|
|
<!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: 20%;">用户名</th>
|
|
<th class="sorting" style="width: 30%;">用户密码</th>
|
|
<th class="sorting" style="width:10%;">操作</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<%
|
|
db_conn conn= new db_conn();
|
|
String sql="select * from p_inf";
|
|
ResultSet res=conn.executeQuery(sql);
|
|
|
|
while(res.next()){
|
|
String p_tel=res.getString(3);
|
|
String p_pwd=res.getString(6);
|
|
String row=null;
|
|
|
|
if(res.getRow()%2==0){
|
|
row="even";
|
|
}else{
|
|
row="odd";
|
|
}
|
|
%>
|
|
|
|
|
|
<tr role="row" class="even">
|
|
<td class="sorting_1"><%=p_tel%></td>
|
|
<td><%=p_pwd %></td>
|
|
<td>
|
|
<a style="text-decoration:none;" href="/air_ticket_book/del_message?id=<%=p_tel%>&class=user">
|
|
删除
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
|
|
<%
|
|
}
|
|
%>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html> |