first commit

This commit is contained in:
2026-08-31 16:22:00 +08:00
commit e969a1e559
2665 changed files with 128795 additions and 0 deletions
@@ -0,0 +1,149 @@
<?xml version="1.0"?>
<root>
<LabelType>问答类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<LabelTemplate><![CDATA[<div id="top_all">
<div id="head">
<div id="top_t">
<div id="top_link">
<ul>
<li><a href="{PE.SiteConfig.ApplicationPath/}QA/index.aspx" target="_blank">动易问答</a></li>
<li><img src="{PE.SiteConfig.SkinPath/}images/en_icon.gif" alt="English" /></li>
<li><img src="{PE.SiteConfig.SkinPath/}images/cn_icon.gif" alt="Chinese" /></li>
</ul>
</div>
</div>
<div id="top_banner">
<div id="logo"><img alt="logo" src="{PE.SiteConfig.SkinPath/}images/logo.gif" width="179" height="45" border="0" /></div>
</div>
<div id="menu">
{PE.Label id="首页导航(问答)" currentId="{PE.Label id="得到父栏目ID" nodeId="-2" /}" /}
</div>
</div>
</div>
<script type="text/javascript" language="JavaScript">
function searchAnswer()
{
var keyword = document.getElementById("txtKeyword");
var url;
if(keyword.value == "请输入您所需要的关键字" || keyword.value == "")
{
url = "{PE.SiteConfig.ApplicationPath/}QA/QuestionList.aspx?ShowType=2";
}
else
{
url = "{PE.SiteConfig.ApplicationPath/}QA/QuestionList.aspx?ShowType=2&Keyword=" + escape(keyword.value);
}
window.open(url,'_self');
}
function askQuestion()
{
var keyword = document.getElementById("txtKeyword");
var url;
if(keyword.value == "请输入您所需要的关键字" || keyword.value == "")
{
url = "{PE.SiteConfig.ApplicationPath/}QA/Question.aspx";
}
else
{
url = "{PE.SiteConfig.ApplicationPath/}QA/Question.aspx?Keyword=" + escape(keyword.value);
}
window.open(url,'_self');
}
function answerQuestion()
{
var keyword = document.getElementById("txtKeyword");
var url;
if(keyword.value == "请输入您所需要的关键字" || keyword.value == "")
{
url = "{PE.SiteConfig.ApplicationPath/}QA/QuestionList.aspx?ShowType=1";
}
else
{
url = "{PE.SiteConfig.ApplicationPath/}QA/QuestionList.aspx?ShowType=1&Keyword=" + escape(keyword.value);
}
window.open(url,'_self'); }
function lostFocus()
{
var keyword = document.getElementById("txtKeyword");
if(keyword.value == "")
{
keyword.value = "请输入您所需要的关键字";
}
}
function setFocus()
{
var keyword = document.getElementById("txtKeyword");
keyword.value = "";
}
LoadCheck();
var userName = "";
function LoadCheck()
{
var x = new AjaxRequest('XML', 'status');
x.para = [];
x.async = false;
x.post('logincheck', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s){
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
if (status == 'ok') {
userName = xml.getElementsByTagName("username")[0].firstChild.data;
ChangeState(true);
}
else {
ChangeState(false);
}
});
}
function ChangeState(flag)
{
var logindiv = document.getElementById("logindiv");
var logoutdiv = document.getElementById("logoutdiv");
if(flag == true)
{
logindiv.style.display = "none";
logoutdiv.style.display = "";
document.getElementById("spanUserName").innerHTML = userName + ",欢迎您!";
}
else
{
logindiv.style.display="";
logoutdiv.style.display="none";
}
}
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")
{
if (xml.getElementsByTagName("API_Enable")[0].firstChild.data == "1")
{
var LogOutString = xml.getElementsByTagName("LogOutString")[0].firstChild.data;
Loginin(LogOutString);
}
window.location.reload();
}
});
}
</script>
{PE.Label id="热点问答" outputQty="10" splitChar="、" titleLength="10" /}]]></LabelTemplate>
</root>