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

📄 内容信息列表.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>urltype</name>
    <default>0</default>
    <intro>链接地址类型</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>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;xsl:transform
 version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 xmlns:pe="labelproc"
 exclude-result-prefixes="pe"
&gt;
&lt;xsl:output method="html" /&gt;
&lt;!-- 定义参数 --&gt;
&lt;xsl:param name="parentid"/&gt;
&lt;xsl:param name="arrnodeid"/&gt;
&lt;xsl:param name="includechild"/&gt;
&lt;xsl:param name="specialid"/&gt;
&lt;xsl:param name="urltype"/&gt;
&lt;xsl:param name="shownum"/&gt;
&lt;xsl:param name="ishot"/&gt;
&lt;xsl:param name="iselite"/&gt;
&lt;xsl:param name="inputername"/&gt;
&lt;xsl:param name="datenum"/&gt;
&lt;xsl:param name="ordertype"/&gt;
&lt;xsl:param name="showtype"/&gt;
&lt;xsl:param name="titlelen"/&gt;
&lt;xsl:param name="contentlen"/&gt;
&lt;xsl:param name="shownodename"/&gt;
&lt;xsl:param name="showpropertytype"/&gt;
&lt;xsl:param name="showincludepic"/&gt;
&lt;xsl:param name="showauthor"/&gt;
&lt;xsl:param name="showdatetype"/&gt;
&lt;xsl:param name="showhits"/&gt;
&lt;xsl:param name="showhotsign"/&gt;
&lt;xsl:param name="shownewsign"/&gt;
&lt;xsl:param name="showtips"/&gt;
&lt;xsl:param name="showcommentlink"/&gt;
&lt;xsl:param name="usepage"/&gt;
&lt;xsl:param name="opentype"/&gt;
&lt;xsl:param name="cols"/&gt;
&lt;xsl:param name="hits"/&gt;
&lt;xsl:param name="elitelevel"/&gt;
&lt;xsl:param name="tablename"/&gt;
&lt;xsl:template match="/"&gt;
&lt;xsl:apply-templates select="NewDataSet/Table" /&gt;
&lt;/xsl:template&gt;
&lt;xsl:template match="NewDataSet/Table"&gt;

&lt;xsl:choose&gt;
	&lt;!-- 指定的栏目没有内容 --&gt;
	&lt;xsl:when test="count(/NewDataSet/Table) = 0"&gt;
			&lt;li&gt;
			指定的栏目还没内容!
			&lt;/li&gt;
	&lt;/xsl:when&gt;
	&lt;xsl:otherwise&gt;
		&lt;!-- 是否热门 --&gt;
		&lt;xsl:choose&gt;
			&lt;!-- 设置了热门,还必须设置热门的点击数,否则仍然是显示所有文章 --&gt;
			&lt;xsl:when test="$ishot='true'"&gt;
				&lt;!-- 是否推荐 --&gt;
				&lt;xsl:choose&gt;
					&lt;!-- 设置了推荐,还必须设置推荐的优先级,否则仍然是显示所有文章 --&gt;
					&lt;xsl:when test="$iselite='true'"&gt;
						&lt;!-- 是否包含子栏目 --&gt;
						&lt;xsl:choose&gt;
							&lt;xsl:when test="$includechild='true'"&gt;
								&lt;!-- 当arrnodeid为单个栏目ID,parentid=$arrnodeid,arrnodeid=0 --&gt;
								&lt;xsl:choose&gt;
									&lt;xsl:when test="pe:Convert2Int($arrnodeid)&amp;gt;0"&gt;
										{PE.Label id="内容信息列表_排序方式" parentid="&lt;xsl:value-of select="$arrnodeid" /&gt;" arrnodeid="0" includechild ="&lt;xsl:value-of select="$includechild" /&gt;" specialid="&lt;xsl:value-of select="$specialid" /&gt;" urltype="&lt;xsl:value-of select="$urltype" /&gt;" shownum="&lt;xsl:value-of select="$shownum" /&gt;" ishot="&lt;xsl:value-of select="$ishot" /&gt;" iselite="&lt;xsl:value-of select="$iselite" /&gt;" inputername="&lt;xsl:value-of select="$inputername" /&gt;" datenum="&lt;xsl:value-of select="$datenum" /&gt;" ordertype="&lt;xsl:value-of select="$ordertype" /&gt;" showtype="&lt;xsl:value-of select="$showtype" /&gt;" titlelen="&lt;xsl:value-of select="$titlelen" /&gt;" contentlen="&lt;xsl:value-of select="$contentlen" /&gt;" shownodename="&lt;xsl:value-of select="$shownodename" /&gt;" showpropertytype="&lt;xsl:value-of select="$showpropertytype" /&gt;" showincludepic="&lt;xsl:value-of select="$showincludepic" /&gt;" showauthor="&lt;xsl:value-of select="$showauthor" /&gt;" showdatetype="&lt;xsl:value-of select="$showdatetype" /&gt;" showhits="&lt;xsl:value-of select="$showhits" /&gt;" showhotsign="&lt;xsl:value-of select="$showhotsign" /&gt;" shownewsign="&lt;xsl:value-of select="$shownewsign" /&gt;" showtips="&lt;xsl:value-of select="$showtips" /&gt;" showcommentlink="&lt;xsl:value-of select="$showcommentlink" /&gt;" usepage="&lt;xsl:value-of select="$usepage" /&gt;" opentype="&lt;xsl:value-of select="$opentype" /&gt;" cols="&lt;xsl:value-of select="$cols" /&gt;" hits="&lt;xsl:value-of select="$hits" /&gt;" elitelevel="&lt;xsl:value-of select="$elitelevel" /&gt;" tablename="&lt;xsl:value-of select="$tablename" /&gt;" /}

									&lt;/xsl:when&gt;
									&lt;xsl:otherwise&gt;
										{PE.Label id="内容信息列表_排序方式" parentid="&lt;xsl:value-of select="$parentid" /&gt;" arrnodeid="&lt;xsl:value-of select="$arrnodeid" /&gt;" includechild ="&lt;xsl:value-of select="$includechild" /&gt;" specialid="&lt;xsl:value-of select="$specialid" /&gt;" urltype="&lt;xsl:value-of select="$urltype" /&gt;" shownum="&lt;xsl:value-of select="$shownum" /&gt;" ishot="&lt;xsl:value-of select="$ishot" /&gt;" iselite="&lt;xsl:value-of select="$iselite" /&gt;" inputername="&lt;xsl:value-of select="$inputername" /&gt;" datenum="&lt;xsl:value-of select="$datenum" /&gt;" ordertype="&lt;xsl:value-of select="$ordertype" /&gt;" showtype="&lt;xsl:value-of select="$showtype" /&gt;" titlelen="&lt;xsl:value-of select="$titlelen" /&gt;" contentlen="&lt;xsl:value-of select="$contentlen" /&gt;" shownodename="&lt;xsl:value-of select="$shownodename" /&gt;" showpropertytype="&lt;xsl:value-of select="$showpropertytype" /&gt;" showincludepic="&lt;xsl:value-of select="$showincludepic" /&gt;" showauthor="&lt;xsl:value-of select="$showauthor" /&gt;" showdatetype="&lt;xsl:value-of select="$showdatetype" /&gt;" showhits="&lt;xsl:value-of select="$showhits" /&gt;" showhotsign="&lt;xsl:value-of select="$showhotsign" /&gt;" shownewsign="&lt;xsl:value-of select="$shownewsign" /&gt;" showtips="&lt;xsl:value-of select="$showtips" /&gt;" showcommentlink="&lt;xsl:value-of select="$showcommentlink" /&gt;" usepage="&lt;xsl:value-of select="$usepage" /&gt;" opentype="&lt;xsl:value-of select="$opentype" /&gt;" cols="&lt;xsl:value-of select="$cols" /&gt;" hits="&lt;xsl:value-of select="$hits" /&gt;" elitelevel="&lt;xsl:value-of select="$elitelevel" /&gt;" tablename="&lt;xsl:value-of select="$tablename" /&gt;" /}

									&lt;/xsl:otherwise&gt;
								&lt;/xsl:choose&gt;
								&lt;!-- 判断arrnodeid为单个栏目ID结束 --&gt;

							&lt;/xsl:when&gt;
							&lt;xsl:otherwise&gt;
								{PE.Label id="内容信息列表_排序方式" parentid="&lt;xsl:value-of select="$parentid" /&gt;" arrnodeid="&lt;xsl:value-of select="$arrnodeid" /&gt;" includechild ="&lt;xsl:value-of select="$includechild" /&gt;" specialid="&lt;xsl:value-of select="$specialid" /&gt;" urltype="&lt;xsl:value-of select="$urltype" /&gt;" shownum="&lt;xsl:value-of select="$shownum" /&gt;" ishot="&lt;xsl:value-of select="$ishot" /&gt;" iselite="&lt;xsl:value-of select="$iselite" /&gt;" inputername="&lt;xsl:value-of select="$inputername" /&gt;" datenum="&lt;xsl:value-of select="$datenum" /&gt;" ordertype="&lt;xsl:value-of select="$ordertype" /&gt;" showtype="&lt;xsl:value-of select="$showtype" /&gt;" titlelen="&lt;xsl:value-of select="$titlelen" /&gt;" contentlen="&lt;xsl:value-of select="$contentlen" /&gt;" shownodename="&lt;xsl:value-of select="$shownodename" /&gt;" showpropertytype="&lt;xsl:value-of select="$showpropertytype" /&gt;" showincludepic="&lt;xsl:value-of select="$showincludepic" /&gt;" showauthor="&lt;xsl:value-of select="$showauthor" /&gt;" showdatetype="&lt;xsl:value-of select="$showdatetype" /&gt;" showhits="&lt;xsl:value-of select="$showhits" /&gt;" showhotsign="&lt;xsl:value-of select="$showhotsign" /&gt;" shownewsign="&lt;xsl:value-of select="$shownewsign" /&gt;" showtips="&lt;xsl:value-of select="$showtips" /&gt;" showcommentlink="&lt;xsl:value-of select="$showcommentlink" /&gt;" usepage="&lt;xsl:value-of select="$usepage" /&gt;" opentype="&lt;xsl:value-of select="$opentype" /&gt;" cols="&lt;xsl:value-of select="$cols" /&gt;" hits="&lt;xsl:value-of select="$hits" /&gt;" elitelevel="&lt;xsl:value-of select="$elitelevel" /&gt;" tablename="&lt;xsl:value-of select="$tablename" /&gt;" /}

							&lt;/xsl:otherwise&gt;
						&lt;/xsl:choose&gt;
						&lt;!-- 是否包含子栏目 --&gt;
					&lt;/xsl:when&gt;
					&lt;xsl:otherwise&gt;
						&lt;!-- 是否包含子栏目 --&gt;
						&lt;xsl:choose&gt;
							&lt;xsl:when test="$includechild='true'"&gt;
								&lt;!-- 当arrnodeid为单个栏目ID,parentid=$arrnodeid,arrnodeid=0 --&gt;
								&lt;xsl:choose&gt;
									&lt;xsl:when test="pe:Convert2Int($arrnodeid)&amp;gt;0"&gt;
										{PE.Label id="内容信息列表_排序方式" parentid="&lt;xsl:value-of select="$arrnodeid" /&gt;" arrnodeid="0" includechild ="&lt;xsl:value-of select="$includechild" /&gt;" specialid="&lt;xsl:value-of select="$specialid" /&gt;" urltype="&lt;xsl:value-of select="$urltype" /&gt;" shownum="&lt;xsl:value-of select="$shownum" /&gt;" ishot="&lt;xsl:value-of select="$ishot" /&gt;" iselite="&lt;xsl:value-of select="$iselite" /&gt;" inputername="&lt;xsl:value-of select="$inputername" /&gt;" datenum="&lt;xsl:value-of select="$datenum" /&gt;" ordertype="&lt;xsl:value-of select="$ordertype" /&gt;" showtype="&lt;xsl:value-of select="$showtype" /&gt;" titlelen="&lt;xsl:value-of select="$titlelen" /&gt;" contentlen="&lt;xsl:value-of select="$contentlen" /&gt;" shownodename="&lt;xsl:value-of select="$shownodename" /&gt;" showpropertytype="&lt;xsl:value-of select="$showpropertytype" /&gt;" showincludepic="&lt;xsl:value-of select="$showincludepic" /&gt;" showauthor="&lt;xsl:value-of select="$showauthor" /&gt;" showdatetype="&lt;xsl:value-of select="$showdatetype" /&gt;" showhits="&lt;xsl:value-of select="$showhits" /&gt;" showhotsign="&lt;xsl:value-of select="$showhotsign" /&gt;" shownewsign="&lt;xsl:value-of select="$shownewsign" /&gt;" showtips="&lt;xsl:value-of select="$showtips" /&gt;" showcommentlink="&lt;xsl:value-of select="$showcommentlink" /&gt;" usepage="&lt;xsl:value-of select="$usepage" /&gt;" opentype="&lt;xsl:value-of select="$opentype" /&gt;" cols="&lt;xsl:value-of select="$cols" /&gt;" hits="&lt;xsl:value-of select="$hits" /&gt;" elitelevel="0" tablename="&lt;xsl:value-of select="$tablename" /&gt;" /}

									&lt;/xsl:when&gt;
									&lt;xsl:otherwise&gt;
										{PE.Label id="内容信息列表_排序方式" parentid="&lt;xsl:value-of select="$parentid" /&gt;" arrnodeid="&lt;xsl:value-of select="$arrnodeid" /&gt;" includechild ="&lt;xsl:value-of select="$includechild" /&gt;" specialid="&lt;xsl:value-of select="$specialid" /&gt;" urltype="&lt;xsl:value-of select="$urltype" /&gt;" shownum="&lt;xsl:value-of select="$shownum" /&gt;" ishot="&lt;xsl:value-of select="$ishot" /&gt;" iselite="&lt;xsl:value-of select="$iselite" /&gt;" inputername="&lt;xsl:value-of select="$inputername" /&gt;" datenum="&lt;xsl:value-of select="$datenum" /&gt;" ordertype="&lt;xsl:value-of select="$ordertype" /&gt;" showtype="&lt;xsl:value-of select="$showtype" /&gt;" titlelen="&lt;xsl:value-of select="$titlelen" /&gt;" contentlen="&lt;xsl:value-of select="$contentlen" /&gt;" shownodename="&lt;xsl:value-of select="$shownodename" /&gt;" showpropertytype="&lt;xsl:value-of select="$showpropertytype" /&gt;" showincludepic="&lt;xsl:value-of select="$showincludepic" /&gt;" showauthor="&lt;xsl:value-of select="$showauthor" /&gt;" showdatetype="&lt;xsl:value-of select="$showdatetype" /&gt;" showhits="&lt;xsl:value-of select="$showhits" /&gt;" showhotsign="&lt;xsl:value-of select="$showhotsign" /&gt;" shownewsign="&lt;xsl:value-of select="$shownewsign" /&gt;" showtips="&lt;xsl:value-of select="$showtips" /&gt;" showcommentlink="&lt;xsl:value-of select="$showcommentlink" /&gt;" usepage="&lt;xsl:value-of select="$usepage" /&gt;" opentype="&lt;xsl:value-of select="$opentype" /&gt;" cols="&lt;xsl:value-of select="$cols" /&gt;" hits="&lt;xsl:value-of select="$hits" /&gt;" elitelevel="0" tablename="&lt;xsl:value-of select="$tablename" /&gt;" /}

									&lt;/xsl:otherwise&gt;
								&lt;/xsl:choose&gt;
								&lt;!-- 判断arrnodeid为单个栏目ID结束 --&gt;

							&lt;/xsl:when&gt;
							&lt;xsl:otherwise&gt;
								{PE.Label id="内容信息列表_排序方式" parentid="&lt;xsl:value-of select="$parentid" /&gt;" arrnodeid="&lt;xsl:value-of select="$arrnodeid" /&gt;" includechild ="&lt;xsl:value-of select="$includechild" /&gt;" specialid="&lt;xsl:value-of select="$specialid" /&gt;" urltype="&lt;xsl:value-of select="$urltype" /&gt;" shownum="&lt;xsl:value-of select="$shownum" /&gt;" ishot="&lt;xsl:value-of select="$ishot" /&gt;" iselite="&lt;xsl:value-of select="$iselite" /&gt;" inputername="&lt;xsl:value-of select="$inputername" /&gt;" datenum="&lt;xsl:value-of select="$datenum" /&gt;" ordertype="&lt;xsl:value-of select="$ordertype" /&gt;" showtype="&lt;xsl:value-of select="$showtype" /&gt;" titlelen="&lt;xsl:value-of select="$titlelen" /&gt;" contentlen="&lt;xsl:value-of select="$contentlen" /&gt;" shownodename="&lt;xsl:value-of select="$shownodename" /&gt;" showpropertytype="&lt;xsl:value-of select="$showpropertytype" /&gt;" showincludepic="&lt;xsl:value-of select="$showincludepic" /&gt;" showauthor="&lt;xsl:value-of select="$showauthor" /&gt;" showdatetype="&lt;xsl:value-of select="$showdatetype" /&gt;" showhits="&lt;xsl:value-of select="$showhits" /&gt;" showhotsign="&lt;xsl:value-of select="$showhotsign" /&gt;" shownewsign="&lt;xsl:value-of select="$shownewsign" /&gt;" showtips="&lt;xsl:value-of select="$showtips" /&gt;" showcommentlink="&lt;xsl:value-of select="$showcommentlink" /&gt;" usepage="&lt;xsl:value-of select="$usepage" /&gt;" opentype="&lt;xsl:value-of select="$opentype" /&gt;" cols="&lt;xsl:value-of select="$cols" /&gt;" hits="&lt;xsl:value-of select="$hits" /&gt;" elitelevel="0" tablename="&lt;xsl:value-of select="$tablename" /&gt;" /}

							&lt;/xsl:otherwise&gt;
						&lt;/xsl:choose&gt;
						&lt;!-- 是否包含子栏目 --&gt;

					&lt;/xsl:otherwise&gt;
				&lt;/xsl:choose&gt;
				&lt;!-- 是否推荐结束 --&gt;
			&lt;/xsl:when&gt;
			&lt;xsl:otherwise&gt;
				&lt;!-- 是否推荐 --&gt;
				&lt;xsl:choose&gt;
					&lt;!-- 设置了推荐,还必须设置推荐的优先级,否则仍然是显示所有文章 --&gt;
					&lt;xsl:when test="$iselite='true'"&gt;
						&lt;!-- 是否包含子栏目 --&gt;
						&lt;xsl:choose&gt;
							&lt;xsl:when test="$includechild='true'"&gt;
								&lt;!-- 当arrnodeid为单个栏目ID,parentid=$arrnodeid,arrnodeid=0 --&gt;
								&lt;xsl:choose&gt;
									&lt;xsl:when test="pe:Convert2Int($arrnodeid)&amp;gt;0"&gt;
										{PE.Label id="内容信息列表_排序方式" parentid="&lt;xsl:value-of select="$arrnodeid" /&gt;" arrnodeid="0" includechild ="&lt;xsl:value-of select="$includechild" /&gt;" specialid="&lt;xsl:value-of select="$specialid" /&gt;" urltype="&lt;xsl:value-of select="$urltype" /&gt;" shownum="&lt;xsl:value-of select="$shownum" /&gt;" ishot="&lt;xsl:value-of select="$ishot" /&gt;" iselite="&lt;xsl:value-of select="$iselite" /&gt;" inputername="&lt;xsl:value-of select="$inputername" /&gt;" datenum="&lt;xsl:value-of select="$datenum" /&gt;" ordertype="&lt;xsl:value-of select="$ordertype" /&gt;" showtype="&lt;xsl:value-of select="$showtype" /&gt;" titlelen="&lt;xsl:value-of select="$titlelen" /&gt;" contentlen="&lt;xsl:value-of select="$contentlen" /&gt;" shownodename="&lt;xsl:value-of select="$shownodename" /&gt;" showpropertytype="&lt;xsl:value-of select="$showpropertytype" /&gt;" showincludepic="&lt;xsl:value-of select="$showincludepic" /&gt;" showauthor="&lt;xsl:value-of select="$showauthor" /&gt;" showdatetype="&lt;xsl:value-of select="$showdatetype" /&gt;" showhits="&lt;xsl:value-of select="$showhits" /&gt;" showhotsign="&lt;xsl:value-of select="$showhotsign" /&gt;" shownewsign="&lt;xsl:value-of select="$shownewsign" /&gt;" showtips="&lt;xsl:value-of select="$showtips" /&gt;" showcommentlink="&lt;xsl:value-of select="$showcommentlink" /&gt;" usepage="&lt;xsl:value-of select="$usepage" /&gt;" opentype="&lt;xsl:value-of select="$opentype" /&gt;" cols="&lt;xsl:value-of select="$cols" /&gt;" hits="0" elitelevel="&lt;xsl:value-of select="$elitelevel" /&gt;" tablename="&lt;xsl:value-of select="$tablename" /&gt;" /}

									&lt;/xsl:when&gt;

⌨️ 快捷键说明

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