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,88 @@
<?xml version="1.0"?>
<root>
<LabelType>问答类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>True</EnabelAjax>
<LabelTemplate>
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
<xsl:output method="html" />
<xsl:variable name="loginedusername" select="pe:LoginedUserName()"/>
<xsl:variable name="enableGuestComment" select="pe:EnableGuestComment()"/>
<xsl:template match="/">
<xsl:choose>
<xsl:when test="$enableGuestComment = 'True' or $loginedusername != ''">
<script language="javascript" type="text/javascript">
function ifCommentContent(obj)
{
if(document.activeElement.id == obj.id &amp;&amp; obj.value == '请在此输入您对答案的评论......')
{
obj.value = "";
}
}
function addReplyComment()
{
if(document.getElementById("CommentContent").value == '')
{
alert("请输入评论内容");
document.getElementById("CommentContent").focus();
return false;
}
var x = new AjaxRequest('XML', 'status');
x.para = ['replyId=@RequestInt_id', 'commentContent=' + document.getElementById("CommentContent").value];
x.post('addReplyComment', '{PE.SiteConfig.applicationpath/}ajax.aspx', function(s) {
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
switch (status) {
case "ok":
alert("发表评论成功!");
window.location.reload();
break;
case "err":
alert("发表评论失败!");
break;
case "disableGuestComment":
alert("不允许游客评论!");
break;
case "noBestAnswer":
alert("不是最佳答案不允许评论!");
break;
case "check":
alert("发表评论成功,请等待管理员审核!");
window.location.reload();
break;
default:
alert("发表评论失败!");
break;
}
});
}
</script>
<div class="AnswerComments">
<dl>
<dt>发表评论:</dt>
<dd>
<textarea name="CommentContent" rows="2" cols="20" id="CommentContent" class="input_particular" style="height:130px;width:420px;" onfocus='ifCommentContent(this)'></textarea>
<span>评论字数200字之内</span>
<p>
<input name="" class="inputbutton2" type="button" onClick="addReplyComment()" value="提交评论" /></p>
</dd>
</dl>
</div>
</xsl:when>
<xsl:otherwise>
<div class="ask_box">
温馨提示:游客不能发表评论
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
</root>