Edit D:\chineseall_products\bak\digitalLib6\pages\default\textBook\textBookDetail.jsp
<%@ page contentType="text/html;charset=utf-8"%> <%@ taglib prefix="s" uri="/struts-tags"%> <s:set name="templatePath" value="@com.chineseall.core.servlet.InitParameters@pageTemplatePath" /> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <title> <s:action name="viewSchoolName" executeResult="true"> <s:param name="sid" value="sid"></s:param> </s:action></title> <link href="/pages/${templatePath}/css/style.css" type="text/css" rel="stylesheet" /> </head> <body> <jsp:include page="/pages/${templatePath}/top.jsp" /> <!--mainContent--> <div class="wrap mt10"> <jsp:include page="/pages/${templatePath}/navMenu.jsp" /> <!--bookInfo--> <div class="commentBook mt10 bd cf"> <div class="bookFloat fl"> <img src="${textbook.filePath }" /> </div> <div class="bookRight fl"> <h2> <a style="float:left;margin-right:10px;">${textbook.title }</a> </h2> <ul class="mt10 cf"> <li>?????<span>${textbook.chiefEditor }</span></li> <li>?????<span>${bookStat.totalVisitCount }??</span></li> <li>??????<span>${textbook.publisher }</span></li> <li>?????<span>${bookStat.totalReadCount }??</span></li> <li>?????<span>${bookStat.totalCollectionCount}??</span></li> <s:if test="!isBorrowed "> <s:if test="(book.copiesCount+1)-borrowCount>0"> <li>??????????<span>${(book.copiesCount+1)-borrowCount }</span></li> </s:if> <s:else> <li style="width: 66%;">?????????????????<s:date name="userBorrowBook.expiredDate" format="yyyy-MM-dd"/>???????????</li> </s:else> </s:if> </ul> <p style="margin: 39px; padding: 0px; height: auto;"> <s:if test="book.intro!=null"> <s:property value="book.intro.replaceAll('\n','<br/>').replaceAll('\r','')" escape="false" /> </s:if> </p> <div> <div style="float: left;"> <span id="borrowLink"><a style="cursor:pointer;" onclick="borrowBook();" class="orangeBtn" style="width: 30px;">???</a></span> <a style="cursor:pointer;" onclick="collectionBook();" class="blueBtn">???</a> </div> </div> </div> </div> <!--main--> <div class=" mt10 cf"> <!--leftCon--> <div class="fl wid777"> <div class="column bd"> <div class="columnTitle">???</div> <ul class="mulu cf"> <s:iterator value="itemList"> <li><s:if test="book.entityTypes.indexOf('PDF')>=0"> <a href="/readPDFBook.action?objectId=${book.id }&pageNum=${page }">${title }</a> </s:if> <s:elseif test="book.entityTypes.indexOf('TXT')>=0"> <a href="/readTxtBook.action?objectId=${book.id }&pageNum=${page }">${title }</a> </s:elseif></li> </s:iterator> </ul> </div> <div class="column bd mt10"> <div class="columnTitle">??????</div> <ul class="picTextList bookList cf" style="padding-bottom:10px;"> <s:iterator value="recommendTextBookList" status="obj"> <li class="cf" style="background: none"> <div class="image"><a href="/textBookDetail.action?textBookId=${id }"><img src="${filePath }" width="100" height="130"/></a></div> <div class="text" style="margin-top: 58px"> <span><a href="/textBookDetail.action?textBookId=${id }">?????${title }</a></span> <h3>????? <s:if test="grade==1">?????</s:if> <s:elseif test="grade==2">?????</s:elseif> <s:elseif test="grade==3">?????</s:elseif> <s:elseif test="grade==4">?????</s:elseif> <s:elseif test="grade==5">?????</s:elseif> <s:elseif test="grade==6">?????</s:elseif> <s:elseif test="grade==7">???</s:elseif> <s:elseif test="grade==8">???</s:elseif> <s:elseif test="grade==9">???</s:elseif> <s:elseif test="grade==10">???</s:elseif> <s:elseif test="grade==11">???</s:elseif> <s:elseif test="grade==12">???</s:elseif> </h3> <h3>????? <s:if test="term==1">??????</s:if> <s:else>??????</s:else></h3> <h3>??????${publisher }</h3> </div> </li> </s:iterator> </ul> </div> </div> <!--rightCon--> <div class="fl wid213 ml10"> <s:if test="relatedTextBookList!=null && relatedTextBookList.size>0"> <div class="column bd " style="margin-bottom: 5px;"> <div class="columnTitle">??????</div> <ul class="picTextList cf" > <s:iterator value="relatedTextBookList" status="obj"> <li class="cf" > <div class="image"><a href="/textBookDetail.action?textBookId=${id }"><img src="${filePath }" width="50" height="65"/></a></div> <div class="text" style="font-size: 10px"> <span style="padding:0px">?????<a href="/textBookDetail.action?textBookId=${id }">${title }</a></span><br /> <span style="padding:0px">????? <s:if test="grade==1">?????</s:if> <s:elseif test="grade==2">?????</s:elseif> <s:elseif test="grade==3">?????</s:elseif> <s:elseif test="grade==4">?????</s:elseif> <s:elseif test="grade==5">?????</s:elseif> <s:elseif test="grade==6">?????</s:elseif> <s:elseif test="grade==7">???</s:elseif> <s:elseif test="grade==8">???</s:elseif> <s:elseif test="grade==9">???</s:elseif> <s:elseif test="grade==10">???</s:elseif> <s:elseif test="grade==11">???</s:elseif> <s:elseif test="grade==12">???</s:elseif> </span><br /> <span style="padding:0px">????? <s:if test="term==1">??????</s:if> <s:else>??????</s:else></span><br /> <span style="padding:0px">??????${publisher }</span> </div> </li> </s:iterator> </ul> </div> </s:if> </div> </div> <s:action name="foot" executeResult="true"> <s:param name="sid" value="sid"></s:param> </s:action> <script type="text/javascript"> function collectionBook() { webDwr.collectionBook(${book.id},function(info){ if(info != "") { if(info=="noLogged") { <s:if test="@com.chineseall.core.servlet.InitParameters@ssoSwitch!=null && @com.chineseall.core.servlet.InitParameters@ssoSwitch.entityValue.equals('OPEN')"> window.location="<s:property value="@com.chineseall.core.servlet.InitParameters@ssoLoginLink.entityValue"/>"; </s:if> <s:else> window.location="/login.action"; </s:else> return; } alert(info); } }); } function recommendBook() { webDwr.recommendBook(${book.id},function(info){ if(info != "") { if(info=="noLogged") { <s:if test="@com.chineseall.core.servlet.InitParameters@ssoSwitch!=null && @com.chineseall.core.servlet.InitParameters@ssoSwitch.entityValue.equals('OPEN')"> window.location="<s:property value="@com.chineseall.core.servlet.InitParameters@ssoLoginLink.entityValue"/>"; </s:if> <s:else> window.location="/login.action"; </s:else> return; } alert(info); } }); } function borrowBook() { webDwr.borrowBook(${book.id},function(info){ if(info != "") { if(info=="noLogged") { <s:if test="@com.chineseall.core.servlet.InitParameters@ssoSwitch!=null && @com.chineseall.core.servlet.InitParameters@ssoSwitch.entityValue.equals('OPEN')"> window.location="<s:property value="@com.chineseall.core.servlet.InitParameters@ssoLoginLink.entityValue"/>"; </s:if> <s:else> window.location="/login.action"; </s:else> return; } else if(info=="borrowed") { alert("???????????????????????"); return; } else if(info=="overed") { alert("???????????????????????????????????????"); return; } else if(info=="quantity") { alert("????????????????????????????????????????"); return; } else if(info=="pdf") { var obj = document.getElementById("borrowLink"); obj.innerHTML = "<a href='/readPDFBook.action?objectId=${book.id }' class='orangeBtn'>???????</a>"; alert("?????????????????"); } else if(info=="txt") { var obj = document.getElementById("borrowLink"); obj.innerHTML = "<a href='/readTxtBook.action?objectId=${book.id }' class='orangeBtn'>???????</a>"; alert("?????????????????"); } } }); } //--> </script> </div> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de