first commit
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
{PE.DataSource id="cone" datasource="互动百科_词条内容页_数据源" entryId="@RequestInt_id" xslt="true" /}
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>{PE.Field id="cone" fieldname="EntryName" /} - 动易百科</title>
|
||||
<link rel="stylesheet" href="{PE.SiteConfig.SkinPath/}encyclopedia/public.css" type="text/css">
|
||||
<link rel="stylesheet" href="{PE.SiteConfig.SkinPath/}encyclopedia/default.css" type="text/css">
|
||||
<link rel="stylesheet" href="{PE.SiteConfig.SkinPath/}encyclopedia/index.css" type="text/css">
|
||||
<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/slider.js"></script>
|
||||
<!--[if lt IE 9]>
|
||||
<script language="javascript" type="text/javascript" src="{PE.SiteConfig.SkinPath/}encyclopedia/js/DD_belatedPNG_0.0.8a-min-3gmin.js"></script>
|
||||
<![endif]-->
|
||||
<script language="javascript" type="text/javascript" src="{PE.SiteConfig.ApplicationPath/}js/Common.js"></script>
|
||||
{PE.Label id="互动百科_信息提示弹出层" /}
|
||||
{PE.Label id="互动百科_弹出层初始化JS" /}
|
||||
<script type="text/javascript">
|
||||
jQuery(function () {
|
||||
BindDate();
|
||||
});
|
||||
|
||||
function BindDate() {
|
||||
var x = new AjaxRequest('XML', '');
|
||||
x.para = [];
|
||||
x.post('checkpurview', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx?HandlerName=EncyclopediaAjaxHandler', function (s) {
|
||||
var xml = x.createXmlDom(s);
|
||||
var status = xml.getElementsByTagName("status")[0].firstChild.data;
|
||||
if (status == '200') {
|
||||
jQuery("#BtnDelete").click(function () {
|
||||
Del();
|
||||
});
|
||||
jQuery("#ul_list").find("input").show();
|
||||
jQuery("#li_delete").show();
|
||||
}
|
||||
else {
|
||||
jQuery("#li_delete").hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function Del() {
|
||||
var list = "";
|
||||
jQuery("#ul_list").find("input[type='checkbox']:checked").each(function () {
|
||||
list += jQuery(this).val() + ",";
|
||||
});
|
||||
if (list == "") {
|
||||
ShowMessage("error", "请选择要删除的版本!", "");
|
||||
return;
|
||||
}
|
||||
|
||||
if (confirm('此操作不可恢复,确定要删除选中的版本吗?')) {
|
||||
var x = new AjaxRequest('XML', '');
|
||||
x.para = ['id=@RequestInt_id', 'eids=' + list];
|
||||
x.post('deledition', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx?HandlerName=EncyclopediaAjaxHandler', function (s) {
|
||||
var xml = x.createXmlDom(s);
|
||||
var status = xml.getElementsByTagName("status")[0].firstChild.data;
|
||||
if (status == '200') {
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<!--header-->
|
||||
{PE.Label id="互动百科_网站顶部" /}
|
||||
<div class="clear20"></div>
|
||||
<!--main-->
|
||||
<div class="mainBox">
|
||||
<!--path-->
|
||||
<div class="path"> <a href="Index.aspx">动易百科</a> > <a href="Doc.aspx?id={PE.Field id="cone" fieldname="EntryId" /}">{PE.Field id="cone" fieldname="EntryName" /}</a> ><span>历史版本</span></div>
|
||||
<div class="historyList">
|
||||
<div class="hd"><span class="fr"><a href="Doc.aspx?id=@RequestInt_id">返回词条</a></span>
|
||||
<h3>{PE.Field id="cone" fieldname="EntryName" /}</h3>
|
||||
</div>
|
||||
<div class="bd">
|
||||
<h5>历史版本</h5>
|
||||
<ul id="ul_list">
|
||||
<li class="title"><span class="l1">历史版本</span><span class="l2">创建时间</span><span class="l3">版本创建者</span><span class="l7">修改原因</span></li>
|
||||
{PE.Label id="互动百科_词条历史版本列表" entryId="@RequestInt_id" /}
|
||||
<li id="li_delete" class="operate"><input type="button" id="BtnDelete" value="批量删除" /></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearbox"></div>
|
||||
</div>
|
||||
<div class="clear12"></div>
|
||||
<!--footer-->
|
||||
<div class="footer">
|
||||
<!--friendlyLinks--><!--copyRight-->
|
||||
{PE.Label id="互动百科_网站底部" /}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user