Files
2026-08-31 16:22:00 +08:00

19 lines
1.5 KiB
XML

<?xml version="1.0"?>
<root>
<LabelType>专题类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>
</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>outputQty</name>
<default>10</default>
<intro>显示专题类别数</intro>
</attributes>
<LabelSqlString>SELECT TOP @outputQty SpecialCategoryID,SpecialCategoryName,OpenType FROM PE_SpecialCategory ORDER BY OrderID ASC</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:template match="/"><xsl:choose><xsl:when test="count(/NewDataSet/Table) = 0"><font style="color:red">没有任何专题!</font></xsl:when><xsl:otherwise><xsl:for-each select="/NewDataSet/Table"><li><img src="{pe:InstallDir()}images/tree_folder4.gif" /><a><xsl:attribute name="href"><xsl:value-of select="pe:GetSpecialCategoryPath(SpecialCategoryID)"/></xsl:attribute><xsl:attribute name="target"><xsl:choose><xsl:when test="OpenType=0">_self</xsl:when><xsl:otherwise>_blank</xsl:otherwise></xsl:choose></xsl:attribute><xsl:value-of select="SpecialCategoryName"/></a></li>{PE.Label id="专题类别下的专题导航" specialCategoryId="<xsl:value-of select="SpecialCategoryID"/>"/}</xsl:for-each></xsl:otherwise></xsl:choose></xsl:template></xsl:transform>]]></LabelTemplate>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>