Files
ningbo/动易的标签库/标签库/问答类/显示头衔系列样式一.config
T
2026-08-31 16:22:00 +08:00

35 lines
1.1 KiB
XML

<?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>SELECT TOP 1 TypeName FROM PE_QA_HonorType WHERE HonorTypeID IN(@honorType)</LabelSqlString>
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
<xsl:param name="honorType" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="$honorType > 0">
<xsl:for-each select="NewDataSet/Table">
系列:<xsl:value-of select="TypeName"/>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
{PE.Label id="显示头衔系列样式一" honorType ="<xsl:value-of select="pe:HonorID()" />" /}
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>honorType</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>头衔类型</intro>
</attributes>
</root>