Commit 1b47e872 by tzn

MSG

parent b3467f86
......@@ -233,10 +233,10 @@ nav ul li ul li:hover
.book_id
{
float: left;
width: 80px;
width: 120px;
height: 36px;
line-height: 43px;
padding: 0 30px 0 5px;
padding: 0 5px 0 5px;
transition: all 0.5s;
}
.book_id:hover
......@@ -250,7 +250,7 @@ nav ul li ul li:hover
width: 150px;
height: 36px;
line-height: 43px;
padding: 0 20px 0 35px;
padding: 0 20px 0 25px;
transition: all 0.5s;
}
.borrow_time:hover
......@@ -264,7 +264,7 @@ nav ul li ul li:hover
width: 81px;
height: 36px;
line-height: 43px;
padding: 0 0 0 70px;
padding: 0 0 0 50px;
transition: all 0.5s;
}
.user_name:hover
......@@ -275,10 +275,10 @@ nav ul li ul li:hover
.return_time
{
float: left;
width: 150px;
width: 180px;
height: 36px;
line-height: 43px;
padding: 0 20px 0 45px;
padding: 0 15px 0 35px;
transition: all 0.5s;
}
......
......@@ -214,6 +214,7 @@ nav ul li ul li:hover
/* 按钮 */
.hint
{
......@@ -246,10 +247,10 @@ nav ul li ul li:hover
/* 主体部分 */
#main
{
overflow-y: scroll;
width: 1050px;
height: 812px;
margin-left: 430px;
overflow-y: scroll;
}
.item
{
......@@ -258,6 +259,7 @@ nav ul li ul li:hover
font-size: 27px;
color: #fff;
margin: 30px 0 55px 0;
}
.part
{
......@@ -271,7 +273,7 @@ nav ul li ul li:hover
.book_name
{
float: left;
width: 250px;
width: 350px;
text-align: center;
height: 36px;
text-overflow:ellipsis;
......@@ -289,10 +291,10 @@ nav ul li ul li:hover
.book_id
{
float: left;
width: 80px;
width: 100px;
height: 36px;
line-height: 43px;
padding: 0 30px 0 35px;
padding: 0 30px 0 57px;
transition: all 0.5s;
}
.book_id:hover
......@@ -300,21 +302,8 @@ nav ul li ul li:hover
transform: translateY(-5px);
box-shadow: 0 20px 80px rgba(48, 49, 51, 0.15);
}
.borrow_time
{
float: left;
width: 150px;
height: 36px;
line-height: 43px;
padding: 0 20px 0 20px;
transition: all 0.5s;
}
.borrow_time:hover
{
transform: translateY(-5px);
box-shadow: 0 20px 80px rgba(48, 49, 51, 0.15);
}
.user_name
#user_name
{
float: left;
width: 81px;
......@@ -323,7 +312,7 @@ nav ul li ul li:hover
padding: 0 0 0 50px;
transition: all 0.5s;
}
.user_name:hover
#user_name:hover
{
transform: translateY(-5px);
box-shadow: 0 20px 80px rgba(48, 49, 51, 0.15);
......
<!DOCTYPE html>
<!DOCTYPE html>
......@@ -24,7 +24,7 @@
<ul>
<li><a href="../html/applyBook.html">申请管理</a></li>
<li><a href="../html/returnBook.html">还书管理</a></li>
<li><a href="../html/timeputHInt.html">超时提示</a></li>
<li><a href="../html/timeputHInt.html">超时情况</a></li>
</ul>
</li>
<li class="nav-li"><a href="../html/lookBook.html">浏览书籍</a></li>
......
<!DOCTYPE html>
<!DOCTYPE html>
......@@ -24,7 +24,7 @@
<ul>
<li class="menu-item"><a href="../html/applyBook.html">申请管理</a></li>
<li class="menu-item"><a href="../html/returnBook.html">还书管理</a></li>
<li class="menu-item"><a href="../html/timeputHInt.html">超时提示</a></li>
<li class="menu-item"><a href="../html/timeputHInt.html">超时情况</a></li>
</ul>
</li>
<li class="nav-li"><a href="../html/lookBook.html">浏览书籍</a></li>
......@@ -49,6 +49,7 @@
</div>
</body>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script type="text/javascript" src="http://cdn.staticfile.org/jquery/3.4.0/jquery.js"></script>
<script src="../js/history.js"></script>
</html>
\ No newline at end of file
<!DOCTYPE html>
<!DOCTYPE html>
......@@ -24,7 +24,7 @@
<ul>
<li><a href="../html/applyBook.html">申请管理</a></li>
<li><a href="../html/returnBook.html">还书管理</a></li>
<li><a href="../html/timeputHInt.html">超时提示</a></li>
<li><a href="../html/timeputHInt.html">超时情况</a></li>
</ul>
</li>
<li class="nav-li"><a href="../html/lookBook.html">浏览书籍</a></li>
......
<!DOCTYPE html>
<!DOCTYPE html>
......@@ -24,7 +24,7 @@
<ul>
<li><a href="../html/applyBook.html">申请管理</a></li>
<li><a href="../html/returnBook.html">还书管理</a></li>
<li><a href="../html/timeputHInt.html">超时提示</a></li>
<li><a href="../html/timeputHInt.html">超时情况</a></li>
</ul>
</li>
<li class="nav-li"><a href="../html/lookBook.html">浏览书籍</a></li>
......
<!DOCTYPE html>
<!DOCTYPE html>
......@@ -24,7 +24,7 @@
<ul>
<li><a href="../html/applyBook.html">申请管理</a></li>
<li><a href="../html/returnBook.html">还书管理</a></li>
<li><a href="../html/timeputHInt.html">超时提示</a></li>
<li><a href="../html/timeputHInt.html">超时情况</a></li>
</ul>
</li>
<li class="nav-li"><a href="../html/lookBook.html">浏览书籍</a></li>
......@@ -44,5 +44,7 @@
<div id="main">
</div>
</body>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script type="text/javascript" src="http://cdn.staticfile.org/jquery/3.4.0/jquery.js"></script>
<script src="../js/timeoutHint.js"></script>
</html>
\ No newline at end of file
window.onload = function ()
window.onload = function ()
window.onload = function ()
{
axios.defaults.baseURL = "http://xsvxnp.natappfree.cc"
axios.defaults.baseURL = "http://fx86f6.natappfree.cc"
function render() {
axios({
method: 'post',
......
window.onload = function ()
window.onload = function ()
window.onload = function ()
{
//axios.defaults.baseURL = "http://3hy8a3.natappfree.cc"
axios.defaults.baseURL = "http://fx86f6.natappfree.cc"
function render() {
let res = [{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',return_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 },{ user_name: '张三哥', book_id: 12,borrow_time:'2022-2-19',remark:'You',book_name:'《C语言程序设计》',user_id: 1 }, { user_name: '李四哥', book_id: 12,borrow_time:'2022-2-19',book_name:'《Java语言程序设计》',user_id: 2 },{ user_name: '王五姐', book_id: 12,borrow_time:'2022-2-19',book_name:'《C++语言程序设计》',user_id: 3 }]
let outer = document.getElementById("main");
let buf = '';
axios({
method: 'post',
url: 'javaProject2_war_exploded/PrintBorrowedServlet',
data: {
click:1
}
}).then(res=>{
console.log(res.data)
console.log(res.data[0].book_name)
let outer = document.getElementById("main");
let buf = '';
for (let i = 0; i < res.data.length; i++)
{
buf += `
<div class="item">
<div class='part'>
<div class='book_name'>${res.data[i].book_name}</div>
<div class='book_id'>${res.data[i].jdid}-${res.data[i].bookshelf_id}-${res.data[i].book_same_id}</div>
<div class='borrow_time'>${res.data[i].borrow_time}</div>
<div class='return_time'>${res.data[i].return_time}</div>
<div id='user_name'>${res.data[i].user_name}</div>
</div>
</div>
`
}
outer.innerHTML = buf;
})
}
for (let i = 0; i < res.length; i++)
{
buf += `
<div class="item">
<div class='part'>
<div class='book_name'>${res[i].book_name}</div>
<div class='book_id'>${res[i].book_id}</div>
<div class='borrow_time'>${res[i].borrow_time}</div>
<div class='return_time'>${res[i].return_time}</div>
<div id='user_name'>${res[i].user_name}</div>
</div>
</div>
`
}
outer.innerHTML = buf;
}
render();
axios({
method: 'post',
url: 'javaProject2_war_exploded/PrintBorrowedServlet',
data: {
borrow_id:1
}
}).then(res=>{
console.log(res);
});
}
window.onload = function ()
window.onload = function ()
window.onload = function ()
{
axios.defaults.baseURL = "http://fx86f6.natappfree.cc"
// axios.get('').then(res=>{
let res = [{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 },{ user_name: '王晓红', book_id: 12,borrow_time:'2022-2-19',book_name:'《C语言程序设计》', user_id: 1 }];
for(let i=0;i<res.length;i++)
{
console.log('a')
......@@ -17,7 +14,7 @@ window.onload = function ()
$("<button class='book-introduce-Sbutton'>查看书籍</button>").appendTo($('.book-introduce'))
$("<button class='book-introduce-Abutton'>添加</button>").appendTo($('.book-introduce'))
$("<button class='book-introduce-Dbutton'>删除</button>").appendTo($('.book-introduce'))
// })
for(let i=0;i<res.length;i++)
{
......@@ -39,9 +36,7 @@ window.onload = function ()
})
})
}
}
document.getElementsByClassName('book-introduce-Abutton')[0].addEventListener('click',()=>
{
......@@ -79,22 +74,7 @@ document.getElementsByClassName('alert-see-fix-button')[1].addEventListener('cli
$('.alert-see-sure').hide();
})
axios({
method: 'post',
url: 'javaProject2_war_exploded/AddBookServlet',
data: {
jdid:1,
bookshelf_id:2,
book_name:3,
category:4,
author:5,
publisher:6,
image:7
}
}).then(res=>{
console.log(res);
});
......
window.onload = function ()
window.onload = function ()
window.onload = function ()
{
axios.defaults.baseURL = "http://xsvxnp.natappfree.cc"
axios.defaults.baseURL = "http://fx86f6.natappfree.cc"
function render() {
axios({
method: 'post',
......
window.onload = function ()
window.onload = function ()
window.onload = function ()
{
axios.defaults.baseURL = "http://xsvxnp.natappfree.cc"
axios.defaults.baseURL = "http://fx86f6.natappfree.cc"
function render() {
axios({
method: 'post',
url: 'javaProject2_war_exploded/PrintApplyServlet',
url: 'javaProject2_war_exploded/AllTimeOutServlet',
data: {
click:1
}
......@@ -24,42 +24,12 @@ window.onload = function ()
<div class='book_id'>${res.data[i].jdid}-${res.data[i].bookshelf_id}-${res.data[i].book_same_id}</div>
<div id='user_name'>${res.data[i].user_name}</div>
</div>
<div class='reject' '>拒绝</div>
<div class='agree' '>同意</div>
<div class='hint'>已超时</div>
</div>
`
document.getElementById('main').addEventListener('click', (e) => {
let id = null;
if (e.target.innerHTML == '同意')
{
e.target.innerHTML = '已同意';
id = e.target.getAttribute('desc');
axios({
method: 'post',
url: 'javaProject2_war_exploded/AgreeBorrowServlet',
data: {
borrow_id : res.data[i].borrow_id
}
}).then(agree=>{
});
}
else if (e.target.innerHTML == '拒绝')
{
e.target.innerHTML = '已拒绝';
axios({
method: 'post',
url: 'javaProject2_war_exploded/RefuseBorrowServlet',
data: {
borrow_id:res.data[i].borrow_id
}
}).then(res=>{
});
}
})
}
outer.innerHTML = buf;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment