51 lines
1.8 KiB
XML
51 lines
1.8 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 ASC]]></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">>>没有了!</font>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:for-each select="/NewDataSet/Table">
|
|
>> <a>
|
|
<xsl:attribute name="href">
|
|
Content.aspx?WapArticleId=<xsl:value-of select="WapArticleId"/>&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> |