📄 带图片内容列表_排序方式.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>
<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="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="contentlen"/>
<xsl:param name="showtips"/>
<xsl:param name="urltype"/>
<xsl:param name="cols"/>
<xsl:param name="hits"/>
<xsl:param name="elitelevel"/>
<xsl:param name="tablename"/>
<xsl:param name="picurlfieldname"/>
<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" />" 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" />" contentlen="<xsl:value-of select="$contentlen" />" showtips="<xsl:value-of select="$showtips" />" urltype="<xsl:value-of select="$urltype" />" cols="<xsl:value-of select="$cols" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" picurlfieldname="<xsl:value-of select="$picurlfieldname" />" 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" />" 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" />" contentlen="<xsl:value-of select="$contentlen" />" showtips="<xsl:value-of select="$showtips" />" urltype="<xsl:value-of select="$urltype" />" cols="<xsl:value-of select="$cols" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" picurlfieldname="<xsl:value-of select="$picurlfieldname" />" 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" />" 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" />" contentlen="<xsl:value-of select="$contentlen" />" showtips="<xsl:value-of select="$showtips" />" urltype="<xsl:value-of select="$urltype" />" cols="<xsl:value-of select="$cols" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" picurlfieldname="<xsl:value-of select="$picurlfieldname" />" 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" />" 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" />" contentlen="<xsl:value-of select="$contentlen" />" showtips="<xsl:value-of select="$showtips" />" urltype="<xsl:value-of select="$urltype" />" cols="<xsl:value-of select="$cols" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" picurlfieldname="<xsl:value-of select="$picurlfieldname" />" 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" />" 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" />" contentlen="<xsl:value-of select="$contentlen" />" showtips="<xsl:value-of select="$showtips" />" urltype="<xsl:value-of select="$urltype" />" cols="<xsl:value-of select="$cols" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" picurlfieldname="<xsl:value-of select="$picurlfieldname" />" 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" />" 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" />" contentlen="<xsl:value-of select="$contentlen" />" showtips="<xsl:value-of select="$showtips" />" urltype="<xsl:value-of select="$urltype" />" cols="<xsl:value-of select="$cols" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" picurlfieldname="<xsl:value-of select="$picurlfieldname" />" 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" />" 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" />" contentlen="<xsl:value-of select="$contentlen" />" showtips="<xsl:value-of select="$showtips" />" urltype="<xsl:value-of select="$urltype" />" cols="<xsl:value-of select="$cols" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" picurlfieldname="<xsl:value-of select="$picurlfieldname" />" 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" />" 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" />" contentlen="<xsl:value-of select="$contentlen" />" showtips="<xsl:value-of select="$showtips" />" urltype="<xsl:value-of select="$urltype" />" cols="<xsl:value-of select="$cols" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" picurlfieldname="<xsl:value-of select="$picurlfieldname" />" sqlordertype=" C.CommentAudited ASC" sqlinnerordertype=" IC.CommentAudited ASC" /}
</xsl:when>
<xsl:otherwise>
{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" />" 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" />" contentlen="<xsl:value-of select="$contentlen" />" showtips="<xsl:value-of select="$showtips" />" urltype="<xsl:value-of select="$urltype" />" cols="<xsl:value-of select="$cols" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" picurlfieldname="<xsl:value-of select="$picurlfieldname" />" sqlordertype=" C.UpdateTime DESC" sqlinnerordertype=" IC.UpdateTime DESC" /}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -