Files
ningbo/动易的标签库/标签库/WAP类/Wap类别列表.config
T
2026-08-31 16:22:00 +08:00

72 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>wap</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="3105" compatibleVersion="" />
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP @CategoryLength * FROM PE_Wap_Category ORDER BY OrderId</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:output method="xml" />
<xsl:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="OrderID mod 3 = 0">
<div class="column_title">
<a>
<xsl:attribute name="href">
ContentList.aspx?wapCategoryId=<xsl:value-of select="WapCategoryId"/>
<xsl:value-of select="pe:AddSid(1)"/>
</xsl:attribute>
<xsl:value-of select="WapCategoryName"/>
</a>
</div>
</xsl:when>
<xsl:when test="OrderID mod 3 = 1">
<div class="column_title">
<a>
<xsl:attribute name="href">
ContentList.aspx?wapCategoryId=<xsl:value-of select="WapCategoryId"/>
<xsl:value-of select="pe:AddSid(1)"/>
</xsl:attribute>
<xsl:value-of select="WapCategoryName"/>
</a>
</div>
</xsl:when>
<xsl:otherwise>
<div class="column_title" >
<a >
<xsl:attribute name="href">
ContentList.aspx?wapCategoryId=<xsl:value-of select="WapCategoryId"/>
<xsl:value-of select="pe:AddSid(1)"/>
</xsl:attribute>
<xsl:value-of select="WapCategoryName"/>
</a>
</div>
</xsl:otherwise>
</xsl:choose>
<div class="column_content">
<ul>
{PE.Label id="Wap类别详情" WapCategory="<xsl:value-of select="WapCategoryId"/>" Lenth="<xsl:value-of select="@ContentLength" />" TitleLenth="25" /}
</ul>
</div>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>ContentLength</name>
<datatype>supersql</datatype>
<default>5</default>
<intro>每个栏目显示的文章数</intro>
</attributes>
<attributes>
<name>CategoryLength</name>
<datatype>supersql</datatype>
<default>6</default>
<intro>显示的类别数</intro>
</attributes>
</root>