first commit

This commit is contained in:
2026-08-31 16:22:00 +08:00
commit e969a1e559
2665 changed files with 128795 additions and 0 deletions
@@ -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 &lt; <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 &lt; <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 &lt; <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>
@@ -0,0 +1,102 @@
<?xml version="1.0"?>
<root>
<LabelType>作者类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>
</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>authorName</name>
<datatype>supersql</datatype>
<default>集思广益</default>
<intro>作者名</intro>
</attributes>
<LabelSqlString><![CDATA[SELECT * FROM PE_Author WHERE Name = '@authorName' AND Passed = 1]]></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:param name="outputType" />
<xsl:output method="xml" />
<xsl:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="$outputType = 1">
<xsl:value-of select="ID"/>
</xsl:when>
<xsl:when test="$outputType = 2">
<xsl:value-of select="UserID"/>
</xsl:when>
<xsl:when test="$outputType = 3">
<xsl:value-of select="Type"/>
</xsl:when>
<xsl:when test="$outputType = 4">
<xsl:value-of select="Name"/>
</xsl:when>
<xsl:when test="$outputType = 5">
<xsl:value-of select="Hits"/>
</xsl:when>
<xsl:when test="$outputType = 6">
<xsl:value-of select="TemplateID"/>
</xsl:when>
<xsl:when test="$outputType = 7">
<xsl:choose>
<xsl:when test="Photo != ''">
<xsl:value-of select="Photo"/>
</xsl:when>
<xsl:otherwise>nopic.gif</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="$outputType = 8">
<xsl:value-of select="Intro"/>
</xsl:when>
<xsl:when test="$outputType = 9">
<xsl:value-of select="Address"/>
</xsl:when>
<xsl:when test="$outputType = 10">
<xsl:value-of select="Tel"/>
</xsl:when>
<xsl:when test="$outputType = 11">
<xsl:value-of select="Fax"/>
</xsl:when>
<xsl:when test="$outputType = 12">
<xsl:value-of select="Mail"/>
</xsl:when>
<xsl:when test="$outputType = 13">
<xsl:value-of select="Email"/>
</xsl:when>
<xsl:when test="$outputType = 14">
<xsl:value-of select="ZipCode"/>
</xsl:when>
<xsl:when test="$outputType = 15">
<xsl:value-of select="HomePage"/>
</xsl:when>
<xsl:when test="$outputType = 16">
<xsl:value-of select="Im"/>
</xsl:when>
<xsl:when test="$outputType = 17">
<xsl:choose>
<xsl:when test="Sex=1">男</xsl:when>
<xsl:otherwise>女</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="$outputType = 18">
<xsl:value-of select="pe:FormatDate(BirthDay,'yyyy-mm-dd')"/>
</xsl:when>
<xsl:when test="$outputType = 19">
<xsl:value-of select="Company"/>
</xsl:when>
<xsl:when test="$outputType = 20">
<xsl:value-of select="Department"/>
</xsl:when>
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<attributes>
<name>outputType</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>输出类型{作者ID:1,用户ID:2,类型:3,名称:4,点击数:5,模板:6,图片:7,介绍:8,地址:9,电话:10,传真:11,地址:12,邮件:13,邮编:14,主页:15,IM:16,性别:17,日期:18,公司:19,部门:20}</intro>
</attributes>
</root>
@@ -0,0 +1,95 @@
<?xml version="1.0"?>
<root>
<LabelType>作者类</LabelType>
<LabelIntro>数据源模式</LabelIntro>
<OutType>
</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>authorName</name>
<datatype>supersql</datatype>
<default>集思广益</default>
<intro>作者名</intro>
</attributes>
<LabelSqlString><![CDATA[SELECT * FROM PE_Author WHERE Name = '@authorName' AND Passed = 1]]></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="xml" />
<xsl:template match="/NewDataSet/Table">
<Root>
<AuthorID>
<xsl:value-of select="ID"/>
</AuthorID>
<UserID>
<xsl:value-of select="UserID"/>
</UserID>
<Type>
<xsl:value-of select="Type"/>
</Type>
<Name>
<xsl:value-of select="Name"/>
</Name>
<Hits>
<xsl:value-of select="Hits"/>
</Hits>
<TemplateID>
<xsl:value-of select="TemplateID"/>
</TemplateID>
<Photo>
<xsl:choose>
<xsl:when test="Photo != ''">
<xsl:value-of select="Photo"/>
</xsl:when>
<xsl:otherwise>nopic.gif</xsl:otherwise>
</xsl:choose>
</Photo>
<Intro>
<xsl:value-of select="pe:HtmlEncode(Intro)"/>
</Intro>
<Address>
<xsl:value-of select="Address"/>
</Address>
<Tel>
<xsl:value-of select="Tel"/>
</Tel>
<Fax>
<xsl:value-of select="Fax"/>
</Fax>
<Mail>
<xsl:value-of select="Mail"/>
</Mail>
<Email>
<xsl:value-of select="Email"/>
</Email>
<ZipCode>
<xsl:value-of select="ZipCode"/>
</ZipCode>
<HomePage>
<xsl:value-of select="HomePage"/>
</HomePage>
<Im>
<xsl:value-of select="Im"/>
</Im>
<Sex>
<xsl:choose>
<xsl:when test="Sex=1">男</xsl:when>
<xsl:otherwise>女</xsl:otherwise>
</xsl:choose>
</Sex>
<BirthDay>
<xsl:value-of select="pe:FormatDate(BirthDay,'yyyy-mm-dd')"/>
</BirthDay>
<Company>
<xsl:value-of select="Company"/>
</Company>
<Department>
<xsl:value-of select="Department"/>
</Department>
</Root>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>