📄 显示内容信息列表_普通式_商品模型(2).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="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="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>
<div class="shop_product">
<dl>
<dt>
<a href="{pe:GetInfoPath(GeneralID)}" title="{Title}">
<img src="{pe:ConvertAbsolutePath(ProductThumb)}" alt="{Title}" width="120" height="120" border="0" />
</a>
</dt>
<dd>
<a href="{pe:GetInfoPath(GeneralID)}" title="了解{Title}详情" target="_blank">
<xsl:value-of disable-output-escaping="yes" select="Title"/>
</a>
</dd>
<dd>现 价:¥{Price}</dd>
<dd>
<a href="{pe:GetInfoPath(GeneralID)}" title="了解{Title}详情" target="_blank">
<img src="{pe:InstallDir()}Skin/Since07/images/ProductContent.gif" alt="了解{Title}详情" width="40" height="20" border="0" />
</a>
<a> <xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Shop/ShoppingCart.aspx?Action=AddToCart&ID=<xsl:value-of select="GeneralID"/>
</xsl:attribute> <xsl:attribute name="title">购买<xsl:value-of disable-output-escaping="yes" select="Title"/>
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<img src="{pe:InstallDir()}Skin/Since07/images/ProductBuy.gif" alt="购买{Title}" width="40" height="20" border="0" />
</a>
</dd>
</dl>
</div>
</li>
</xsl:for-each>
</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_Article</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 + -