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

📄 幻灯片效果显示图片_排序方式.config

📁 动易SiteFactory网上商店系统正式版动易SiteFactory网上商店系统正式版
💻 CONFIG
📖 第 1 页 / 共 2 页
字号:
<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>
  <attributes>
    <name>arrnodeid</name>
    <default>0</default>
    <intro>栏目ID数组</intro>
  </attributes>
  <attributes>
    <name>includechild</name>
    <default>false</default>
    <intro>是否包含子栏目</intro>
  </attributes>
  <attributes>
    <name>specialid</name>
    <default>0</default>
    <intro>专题ID</intro>
  </attributes>
  <attributes>
    <name>shownum</name>
    <default>10</default>
    <intro>文章数</intro>
  </attributes>
  <attributes>
    <name>ishot</name>
    <default>false</default>
    <intro>是否是热门文章</intro>
  </attributes>
  <LabelSqlString>SELECT NodeID,NodeName FROM PE_Nodes WHERE NodeID=@parentid</LabelSqlString>
  <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="arrnodeid"/>
  <xsl:param name="includechild"/>
  <xsl:param name="specialid"/>
  <xsl:param name="urltype"/>
  <xsl:param name="shownum"/>
  <xsl:param name="ishot"/>
  <xsl:param name="iselite"/>
  <xsl:param name="datenum"/>
  <xsl:param name="ordertype"/>
  <xsl:param name="imgwidth"/>
  <xsl:param name="imgheight"/>
  <xsl:param name="titlelen"/>
  <xsl:param name="timeout"/>
  <xsl:param name="effectid"/>
  <xsl:param name="hits"/>
  <xsl:param name="elitelevel"/>
  <xsl:param name="tablename"/>
  <xsl:template match="/">
    <xsl:apply-templates select="NewDataSet/Table" />
  </xsl:template>
  <xsl:template match="NewDataSet/Table">

    <xsl:choose>
      <!-- 指定的栏目没有内容 -->
      <xsl:when test="count(/NewDataSet/Table) = 0">
        <li>
          指定的栏目还没内容!
        </li>
      </xsl:when>
      <xsl:otherwise>
	  		<!-- 是否商品模型 -->
			<xsl:choose>
			<xsl:when test="pe:IsShop($tablename)='true'">
				<!-- 设置排序方式 -->
				<xsl:choose>
				  <!-- 按商品ID降序 -->
				  <xsl:when test="$ordertype='1'">
					{PE.Label id="幻灯片效果显示商品图片_查询条件" parentid="<xsl:value-of select="$parentid" />" arrnodeid="<xsl:value-of select="$arrnodeid" />" includechild ="<xsl:value-of select="$includechild" />" specialid="<xsl:value-of select="$specialid" />" urltype="<xsl:value-of select="$urltype" />" shownum="<xsl:value-of select="$shownum" />" ishot="<xsl:value-of select="$ishot" />" iselite="<xsl:value-of select="$iselite" />"  datenum="<xsl:value-of select="$datenum" />" ordertype="<xsl:value-of select="$ordertype" />" imgwidth="<xsl:value-of select="$imgwidth" />"  imgheight="<xsl:value-of select="$imgheight" />" titlelen="<xsl:value-of select="$titlelen" />" timeout="<xsl:value-of select="$timeout" />" effectid="<xsl:value-of select="$effectid" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" sqlordertype=" T.ProductID DESC" sqlinnerordertype=" IT.ProductID DESC" /}

				  </xsl:when>

				  <!-- 按商品ID升序 -->
				  <xsl:when test="$ordertype='2'">
					{PE.Label id="幻灯片效果显示商品图片_查询条件" parentid="<xsl:value-of select="$parentid" />" arrnodeid="<xsl:value-of select="$arrnodeid" />" includechild ="<xsl:value-of select="$includechild" />" specialid="<xsl:value-of select="$specialid" />" urltype="<xsl:value-of select="$urltype" />" shownum="<xsl:value-of select="$shownum" />" ishot="<xsl:value-of select="$ishot" />" iselite="<xsl:value-of select="$iselite" />"  datenum="<xsl:value-of select="$datenum" />" ordertype="<xsl:value-of select="$ordertype" />" imgwidth="<xsl:value-of select="$imgwidth" />"  imgheight="<xsl:value-of select="$imgheight" />" titlelen="<xsl:value-of select="$titlelen" />" timeout="<xsl:value-of select="$timeout" />" effectid="<xsl:value-of select="$effectid" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" sqlordertype=" T.ProductID ASC" sqlinnerordertype=" IT.ProductID ASC" /}

				  </xsl:when>

				  <!-- 按更新时间降序 -->
				  <xsl:when test="$ordertype='3'">
					{PE.Label id="幻灯片效果显示商品图片_查询条件" parentid="<xsl:value-of select="$parentid" />" arrnodeid="<xsl:value-of select="$arrnodeid" />" includechild ="<xsl:value-of select="$includechild" />" specialid="<xsl:value-of select="$specialid" />" urltype="<xsl:value-of select="$urltype" />" shownum="<xsl:value-of select="$shownum" />" ishot="<xsl:value-of select="$ishot" />" iselite="<xsl:value-of select="$iselite" />"  datenum="<xsl:value-of select="$datenum" />" ordertype="<xsl:value-of select="$ordertype" />" imgwidth="<xsl:value-of select="$imgwidth" />"  imgheight="<xsl:value-of select="$imgheight" />" titlelen="<xsl:value-of select="$titlelen" />" timeout="<xsl:value-of select="$timeout" />" effectid="<xsl:value-of select="$effectid" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" sqlordertype=" C.UpdateTime DESC" sqlinnerordertype=" IC.UpdateTime DESC" /}

				  </xsl:when>

				  <!-- 按更新时间升序 -->
				  <xsl:when test="$ordertype='4'">
					{PE.Label id="幻灯片效果显示商品图片_查询条件" parentid="<xsl:value-of select="$parentid" />" arrnodeid="<xsl:value-of select="$arrnodeid" />" includechild ="<xsl:value-of select="$includechild" />" specialid="<xsl:value-of select="$specialid" />" urltype="<xsl:value-of select="$urltype" />" shownum="<xsl:value-of select="$shownum" />" ishot="<xsl:value-of select="$ishot" />" iselite="<xsl:value-of select="$iselite" />"  datenum="<xsl:value-of select="$datenum" />" ordertype="<xsl:value-of select="$ordertype" />" imgwidth="<xsl:value-of select="$imgwidth" />"  imgheight="<xsl:value-of select="$imgheight" />" titlelen="<xsl:value-of select="$titlelen" />" timeout="<xsl:value-of select="$timeout" />" effectid="<xsl:value-of select="$effectid" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" sqlordertype=" C.UpdateTime ASC" sqlinnerordertype=" IC.UpdateTime ASC" /}

				  </xsl:when>

				  <!-- 按点击数降序 -->
				  <xsl:when test="$ordertype='5'">
					{PE.Label id="幻灯片效果显示商品图片_查询条件" parentid="<xsl:value-of select="$parentid" />" arrnodeid="<xsl:value-of select="$arrnodeid" />" includechild ="<xsl:value-of select="$includechild" />" specialid="<xsl:value-of select="$specialid" />" urltype="<xsl:value-of select="$urltype" />" shownum="<xsl:value-of select="$shownum" />" ishot="<xsl:value-of select="$ishot" />" iselite="<xsl:value-of select="$iselite" />"  datenum="<xsl:value-of select="$datenum" />" ordertype="<xsl:value-of select="$ordertype" />" imgwidth="<xsl:value-of select="$imgwidth" />"  imgheight="<xsl:value-of select="$imgheight" />" titlelen="<xsl:value-of select="$titlelen" />" timeout="<xsl:value-of select="$timeout" />" effectid="<xsl:value-of select="$effectid" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" sqlordertype=" C.Hits DESC" sqlinnerordertype=" IC.Hits DESC" /}

				  </xsl:when>

				  <!-- 按点击数升序 -->
				  <xsl:when test="$ordertype='6'">
					{PE.Label id="幻灯片效果显示商品图片_查询条件" parentid="<xsl:value-of select="$parentid" />" arrnodeid="<xsl:value-of select="$arrnodeid" />" includechild ="<xsl:value-of select="$includechild" />" specialid="<xsl:value-of select="$specialid" />" urltype="<xsl:value-of select="$urltype" />" shownum="<xsl:value-of select="$shownum" />" ishot="<xsl:value-of select="$ishot" />" iselite="<xsl:value-of select="$iselite" />"  datenum="<xsl:value-of select="$datenum" />" ordertype="<xsl:value-of select="$ordertype" />" imgwidth="<xsl:value-of select="$imgwidth" />"  imgheight="<xsl:value-of select="$imgheight" />" titlelen="<xsl:value-of select="$titlelen" />" timeout="<xsl:value-of select="$timeout" />" effectid="<xsl:value-of select="$effectid" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" sqlordertype=" C.Hits ASC" sqlinnerordertype=" IC.Hits ASC" /}

				  </xsl:when>

				  <!-- 按评论数降序 -->
				  <xsl:when test="$ordertype='7'">
					{PE.Label id="幻灯片效果显示商品图片_查询条件" parentid="<xsl:value-of select="$parentid" />" arrnodeid="<xsl:value-of select="$arrnodeid" />" includechild ="<xsl:value-of select="$includechild" />" specialid="<xsl:value-of select="$specialid" />" urltype="<xsl:value-of select="$urltype" />" shownum="<xsl:value-of select="$shownum" />" ishot="<xsl:value-of select="$ishot" />" iselite="<xsl:value-of select="$iselite" />"  datenum="<xsl:value-of select="$datenum" />" ordertype="<xsl:value-of select="$ordertype" />" imgwidth="<xsl:value-of select="$imgwidth" />"  imgheight="<xsl:value-of select="$imgheight" />" titlelen="<xsl:value-of select="$titlelen" />" timeout="<xsl:value-of select="$timeout" />" effectid="<xsl:value-of select="$effectid" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />"  sqlordertype=" C.CommentAudited DESC" sqlinnerordertype=" IC.CommentAudited DESC" /}

				  </xsl:when>

				  <!-- 按评论数升序 -->
				  <xsl:when test="$ordertype='8'">
					{PE.Label id="幻灯片效果显示商品图片_查询条件" parentid="<xsl:value-of select="$parentid" />" arrnodeid="<xsl:value-of select="$arrnodeid" />" includechild ="<xsl:value-of select="$includechild" />" specialid="<xsl:value-of select="$specialid" />" urltype="<xsl:value-of select="$urltype" />" shownum="<xsl:value-of select="$shownum" />" ishot="<xsl:value-of select="$ishot" />" iselite="<xsl:value-of select="$iselite" />"  datenum="<xsl:value-of select="$datenum" />" ordertype="<xsl:value-of select="$ordertype" />" imgwidth="<xsl:value-of select="$imgwidth" />"  imgheight="<xsl:value-of select="$imgheight" />" titlelen="<xsl:value-of select="$titlelen" />" timeout="<xsl:value-of select="$timeout" />" effectid="<xsl:value-of select="$effectid" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />"  sqlordertype=" C.CommentAudited ASC" sqlinnerordertype=" IC.CommentAudited ASC" /}

⌨️ 快捷键说明

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