715 lines
30 KiB
HTML
715 lines
30 KiB
HTML
{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>
|
|
<script type="text/javascript">
|
|
var msg = "您已评价,谢谢!";
|
|
jQuery(function () {
|
|
var ck = getCookie("pe_doc_vote_@RequestInt_id");
|
|
if (ck) {
|
|
jQuery("#votemsg").html(msg);
|
|
jQuery("#a_vote").click(function () {
|
|
ShowMessage("success", msg, "");
|
|
});
|
|
} else {
|
|
jQuery("#vote").click(function () {
|
|
AddVote();
|
|
});
|
|
jQuery("#a_vote").click(function () {
|
|
AddVote();
|
|
});
|
|
}
|
|
|
|
if ('{PE.Field id="cone" fieldname="Status" /}' == '0') {
|
|
jQuery("#doc_title").append("<font id='font_txt' color='red'> - 待审核</font>");
|
|
}
|
|
|
|
var isLocked = '{PE.Field id="cone" fieldname="Locked" /}';
|
|
LockDoc(isLocked);
|
|
ShowLockMsg(isLocked, true);
|
|
CheckManage();
|
|
LoadRes();
|
|
UpdateHits();
|
|
AddTagLink('{PE.Field id="cone" fieldname="Tag" /}');
|
|
ReSetPlace();
|
|
jQuery("#div_catalog").insertBefore(jQuery(".c1").eq(0));
|
|
});
|
|
|
|
function ReSetPlace() {
|
|
jQuery("#div_place").width(jQuery(".directoryMain").width());
|
|
jQuery("#div_place").height(jQuery(".directoryMain").height());
|
|
}
|
|
|
|
function AddTagLink(tags) {
|
|
if (tags != "") {
|
|
var tagArray = tags.split(" ");
|
|
for (var i = 0; i < tagArray.length; i++) {
|
|
jQuery("#div_label").append("<a href=\"SearchList.aspx?type=2&keyword=" + escape(tagArray[i]) + "\">" + tagArray[i] + "</a> ");
|
|
}
|
|
}
|
|
}
|
|
|
|
function UpdateHits() {
|
|
var x = new AjaxRequest('XML', '');
|
|
x.para = ['entryid=@RequestInt_id'];
|
|
x.post('UpdateHits', '{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("#spn_hits").html(xml.getElementsByTagName("hits")[0].firstChild.data);
|
|
}
|
|
});
|
|
}
|
|
|
|
function LockDoc(isLocked) {
|
|
jQuery("#doc_title").find("label").remove();
|
|
if (isLocked == 'true') {
|
|
jQuery("#doc_title").append("<label><img src=\"{PE.SiteConfig.SkinPath/}encyclopedia/images/lock.gif\" /></label>");
|
|
}
|
|
}
|
|
|
|
function ShowLockMsg(isLocked, isOnload) {
|
|
jQuery("#doc_edit").attr("href", "javascript:;");
|
|
jQuery("#doc_edit").unbind("click");
|
|
if (isLocked != 'true') {
|
|
if ('{PE.Field id="cone" fieldname="Status" /}' != '1' || '{PE.Field id="cone" fieldname="Inputer" /}' == '{PE.Label id="互动百科_获取当前登录会员名称" /}') {
|
|
jQuery("#doc_edit").attr("href", "EditDoc.aspx?id=@RequestInt_id");
|
|
} else {
|
|
jQuery("#doc_edit").click(function () {
|
|
ShowMessage("error", '正在被 {PE.Field id="cone" fieldname="Inputer" /} 锁定编辑中', "");
|
|
});
|
|
}
|
|
} else {
|
|
jQuery("#doc_edit").click(function () {
|
|
ShowMessage("error", "该词条已被锁定,无法编辑", "");
|
|
});
|
|
}
|
|
}
|
|
|
|
function AddVote() {
|
|
var ck = getCookie("pe_doc_vote_@RequestInt_id");
|
|
if (ck == 1) {
|
|
jQuery("#votemsg").html(msg);
|
|
ShowMessage("success", msg, "");
|
|
} else {
|
|
var x = new AjaxRequest('XML', 'voteform');
|
|
x.para = ['entryid=@RequestInt_id'];
|
|
x.post('addvote', '{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") {
|
|
ShowMessage("error", xml.getElementsByTagName("msg")[0].firstChild.data, "");
|
|
} else {
|
|
var votes = xml.getElementsByTagName("votes")[0].firstChild.data;
|
|
jQuery("#vote").find("b").html(votes);
|
|
jQuery("#a_vote").html("顶[" + votes + "]");
|
|
jQuery("#votemsg").html(msg);
|
|
addCookie("pe_doc_vote_@RequestInt_id", 1, 24);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function addCookie(objName, objValue, objHours) {
|
|
var str = objName + "=" + escape(objValue);
|
|
if (objHours > 0) {
|
|
var date = new Date();
|
|
var ms = objHours * 3600 * 1000;
|
|
date.setTime(date.getTime() + ms);
|
|
str += "; expires=" + date.toGMTString();
|
|
}
|
|
|
|
document.cookie = str;
|
|
}
|
|
|
|
function getCookie(objName) { // 获取指定名称的cookie的值
|
|
var arrStr = document.cookie.split(";");
|
|
for (var i = 0; i < arrStr.length; i++) {
|
|
var temp = arrStr[i].split("=");
|
|
if (temp[0].replace(" ", "") == objName) {
|
|
return temp[1];
|
|
}
|
|
}
|
|
}
|
|
|
|
function SetLock(isLock) {
|
|
var x = new AjaxRequest('XML', 'docform');
|
|
x.para = ['entryid=@RequestInt_id', 'islocked=' + isLock];
|
|
x.post('setlock', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=EncyclopediaAjaxHandler', function (s) {
|
|
var xml = x.createXmlDom(s);
|
|
var status = xml.getElementsByTagName("status")[0].firstChild.data;
|
|
var result = xml.getElementsByTagName("msg")[0].firstChild.data;
|
|
switch (status) {
|
|
case "200":
|
|
LockDoc(isLock.toString());
|
|
ShowLockMsg(isLock.toString(), false);
|
|
ShowMessage("success", result, "");
|
|
break;
|
|
default:
|
|
ShowMessage("error", result, "");
|
|
break;
|
|
}
|
|
});
|
|
}
|
|
|
|
function SetStatus() {
|
|
var x = new AjaxRequest('XML', 'docform');
|
|
x.para = ['entryid=@RequestInt_id'];
|
|
x.post('setpass', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=EncyclopediaAjaxHandler', function (s) {
|
|
var xml = x.createXmlDom(s);
|
|
var status = xml.getElementsByTagName("status")[0].firstChild.data;
|
|
var result = xml.getElementsByTagName("msg")[0].firstChild.data;
|
|
switch (status) {
|
|
case "200":
|
|
ShowMessage("success", "审核成功", "");
|
|
jQuery("#font_txt").remove();
|
|
break;
|
|
default:
|
|
ShowMessage("error", result, "");
|
|
break;
|
|
}
|
|
});
|
|
}
|
|
|
|
function ShowDocType() {
|
|
ShowPopup('Message_mask', 'manage_box');
|
|
}
|
|
|
|
function SubmitDocType() {
|
|
ClosePopup('Message_mask', 'manage_box');
|
|
SetDocType(jQuery("#dropStatus").val());
|
|
}
|
|
|
|
function SetDocType(type) {
|
|
var x = new AjaxRequest('XML', 'docform');
|
|
x.para = ['entryid=@RequestInt_id', 'entrytype=' + type];
|
|
x.post('settype', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=EncyclopediaAjaxHandler', function (s) {
|
|
var xml = x.createXmlDom(s);
|
|
var status = xml.getElementsByTagName("status")[0].firstChild.data;
|
|
var result = xml.getElementsByTagName("msg")[0].firstChild.data;
|
|
switch (status) {
|
|
case "200":
|
|
ShowMessage("success", result, "");
|
|
break;
|
|
default:
|
|
ShowMessage("error", result, "");
|
|
break;
|
|
}
|
|
});
|
|
}
|
|
|
|
function CheckManage() {
|
|
var x = new AjaxRequest('XML', 'docform');
|
|
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("#doc_manage").show();
|
|
} else {
|
|
jQuery("#doc_manage").hide();
|
|
}
|
|
});
|
|
}
|
|
|
|
function CreateCatalog() {
|
|
var categoryList = "";
|
|
jQuery(".level1").each(function (index) {
|
|
index++;
|
|
var txt1 = jQuery(this).text();
|
|
var link = "<h3 class=\"" + jQuery(this).attr("class") + "\">" + txt1 + "</h3><a href=\"#section\" name=\"" + index + "\">回目录</a>";
|
|
categoryList += "<li><a href='#" + (index) + "'>" + txt1 + "</a></li>";
|
|
jQuery(this).html(link);
|
|
jQuery(this).attr("class", "c1");
|
|
});
|
|
if (categoryList != "") {
|
|
jQuery("#dire_detail").html(categoryList);
|
|
jQuery("#dire_all").html(categoryList);
|
|
jQuery(".level2").each(function (sdx) {
|
|
sdx++;
|
|
var nm = "";
|
|
var txt2 = jQuery(this).text();
|
|
jQuery(this).prevAll(".c1").each(function (index) {
|
|
if (index == 0) {
|
|
var currentId = jQuery(this).find("a").attr("name");
|
|
jQuery("#dire_detail > li").each(function (idx) {
|
|
idx++;
|
|
if (currentId == idx) {
|
|
if (jQuery(this).find("ol").length == 0) {
|
|
jQuery(this).append("<ol></ol>");
|
|
}
|
|
|
|
nm = currentId + "_" + sdx;
|
|
jQuery(this).find("ol").append("<li><a href=\"#" + nm + "\">" + txt2 + "</a></li>");
|
|
return;
|
|
}
|
|
});
|
|
}
|
|
});
|
|
jQuery(this).append("<a name=\"" + nm + "\"></a>");
|
|
});
|
|
|
|
jQuery("#div_catalog").show();
|
|
}
|
|
}
|
|
|
|
function LoadRes() {
|
|
var x = new AjaxRequest('XML', 'docform');
|
|
x.para = ['entryid=@RequestInt_id'];
|
|
x.post('GetReference', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=EncyclopediaAjaxHandler', function (s) {
|
|
var xml = x.createXmlDom(s);
|
|
var list = xml.getElementsByTagName("list")[0].firstChild.data;
|
|
if (list != "") {
|
|
var jsonObj = JSON.parse(list);
|
|
if (jsonObj.length > 0) {
|
|
var text = "<li><h6><strong>参考资料:</strong></h6></li>";
|
|
jQuery.each(jsonObj, function (idx, item) {
|
|
idx++;
|
|
text += "<li><span>[" + (idx) + "]</span> <span><a target='_blank' href=\"" + item.url + "\">" + item.name + "</a></span></li>";
|
|
});
|
|
jQuery("#ul_res").html(text);
|
|
jQuery(".reference").show();
|
|
}
|
|
} else {
|
|
jQuery(".reference").hide();
|
|
}
|
|
});
|
|
}
|
|
|
|
function DelEntry() {
|
|
if (confirm("确定删除词条吗?本操作把词条移到回收站中,您可从后台词条回收站中恢复!")) {
|
|
var x = new AjaxRequest('XML', '');
|
|
x.para = ['entryid=@RequestInt_id'];
|
|
x.post('DelEntry', '{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.href = "Index.aspx";
|
|
} else {
|
|
ShowMessage("error", xml.getElementsByTagName("msg")[0].firstChild.data, "");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function ShowDetail() {
|
|
ReSetPlace();
|
|
jQuery(".directoryMain").hide();
|
|
jQuery(".directoryDetail").show();
|
|
}
|
|
|
|
function CloseDetail() {
|
|
ReSetPlace();
|
|
jQuery(".directoryDetail").hide();
|
|
jQuery(".directoryMain").show();
|
|
}
|
|
</script>
|
|
{PE.Label id="互动百科_信息提示弹出层" /}
|
|
{PE.Label id="互动百科_弹出层初始化JS" /}
|
|
<script type="text/javascript">
|
|
var ids = '{PE.Label id="互动百科_获取百科所属分类ID列表" entryId="@RequestInt_id" /}';
|
|
var names = '{PE.Label id="互动百科_获取百科所属分类_纯文本" entryId="@RequestInt_id" /}';
|
|
var tempIds = ids;
|
|
|
|
jQuery(function () {
|
|
LoadRootCategory();
|
|
jQuery("#spn_Selected").html(names);
|
|
});
|
|
|
|
function LoadRootCategory() {
|
|
if (jQuery("#divOptions").children().length == 0) {
|
|
var x = new AjaxRequest('XML', 'categoryform');
|
|
x.para = ['parentid=0'];
|
|
x.post('getcategorylist', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=EncyclopediaAjaxHandler', function (s) {
|
|
var xml = x.createXmlDom(s);
|
|
var categorylist = xml.getElementsByTagName("categorylist")[0].firstChild.data;
|
|
var obj = JSON.parse(categorylist);
|
|
var text = "";
|
|
jQuery.each(obj, function (idx, item) {
|
|
text += "<ul id=\"ul" + item.id + "\"><li><label><input id=\"item" + item.id + "\" type=\"checkbox\" onclick=\"SelectCategory(" + item.id + ",'" + item.name + "')\">" + item.name + "</label>";
|
|
if (item.childcount > 0) {
|
|
text += "<input id='icon" + item.id + "' type='image' src='{PE.SiteConfig.ApplicationPath/}Images/tree_folder4.gif' onclick='OpenClose(true," + item.id + ");'>";
|
|
}
|
|
|
|
text += "</li></ul>";
|
|
|
|
});
|
|
jQuery("#divOptions").append(text);
|
|
BindCategory();
|
|
});
|
|
}
|
|
}
|
|
|
|
function LoadChildCategory(isRoot, id) {
|
|
var x = new AjaxRequest('XML', 'categoryform');
|
|
x.para = ['parentid=' + id];
|
|
x.post('getcategorylist', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=EncyclopediaAjaxHandler', function (s) {
|
|
var xml = x.createXmlDom(s);
|
|
var categorylist = xml.getElementsByTagName("categorylist")[0].firstChild.data;
|
|
var obj = JSON.parse(categorylist);
|
|
var text = "";
|
|
jQuery.each(obj, function (idx, item) {
|
|
text += "<li class=\"childCategory\"><label><input id=\"item" + item.id + "\" type=\"checkbox\" onclick=\"SelectCategory(" + item.id + ",'" + item.name + "')\">" + item.name + "</label>";
|
|
if (item.childcount > 0) {
|
|
text += "<input id='icon" + item.id + "' type='image' src='{PE.SiteConfig.SkinPath/}encyclopedia/images/icon_next.gif' onclick='LoadChildCategory(false," + item.id + ");'>";
|
|
}
|
|
|
|
text += "</li>";
|
|
|
|
});
|
|
if (isRoot) {
|
|
jQuery("#ul" + id).after("<ul id='childul" + id + "'>" + text + "</ul>");
|
|
jQuery("#icon" + id).attr("src", "{PE.SiteConfig.ApplicationPath/}Images/tree_folder3.gif");
|
|
} else {
|
|
var prevId = jQuery("#icon" + id).parent().parent().prev().find("input[type='checkbox']:last").attr("id");
|
|
var leval1 = "<li class='childCategory'><label>" + jQuery("#icon" + id).parent().parent().prev().find("label").html() + "</label></li>";
|
|
var leval2 = "<li class='childCategory'><label>" + jQuery("#icon" + id).prev().html() + "</label></li>";
|
|
if (jQuery("#muul").length == 0) {
|
|
jQuery("#divOptions").html("<ul id='muul'>" + leval1 + "</ul>");
|
|
}
|
|
jQuery("#muul").append(leval2);
|
|
jQuery("#muul").next().remove();
|
|
jQuery("#muul").after("<ul id='itemul'>" + text + "</ul>");
|
|
if (jQuery("#ulback").length > 0) {
|
|
jQuery("#ulback").remove();
|
|
}
|
|
|
|
jQuery("#divOptions").append("<ul id=\"ulback\" class=\"uloptions\"><li class=\"childCategory\"><a href=\"javascript:ReturnBack(0);\">返回一级分类</a></li><li class=\"childCategory\"><a href=\"javascript:ReturnBack('" + prevId + "');\"><img src=\"{PE.SiteConfig.ApplicationPath/}Images/ontop9.gif\">返回上一级分类</a></li></ul>");
|
|
}
|
|
|
|
BindCategory();
|
|
});
|
|
}
|
|
|
|
function BindCategory() {
|
|
var idArray = ids.split(",");
|
|
for (var i = 0; i < idArray.length; i++) {
|
|
var tempId = "item" + idArray[i];
|
|
jQuery("#divOptions").find("input[type='checkbox']").each(function () {
|
|
if (jQuery(this).attr("id") == tempId) {
|
|
jQuery(this).attr("checked", "checked");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
function ReturnBack(id) {
|
|
if (id == 0 || jQuery("#muul").find("input[type='checkbox']").length == 1) {
|
|
jQuery("#divOptions").html("");
|
|
LoadRootCategory();
|
|
} else {
|
|
jQuery("#muul").find("li:last").remove();
|
|
var x = new AjaxRequest('XML', 'categoryform');
|
|
x.para = ['parentid=' + id.replace("item", "")];
|
|
x.post('getcategorylist', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=EncyclopediaAjaxHandler', function (s) {
|
|
var xml = x.createXmlDom(s);
|
|
var categorylist = xml.getElementsByTagName("categorylist")[0].firstChild.data;
|
|
var obj = JSON.parse(categorylist);
|
|
var text = "";
|
|
jQuery.each(obj, function (idx, item) {
|
|
text += "<li class=\"childCategory\"><label><input id=\"item" + item.id + "\" type=\"checkbox\" onclick=\"SelectCategory(" + item.id + ",'" + item.name + "')\">" + item.name + "</label>";
|
|
if (item.childcount > 0) {
|
|
text += "<input id='icon" + item.id + "' type='image' src='{PE.SiteConfig.SkinPath/}encyclopedia/images/icon_next.gif' onclick='LoadChildCategory(false," + item.id + ");'>";
|
|
}
|
|
|
|
text += "</li>";
|
|
});
|
|
if (jQuery("#itemul").length > 0) {
|
|
jQuery("#itemul").remove();
|
|
}
|
|
|
|
jQuery("#muul").after("<ul id='itemul'>" + text + "</ul>");
|
|
if (jQuery("#ulback").length > 0) {
|
|
jQuery("#ulback").remove();
|
|
}
|
|
|
|
var prevId = "";
|
|
jQuery("#muul").find("input[type='checkbox']").each(function () {
|
|
var cid = jQuery(this).attr("id");
|
|
if (cid == id) {
|
|
return;
|
|
}
|
|
|
|
prevId = cid;
|
|
});
|
|
jQuery("#divOptions").append("<ul id=\"ulback\" class=\"uloptions\"><li class=\"childCategory\"><a href=\"javascript:ReturnBack(0);\">返回一级分类</a></li><li class=\"childCategory\"><a href=\"javascript:ReturnBack('" + prevId + "');\"><img src=\"{PE.SiteConfig.ApplicationPath/}Images/ontop9.gif\">返回上一级分类</a></li></ul>");
|
|
BindCategory();
|
|
});
|
|
}
|
|
}
|
|
|
|
function SelectCategory(id, name) {
|
|
if (jQuery("#item" + id).attr("checked")) {
|
|
if (ids != "") {
|
|
ids += ",";
|
|
}
|
|
if (names != "") {
|
|
names += ",";
|
|
}
|
|
ids += id;
|
|
names += name;
|
|
} else {
|
|
var newIds = "";
|
|
var newNames = "";
|
|
var idArray = ids.split(",");
|
|
var nameArray = names.split(",");
|
|
for (var i = 0; i < idArray.length; i++) {
|
|
if (idArray[i] != id) {
|
|
if (newIds != "") {
|
|
newIds += ",";
|
|
}
|
|
if (newNames != "") {
|
|
newNames += ",";
|
|
}
|
|
newIds += idArray[i];
|
|
newNames += nameArray[i];
|
|
}
|
|
}
|
|
|
|
ids = newIds;
|
|
names = newNames;
|
|
}
|
|
jQuery("#spn_Selected").html(names);
|
|
}
|
|
|
|
function ShowCategory() {
|
|
BindCategory();
|
|
var pageArg = getPageSize();
|
|
var divMask = document.getElementById("Message_mask");
|
|
divMask.style.width = "100%";
|
|
divMask.style.height = pageArg[0] + "px";
|
|
divMask.style.visibility = "visible";
|
|
var top = "";
|
|
if (document.body.scrollTop) {
|
|
top = (document.body.scrollTop + 281) + "px";
|
|
}
|
|
else {
|
|
top = (document.documentElement.scrollTop + 281) + "px";
|
|
}
|
|
|
|
jQuery("#divSelectEntry").css("top",top);
|
|
jQuery("#divSelectEntry").show();
|
|
}
|
|
|
|
function CloseCategory() {
|
|
jQuery("#divSelectEntry").hide();
|
|
document.getElementById("Message_mask").style.visibility = "hidden";
|
|
}
|
|
|
|
function OpenClose(isRoot, id) {
|
|
var ulid = "#childul" + id;
|
|
if (jQuery(ulid).length > 0) {
|
|
if (jQuery(ulid).css("display") == "block") {
|
|
jQuery("#icon" + id).attr("src", "{PE.SiteConfig.ApplicationPath/}Images/tree_folder4.gif");
|
|
jQuery(ulid).hide();
|
|
} else {
|
|
jQuery("#icon" + id).attr("src", "{PE.SiteConfig.ApplicationPath/}Images/tree_folder3.gif");
|
|
jQuery(ulid).show();
|
|
}
|
|
}
|
|
|
|
if (jQuery(ulid).length == 0) {
|
|
LoadChildCategory(isRoot, id);
|
|
}
|
|
}
|
|
|
|
function UpdateCategory() {
|
|
if (ids == "") {
|
|
ids = tempIds;
|
|
CloseCategory();
|
|
ShowMessage("error", "词条分类不能为空!", "");
|
|
return;
|
|
}
|
|
|
|
var x = new AjaxRequest('XML', 'categoryform');
|
|
x.para = ['cids=' + ids, 'entryid=@RequestInt_id'];
|
|
x.post('UpdateCategory', '{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();
|
|
} else {
|
|
ids = tempIds;
|
|
CloseCategory();
|
|
ShowMessage("error", xml.getElementsByTagName("msg")[0].firstChild.data, "");
|
|
}
|
|
});
|
|
}
|
|
</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="Category.aspx">百科分类</a>><span>{PE.Label id="互动百科_获取百科所属分类" entryId="@RequestInt_id" /}</span></div>
|
|
<!--right-->
|
|
<div class="funBar fr">
|
|
<!--alphabetically-->
|
|
<div id="doc_manage" class="docmanage">
|
|
<div class="hd">
|
|
<h3>词条管理</h3>
|
|
</div>
|
|
<div class="bd">
|
|
<ul class="">
|
|
<li><a href="javascript:;" onclick="SetLock(true)">锁定</a></li>
|
|
<li><a href="javascript:;" onclick="SetLock(false)">解锁</a></li>
|
|
<li><a href="javascript:;" onclick="ShowDocType()">推荐</a></li>
|
|
<li><a href="javascript:;" onclick="SetDocType(0)">取消推荐</a></li>
|
|
<li><a href="javascript:;" onclick="DelEntry()">删除</a></li>
|
|
<li><a href="javascript:;" onclick="ShowCategory()">编辑分类</a></li>
|
|
</ul>
|
|
<div class="clearbox"></div>
|
|
</div>
|
|
</div>
|
|
<div class="clear12"></div>
|
|
<!--entryInfo-->
|
|
<div class="entryInfo">
|
|
<div class="hd">
|
|
<h3>词条信息</h3>
|
|
</div>
|
|
<div class="bd">
|
|
{PE.Label id="互动百科_词条信息_编辑者信息" inputer="{PE.Field id="cone" fieldname="Inputer" /}" editor="{PE.Field id="cone" fieldname="Editor" /}" /}
|
|
<div class="other">
|
|
<ul>
|
|
<li>浏览次数:<span id="spn_hits">{PE.Field id="cone" fieldname="Hits" /}</span>次</li>
|
|
{PE.Label id="互动百科_词条信息_编辑次数" entryId="@RequestInt_id" /}
|
|
<li>更新时间:{PE.Field id="cone" fieldname="EditTime" /}</li>
|
|
</ul>
|
|
</div>
|
|
<div class="clearbox"></div>
|
|
</div>
|
|
</div>
|
|
<div class="clear12"></div>
|
|
</div>
|
|
</div>
|
|
<!--left-->
|
|
<div class="conBar fl">
|
|
<!--cateContent-->
|
|
<div class="cateContent">
|
|
<div class="tit">
|
|
<h4 id="doc_title">{PE.Field id="cone" fieldname="EntryName" /}</h4>
|
|
<div class="editBox">
|
|
<div class="edit">
|
|
<div class="editor"><a id="doc_edit" href="javascript:;">编辑词条</a></div>
|
|
<div class="carry"><a id="a_vote" href="javascript:;">顶[{PE.Field id="cone" fieldname="Votes" /}]</a></div>
|
|
</div>
|
|
<div id="div_label" class="label">标签: </div>
|
|
</div>
|
|
</div>
|
|
<div class="con">
|
|
<div id="div_catalog" class="directory">
|
|
<div id="div_place"><a name="section"></a></div>
|
|
<div class="directoryMain">
|
|
<div class="hd">
|
|
<h3><a>目录</a></h3>
|
|
</div>
|
|
<div class="bd">
|
|
<ul id="dire_all">
|
|
</ul>
|
|
</div>
|
|
<div class="ft"><a href="javascript:;" onclick="ShowDetail()">展开</a></div>
|
|
</div>
|
|
<div class="directoryDetail">
|
|
<div class="hd">
|
|
<h3><a>目录</a></h3>
|
|
</div>
|
|
<div class="bd">
|
|
<ul id="dire_detail">
|
|
</ul>
|
|
</div>
|
|
<div class="ft"><a href="javascript:;" onclick="CloseDetail()">收起</a></div>
|
|
</div>
|
|
</div>
|
|
<div class="clearbox"></div>
|
|
<div id="div_content">{PE.Field id="cone" fieldname="Content" /}</div>
|
|
</div>
|
|
<div class="clearbox"></div>
|
|
<div class="ft">
|
|
<div class="reference">
|
|
<ul id="ul_res">
|
|
<li><h6><strong>参考资料:</strong></h6></li>
|
|
<li><span>[1]</span>
|
|
<span>百度</span> <span>http://www.baidu.com</span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="support"><span>词条内容仅供参考,如果您需要解决具体问题<br>
|
|
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。</span> <a id="vote" href="javascript:;">
|
|
<label id="votemsg">本词条对我有帮助</label>
|
|
<b class="png">{PE.Field id="cone" fieldname="Votes" /}</b></a></div>
|
|
</div>
|
|
</div>
|
|
|
|
<!--Encyclopedia Image--><!--Popular Tags--></div>
|
|
<div class="clearbox"></div>
|
|
<div class="clear12"></div>
|
|
<!--footer-->
|
|
<div class="footer">
|
|
<!--friendlyLinks--><!--copyRight-->
|
|
{PE.Label id="互动百科_网站底部" /}
|
|
</div>
|
|
</div>
|
|
<div id="manage_box" class="content_box" style="width:400px;">
|
|
<div class="content_title">
|
|
<div class="ctLeft" onmousedown="MDown('manage_box')" style="width:85%;">
|
|
词条管理
|
|
</div>
|
|
<span class="ctRight" onclick="ClosePopup('Message_mask','manage_box')" title="关闭">
|
|
</span>
|
|
</div>
|
|
<div class="content_content">
|
|
<div id="Message_Content">
|
|
<div id="bm_content">
|
|
<span>词条状态:</span>
|
|
<select id="dropStatus"><option value="1">推荐词条</option><option value="2">精彩词条</option><option value="3">热门词条</option></select>
|
|
</div>
|
|
<div class="bm_bottom"><a class="CP_a_btn2" onclick="SubmitDocType()">确定</a></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="divSelectEntry" class="selectEntry">
|
|
<div class="hd"><span><a class="png" href="javascript:CloseCategory();" title="关闭窗口">关闭</a></span>
|
|
<h3>词条分类</h3>
|
|
</div>
|
|
<div class="bd">
|
|
<div class="selected"><strong>已选择分类:</strong>
|
|
<div class="selectedList"><span id="spn_Selected"></span></div>
|
|
</div>
|
|
<div id="divOptions" class="options"></div>
|
|
</div>
|
|
<div class="ft"><a href="javascript:;" onclick="UpdateCategory()" title="保存分类">保存</a></div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
CreateCatalog();
|
|
|
|
jQuery("#div_content img").each(function () {
|
|
var img = jQuery(this); img.hide();
|
|
var imgInt = setInterval(function () {
|
|
if (img.width() > 0) {
|
|
clearInterval(imgInt);
|
|
if (img.width() > 650) { img.width(650).css({ cursor: "pointer", height: "auto" }).click(function () { window.open(img.attr('src'), "_blank") }); }
|
|
img.show();
|
|
}
|
|
}, 50);
|
|
});
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|