Edit D:\rfid\apache-tomcat-8.5.32\webapps\opac\page\reader\reserve.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ page import="com.jishen.opac.entity.ParSysLocation"%> <%@ page import="com.jishen.common.CommonPar"%> <% String type=request.getParameter("type"); String strTitle = "??"; if(type == "1") strTitle = "??"; %> <!DOCTYPE html> <html> <head> <title>?????<%=strTitle%></title> <%@ include file="../global/linkcss.jsp" %> <style type="text/css"> .bnt-cancel a{ color: #fff;border:1px solid transparent;background: #0073b4; padding: 8px 16px;line-height: 32px; cursor: pointer; border-radius: 2px; } .bnt-cancel a:hover { color: #0073b4; background-color: #fff; } </style> </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>?????<%=strTitle%></h2> </div> <div style="display: none;"> <select id="location" class="input-keyword reserverecord" style="width:100%;height: 28px;" data-options="panelHeight:'120',"> <%for(ParSysLocation sysLocation:CommonPar.location.listEntity){%> <option value="<%=sysLocation.getCode()%>"><%=sysLocation.getName()%></option> <%}%> </select> </div> <div class="reader-body" style="min-height: 600px;"> <table class="table-black" > <thead> <tr> <th >???</th> <th >????</th> <th >??????</th> <th >??????</th> <th >??????</th> <th >??????</th> <th >???</th> <th >???</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div> </div> <!-- ??? --> <%@ include file="../global/footer.jsp" %> </body> <%@ include file="../global/linkjs.jsp" %> <script type="text/javascript"> var type = "<%=type%>"; var vTitle = "<%=strTitle%>"; var josnRecord=[ {"key":"title","width":"220","type":""}, {"key":"resstatus","width":"80","type":""}, {"key":"resdate","width":"120","type":"date"}, {"key":"notifyway","width":"60","type":""}, {"key":"location","width":"40","type":""}, {"key":"expirydate","width":"100","type":"date"}, {"key":"note","width":"100","type":""} ]; $(function () { //?????????? initGridData(); }); function initGridData(){ var url = '${ctx}/server/api/unionPageReserve.do'; var param = {}; param.restype = type; $.post(url, param, function(data) { if(data){ var dataJson = data; if(dataJson.status == '0'){ initGridDataByJson(dataJson.rows); }else{ alert(dataJosn.message); } }else{ alert("??????????????,?????????"); } }, 'json'); } function initGridDataByJson(data){ var html = ""; $("tbody").html(""); var rows = data; for(var i=0;i<rows.length;i++) { var color=""; if(rows[i].returndate!=undefined&&rows[i].returndate<getCurDateYMD() && url.indexOf("listHoldingWithBib") > -1) color="color:red;"; html+="<tr style=\"text-align: center;"+color+"\">"; for(var j=0;j<josnRecord.length;j++) { var keyValue = (rows[i][josnRecord[j].key]!=null?rows[i][josnRecord[j].key]:""); html+="<td >"; if(josnRecord[j].width == "0") html+="<div>"; else html+="<div style=\"text-align: center;overflow: hidden; white-space: nowrap; text-overflow: ellipsis;width:"+josnRecord[j].width+"px;\" title=\""+ keyValue +"\">"; if(josnRecord[j].type=="date" && keyValue.toString().length == 8){ html+=""+fmtStringToDate(keyValue)+""; } else if(josnRecord[j].key=="resstatus"){ html+=""+fmtResstatusNameBycode(keyValue)+""; }else if(josnRecord[j].key=="notifyway"){ if(rows[i].notifyway) html+="??????"; else html+="??????"; }else if(josnRecord[j].key=="location"){ var text = null; $("#location option").each(function(){ //???????ption var txt = $(this).val(); //???option?? if(txt == keyValue){ text = $(this).text(); } }); html+= text; } else{ html+=""+(rows[i][josnRecord[j].key]!=null?rows[i][josnRecord[j].key]:"")+""; } html+="</div>"; html+="</td>"; } if(rows[i].resstatus == "0") html+="<td><div class=\"bnt-cancel\" style=\"text-align: center;width:60px;\"><a href=\"JavaScript:cancelReserve("+rows[i].id+")\" >???</a></div></td>"; else html+="<td></td>"; html+="</tr>"; } $("tbody").html(html); } function cancelReserve(id){ var r=confirm('??????????????'+vTitle+'??????') if (r==true) { var url = '${ctx}/server/api/updateReserve.do'; var param = {}; param.id = id; param.resstatus = '4'; $.post(url, param, function(data) { if(data){ var dataJson = data; if(dataJson.status == '0'){ initGridData(); }else{ alert(dataJosn.message); } }else{ alert("??????????????,?????????"); } }, 'json'); } } function fmtResstatusNameBycode(value){ var arrStatus = [{"code":"0","name":"?????"}, {"code":"1","name":"?????"}, {"code":"2","name":"????????"}, {"code":"3","name":"??????"}, {"code":"4","name":"???????"}, {"code":"5","name":"????????"}, {"code":"6","name":"???????????"}]; var arrJStatus = [{"code":"0","name":"?????"}, {"code":"1","name":"?????"}, {"code":"2","name":"????????"}, {"code":"3","name":"??????"}, {"code":"4","name":"???????"}, {"code":"5","name":"????????"}, {"code":"6","name":"??????"}]; if(type == "1"){ arrStatus = arrJStatus; } for(var i = 0;i < arrStatus.length;i++){ if(value == arrStatus[i].code) return arrStatus[i].name; } return value; } </script> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de