first commit
This commit is contained in:
@@ -0,0 +1,170 @@
|
||||
{PE.DataSource id="cone" datasource="Flash_内容页" itemId="@RequestInt_id" xslt="true" /}
|
||||
<!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" lang="UTF-8">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta content="{PE.Field id="cone" fieldname="Title" /}" name="Description" />
|
||||
<meta content="{PE.Field id="cone" fieldname="Keyword" /}" name="Keywords" />
|
||||
<title>{PE.Field id="cone" fieldname="Title" /}-{PE.SiteConfig.SiteName /}</title>
|
||||
<link href="{PE.SiteConfig.SkinPath/}default.css" rel="stylesheet" type="text/css" />
|
||||
<link href="{PE.SiteConfig.SkinPath/}news.css" rel="stylesheet" type="text/css" />
|
||||
<link href="{PE.SiteConfig.SkinPath/}flash.css" rel="stylesheet" type="text/css" />
|
||||
<link href="{PE.SiteConfig.SkinPath/}commentary.css" rel="stylesheet" type="text/css" />
|
||||
<script language="javascript" type="text/javascript" src="{PE.SiteConfig.ApplicationPath/}JS/Common.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="{PE.SiteConfig.ApplicationPath/}JS/jquery.pack.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="{PE.SiteConfig.ApplicationPath/}JS/Swfobject.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
{PE.Label id="GOV_网站顶部" /}
|
||||
<div id="center_all">
|
||||
<div id="main_bg" class="main_bgpic">
|
||||
<div class="main_topspace"></div>
|
||||
<div id="main_bg">
|
||||
<div id="news_center" style="float:right;">
|
||||
<!-- 网站位置导航信息开始 -->
|
||||
<div class="c_daohang"> <span class="c_daohang_sp link_style1"><b>您现在的位置:</b><a href="{PE.SiteConfig.sitepath/}">{PE.SiteConfig.sitename /}</a>>>{PE.Label id="当前位置导航" nodeId="{PE.Label id="取得项目所在的节点ID" itemId="@RequestInt_Id" /}" /}>>正文内容</span> </div>
|
||||
<!-- 网站位置导航信息开始 -->
|
||||
<!-- 搜索引擎开始 -->
|
||||
<div class="c_newssearch_main">
|
||||
<script type="text/javascript" src="{PE.SiteConfig.ApplicationPath /}{PE.SiteConfig.includefilepath /}/FlashSearch.js"></script>
|
||||
</div>
|
||||
<!-- 网站位置导航信息结束 -->
|
||||
<div class="c_spacing"> </div>
|
||||
<div class="mainContent">
|
||||
<div class="playBox">
|
||||
<h1>
|
||||
<span><font style="{PE.Field id="cone" fieldname="TitleFontType" /} {PE.Field id="cone" fieldname="TitleFontColor" /}">{PE.Field id="cone" fieldname="Title" /}</font></span> </h1>
|
||||
<div id="flashPlayBox">
|
||||
<div id="peFlashPlayer"><span id="FlashContent"></span></div>
|
||||
<div class="c_spacing"></div>
|
||||
|
||||
<div class="funBox">
|
||||
<a class="addFav" href="{PE.SiteConfig.ApplicationPath/}User/Content/Favorite.aspx?Action=add&Id=@RequestInt_Id" title="加入收藏">加入收藏</a>
|
||||
<a class="toFriend" onclick="copyToClipboard()" title="#">发给好友</a>
|
||||
<a class="fullScreen" id="FullScreen" href="" title="#">全屏显示</a>
|
||||
<a class="playAgain" onclick="ShowFlash(deafultUrl)" title="#">再来一次</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="c_spacing">
|
||||
</div>
|
||||
<div id="flashList" class="detailSection">
|
||||
<div class="hd">
|
||||
<h3>
|
||||
<em>播放列表</em></h3>
|
||||
</div>
|
||||
<div class="bd">
|
||||
<div id="PlayUrlList"></div>
|
||||
</div>
|
||||
<div id="movieSynopsis" class="detailSection">
|
||||
<div class="hd">
|
||||
<h3>
|
||||
<em>内容简介</em></h3>
|
||||
</div>
|
||||
<div class="bd">
|
||||
<p>
|
||||
{PE.Field id="cone" fieldname="Intro" /}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="hotFlash" class="detailSection">
|
||||
<div class="hd">
|
||||
<h3>
|
||||
<em>最近更新</em></h3>
|
||||
</div>
|
||||
<div class="bd">
|
||||
<ul class="grid">
|
||||
{PE.Label id="Flash带图片的信息列表" exhibitStyle="图片式" parentId="0" outputQty="6" itemListOrderType="3" /}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="c_spacing">
|
||||
</div>
|
||||
</div>
|
||||
<!-- 评论开始 -->
|
||||
<div class="c_spacing"></div>
|
||||
<!-- 评论结束 -->
|
||||
|
||||
</div>
|
||||
<div id="news_right" style="float:left;"> {PE.Label id="Flash节点左侧" /} </div>
|
||||
<div class=" clearbox"></div>
|
||||
</div>
|
||||
<div class=" clearbox"></div>
|
||||
</div>
|
||||
</div>
|
||||
<span style="display:none">
|
||||
<script type="text/JavaScript" src="{PE.SiteConfig.ApplicationPath/}Common/GetHits.aspx?id=@RequestInt_Id"></script>
|
||||
</span>
|
||||
{PE.Label id="GOV_网站底部" /}
|
||||
<script type="text/javascript">
|
||||
function ShowFlash(url) {
|
||||
var newObj = new SWFObject(url, "newObj", '{PE.Field id="cone" fieldname="FlashWidth" /}', '{PE.Field id="cone" fieldname="FlashHeight" /}', "7");
|
||||
newObj.addParam("menu", "false");
|
||||
newObj.addParam("quality", "high");
|
||||
newObj.addParam("wmode", "opaque");
|
||||
newObj.write("FlashContent")
|
||||
}
|
||||
|
||||
String.prototype.startWith = function(s) {
|
||||
if ("string" != typeof (s))
|
||||
throw (new Error(1, "错误的参数类型,必须为字符串型。"));
|
||||
return (s == this.substring(0, s.length));
|
||||
}
|
||||
|
||||
|
||||
var source = '{PE.Field id="cone" fieldname="PlayUrl" /}';
|
||||
if(source.length > 0){
|
||||
var deafultUrl = "";
|
||||
var playUrl = source.split("$$$");
|
||||
var html = "";
|
||||
for (var i in playUrl) {
|
||||
if (playUrl[i].split("|")[1].startWith("http")) {
|
||||
html += '<li><a onclick="ShowFlash(\'' + playUrl[i].split("|")[1] + '\')">' + "播放地址" + (Number(i) + 1) + '</a></li>';
|
||||
deafultUrl = playUrl[0].split("|")[1];
|
||||
}
|
||||
else {
|
||||
html += '<li><a onclick="ShowFlash(\'{PE.SiteConfig.uploadpath/}' + playUrl[i].split("|")[1] + '\')">' + "播放地址" + (Number(i) + 1) + '</a></li>';
|
||||
deafultUrl = "{PE.SiteConfig.uploadpath/}" + playUrl[0].split("|")[1];
|
||||
}
|
||||
}
|
||||
document.getElementById("PlayUrlList").innerHTML = html;
|
||||
ShowFlash(deafultUrl);
|
||||
document.getElementById("FullScreen").href = deafultUrl;}
|
||||
|
||||
function copyToClipboard() {
|
||||
var txt = window.location.href;
|
||||
if (window.clipboardData) {
|
||||
window.clipboardData.clearData();
|
||||
window.clipboardData.setData("Text", txt);
|
||||
alert("本文链接地址复制成功!");
|
||||
} else if (navigator.userAgent.indexOf("Opera") != -1) {
|
||||
window.location = txt;
|
||||
} else if (window.netscape) {
|
||||
try {
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
} catch (e) {
|
||||
alert("被浏览器拒绝!\n请在浏览器地址栏输入'about:config'并回车\n然后将'signed.applets.codebase_principal_support'设置为'true'");
|
||||
}
|
||||
var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
|
||||
if (!clip)
|
||||
return;
|
||||
var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
|
||||
if (!trans)
|
||||
return;
|
||||
trans.addDataFlavor('text/unicode');
|
||||
var str = new Object();
|
||||
var len = new Object();
|
||||
var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
|
||||
var copytext = txt;
|
||||
str.data = copytext;
|
||||
trans.setTransferData("text/unicode", str, copytext.length * 2);
|
||||
var clipid = Components.interfaces.nsIClipboard;
|
||||
if (!clip)
|
||||
return false;
|
||||
clip.setData(trans, null, clipid.kGlobalClipboard);
|
||||
alert("本文链接地址复制成功!");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user