44 lines
1.7 KiB
XML
44 lines
1.7 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="3506" compatibleVersion="" />
|
|
<attributes>
|
|
<name>WapArticleId</name>
|
|
<datatype>sql.int</datatype>
|
|
<default>-1</default>
|
|
<intro>wap内容ID</intro>
|
|
</attributes>
|
|
<UsePage>True</UsePage>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<LabelSqlString>SELECT TOP @pagesize * FROM PE_Comment WHERE CommentID NOT IN (SELECT TOP @startrow CommentID FROM PE_Comment WHERE WapId = @WapArticleId AND Status=1 AND CommentType=2 ORDER BY UpdateTime DESC) AND WapId= @WapArticleId AND Status=1 AND CommentType=2 ORDER BY UpdateTime DESC</LabelSqlString>
|
|
<LabelSqlCount>SELECT COUNT(*) FROM PE_Comment WHERE WapId= @WapArticleId AND Status=1 AND CommentType=2</LabelSqlCount>
|
|
<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="GeneralID" />
|
|
<xsl:output method="xml" />
|
|
<xsl:template match="/NewDataSet/Table">
|
|
<p>
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="normalize-space(UserName)=''">
|
|
手机网友
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="UserName"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
|
|
<xsl:value-of select="pe:FormatDate(UpdateTime,'yy-mm-dd hh:ff')"/>
|
|
<br />
|
|
<xsl:value-of select="Content"/>
|
|
<br />
|
|
</p>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]></LabelTemplate>
|
|
</root> |