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

📄 显示图片一列式栏目列表.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>
  <LabelSqlString><![CDATA[SELECT TOP @shownum C.*,P.* FROM PE_CommonModel C INNER JOIN PE_U_Photo P ON C.GeneralID=P.ID WHERE C.NodeID in (@arraynodeid) AND C.TableName='PE_U_Photo' AND C.Status=99 order by C.UpdateTime
]]></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="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:for-each select="Table">
<xsl:if test="position()=1">

<div class="pe_u_thumb">            
                        <a> 
                           <xsl:attribute name="href">
                           <xsl:value-of select="pe:GetNodePath('true',$parentid)"/>
</xsl:attribute>
                           <xsl:element name="img">
                           <xsl:attribute name="src">
                           <xsl:value-of select="DefaultPicUrl"/>
</xsl:attribute>
                           <xsl:attribute name="border">0</xsl:attribute>
                           <xsl:attribute name="alt">
<xsl:value-of select="pe:GetNode($parentid,'name')"/>
                           </xsl:attribute>
                           </xsl:element>
                        </a>
</div>
<div class="pe_u_thumb_title">
                     [<a> 
                    <xsl:attribute name="href">
                    <xsl:value-of select="pe:GetNodePath('true',$parentid)"/>

</xsl:attribute>
    <xsl:value-of select="pe:GetNode($parentid,'name')"/>
                    </a>]
</div>
</xsl:if>

<div class="pe_u_thumb_list">
		<xsl:choose>
		<xsl:when test="$showpropertytype='0'">
		</xsl:when>
		<xsl:otherwise>
			<xsl:choose>
				<xsl:when test="pe:Convert2Int($showpropertytype)&gt;0">
					<xsl:choose>
						<xsl:when test="Hits>pe:HitsOfHot()">
							<xsl:element name="img">
							<xsl:attribute name="src">
							<xsl:value-of select="pe:InstallDir()" />images/ontop
							<xsl:value-of select="$showpropertytype" />.gif
							</xsl:attribute>
							<xsl:attribute name="alt">热门<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
</xsl:attribute>
							</xsl:element>
						</xsl:when>
						<xsl:when test="EliteLevel>$elitelevel">
							<xsl:element name="img">
							<xsl:attribute name="src">
							<xsl:value-of select="pe:InstallDir()" />images/elite
							<xsl:value-of select="$showpropertytype" />.gif
							</xsl:attribute>
							<xsl:attribute name="alt">推荐<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
</xsl:attribute>
							</xsl:element>
						</xsl:when>
						<xsl:otherwise>
							<xsl:element name="img">
							<xsl:attribute name="src">
							<xsl:value-of select="pe:InstallDir()" />images/common
							<xsl:value-of select="$showpropertytype" />.gif
							</xsl:attribute>
							<xsl:attribute name="alt">普通<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
</xsl:attribute>
							</xsl:element>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:element name="img">
					<xsl:attribute name="src">
					<xsl:value-of select="pe:InstallDir()" />images/
					<xsl:value-of select="$showpropertytype" />
					</xsl:attribute>
					<xsl:attribute name="alt">普通<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
</xsl:attribute>
					</xsl:element>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:otherwise>
		</xsl:choose>
		<!-- 判断输出前缀图标结束 -->

		<!-- 输出文章标题开始 -->
		<a>
		<xsl:attribute name="href">
		<xsl:value-of select="pe:GetInfoPath(GeneralID)" />
		</xsl:attribute>
		<xsl:choose>
		<xsl:when test="$opentype='_blank'">
		<xsl:attribute name="target">_blank</xsl:attribute>
		</xsl:when>
		<xsl:when test="$opentype='_parent'">
		<xsl:attribute name="target">_parent</xsl:attribute>
		</xsl:when>
		<xsl:when test="$opentype='_top'">
		<xsl:attribute name="target">_top</xsl:attribute>
		</xsl:when>
		<xsl:otherwise>
		<xsl:attribute name="target">_self</xsl:attribute>
		</xsl:otherwise>
		</xsl:choose>
		<!-- 判断是否输出tips -->
		<xsl:if test="$showtips='true'">
		<xsl:attribute name="title">作者:<xsl:value-of select="Inputer"/>
		<xsl:value-of select="'&#xD;'" />发表时间:<xsl:value-of select="pe:FormatDate(UpdateTime, 'yy年mm月dd日')" />
		<xsl:value-of select="'&#xD;'" />点击数:<xsl:value-of select="Hits"/>
		</xsl:attribute>
		</xsl:if>
		<xsl:value-of disable-output-escaping="yes" select="pe:CutText(Title,$titlelen,'…')" />
		</a>
		<!-- 输出文章标题结束 -->



		<!-- 输出文章点击数开始 -->
		<xsl:if test="$showhits='true'">
		(<xsl:value-of select="Hits"/>)
		</xsl:if>
		<!-- 输出文章点击数结束 -->

		<!-- 输出“[图文]”字样开始 -->
		<xsl:if test="$showincludepic='true'">
		<xsl:if test="IncludePic !='无'"><xsl:value-of select="IncludePic"/></xsl:if>
		</xsl:if>
		<!-- 输出“[图文]”结束 -->

		<!-- 输出文章作者开始 -->
		<xsl:if test="$showauthor='true'">
		<xsl:value-of select="Inputer"/>
		</xsl:if>
		<!-- 输出文章作者结束 -->
		<!-- 输出文章日期开始 -->
		<xsl:if test="$showdatetype!='0'">
		 (<xsl:value-of select="pe:FormatDate(UpdateTime, $showdatetype)" />)
		</xsl:if>
		<!-- 输出文章日期结束 -->
		<!-- 判断输出热门标记开始 -->
		<xsl:if test="$showhotsign='true'">
		<xsl:if test="Hits>pe:HitsOfHot()">
		<img src="{pe:InstallDir()}images/hot.gif" />
		</xsl:if>
		</xsl:if>
		<!-- 输出热门标记结束 -->
		<!-- 判断输出最新标记开始 -->
		<xsl:if test="$shownewsign='true'">
		<xsl:if test="2>pe:TimeSpan(UpdateTime,pe:TimeNow())">
		<img src="{pe:InstallDir()}images/new.gif" />
		</xsl:if>
		</xsl:if>
		<!-- 输出最新标记结束 -->

		<!-- 判断输出评论链接开始 -->
		<!-- 输出评论链接结束 -->
</div>

</xsl:for-each>
<!-- 一列式栏目列表样式结束 -->
</xsl:template>
</xsl:transform>]]></LabelTemplate>
  <attributes>
    <name>shownum</name>
    <default>10</default>
    <intro>显示个数</intro>
  </attributes>
  <attributes>
    <name>arraynodeid</name>
    <default>1</default>
    <intro>栏目ID</intro>
  </attributes>
  <attributes>
    <name>parentid</name>
    <default>0</default>
    <intro>父栏目ID</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 + -