📄 显示内容信息列表_样式_公告模型.config
字号:
<root>
<LabelType>系统标签</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<CacheTime>0</CacheTime>
<LabelDataType>sql_sysquery</LabelDataType>
<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="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="contentlen"/>
<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="tablename"/>
<xsl:param name="modelname"/>
<xsl:param name="strsql"/>
<xsl:template match="/">
<xsl:apply-templates select="NewDataSet/Table" />
</xsl:template>
<xsl:template match="NewDataSet/Table">
<xsl:choose>
<!-- 表格样式开始 -->
<xsl:when test="$showtype='2'">
{PE.Label id="显示内容信息列表_表格式_<xsl:value-of select="$modelname"/>" parentid="<xsl:value-of select="$parentid" />" arrnodeid="<xsl:value-of select="$arrnodeid" />" includechild ="<xsl:value-of select="$includechild" />" specialid="<xsl:value-of select="$specialid" />" urltype="<xsl:value-of select="$urltype" />" shownum="<xsl:value-of select="$shownum" />" ishot="<xsl:value-of select="$ishot" />" iselite="<xsl:value-of select="$iselite" />" inputername="<xsl:value-of select="$inputername" />" datenum="<xsl:value-of select="$datenum" />" ordertype="<xsl:value-of select="$ordertype" />" showtype="<xsl:value-of select="$showtype" />" titlelen="<xsl:value-of select="$titlelen" />" contentlen="<xsl:value-of select="$contentlen" />" shownodename="<xsl:value-of select="$shownodename" />" showpropertytype="<xsl:value-of select="$showpropertytype" />" showincludepic="<xsl:value-of select="$showincludepic" />" showauthor="<xsl:value-of select="$showauthor" />" showdatetype="<xsl:value-of select="$showdatetype" />" showhits="<xsl:value-of select="$showhits" />" showhotsign="<xsl:value-of select="$showhotsign" />" shownewsign="<xsl:value-of select="$shownewsign" />" showtips="<xsl:value-of select="$showtips" />" showcommentlink="<xsl:value-of select="$showcommentlink" />" usepage="<xsl:value-of select="$usepage" />" opentype="<xsl:value-of select="$opentype" />" cols="<xsl:value-of select="$cols" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" strsql="<xsl:value-of select="$strsql" />" /}
</xsl:when>
<!-- 表格样式结束 -->
<!-- 普通样式开始 -->
<xsl:otherwise>
{PE.Label id="显示内容信息列表_普通式_<xsl:value-of select="$modelname"/>" parentid="<xsl:value-of select="$parentid" />" arrnodeid="<xsl:value-of select="$arrnodeid" />" includechild ="<xsl:value-of select="$includechild" />" specialid="<xsl:value-of select="$specialid" />" urltype="<xsl:value-of select="$urltype" />" shownum="<xsl:value-of select="$shownum" />" ishot="<xsl:value-of select="$ishot" />" iselite="<xsl:value-of select="$iselite" />" inputername="<xsl:value-of select="$inputername" />" datenum="<xsl:value-of select="$datenum" />" ordertype="<xsl:value-of select="$ordertype" />" showtype="<xsl:value-of select="$showtype" />" titlelen="<xsl:value-of select="$titlelen" />" contentlen="<xsl:value-of select="$contentlen" />" shownodename="<xsl:value-of select="$shownodename" />" showpropertytype="<xsl:value-of select="$showpropertytype" />" showincludepic="<xsl:value-of select="$showincludepic" />" showauthor="<xsl:value-of select="$showauthor" />" showdatetype="<xsl:value-of select="$showdatetype" />" showhits="<xsl:value-of select="$showhits" />" showhotsign="<xsl:value-of select="$showhotsign" />" shownewsign="<xsl:value-of select="$shownewsign" />" showtips="<xsl:value-of select="$showtips" />" showcommentlink="<xsl:value-of select="$showcommentlink" />" usepage="<xsl:value-of select="$usepage" />" opentype="<xsl:value-of select="$opentype" />" cols="<xsl:value-of select="$cols" />" hits="<xsl:value-of select="$hits" />" elitelevel="<xsl:value-of select="$elitelevel" />" tablename="<xsl:value-of select="$tablename" />" strsql="<xsl:value-of select="$strsql" />" /}
</xsl:otherwise>
<!-- 普通样式结束 -->
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>strsql</name>
<default>SELECT C.*,T.* FROM PE_CommonModel C INNER JOIN PE_U_Article T ON C.GeneralID=T.ID WHERE C.Status=99 AND C.TableName='PE_U_Article' ORDER BY C.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>false</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>tablename</name>
<default>PE_U_Announce</default>
<intro>所属于表名</intro>
</attributes>
<attributes>
<name>modelname</name>
<default>公告模型</default>
<intro>模型名</intro>
</attributes>
</root>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -