63 lines
2.4 KiB
XML
63 lines
2.4 KiB
XML
<?xml version="1.0"?>
|
|
<root>
|
|
<LabelType>问答类</LabelType>
|
|
<LabelIntro>用户积分排行列表</LabelIntro>
|
|
<OutType>sin</OutType>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<LabelSqlString>SELECT TOP 100 UserName,UserExp,HonorType FROM PE_Users ORDER BY UserExp DESC</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="/">
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="Points-Details">
|
|
<tr>
|
|
<td colspan="5" class="tit">用户问答积分排行TOP100</td>
|
|
</tr>
|
|
<tr class="tit2">
|
|
<td style="align:center;">次序</td>
|
|
<td style="align:center;">用户名</td>
|
|
<td style="align:center;">积分数</td>
|
|
</tr>
|
|
<xsl:for-each select="/NewDataSet/Table">
|
|
<xsl:choose>
|
|
<xsl:when test="(position() mod 2)=0">
|
|
<tr>
|
|
<td>
|
|
<xsl:value-of select="position()"/>
|
|
</td>
|
|
<td>
|
|
<xsl:value-of select="UserName"/>
|
|
</td>
|
|
<td>
|
|
<xsl:value-of select="UserExp"/>
|
|
</td>
|
|
</tr>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<tr class="bg2">
|
|
<td>
|
|
<xsl:value-of select="position()"/>
|
|
</td>
|
|
<td>
|
|
<xsl:value-of select="UserName"/>
|
|
</td>
|
|
<td>
|
|
<xsl:value-of select="UserExp"/>
|
|
</td>
|
|
</tr>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:for-each>
|
|
|
|
</table>
|
|
</xsl:template>
|
|
</xsl:transform>]]></LabelTemplate>
|
|
<UsePage>
|
|
</UsePage>
|
|
<LabelSqlCount><![CDATA[请在上面的<countsql></countsql>标记之间写分页SQL查询语句
|
|
select count(*) from PE_QA_Question, PE_QA_Category WHERE PE_QA_Question.CategoryID = PE_QA_Category.CategoryID AND Status = 2 AND Title LIKE '%@Keyword%']]></LabelSqlCount>
|
|
</root> |