📄 图片栏目图片列表标签.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>shownum</name>
<default>8</default>
<intro>显示个数</intro>
</attributes>
<attributes>
<name>border</name>
<default>0</default>
<intro>图片边框</intro>
</attributes>
<attributes>
<name>titlelen</name>
<default>10</default>
<intro>标题字符数</intro>
</attributes>
<attributes>
<name>parentid</name>
<default>0</default>
<intro>父栏目ID</intro>
</attributes>
<LabelSqlString><![CDATA[SELECT TOP @shownum C.GeneralID,C.NodeID,C.Title,C.UpdateTime,C.DefaultPicUrl,N.NodeName,T.* FROM (PE_CommonModel C INNER JOIN PE_Nodes N ON C.NodeID=N.NodeID) INNER JOIN PE_U_Photo T ON C.GeneralID=T.ID WHERE (N.NodeID=@parentid OR N.ParentId=@parentid) AND C.TableName='PE_U_Photo' AND C.Status=99 AND C.DefaultPicUrl<>'' ORDER BY C.UpdateTime DESC ]]></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="shownum" />
<xsl:param name="titlelen" />
<xsl:param name="border" />
<xsl:template match="/">
<xsl:if test="count(/NewDataSet/Table)=0" >
<!-- 图片及链接开始 -->
<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="pe:UpLoadDir()" />nopic.gif
<!-- 图片属性 -->
</xsl:attribute>
<xsl:attribute name="alt">
该栏目没有图片
</xsl:attribute>
<xsl:attribute name="border">0</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 disable-output-escaping="yes" select="pe:GetNode($parentid,'name')" />]
</a>
</div>
<!-- 标题文字及链接结束 -->
</xsl:if>
<xsl:for-each select="/NewDataSet/Table">
<!-- 图片及链接开始 -->
<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:choose>
<xsl:when test="DefaultPicUrl !=''">
<xsl:if test="pe:IsStartWithhttp(DefaultPicUrl)='false'">
<xsl:value-of select="pe:UpLoadDir()"/>
</xsl:if>
<xsl:value-of select="DefaultPicUrl"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:UpLoadDir()"/>nopic.gif
</xsl:otherwise>
</xsl:choose>
<!-- 图片属性 -->
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="pe:CutText(pe:EncodeText(Title,'htmlencode'),$titlelen,'...')"/>
</xsl:attribute>
<xsl:attribute name="border">0</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 disable-output-escaping="yes" select="pe:GetNode($parentid,'name')" />]
</a>
</div>
<!-- 标题文字及链接结束 -->
</xsl:for-each>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
</root>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -