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,116 @@
<?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="2523" compatibleVersion="" />
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP @outputQty * FROM PE_BG_UserCategory WHERE BlogID=@blogId ORDER BY OrderID ASC</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="blogId" />
<xsl:param name="categoryId" />
<xsl:param name="type" />
<xsl:param name="titleLength"/>
<xsl:output method="html" />
<xsl:variable name="categoryCount" select="count(/NewDataSet/Table)"/>
<xsl:template match="/">
<li>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="$type=0">
<xsl:choose>
<xsl:when test="$categoryId=0">
current
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/UserCategory.aspx?id=<xsl:value-of select="$blogId" />
</xsl:attribute>
<xsl:attribute name="title">
</xsl:attribute>
全部博文
</a>
<span>
({PE.Label id="获取所有栏目博文数" username="{PE.Label id="获取博主用户名" blogId="<xsl:value-of select="$blogId"/>" cachetime="17280" cacheid="<xsl:value-of select="$blogId"/>"/}" BlogID="<xsl:value-of select="$blogId" />" /})
</span>
</li>
<xsl:for-each select="NewDataSet/Table">
<li>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="$categoryId=UserCategoryID">
current
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="$categoryCount = position()">
<xsl:attribute name="style">border-bottom:1px dashed #CCCCCC;</xsl:attribute>
</xsl:if>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/UserCategory.aspx?id=<xsl:value-of select="$blogId" />&amp;categoryId=<xsl:value-of select="UserCategoryID"/>
</xsl:attribute>
<xsl:attribute name="title">
</xsl:attribute>
<xsl:value-of select="pe:CutText(CategoryName,$titleLength,'')"/>
</a>
<span>
({PE.Label id="获取栏目博文数" username="{PE.Label id="获取博主用户名" blogId="<xsl:value-of select="$blogId" />" cachetime="17280" cacheid="<xsl:value-of select="$blogId" />"/}" blogId="<xsl:value-of select="$blogId" />" categoryId="<xsl:value-of select="UserCategoryID"/>" /})
</span>
</li>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>blogId</name>
<datatype>sql.int</datatype>
<default>
</default>
<intro>博客ID</intro>
</attributes>
<attributes>
<name>categoryId</name>
<datatype>string</datatype>
<default>
</default>
<intro>分类ID</intro>
</attributes>
<attributes>
<name>outputQty</name>
<datatype>supersql</datatype>
<default>10</default>
<intro>输出数量</intro>
</attributes>
<attributes>
<name>type</name>
<datatype>int</datatype>
<default>
</default>
<intro>类型</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>24</default>
<intro>标题长度</intro>
</attributes>
</root>