Edit D:\chineseall_products\bak\digitalLib6\pages\screen\web\selfResDetail.jsp
<%@ page contentType="text/html;charset=utf-8"%> <%@ taglib prefix="s" uri="/struts-tags"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=10"/> <meta http-equiv="Expires" content="0"/> <meta http-equiv="Pragma" content="no-cache"/> <meta http-equiv="Cache-control" content="no-cache"/> <meta http-equiv="Cache" content="no-cache"/> <title>????????-<s:property value="selfRes.title"/></title> <link href="/pages/default/screen/css/index_style.css" rel="stylesheet" type="text/css" /> <link href="/pages/default/screen/css/module.css" rel="stylesheet" type="text/css" /> <link href="/pages/default/screen/css/subpage.css" rel="stylesheet" type="text/css" /> <script type='text/javascript' src='/dwr/engine.js'></script> <script type='text/javascript' src='/dwr/interface/webDwr.js'></script> <script type="text/javascript" src="/video-player/swfobject.js"></script> <script type='text/javascript' src='/js/jquery-1.8.0.min.js'></script> <script src="/audio-player/audio-player.js"></script> <script type="text/javascript"> AudioPlayer.setup("/audio-player/player.swf", { width: 300, initialvolume: 100 }); </script> </head> <body style="overflow-x: hidden;overflow-y:auto;height:100%;"> <!-- ?????? --> <div class="wrap"> <s:action name="header" executeResult="true" namespace="/screen"> <s:param name="menuIndex" value="3"></s:param> </s:action> <!-- ?????? --> <div class="main"> <div class="float-return"><a href="javascript:history.go(-1);">???</a></div> <div class="main-up-books"> <ul> <li class="main-books-title">????????</li> <li class="main-books-m"></li> </ul> </div> <div class="book-nav-d"> <div class="book-nav-d-cover" style="width:300px;"> <img src="/bookfiles/defaultCover.jpg" width="300"/> <div class="ndn-l-txt-2" style="width:300px;height:260px;"> <s:if test="selfRes.fileType==1"> <div class="audioPlay" style="margin-top:20px;"> <p id="audioplayerDiv"></p> </div> </s:if> <s:elseif test="selfRes.fileType==2"> <div id="CuPlayer" style="width:300px;text-align:right;margin-top:20px;height:260px;z-index:9999;"> </div> </s:elseif> </div> </div> <div class="ndn-left"> <div class="ndn-l-txt"> <a class="ndn-l-txt-title"><s:property value="selfRes.title"/></a> <a class="ndn-l-tt"><s:property value="selfRes.author"/></a> </div> <div class="ndn-l-line"></div> <div class="ndn-l-nav"> <div class="ndn-l-nav-left"> <a class="ndn-txt-tt">????????</a> <div class="ndnln-l-img"><img src="/resourceDownloadImg.action?type=3&imgSize=10&objectId=<s:property value='selfRes.id'/>" width="160" height="160" /></div> <a class="ndn-txt-txt2">??????????????????????????????????????????????????????????????</a> </div> <div class="ndn-l-nav-right"> </div> </div> </div> <div class="ndn-right"> <div class="ndn-r-txt">??????</div> <div class="ndn-r-next"></div> <div class="ndn-l-line2"></div> <div class="ndn-right-text"> <s:property value="selfRes.description"/> <br/> <br/> <a href="javascript:;" onclick="playMediaFile(${selfRes.id},<s:property value="selfRes.fileType"/>,'${selfRes.title }');"><font color="blue">???</font></a> </div> <div class="ndn-r-next"> </div> <div class="ndn-l-line2"></div> </div> </div> </div> </div> <div style="clear:both;"></div> <s:action name="footer" executeResult="true" namespace="/screen"> <s:param name="sid" value="sid"></s:param> </s:action> <script type="text/javascript"> <!-- var code = ""; try { code = window.external.fetchCode(); } catch(E) { } function playMediaFile(fileId,fileType,title) { if(code=="") return; var obj; var filePath = "/getSelfResFile.action?objectId=" + fileId; if(fileType==1) { playAudioPlayer(filePath,title); } else if(fileType==2) { playCufVideo(fileId); } } function playAudioPlayer(filePath,title) { AudioPlayer.embed("audioplayerDiv",{ soundFile: filePath, titles: title, artists: "${selfRes.author}", autostart: "yes", checkpolicy:'yes' }); } function playCufVideo(fileId) { var obj; var filePath = "/getSelfResFile.action?objectId=" + fileId; var so = new SWFObject("/video-player/CuPlayerMiniV3_Black_S.swf","CuPlayer","300","260","9","#000000"); so.addParam("allowfullscreen","true"); so.addParam("allowscriptaccess","always"); so.addParam("wmode","opaque"); so.addParam("quality","high"); so.addParam("salign","lt"); so.addVariable("CuPlayerFile",filePath); so.addVariable("CuPlayerImage","/bookfiles/defaultCover.jpg"); so.addVariable("CuPlayerShowImage","true"); so.addVariable("CuPlayerWidth","300"); so.addVariable("CuPlayerHeight","260"); so.addVariable("CuPlayerAutoPlay","true"); so.addVariable("CuPlayerAutoRepeat","false"); so.addVariable("CuPlayerShowControl","false"); so.addVariable("CuPlayerAutoHideControl","false"); so.addVariable("CuPlayerAutoHideTime","6"); so.addVariable("CuPlayerVolume","80"); so.write("CuPlayer"); } function skipToRead() { var screenHeight = window.screen.height - 170; <s:if test="book.entityTypes.indexOf('PDF')>=0"> var screenWidth = window.screen.width; var link = "/screen/readPDFBook.action?objectId=<s:property value='book.id'/>&pageNum=1"; </s:if> <s:else> var link = "/screen/readTxtBook.action?objectId=<s:property value='book.id'/>&pageNum=1"; var screenWidth = window.screen.width - 150; </s:else> link += "&screenWidth=" + screenWidth + "&screenHeight=" + screenHeight; window.location = link; } var w = screen.width; var h = screen.height; if(w<1200) { var rw = parseInt(parseInt(w * 0.98 - 360)); $(".book-nav-d-nav").css("width",rw); $(".ndn-left").css("padding-left", 20); $(".ndn-l-nav").css("width",rw); $(".ndn-l-line").css("width",rw - 40); $(".ndn-l-nav-left").css("width", parseInt(rw/2 - 20)); $(".ndn-l-nav-right").css("width", parseInt(rw/2)); $(".ndn-right").css("width",parseInt(w * 0.98)); $(".ndn-l-line2").css("width",parseInt(w * 0.98)); } function adjustfooterpos(vh) { var ft = $(".footer").offset().top; var fl = $(".footer").offset().left; if(ft<(h-200) || vh>0) { ft = (h + vh -200) + "px"; var p = {'left':fl+'px','top':ft}; $(".footer").css("position","absolute"); $("div[class='footer']").css(p); } if(vh>0 && w<1200) { $(".ndn-right").css("margin-top",200); } } adjustfooterpos(0); <s:if test="selfRes.fileType==1 || selfRes.fileType==2"> playMediaFile(${selfRes.id},<s:property value="selfRes.fileType"/>,'${selfRes.title }'); </s:if> //--> </script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de