first commit
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?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="2901" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>ouputQty</name>
|
||||
<datatype>sql.int</datatype>
|
||||
<default>12</default>
|
||||
<intro>输出数量</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT TOP @ouputQty PE_BG_Category.* FROM PE_BG_Category Order BY OrderID </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:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(NewDataSet/Table)=0">
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="NewDataSet/Table">
|
||||
<div class="channelBox">
|
||||
<div class="hd">
|
||||
<h3>
|
||||
<xsl:value-of select="CategoryName"/>
|
||||
</h3>
|
||||
<a class="more">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:InstallDir()"/>blog/Category.aspx?categoryId=<xsl:value-of select="CategoryID"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of select="CategoryName"/>
|
||||
</xsl:attribute>
|
||||
更多>></a>
|
||||
</div>
|
||||
<div class="bd">
|
||||
<div class="imgText clearFloat">
|
||||
{PE.Label id="博客图片列表" isLinkTitle="true" categoryId="<xsl:value-of select="CategoryID"/>" titleLength="20" contentLength="50" linkOpenType="_blank" listOrderType="1" ouputQty="1" imageLinkStyle="pic" displayTitle="true" displayContent="true" /}
|
||||
</div>
|
||||
<ul>
|
||||
{PE.Label id="文字博文列表" isShowNum="false" ouputQty="8" categoryId="<xsl:value-of select="CategoryID"/>" titleLength="35" linkOpenType="_blank" listOrderType="1" displayInputer="true" displayHits="false" inputerStyle="blogger" isElite="false" partitionNums="0" /}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
Reference in New Issue
Block a user