Edit D:\chineseall_products\bak\digitalLib6\pages\default\media\mediaDetail.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="media.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> <s:set name="menuIndex" value="3"/> <jsp:include page="/pages/${templatePath}/top.jsp" /> <div class="wrap mt10"style="margin-bottom: 10px"> <jsp:include page="/pages/${templatePath}/navMenu.jsp" /> <div class="mt10 cf bd"> <div class="bookInfo cf"> <div class="audioCover fl"><img src="<s:property value="media.headImage"/>" width="150px;" height="205px;"/></div> <div class="audioInfo fl ml10" style="width: 510px;"> <h2><s:property value="media.title"/></h2> <div class="info"> ?????<span><s:property value="media.author"/></span> <s:if test="media.type==1"> ?????<span><s:property value="media.reciter"/></span> ?????<span><s:property value="media.totalSectionCount"/>??</span> </s:if> <s:elseif test="media.type==2"> ????????<span><s:property value="@com.digitallib.util.StringUtil@getFileSize(lastMediaFile.fileSize)"/></span> ????????<span><s:property value="@com.digitallib.util.StringUtil@getTime(lastMediaFile.duration)"/></span> </s:elseif> </div> <p><s:property value="media.remark.replaceAll('\n','<br/>').replaceAll('\r','')" escape="false"/></p> <div id="CuPlayer" style="width:100%;text-align:left;margin:20px;"> <jsp:include page="/pages/jplayer.jsp" /> </div> </div> <div style="text-align: center;margin:auto;float:right;width:150px;"> <img src="/resourceDownloadImg.action?type=2&objectId=<s:property value="media.id"/>" style="width:150px;height:150px;margin:5px auto;"/> <br/><font style="color: blue;font-weight:bold;">???????????????????????,??????????????????????????????????????</font> </div> </div> <div class="cf"></div> <s:if test="media.type==1 || media.type==2"> <ul class="audioUl" > <li class="td" > <span class="order">???</span> <span class="chapter">??????</span> <span class="time">???</span> <span class="time">???</span> </li> <s:if test="list.size<2"><div style="width: 100px; height: 31px"></div></s:if> <s:else> <li class="td"> <span class="order">???</span> <span class="chapter">??????</span> <span class="time">???</span> <span class="time">???</span> </li> </s:else> <s:iterator value="list" status="obj"> <li id="player_li_<s:property value="id"/>" <s:if test="lastMediaFile!=null && lastMediaFile.id==id">class="on"</s:if> <s:elseif test="#obj.count%4==2 || #obj.count%4==3">class="blue"</s:elseif> <s:if test="#obj.count==list.size || (#obj.count + 1)==list.size">style="border-bottom: 1px solid #D5D5D5"</s:if> > <span class="order bdRight" ><s:property value="#obj.count"/></span> <span class="chapter bdRight"><s:property value="title"/></span> <span class="time bdRight"><s:property value="@com.digitallib.util.StringUtil@getTime(duration)"/></span> <span class="time"> <s:if test="filePath!=null && !filePath.equals('')"> <s:if test="fileType==1 || fileType==2 || fileType==21"> <a id="player_a_<s:property value="id"/>" href="javascript:;" <s:if test="lastMediaFile!=null && lastMediaFile.id==id">class="playBtn"</s:if> <s:else>class="noPlay"</s:else> title="???" onclick="playMediaFile(<s:property value="id"/>,<s:property value="fileType"/>,'<s:property value="title"/>');"></a> </s:if> <s:else> <a id="player_a_<s:property value="id"/>" href="/getMediaFile.action?objectId=<s:property value="id"/>" target="_blank" class="noPlay" title="???">???</a> </s:else> </s:if> </span> </li> </s:iterator> </ul> </s:if> <div class="cf" style="margin-bottom: 10px"></div> </div> </div> <s:action name="foot" executeResult="true"> <s:param name="sid" value="sid"></s:param> </s:action> <script type="text/javascript"> <!-- var currId; var playTimes = 0; function playMediaFile(fileId,fileType,title) { webDwr.recordUserMedia(<s:property value="media.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 = "/getMediaFile.action?objectId=" + fileId; if(fileType==1) { playFile(filePath,fileType,title); } else if(fileType==2 || fileType==21 ) { playFile(filePath,fileType,title); } } else { if(playTimes>0){ <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.href="/vaata.action?nextUrl=" + encodeURIComponent(decodeURIComponent(document.URL)); </s:else> } playTimes++; } }); } var playList = "["; var lfileId; var lfileType; var lfileTitle; <s:iterator value="list" status="obj"> lfileId = <s:property value="id"/>; lfileType = <s:property value="fileType"/>; lfileTitle = '<s:property value="title"/>'; <s:if test="#obj.index>0"> playList += ","; </s:if> playList += "{"; playList += "'fileId':" + lfileId + ",'fileType':" + lfileType + ",'fileTitle':'" + lfileTitle + "'"; playList += "}"; </s:iterator> playList += "]"; var arr = eval(playList); var findCurr = false; function playNext() { findCurr = false; $.each(arr,function(){ if(findCurr) { if($(this)[0].fileType==1 || $(this)[0].fileType==2) { playMediaFile($(this)[0].fileId,$(this)[0].fileType,$(this)[0].fileTitle); return false; } } else { if($(this)[0].fileId==currId) { findCurr = true; } } }); } <s:if test="lastMediaFile!=null"> currId = ${lastMediaFile.id}; <s:if test="lastMediaFile.filePath!=null"> playMediaFile(${lastMediaFile.id},<s:property value="lastMediaFile.fileType"/>,'${lastMediaFile.title}'); </s:if> </s:if> //--> </script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de