@ -118,25 +118,12 @@ layui.use(['form', 'jquery'], function(){
anim: 5,
time: 500,
});
setTimeout(function(){
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
parent.layer.close(index); //再执行关闭
}, 500)
/*
parent.layer.open({
title: '注册账号为',
content: data.data['id'],
end: function(){
parent.location.reload();
}
*/
/*setTimeout(function(){
}, 500);*/
}else{
leyer.msg("添加失败");
leyer.msg("修改失败");
},
error: function(){
@ -145,7 +145,6 @@
icon: 6,
time: 1500
})
//obj.del();
// 还是本页数据
$(".layui-laypage-btn").click();
@ -68,7 +68,7 @@ public class BorrowList extends HttpServlet {
where = " where return_date is null and curtime()>end_date ";
sql +=where;
sql += " limit ?,?";//1 10 (1-1)*10;
sql += " limit ?,?";
pstmt = connection.prepareStatement(sql);
pstmt.setInt(1, (Integer.parseInt(page)-1) * Integer.parseInt(limit));
pstmt.setInt(2, Integer.parseInt(limit));