Edit D:\chineseall_products\bak\digitalLib6\pages\kindergarten\media\selfResDetail.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:property value="selfRes.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" /> <style> .info span{ width:200px;float:left;height:30px;line-height:30px; } </style> </head> <body> <s:set name="menuIndex" value="6"/> <jsp:include page="/pages/${templatePath}/top.jsp"/> <!--mainContent--> <div class="wrap mt10"> <jsp:include page="/pages/${templatePath}/navMenu.jsp"/> <div class="mt10 cf bd"> <div class="bookInfo cf"> <div class="audioInfo fl ml10" style="width:700px;"> <h2><s:property value="selfRes.title"/></h2> <div class="info"> <span>?????<s:property value="selfRes.author"/></span> <span>????????<s:property value="selfResSort.name"/></span> <span>????????<s:property value="@com.digitallib.util.StringUtil@getFileSize(selfRes.fileSize)"/></span> <span>????????<s:date name="selfRes.createTime" format="yyyy-MM-dd HH:mm"/></span> <span>?????<s:if test="selfRes.type==1">???</s:if><s:elseif test="selfRes.type==2">???</s:elseif><s:else>???</s:else></span> <span>????????<s:property value="selfRes.visitedTimes"/></span> </div> <div style="clear:both;"></div> <p style="margin-top: 10px;"> <s:if test="selfRes!=null && selfRes.description!=null"> <s:property value="selfRes.description.replaceAll('\n','<br/>').replaceAll('\r','')" escape="false" /> </s:if> </p> <s:if test="link!=null && !link.equals('')"> <a href="<s:property value="link"/>">??????</a> </s:if> <s:else> <s:if test="selfRes.fileType==1 || selfRes.fileType==2"> <div id="CuPlayer" style="width:800px;text-align:left;margin:20px;"> <jsp:include page="/pages/jplayer.jsp" /> </div> </s:if> <div style="margin:20px;"> <p id="audioplayerDiv"> <s:if test="selfRes!=null"> <s:if test="selfRes.filePath!=null && !selfRes.filePath.equals('') && selfRes.fileType==1 || selfRes.fileType==2"> <a href="javascript:;" onclick="playMediaFile(<s:property value="selfRes.id"/>,<s:property value="selfRes.fileType"/>,'<s:property value="selfRes.title"/>');">??????</a> </s:if> </s:if> <s:if test="selfRes.shareToOthers!=1 && (#session.currentLoggedUser==null || #session.currentLoggedUser.schoolId!=sid)"> ?????????????????,?????????????????? </s:if> <s:elseif test="selfRes.filePath!=null && !selfRes.filePath.equals('')"> <a href="/getSelfResFile.action?objectId=<s:property value="selfRes.id"/>" target="_blank">??????</a> </s:elseif> <s:if test="selfRes.link!=null && !selfRes.link.equals('')"> <a href="<s:property value="selfRes.link"/>" target="_blank">??????</a> </s:if> </p> </div> </s:else> </div> <s:if test="selfRes.filePath!=null && !selfRes.filePath.equals('')"> <div style="text-align: center;margin:auto;float:right;width:150px;"> <img src="/resourceDownloadImg.action?type=3&objectId=<s:property value="selfRes.id"/>" style="width:150px;height:150px;margin:5px auto;"/> <br/><font style="color: blue;font-weight:bold;">???????????????????????,??????????????????????????????????????</font> </div> </s:if> </div> <div class="praise cf"> <a style="cursor:pointer;" onclick="recommendSelfResource();" class="nullBtn" id="recommendTimesId">?????<s:property value="selfRes.praiseTimes"/>??</a> </div> <div class="cf"></div> </div> <s:action name="foot" executeResult="true"> <s:param name="sid" value="sid"></s:param> </s:action> </div> <script type="text/javascript"> <!-- var currId; function playMediaFile(fileId,fileType,title) { webDwr.recordUserMedia(<s:property value="selfRes.id"/>,fileId,function(info){ if(info=="ok") { var obj; if(currId) { obj = document.getElementById("player_li_" + currId); if(obj) obj.className = ""; obj = document.getElementById("player_a_" + currId); if(obj) obj.className = "noPlay"; } currId = fileId; obj = document.getElementById("player_li_" + currId); if(obj) obj.className = "on"; obj = document.getElementById("player_a_" + currId); if(obj) obj.className = "playBtn"; var filePath = "/getSelfResFile.action?objectId=" + fileId; if(fileType==1) { playFile(filePath,fileType,title); } else if(fileType==2) { playFile(filePath,fileType,title); } } else { <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="/vaata.action"; </s:else> } }); } var times = 0; <s:if test="selfRes.praiseTimes!=null">times = <s:property value="selfRes.praiseTimes"/>;</s:if> function recommendSelfResource() { webDwr.recommendSelfRes(<s:property value="selfRes.id"/>,function(info){ if(info != "") { if(info.indexOf("??????")>=0) { times++; document.getElementById("recommendTimesId").innerHTML = "?????" + times + "??"; } alert(info); } }); } <s:if test="selfRes!=null && #session.currentLoggedUser!=null"> currId = <s:property value="selfRes.id"/>; <s:if test="selfRes.filePath!=null && !selfRes.filePath.equals('') && selfRes.fileType==1 || selfRes.fileType==2"> playMediaFile(<s:property value="selfRes.id"/>,<s:property value="selfRes.fileType"/>,'<s:property value="selfRes.title"/>'); </s:if> </s:if> webDwr.visitedSelfRes(<s:property value="selfRes.id"/>); //--> </script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de