first commit
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>百科类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>txt</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="4700" compatibleVersion="" />
|
||||
<LabelTemplate>
|
||||
<![CDATA[<div class="header">
|
||||
<div id="divTopLogin">{PE.Label id="互动百科_首页顶部会员信息" /}</div>
|
||||
<div class="logoBox">
|
||||
<div class="searchBox">
|
||||
<div class="search">
|
||||
<div class="inputBox">
|
||||
<input id="TxtSearch" class="" type="text" value="">
|
||||
</div>
|
||||
<div class="entries"><a href="javascript:;" onclick="GoSearch()">进入词条</a></div>
|
||||
<div class="btn"><a href="javascript:;" onclick="GoSearch()">搜 索</a></div>
|
||||
<div class="link"><a href="Search.aspx">高级搜索</a></div>
|
||||
</div>
|
||||
<div class="hotSearch">热门搜索:{PE.Label id="互动百科_通用词条列表" bindStyle="热门前五" outputQty="5" isUsePage="false" linkOpenType="_blank" titleLength="15" docType="3" listOrderType="3" /}</div>
|
||||
</div>
|
||||
<div class="logo">
|
||||
<h1 class="png" title="动易百科">动易百科</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menuBox">
|
||||
<div class="term">
|
||||
<ul>
|
||||
<li class="last"><a href="CreateDoc.aspx">创建词条</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav">
|
||||
<ul>
|
||||
<li><a href="Index.aspx">首页</a></li>
|
||||
<li><a href="Category.aspx">百科分类</a></li>
|
||||
<li><a href="HotList.aspx?order=3">排行榜</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function TopLogout(){
|
||||
var x = new AjaxRequest('XML', '');
|
||||
x.post('userlogout', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function (s) {
|
||||
var xml = x.createXmlDom(s);
|
||||
var status = xml.getElementsByTagName("status")[0].firstChild.data;
|
||||
if (status == "ok") {
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function UpdateTopLoginStatus() {
|
||||
var x = new AjaxRequest('XML', '');
|
||||
x.labelname = "互动百科_首页顶部会员信息";
|
||||
x.para = [];
|
||||
x.post('updatelabel', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function (s) {
|
||||
var xml = x.createXmlDom(s);
|
||||
var status = xml.getElementsByTagName("status")[0].firstChild.data;
|
||||
if (status == "ok") {
|
||||
jQuery("#divTopLogin").html(xml.getElementsByTagName("body")[0].firstChild.data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function GoSearch(){
|
||||
var txt = jQuery("#TxtSearch").val();
|
||||
if(txt != ""){
|
||||
if(txt.substring(0,4).toLowerCase() == "tag:"){
|
||||
location.href="SearchList.aspx?type=2&keyword="+escape(txt.substring(4,txt.length));
|
||||
}else{
|
||||
location.href="SearchList.aspx?type=1&keyword="+escape(txt);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function Logout() {
|
||||
var x = new AjaxRequest('XML', '');
|
||||
x.post('userlogout', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function (s) {
|
||||
var xml = x.createXmlDom(s);
|
||||
var status = xml.getElementsByTagName("status")[0].firstChild.data;
|
||||
if (status == "ok") {
|
||||
location.reload();
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
]]></LabelTemplate>
|
||||
</root>
|
||||
Reference in New Issue
Block a user