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,121 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2915" compatibleVersion="" />
<attributes>
<name>ouputQty</name>
<datatype>sql.int</datatype>
<default>10</default>
<intro>输出数量</intro>
</attributes>
<IsXsltSql>true</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString><![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">
<!--要使用上一步定义的自定义参数,要作为XSLT参数使用,务必要在这里声明。如:<xsl:param name="myPara" />.引用该参数:$myPara -->
<xsl:output method="xml" />
<xsl:param name="listOrderType"/>
<xsl:template match="/">
<!--请按提示编辑,保持该模板结构的正确性-->
<root>
<sql>
SELECT TOP @ouputQty PE_BG_log.* FROM PE_BG_log WHERE State=1 AND IndexState=2
<xsl:choose>
<xsl:when test="$listOrderType!=''">
<!--点击数升序-->
<xsl:if test="$listOrderType=1">
ORDER BY Hits ASC
</xsl:if>
<!--月点击数降序-->
<xsl:if test="$listOrderType=2">
ORDER BY MonthHits DESC
</xsl:if>
<!--周点击数降序-->
<xsl:if test="$listOrderType=3">
ORDER BY WeekHits DESC
</xsl:if>
<!--日点击数降序-->
<xsl:if test="$listOrderType=4">
ORDER BY DayHits DESC
</xsl:if>
<!--推荐等级降序-->
<xsl:if test="$listOrderType=5">
ORDER BY EliteLevel DESC
</xsl:if>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</sql>
<sqlpage>
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</sqlpage>
<countsql>
<!--请在这里编写你的分页SQL语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></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="ouputQty" />
<xsl:param name="titleLength" />
<xsl:param name="linkOpenType" />
<xsl:param name="contentLength" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(NewDataSet/Table)=0">
<li>暂时没有信息!</li>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="NewDataSet/Table">
<h4>
<a> <xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/Item.aspx?LogId=<xsl:value-of select="LogID" />&amp;ID=<xsl:value-of select="BlogID" />
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'...')"/>
</a>
</h4>
<p> <xsl:value-of select="pe:CutText(pe:RemoveHtml(Content),$contentLength,'...')"/> </p>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>10</default>
<intro>标题截取长度</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>_blank</default>
<intro>链接打开方式</intro>
</attributes>
<attributes>
<name>listOrderType</name>
<datatype>int</datatype>
<default>1</default>
<intro>排序类型 1 点击数 2 月点击数 3 周点击数 4 日点击数 5 推荐级别</intro>
</attributes>
<attributes>
<name>contentLength</name>
<datatype>int</datatype>
<default>200</default>
<intro>内容长度</intro>
</attributes>
</root>