first commit
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>博客类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>True</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="2910" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>打开方式:默认为原窗口打开</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>listOrderType</name>
|
||||
<datatype>int</datatype>
|
||||
<default>1</default>
|
||||
<intro>排序方式:1排序ID排序、2按类别ID排序(升序)、3按类别ID排序(降序)</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">
|
||||
<xsl:param name="listOrderType" />
|
||||
<xsl:output method="xml" />
|
||||
<xsl:template match="/">
|
||||
<root>
|
||||
<sql>
|
||||
SELECT TOP @outputQty * FROM PE_BG_Category
|
||||
<xsl:choose>
|
||||
<xsl:when test="$listOrderType=1"> ORDER BY OrderID ASC</xsl:when>
|
||||
<xsl:when test="$listOrderType=2"> ORDER BY CategoryID ASC</xsl:when>
|
||||
<xsl:when test="$listOrderType=3"> ORDER BY CategoryID DESC</xsl:when>
|
||||
<xsl:otherwise> ORDER BY OrderID ASC</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</sql>
|
||||
<sqlpage>
|
||||
</sqlpage>
|
||||
<countsql>
|
||||
</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="linkOpenType" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="categoryId" />
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<a href="{pe:InstallDir()}Blog/index.aspx">博客首页</a>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<a href="{pe:InstallDir()}Blog/Category.aspx?categoryId={CategoryID}" target="{$linkOpenType}">
|
||||
<xsl:value-of select="pe:CutText(CategoryName,$titleLength,'')"/>
|
||||
</a>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>15</default>
|
||||
<intro>显示栏目数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>8</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>categoryId</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>栏目ID:默认为博客首页</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
Reference in New Issue
Block a user