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,230 @@
<?xml version="1.0"?>
<root>
<LabelType>问答类</LabelType>
<LabelIntro>处理问题标签</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>True</EnabelAjax>
<attributes>
<name>QuestionID</name>
<datatype>int</datatype>
<default>0</default>
<intro>问题ID</intro>
</attributes>
<attributes>
<name>Point</name>
<datatype>int</datatype>
<default>0</default>
<intro>积分</intro>
</attributes>
<LabelTemplate>
<![CDATA[<script language="javascript">
function xmlencode(s)
{
s=escape(s);
return s;
}
function SubmitPoint()
{
if(jQuery("#selPoint").val() == "0" || jQuery("#selPoint").val() == null)
{
alert("您的积分不足,不能增加悬赏积分!");
return;
}
raisePoint();
}
function SubmitExtraDetail()
{
if(jQuery("#txtExtraDetail").attr("value") == "")
{
alert("补充问题不能为空,请输入补充内容!");
return;
}
doExtraDetail();
}
function SubmitNoAnswer()
{
doNoAnswer();
}
function raisePoint()
{
var point=xmlencode(jQuery("#selPoint").val());
var Xml= "<?xml version='1.0' encoding='utf-8'?><root><type>QARaisePoint</type><questionId><xsl:value-of select="$QuestionID"/></questionId><point>"+point+"</point></root>";
jQuery.post('{PE.SiteConfig.applicationpath/}ajax.aspx',Xml, function(s) {
if(jQuery("err", s).text()=="false")
{
window.open("ShowMessage.aspx?type=1&messageType=2&Id=<xsl:value-of select="$QuestionID"/>", "_self");
}
else
{
window.open("ShowMessage.aspx?type=0&messageType=2&Id=<xsl:value-of select="$QuestionID"/>", "_self");
}
});
}
function doExtraDetail()
{
var detail = xmlencode(jQuery("#txtExtraDetail").attr("value"));
var Xml = "<?xml version='1.0' encoding='utf-8'?><root><type>QADoExtraDetail</type><questionId><xsl:value-of select="$QuestionID"/></questionId><extraDetail>"+detail+"</extraDetail></root>";
jQuery.post('{PE.SiteConfig.applicationpath/}ajax.aspx',Xml, function(s) {
if(jQuery("err", s).text()=="false")
{
window.open("ShowMessage.aspx?type=1&messageType=2&Id=<xsl:value-of select="$QuestionID"/>", "_self");
}
else
{
window.open("ShowMessage.aspx?type=0&messageType=2&Id=<xsl:value-of select="$QuestionID"/>", "_self");
}
});
}
function doNoAnswer()
{
var Xml= "<?xml version='1.0' encoding='utf-8'?><root><type>QADoNoAnswer</type><questionId><xsl:value-of select="$QuestionID"/></questionId></root>";
jQuery.post('{PE.SiteConfig.applicationpath/}ajax.aspx',Xml, function(s) {
if(jQuery("err", s).text()=="false")
{
window.open("ShowMessage.aspx?type=1&messageType=2&Id=<xsl:value-of select="$QuestionID"/>", "_self");
}
else
{
window.open("ShowMessage.aspx?type=0&messageType=2&Id=<xsl:value-of select="$QuestionID"/>", "_self");
}
});
}
function GetPointList()
{
jQuery.post('{PE.SiteConfig.applicationpath/}ajax.aspx', "<?xml version='1.0' encoding='utf-8'?><root><type>QAGetPointList</type></root>", function(s) {
var CPoint= jQuery("QAGetPointList", s).text();
if (CPoint != "false")
{
var str = CPoint;
var array = str.split(':');
var arr1 = array[0].split('|');
var arr2 = array[1].split('|');
jQuery("#selPoint").clearAll();
for(var i=0; i<arr1.length-1; i++)
{
jQuery("#selPoint").addOption(arr1[i], arr2[i]);
}
}
});
}
function GetExtraDetail()
{
jQuery.post('{PE.SiteConfig.applicationpath/}ajax.aspx', "<?xml version='1.0' encoding='utf-8'?><root><type>QAGetExtraDetail</type><questionId><xsl:value-of select="$QuestionID"/></questionId></root>", function(s) {
var detail = jQuery("QAGetExtraDetail", s).text();
if (detail != "error")
{
jQuery("#txtExtraDetail").attr("value", detail);
}
});
}
jQuery.fn.addOption = function(text,value)
{
jQuery(this).get(0).options.add(new Option(text,value));
}
jQuery.fn.clearAll = function()
{
jQuery(this).get(0).options.length = 0;
}
jQuery(document).ready(function() {
GetPointList();
GetExtraDetail();
});
function closePanel(panel)
{
if(panel == "addscore")
{
jQuery("#addscoreLink").css("display","block");
jQuery("#addscorePanel").css("display","none");
}
else if(panel == "noanswer")
{
jQuery("#noanswerLink").css("display","block");
jQuery("#noanswerPanel").css("display","none");
}
else if(panel == "extradetail")
{
jQuery("#extradetailLink").css("display", "block");
jQuery("#extradetailPanel").css("display", "none");
}
}
function openPanel(panel)
{
if(panel == "addscore")
{
jQuery("#addscoreLink").css("display","none");
jQuery("#addscorePanel").css("display","block");
}
else if(panel == "noanswer")
{
jQuery("#noanswerLink").css("display","none");
jQuery("#noanswerPanel").css("display","block");
}
else if(panel == "extradetail")
{
jQuery("#extradetailLink").css("display", "none");
jQuery("#extradetailPanel").css("display", "block");
}
}
</script>
<div class="Deal-problem">
<dl id="methodList">
<dt class="tit-name">处理提问</dt>
<dt id="extradetailLink" class="problem-tit"><a href="#" onclick="openPanel('extradetail');return false;">补充问题</a><span class="gray">补充提问细节,以得到更准确的答案;</span></dt>
<dd id="extradetailPanel" name="dealPanel" style="display:none;">
<ul>
<li><h5><strong onclick="closePanel('extradetail')">补充问题</strong><span class="gray">补充提问细节,以得到更准确的答案</span></h5></li>
<li class="textbox"><textarea id="txtExtraDetail" name="txtExtraDetail" style="width:90%;font-size:12px;" rows="6" autocomplete="off"> </textarea></li>
<li class="textbut"><input type="submit" value="确 认" onclick="SubmitExtraDetail()"/>&nbsp;&nbsp;<input type="button" value="取 消" onclick="closePanel('extradetail')" /></li>
</ul>
</dd>
<dt id="addscoreLink" class="problem-tit"><a href="#" onclick="openPanel('addscore');return false;">提高悬赏</a><span class="gray">提高悬赏,以提高问题的关注度;</span></dt>
<dd id="addscorePanel" name="dealPanel" style="display:none;">
<ul>
<li><h5><strong onclick="closePanel('addscore')">提高悬赏</strong><span class="gray">提高悬赏,以提高问题的关注度</span></h5></li>
<li class="textbox"> 追加悬赏<select id="selPoint" name="selPoint" ><option value="-1">请选择</option></select>分 </li>
<li class="textbut"><input type="submit" value="确 认" onclick="SubmitPoint()"/>&nbsp;&nbsp;<input type="button" value="取 消" onclick="closePanel('addscore')"/> </li>
</ul>
</dd>
<dt id="noanswerLink" class="problem-tit"><a href="#" onclick="openPanel('noanswer');return false;">无满意答案</a><span class="gray">没有满意的回答 ,可以直接结束提问,关闭问题;</span></dt>
<dd id="noanswerPanel" name="dealPanel" style="display:none;">
<ul style="border:none;">
<li><h5><strong onclick="closePanel('noanswer')">无满意答案</strong><span class="gray">没有满意的回答,可以直接结束提问,关闭问题</span></h5></li>
<li class="textbox">如果没有满意的答案,请点击下方“确认”按钮结束提问。<br />出于保护回答者利益的考虑,直接结束提问,提问的<strong>悬赏分将无法返还</strong>,请您理解。</li>
<li class="textbut"><input type="submit" value="确 认" onclick="SubmitNoAnswer()"/>&nbsp;&nbsp;<input type="button" value="取 消" onclick="closePanel('noanswer')"/></li>
</ul>
</dd>
</dl>
</div>
]]></LabelTemplate>
<attributes>
<name>UserName</name>
<datatype>string</datatype>
<default>
</default>
<intro>用户名</intro>
</attributes>
</root>