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

52 lines
1.9 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="3502" compatibleVersion="" />
<attributes>
<name>WapCategoryID</name>
<datatype>supersql</datatype>
<default>-1</default>
<intro>Wap类别</intro>
</attributes>
<attributes>
<name>WapArticleId</name>
<datatype>supersql</datatype>
<default>-1</default>
<intro>Wap内容ID</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString><![CDATA[SELECT TOP 1 * FROM PE_WAP_ARTICLE A WHERE A.WapArticleId<@WapArticleId AND A.WapCategoryID=@WapCategoryID AND A.STATUS=99 ORDER BY A.WapArticleId DESC]]></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="WapCategoryID" />
<xsl:param name="WapArticleId" />
<xsl:output method="xml" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<font style="color:red">&lt;&lt;没有了!<br/>
</font>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
&lt;&lt;<a>
<xsl:attribute name="href">
Content.aspx?WapArticleId=<xsl:value-of select="WapArticleId"/>&amp;WapCategoryId=@request_WapCategoryId<xsl:value-of select="pe:AddSid(1)"/>
</xsl:attribute>
<xsl:attribute name="title">
</xsl:attribute>
<xsl:value-of select="Title"/>
</a>
<br/>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>