first commit
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>问答类</LabelType>
|
||||
<LabelIntro>显示用户级别</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString><![CDATA[SELECT TOP 1 * FROM PE_QA_Honor WHERE MinPoint <= (@qAPoint) AND MAXPoint >= (@qAPoint) AND Type = (@honorType)]]></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:param name="honorType" />
|
||||
<xsl:param name="qAPoint" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$honorType > 0">
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<xsl:value-of select="Honor"/> [<xsl:value-of select="Grade"/>]
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:HonorID() > 0">
|
||||
{PE.Label id="显示用户级别" qAPoint="<xsl:value-of select="$qAPoint" />" honorType="<xsl:value-of select="pe:HonorID()" />" /}
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
{PE.Label id="显示用户级别" qAPoint="<xsl:value-of select="$qAPoint" />" honorType="1" /}
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>qAPoint</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>问答积分</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>honorType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>级别类型</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
Reference in New Issue
Block a user