first commit
This commit is contained in:
@@ -0,0 +1,200 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>作者类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>5</default>
|
||||
<intro>显示作者数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>usePage</name>
|
||||
<default>false</default>
|
||||
<intro>是否分页显示</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>authorType</name>
|
||||
<default>0</default>
|
||||
<intro>作者类型{全部:0,国内:1,港台:2,海外:3,特约:4,其他:5}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>imageHeight</name>
|
||||
<default>175</default>
|
||||
<intro>头像高度,仅图片式有效</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>imageWidth</name>
|
||||
<default>150</default>
|
||||
<intro>头像宽度,仅图片式有效</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<default>50</default>
|
||||
<intro>作者简介的字数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<default>普通式</default>
|
||||
<intro>内容呈现样式{普通式:普通式,表格式:表格式,图片式:图片式}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>isElite</name>
|
||||
<default>false</default>
|
||||
<intro>是否推荐作者</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>onTop</name>
|
||||
<default>false</default>
|
||||
<intro>是否固顶作者</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>hits</name>
|
||||
<default />
|
||||
<intro>点击数大于多少的作者</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT TOP 1 * FROM PE_Author</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:param name="outputQty"/>
|
||||
<xsl:param name="authorType"/>
|
||||
<xsl:param name="displayType"/>
|
||||
<xsl:param name="imageHeight"/>
|
||||
<xsl:param name="imageWidth"/>
|
||||
<xsl:param name="bindStyle"/>
|
||||
<xsl:param name="contentLength"/>
|
||||
<xsl:param name="isElite"/>
|
||||
<xsl:param name="onTop"/>
|
||||
<xsl:param name="hits"/>
|
||||
<xsl:param name="usePage"/>
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">没有作者!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$usePage = 'false'">
|
||||
{PE.Label id="作者列表_<xsl:value-of select="$bindStyle"/>" displayType="<xsl:value-of select="$displayType" />" queryCond="SELECT TOP <xsl:value-of select="$outputQty"/> * FROM PE_Author WHERE Passed = 1
|
||||
<xsl:choose>
|
||||
<xsl:when test="$authorType=1">"
|
||||
AND Type='大陆作者'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=2">
|
||||
AND Type='港台作者'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=3">
|
||||
AND Type='海外作者'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=4">
|
||||
AND Type='本站特约'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=5">
|
||||
AND Type='其他作者'
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="$onTop = 'true'">
|
||||
AND onTop = 1
|
||||
</xsl:if>
|
||||
<xsl:if test="$isElite = 'true'">
|
||||
AND IsElite = 1
|
||||
</xsl:if>
|
||||
<xsl:if test="$hits != ''">
|
||||
AND Hits < <xsl:value-of select="$hits"/>
|
||||
</xsl:if>
|
||||
ORDER BY ID DESC" imageHeight="<xsl:value-of select="$imageHeight"/>" imageWidth="<xsl:value-of select="$imageWidth"/>" contentLength="<xsl:value-of select="$contentLength"/>" page="false" urlpage="false" /}
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
{PE.Label id="作者列表_<xsl:value-of select="$bindStyle"/>" queryCond="SELECT TOP @pagesize * FROM PE_Author WHERE Passed = 1
|
||||
<xsl:choose>
|
||||
<xsl:when test="$authorType=1">
|
||||
AND Type='大陆作者'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=2">
|
||||
AND Type='港台作者'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=3">
|
||||
AND Type='海外作者'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=4">
|
||||
AND Type='本站特约'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=5">
|
||||
AND Type='其他作者'
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="$onTop = 'true'">
|
||||
AND onTop = 1
|
||||
</xsl:if>
|
||||
<xsl:if test="$isElite = 'true'">
|
||||
AND IsElite = 1
|
||||
</xsl:if>
|
||||
<xsl:if test="$hits != ''">
|
||||
AND Hits < <xsl:value-of select="$hits"/>
|
||||
</xsl:if>
|
||||
AND ID NOT IN (SELECT TOP @startrow ID FROM PE_Author WHERE Passed = 1
|
||||
<xsl:choose>
|
||||
<xsl:when test="$authorType=1">
|
||||
AND Type='大陆作者'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=2">
|
||||
AND Type='港台作者'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=3">
|
||||
AND Type='海外作者'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=4">
|
||||
AND Type='本站特约'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=5">
|
||||
AND Type='其他作者'
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose> ORDER BY ID DESC)
|
||||
ORDER BY ID DESC" queryCount="SELECT COUNT (ID) FROM PE_Author WHERE Passed = 1
|
||||
<xsl:choose>
|
||||
<xsl:when test="$authorType=1">
|
||||
AND Type='大陆作者'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=2">
|
||||
AND Type='港台作者'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=3">
|
||||
AND Type='海外作者'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=4">
|
||||
AND Type='本站特约'
|
||||
</xsl:when>
|
||||
<xsl:when test="$authorType=5">
|
||||
AND Type='其他作者'
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="$onTop = 'true'">
|
||||
AND onTop = 1
|
||||
</xsl:if>
|
||||
<xsl:if test="$isElite = 'true'">
|
||||
AND IsElite = 1
|
||||
</xsl:if>
|
||||
<xsl:if test="$hits != ''">
|
||||
AND Hits < <xsl:value-of select="$hits"/>
|
||||
</xsl:if>" imageHeight="<xsl:value-of select="$imageHeight"/>" imageWidth="<xsl:value-of select="$imageWidth"/>" contentLength="<xsl:value-of select="$contentLength"/>" page="true" pagesize="<xsl:value-of select="$outputQty"/>" urlpage="true" /}
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
Reference in New Issue
Block a user