change database

pull/1/head
xicheny 5 years ago
parent c661b16ac2
commit 56eb336500

@ -0,0 +1,147 @@
body{
background: rgba(0,0,0,0.9);
color: #DDD;
font-family: 'Helvetica', 'Lucida Grande', 'Arial', sans-serif;
}
.border,
.rain{
height: 500px;
width: 30%;
}
/* Layout with mask */
.rain{
padding: 10px 12px 12px 10px;
-moz-box-shadow: 10px 10px 10px rgba(0,0,0,1) inset, -9px -9px 8px rgba(0,0,0,1) inset;
-webkit-box-shadow: 8px 8px 8px rgba(0,0,0,1) inset, -9px -9px 8px rgba(0,0,0,1) inset;
box-shadow: 8px 8px 8px rgba(0,0,0,1) inset, -9px -9px 8px rgba(0,0,0,1) inset;
margin: 100px auto;
}
/* Artifical "border" to clear border to bypass mask */
.border{
padding: 1px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
.border,
.rain,
.border.start,
.rain.start{
background-repeat: repeat-x, repeat-x, repeat-x, repeat-x;
background-position: 0 0, 0 0, 0 0, 0 0;
/* Blue-ish Green Fallback for Mozilla */
background-image: -moz-linear-gradient(left, #09BA5E 0%, #00C7CE 15%, #3472CF 26%, #00C7CE 48%, #0CCF91 91%, #09BA5E 100%);
/* Add "Highlight" Texture to the Animation */
background-image: -webkit-gradient(linear, left top, right top, color-stop(1%,rgba(0,0,0,.3)), color-stop(23%,rgba(0,0,0,.1)), color-stop(40%,rgba(255,231,87,.1)), color-stop(61%,rgba(255,231,87,.2)), color-stop(70%,rgba(255,231,87,.1)), color-stop(80%,rgba(0,0,0,.1)), color-stop(100%,rgba(0,0,0,.25)));
/* Starting Color */
background-color: #39f;
/* Just do something for IE-suck */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00BA1B', endColorstr='#00BA1B',GradientType=1 );
}
/* Non-keyframe fallback animation */
.border.end,
.rain.end{
-moz-transition-property: background-position;
-moz-transition-duration: 30s;
-moz-transition-timing-function: linear;
-webkit-transition-property: background-position;
-webkit-transition-duration: 30s;
-webkit-transition-timing-function: linear;
-o-transition-property: background-position;
-o-transition-duration: 30s;
-o-transition-timing-function: linear;
transition-property: background-position;
transition-duration: 30s;
transition-timing-function: linear;
background-position: -5400px 0, -4600px 0, -3800px 0, -3000px 0;
}
/* Keyfram-licious animation */
@-webkit-keyframes colors {
0% {background-color: #39f;}
15% {background-color: #F246C9;}
30% {background-color: #4453F2;}
45% {background-color: #44F262;}
60% {background-color: #F257D4;}
75% {background-color: #EDF255;}
90% {background-color: #F20006;}
100% {background-color: #39f;}
}
.border,.rain{
-webkit-animation-direction: normal;
-webkit-animation-duration: 20s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-name: colors;
-webkit-animation-timing-function: ease;
}
/* In-Active State Style */
.border.unfocus{
background: #333 !important;
-moz-box-shadow: 0px 0px 15px rgba(255,255,255,.2);
-webkit-box-shadow: 0px 0px 15px rgba(255,255,255,.2);
box-shadow: 0px 0px 15px rgba(255,255,255,.2);
-webkit-animation-name: none;
}
.rain.unfocus{
background: #000 !important;
-webkit-animation-name: none;
}
/* Regular Form Styles */
form{
background: #212121;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
height: 100%;
width: 335%;
background: -moz-radial-gradient(50% 46% 90deg,circle closest-corner, #242424, #090909);
background: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 150, from(#242424), to(#090909));
}
form label{
display: block;
padding: 10px 10px 5px 15px;
font-size: 20px;
color: #777;
}
form input{
display: block;
margin: 5px 10px 10px 15px;
width: 85%;
background: #111;
-moz-box-shadow: 0px 0px 4px #000 inset;
-webkit-box-shadow: 0px 0px 4px #000 inset;
box-shadow: 0px 0px 4px #000 inset;
outline: 1px solid #333;
border: 1px solid #000;
padding: 5px;
color: #444;
font-size: 16px;
}
form input:focus{
outline: 1px solid #555;
color: #FFF;
}
form textarea{
display: block;
margin: 5px 10px 10px 15px;
width: 85%;
background: #111;
-moz-box-shadow: 0px 0px 4px #000 inset;
-webkit-box-shadow: 0px 0px 4px #000 inset;
box-shadow: 0px 0px 4px #000 inset;
outline: 1px solid #333;
border: 1px solid #000;
padding: 5px;
color: #444;
font-size: 16px;
}
form textarea:focus{
outline: 1px solid #555;
color: #FFF;
}

@ -21,7 +21,7 @@
<li role="presentation"><a href="#" target="view_frame">违章信息</a></li>
<li role="presentation"><a href="09cardInfo.jsp" target="view_frame">个人信息</a></li>
<li role="presentation"><a href="#" target="view_frame">读者规则</a></li>
<li role="presentation"><a href="#" target="view_frame">读者留言</a></li>
<li role="presentation"><a href="13message.jsp" target="view_frame">读者留言</a></li>
</ul>
</div>
</body>

@ -46,7 +46,7 @@
<td><%=rs.getString("NAME")%></td>
<td><%=rs.getString("LIBRARY_ID")%></td>
<td><%=rs.getString("SORT_ID")%></td>
<td><%=rs.getString("POSITION_ID")%></td>
<td><%=rs.getString("POSITION")%></td>
<td><%=rs.getString("STATE")%></td>
<td><%=rs.getString("DESCRIPTION")%></td>
</tr>

@ -26,8 +26,8 @@
<div class="table-responsive">
<table class="table table-hover">
<tr align="center">
<th>借阅证号</th>
<th>图书编号</th>
<th>图书名称</th>
<th>借阅日期</th>
<th>截止日期</th>
<th>归还日期</th>
@ -35,14 +35,14 @@
<th>处理信息的管理员</th>
</tr>
<%
request.setCharacterEncoding("utf-8");
String sql="select*from borrow_books;";
String id = session.getAttribute("reader").toString();
String sql="select*from borrow_books where CARD_ID = " + id;
ResultSet rs = check.executeQuery(sql);
while (rs.next()) {
%>
<tr align="center">
<td><%=rs.getString("BOOK_ID")%></td>
<td><%=rs.getString("CARD_ID")%></td>
<td><%=rs.getString("BOOK_ID")%></td>
<td><%=rs.getString("BORROW_DATE")%></td>
<td><%=rs.getString("END_DATE")%></td>

@ -12,6 +12,9 @@
<div class="table-responsive">
<table class="table table-hover">
<tr align="center">
<th>图书编号</th>
<th>日期</th>
<th>日期</th>
<th>日期</th>
<th>违章信息</th>
</tr>

@ -13,7 +13,6 @@
<body>
<jsp:useBean id="check" scope="session" class="javabean.JDBCBean"></jsp:useBean>
<%
//request.setCharacterEncoding("utf-8");
String psw1 = request.getParameter("psw1");
String psw2 = request.getParameter("psw2");

@ -0,0 +1,39 @@
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<!-- Bootstrap -->
<link href="../css/bootstrap.min.css" rel="stylesheet">
<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery所以必须放在前边) -->
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<link rel="stylesheet" id="templatecss" type="text/css"
href="../public/css/message.css">
</head>
<body id="home">
<div class="rain">
<div class="border start">
<form>
<label for="card">借阅证号</label>
<input id="card" type="text" placeholder="请输入您的借阅证号"/>
<label for="book">书籍编号</label>
<input id="book" type="text" placeholder="请输入您的书籍编号"/>
<label for="mes">留言</label>
<textarea id="mes" placeholder="请输入您的留言"></textarea>
<label for="date">日期</label>
<input id="date" type="text" placeholder="请输入时间"/><br>&emsp;&emsp;&emsp;
<button type="submit" class="btn btn-warning">提交</button>&emsp;&emsp;&emsp;
<button type="reset" class="btn btn-danger">重置</button>
</form>
</div>
</div>
</body>
</body>
</html>

Binary file not shown.

@ -27,7 +27,8 @@ public class Admin {
PreparedStatement pstmt = null;
ResultSet resultSet = null;
System.out.println("????");
String sql = "select * from system_manager where username=? and password=? limit 1";
String sql = "select * from admin where username=? and password=? limit 1";
System.out.println("????s");
connection = Base.getConnection();
pstmt = (PreparedStatement) connection.prepareStatement(sql);
pstmt.setString(1, username);

@ -1,24 +0,0 @@
package test;
import java.sql.ResultSet;
import java.sql.SQLException;
s
import javabean.Base;
public class Test {
public static void main(String[] args) throws ClassNotFoundException, SQLException {
// Connection connection = Base.getConnection();
// String sql = "select * from system_manager";
// PreparedStatement pstmt = null;//(PreparedStatement) connect.prepareStatement(sql);
//
// ResultSet resultSet = null;
// resultSet = Base.executequery(connection, pstmt, resultSet, sql, null);
// while(resultSet.next()) {
// System.out.println(resultSet.getString("username"));
// }
// Base.closeResource(connection, pstmt, resultSet);
// resultSet.close();
// System.out.println(resultSet);
//System.out.println(resultSet);
}
}
Loading…
Cancel
Save