Files
ningbo/动易的标签库/标签库/问答类/显示问题.config
T
2026-08-31 16:22:00 +08:00

93 lines
3.5 KiB
XML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0"?>
<root>
<LabelType>问答类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>questionID</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>问题ID</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT * FROM PE_QA_Question WHERE QuestionID = @questionID</LabelSqlString>
<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:param name="questionID"/>
<xsl:variable name="loginedusername" select="pe:LoginedUserName()"/>
<xsl:template match="/NewDataSet/Table">
<div class="quiz">
<xsl:choose>
<xsl:when test="Status != 0">
{PE.DataSource datasource="用户信息数据源标签" id="UserInfo" userName="<xsl:value-of select="UserName"/>" /}
<div class="quiz_title">
<h2>
<xsl:attribute name="class">
<xsl:if test="Status = 1">Solution2</xsl:if>
<xsl:if test="Status = 2">Solution1</xsl:if>
<xsl:if test="Status = 3">Solution3</xsl:if>
</xsl:attribute>
<xsl:value-of select="Title"/>
</h2>
<p>悬赏: <b>
<xsl:value-of select="Point"/>
</b> 积分 <span>提问于:<xsl:value-of select="pe:FormatDate(CreateTime,'yyyy-mm-dd hh:ff:ss')"/>
<xsl:if test="pe:IsShowIP() = 'True'">
 IP<xsl:value-of select="IP"/>
</xsl:if>
 点击数:<script language="JavaScript" type="text/JavaScript" src="{pe:InstallDir()}QA/GetHits.aspx?id=@RequestInt_id">
</script>
</span> </p>
</div>
<div class="quiz_detail">
<p>
<xsl:value-of disable-output-escaping="yes" select="pe:HtmlEncode(Content)"/>
</p>
<span class="quiz_Asker">提问者:
<xsl:choose>
<xsl:when test="IsAnonymity = 'true' or UserName = ''">
匿名<xsl:text disable-output-escaping="yes">&amp;nbsp;&amp;nbsp;</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="UserName"/> -
{PE.Label id="显示用户级别" qAPoint="{PE.Field id="UserInfo" fieldname="UserExp" /}" honorType="{PE.Field id="UserInfo" fieldname="HonorType" /}" /}
</xsl:otherwise>
</xsl:choose>
</span>
<xsl:if test="ExtraDetail != ''">
问题补充:<br />
<xsl:value-of disable-output-escaping="yes" select="pe:HtmlEncode(ExtraDetail)"/>
</xsl:if>
<xsl:if test="UserName = pe:LoginedUserName() and Status = 2">
{PE.Label id="处理问题标签" UserName="<xsl:value-of select="UserName"/>" QuestionID="<xsl:value-of select="QuestionID"/>" Point="<xsl:value-of select="Point"/>"/}
</xsl:if>
<xsl:if test="Status = 2 and $loginedusername != ''">
<xsl:choose>
<xsl:when test="pe:IsAnswerSelf() = 'True'">
{PE.Label id="显示问题的我来回答" questionID="<xsl:value-of select="QuestionID"/>" userName="<xsl:value-of select="$loginedusername"/>" /}
</xsl:when>
<xsl:otherwise>
<xsl:if test="UserName != $loginedusername">
{PE.Label id="显示问题的我来回答" questionID="<xsl:value-of select="QuestionID"/>" userName="<xsl:value-of select="$loginedusername"/>" /}
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<br class="clearbox" />
</div>
</xsl:when>
<xsl:otherwise>
温馨提示:此问题处于待审核状态,请等待审核通过后查看!
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
</root>