📄 显示多模型内容信息列表_普通式.config
字号:
<root>
<LabelType>列表标签</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<CacheTime>0</CacheTime>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString>@strsql</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="inputername"/>
<xsl:param name="datenum"/>
<xsl:param name="ordertype"/>
<xsl:param name="showtype"/>
<xsl:param name="titlelen"/>
<xsl:param name="shownodename"/>
<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="usepage"/>
<xsl:param name="opentype"/>
<xsl:param name="cols"/>
<xsl:param name="hits"/>
<xsl:param name="elitelevel"/>
<xsl:param name="strsql"/>
<xsl:param name="tr_value"/>
<xsl:template match="/">
<xsl:apply-templates select="NewDataSet" />
</xsl:template>
<xsl:template match="/NewDataSet">
<xsl:for-each select="Table">
<li>
<xsl:choose>
<xsl:when test="$showpropertytype='0'">
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="pe:Convert2Int($showpropertytype)>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>
<xsl:if test="$shownodename='true'">[<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('true',NodeID)" />
</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>
<xsl:value-of disable-output-escaping="yes" select="pe:GetNode(NodeID,'name')" />
</a>]
</xsl:if>
<!-- 判断输出所属栏目结束 -->
<!-- 输出文章标题开始 -->
<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="pe:EncodeText(Title,'htmldecode')"/>
<xsl:value-of select="'
'" />发表时间:<xsl:value-of select="pe:FormatDate(UpdateTime, 'yy年mm月dd日')" />
<xsl:value-of select="'
'" />点击数:<xsl:value-of select="Hits"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="pe:CutText(pe:EncodeText(Title,'htmldecode'),$titlelen,'…')" />
</a>
<!-- 输出文章标题结束 -->
<!-- 输出文章点击数开始 -->
<xsl:if test="$showhits='true'">
(<xsl:value-of select="Hits"/>)
</xsl:if>
<!-- 输出文章点击数结束 -->
<!-- 输出“[图文]”字样开始 -->
<xsl:if test="$showincludepic='true'">
<xsl:value-of select="IncludePic"/>
</xsl:if>
<!-- 输出“[图文]”结束 -->
<!-- 输出文章作者开始 -->
<xsl:if test="$showauthor='true'">
&nbsp;
<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>
<!-- 输出最新标记结束 -->
<!-- 判断输出评论链接开始 -->
<!-- 输出评论链接结束 -->
</li>
</xsl:for-each>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>strsql</name>
<default>SELECT * FROM PE_CommonModel WHERE Status=99 ORDER BY UpdateTime DESC</default>
<intro>查询语句</intro>
</attributes>
<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>
<attributes>
<name>iselite</name>
<default>false</default>
<intro>是否是推荐文章</intro>
</attributes>
<attributes>
<name>inputername</name>
<default>
</default>
<intro>作者姓名</intro>
</attributes>
<attributes>
<name>datenum</name>
<default>0</default>
<intro>日期范围</intro>
</attributes>
<attributes>
<name>ordertype</name>
<default>1</default>
<intro>排序方式</intro>
</attributes>
<attributes>
<name>showtype</name>
<default>1</default>
<intro>显示方式</intro>
</attributes>
<attributes>
<name>titlelen</name>
<default>20</default>
<intro>标题最多字符数</intro>
</attributes>
<attributes>
<name>contentlen</name>
<default>100</default>
<intro>文章内容最多字符数</intro>
</attributes>
<attributes>
<name>shownodename</name>
<default>true</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>0</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>usepage</name>
<default>false</default>
<intro>是否分页显示</intro>
</attributes>
<attributes>
<name>opentype</name>
<default>0</default>
<intro>文章打开方式</intro>
</attributes>
<attributes>
<name>cols</name>
<default>1</default>
<intro>每行显示标题的的列数</intro>
</attributes>
<attributes>
<name>hits</name>
<default>0</default>
<intro>热门最小点击数</intro>
</attributes>
<attributes>
<name>elitelevel</name>
<default>0</default>
<intro>推荐优先级</intro>
</attributes>
<attributes>
<name>tr_value</name>
<default>&lt;/tr&gt;&lt;tr&gt;</default>
<intro>表格式专用参数</intro>
</attributes>
</root>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -