⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 文章一列式栏目上下循环.config

📁 动易SiteFactory网上商店系统正式版动易SiteFactory网上商店系统正式版
💻 CONFIG
字号:
<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>
    <default>1</default>
    <intro>父栏目ID</intro>
  </attributes>
  <UsePage>True</UsePage>
  <LabelSqlString>SELECT Top @pagesize PE_Nodes.* FROM PE_Nodes WHERE NodeID NOT IN (SELECT TOP @startrow NodeID FROM PE_Nodes where ParentID = @parentid order by OrderID) and (ParentID = @parentid) order by OrderID</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="shownum"/>
<xsl:param name="titlelen"/>
<xsl:param name="showpropertytype"/>
<xsl:param name="showincludepic"/>
<xsl:param name="showauthor"/>
<xsl:param name="showdatetype"/>
<xsl:param name="showhits"/>
<xsl:param name="showhotsign"/>
<xsl:param name="shownewsign"/>
<xsl:param name="showtips"/>
<xsl:param name="showcommentlink"/>
<xsl:param name="opentype"/>
<xsl:param name="hits"/>
<xsl:param name="elitelevel"/>

<xsl:template match="/NewDataSet">
<xsl:choose>
<!-- 指定栏目没有子栏目 -->
<xsl:when test="count(Table) = 0">
<div class="class_title">
<span class="childclass_pic">
</span>
<xsl:value-of select="pe:GetNode($parentid,'name')" />
</div>
<div class="class_content">
<ul>
{PE.Label id="显示文章子栏目列表"  parentid="<xsl:value-of select="$parentid" />" arraynodeid="<xsl:value-of select="$parentid" />" shownum="<xsl:value-of select="$shownum" />" titlelen="<xsl:value-of select="$titlelen" />" showpropertytype="<xsl:value-of select="$showpropertytype" />" showincludepic="<xsl:value-of select="$showincludepic" />" showauthor="<xsl:value-of select="$showauthor" />" showdatetype="<xsl:value-of select="$showdatetype" />" showhits="<xsl:value-of select="$showhits" />" showhotsign="<xsl:value-of select="$showhotsign" />"  shownewsign="<xsl:value-of select="$shownewsign" />" showtips="<xsl:value-of select="$showtips" />" showcommentlink="<xsl:value-of select="$showcommentlink" />" opentype="<xsl:value-of select="$opentype" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" /}
</ul>
</div>
</xsl:when>
<!-- 一列式栏目上下循环样式开始 -->
<xsl:otherwise>
<xsl:for-each select="Table">
 {PE.Label id="显示文章一列式栏目上下循环" arraynodeid="<xsl:value-of select="arrChildID"/>" parentid="<xsl:value-of select="NodeID" />"  shownum="<xsl:value-of select="$shownum" />" titlelen="<xsl:value-of select="$titlelen" />" showpropertytype="<xsl:value-of select="$showpropertytype" />" showincludepic="<xsl:value-of select="$showincludepic" />" showauthor="<xsl:value-of select="$showauthor" />" showdatetype="<xsl:value-of select="$showdatetype" />" showhits="<xsl:value-of select="$showhits" />" showhotsign="<xsl:value-of select="$showhotsign" />"  shownewsign="<xsl:value-of select="$shownewsign" />" showtips="<xsl:value-of select="$showtips" />" showcommentlink="<xsl:value-of select="$showcommentlink" />" opentype="<xsl:value-of select="$opentype" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" /}
</xsl:for-each>
</xsl:otherwise>
<!-- 一列式栏目上下循环样式结束 -->
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
  <attributes>
    <name>shownum</name>
    <default>10</default>
    <intro>每栏目显示内容数</intro>
  </attributes>
  <attributes>
    <name>titlelen</name>
    <default>20</default>
    <intro>标题最多字符数</intro>
  </attributes>
  <attributes>
    <name>showpropertytype</name>
    <default>0</default>
    <intro>显示文章属性(固顶/推荐/普通)的方式</intro>
  </attributes>
  <attributes>
    <name>showincludepic</name>
    <default>false</default>
    <intro>是否显示“[图文]”字样</intro>
  </attributes>
  <attributes>
    <name>showauthor</name>
    <default>false</default>
    <intro>是否显示作者名</intro>
  </attributes>
  <attributes>
    <name>showdatetype</name>
    <default>mm-dd</default>
    <intro>日期显示方式</intro>
  </attributes>
  <attributes>
    <name>showhits</name>
    <default>false</default>
    <intro>是否显示点击数</intro>
  </attributes>
  <attributes>
    <name>showhotsign</name>
    <default>false</default>
    <intro>是否显示热门标志</intro>
  </attributes>
  <attributes>
    <name>shownewsign</name>
    <default>false</default>
    <intro>是否显示新内容标志</intro>
  </attributes>
  <attributes>
    <name>showtips</name>
    <default>false</default>
    <intro>是否显示作者、更新日期、点击数等浮动提示信息</intro>
  </attributes>
  <attributes>
    <name>showcommentlink</name>
    <default>false</default>
    <intro>是否显示评论链接</intro>
  </attributes>
  <attributes>
    <name>opentype</name>
    <default>_blank</default>
    <intro>打开方式</intro>
  </attributes>
  <attributes>
    <name>hits</name>
    <default>0</default>
    <intro>热门最小点击数</intro>
  </attributes>
  <attributes>
    <name>elitelevel</name>
    <default>0</default>
    <intro>推荐优先级</intro>
  </attributes>
</root>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -