Edit D:\rfid\apache-tomcat-8.5.32\webapps\opac\page\reader\bookrenew.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <title>???????</title> <%@ include file="../global/linkcss.jsp" %> </head> <body> <!-- ?????? --> <%@ include file="../../page/global/mylib-header.jsp" %> <!-- ???????? --> <div class="mylib-box"> <!-- ???????????? --> <%@ include file="../../page/global/mylib-menu.jsp" %> <!-- ????????? --> <div class="mylib-box-right" style="padding-bottom: 100px;"> <div class="reader-info-box"> <div class="reader-header-title"> <h2>??????????</h2> </div> <div class="reader-body" style="min-height: 600px;"> <div class="reader-body-bnt"> <a href="JavaScript:bookRenew()" class="bnt" title="??????????????????????" >????</a> </div> <table class="table-black" > <thead> <tr> <th ><input type="checkbox" id="unionKey" name="unionKey" onclick="unionKeyFun()"/></th> <th >?????</th> <th >???</th> <th >????</th> <th >?????</th> <th >???</th> <th >??????</th> <th >??????</th> <th >???????</th> </tr> </thead> <tbody> </tbody> </table> <%@ include file="../global/paging.jsp" %> <div class="reader-header-title" style="border-radius: 2px;"> <h2>??????</h2> </div> <div class="bookRenewResult" style="border: 1px solid #f5f5f5; margin-top: -1px;"> </div> </div> </div> </div> </div> <!-- ??? --> <%@ include file="../global/footer.jsp" %> </body> <%@ include file="../global/linkjs.jsp" %> <script type="text/javascript"> var josnRecord=[ {"key":"barcode","width":"30","type":"check"}, {"key":"barcode","width":"100","type":""}, {"key":"title","width":"220","type":""}, {"key":"author","width":"120","type":""}, {"key":"classno","width":"60","type":""}, {"key":"price","width":"40","type":"price"}, {"key":"loandate","width":"100","type":"date"}, {"key":"returndate","width":"100","type":"date"}, {"key":"renewnum","width":"60","type":""} ]; var page = 1; // ????????? var rows = 10; // ????????? $(function () { getLoanBookList(); }); function getLoanBookList(){ //?????????? var url = ctx +'/hld/holding/listHoldingWithBib.do'; var param = {}; param.page=page; param.rows=rows; param.rdrid=rdrid; dataPagingByQuery(page,rows,url,param); } function bookRenew(){ var listId = []; $("input[type='checkbox'][name='primaryKey']:checkbox:checked").each(function(){ listId.push($(this).val()); }); if(listId.length == 0){ return $.Pop('???????????????,???????!','alert',function(){}); } var comfirmTip = "??????????????"+listId.length+"]????????????????"; $.Pop(comfirmTip,'confirm',function(){ $(".bookRenewResult").html(""); bookRenewHandler(listId,0); }) } function bookRenewHandler(listId,index){ if(index >= listId.length){ getLoanBookList(); $("input[type='checkbox'][name='unionKey']").prop("checked",false); return ; } var url = ctx+'/cir/circulation/renew.do'; var param = {}; param.barcode = listId[index]; $.post(url, param, function(data) { if (data.status == "0") { $(".bookRenewResult").append("<div style=\"padding: 6px;color:green;\">?????"+param.barcode+"],???????</div>"); }else{ $(".bookRenewResult").append("<div style=\"padding: 6px;color:red;\">?????"+param.barcode+"],"+data.message+",????????</div>"); } var curIndex = index + 1; bookRenewHandler(listId,curIndex); }, 'json'); } function unionKeyFun(){ if ($("#unionKey").prop("checked")) { $("input[type='checkbox'][name='primaryKey']").prop("checked",true);//???? } else{ $("input[type='checkbox'][name='primaryKey']").prop("checked",false); //??????? } } </script> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de