first commit
This commit is contained in:
@@ -0,0 +1,114 @@
|
||||
<root>
|
||||
<LabelType>政府标签</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<CacheTime>0</CacheTime>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>parentId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>父栏目ID</intro>
|
||||
</attributes>
|
||||
<UsePage>
|
||||
<attributes>
|
||||
<name>nodeArray</name>
|
||||
<default>1</default>
|
||||
<intro>栏目数组</intro>
|
||||
</attributes>
|
||||
</UsePage>
|
||||
<LabelSqlString>SELECT TOP 1 * FROM PE_Nodes WHERE NodeID = @parentId</LabelSqlString>
|
||||
<LabelSqlCount>select count(*) from PE_Nodes where ParentID = @parentid</LabelSqlCount>
|
||||
<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="parentId" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="displayDataTime" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:param name="hits" />
|
||||
<xsl:param name="eliteLevel" />
|
||||
<xsl:param name="tableName" />
|
||||
<xsl:template match="/NewDataSet">
|
||||
<div class="childclasslist_box">
|
||||
<div class="c_article_list">
|
||||
<dl>
|
||||
<dt>
|
||||
<ul>
|
||||
<li>
|
||||
<span>
|
||||
<a>
|
||||
<xsl:value-of select="pe:GetNode($parentId,'name')"/>
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(Table) = 0">
|
||||
<li>本栏尚无内容!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
{PE.DataSource id="InfoList" datasource="显示文章栏目循环列表信息_分页" urlpage="true" page="true" pagesize="10" pagemain="true" nodeArray="<xsl:value-of select="Table/arrChildID"/>" parentId="<xsl:value-of select="$parentId"/>" titleLength="<xsl:value-of select="$titleLength"/>" hits="<xsl:value-of select="$hits"/>" eliteLevel="<xsl:value-of select="$eliteLevel"/>" tableName="<xsl:value-of select="$tableName"/>" linkOpenType="<xsl:value-of select="$linkOpenType"/>" xslt="true" /}
|
||||
{PE.Repeat id="InfoList" loop="1000"}<li>
|
||||
{PE.field id="InfoList" fieldname="IncludePic" /}
|
||||
[{PE.field id="InfoList" fieldname="UpdateTime" /}]
|
||||
{PE.field id="InfoList" fieldname="InfoPath" /}
|
||||
</li>
|
||||
{/PE.Repeat}
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]>
|
||||
</LabelTemplate>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>10</default>
|
||||
<intro>每栏目显示文章数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>20</default>
|
||||
<intro>标题最多字符数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayDataTime</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>mm-dd</default>
|
||||
<intro>日期显示方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>2</default>
|
||||
<intro>内容链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>hits</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>热门最小点击数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>eliteLevel</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>推荐优先级</intro>
|
||||
</attributes>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
Reference in New Issue
Block a user