📄 显示商品二列式栏目左右循环.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.GeneralID,C.NodeID,CP.ProductID,CP.TableName,CP.ProductName,CP.Price_Market,CP.Price,CP.Price_Member,CP.ProductThumb FROM PE_CommonModel C INNER JOIN PE_CommonProduct CP ON C.GeneralID=CP.ProductID WHERE C.NodeID in (@arraynodeid) AND C.Status=99 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="titlelen"/>
<xsl:template match="/NewDataSet">
<!-- 二列式栏目左右循环样式开始 -->
<div class="childclass_main_box">
<div class="childclass_title">
<div class="more">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('true',$parentid)"/>
</xsl:attribute>
[更多]
</a>
</div>
<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>
<div class="class_content">
<!-- 显示栏目循环 -->
<div class="p_class_list2">
<ul>
<xsl:choose>
<xsl:when test="count(Table) = 0">
<li>尚无内容!
</li>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="Table">
<!-- 显示内容 -->
<li>
<div class="p_list_pic">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetInfoPath(GeneralID)"/>
</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="ProductThumb"/>
</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(ProductName,$titlelen,'…')" />
</xsl:attribute>
</xsl:element>
</a>
</div>
<div class="p_list_name">
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(ProductName,$titlelen,'…')" />
</div>
<div class="p_list_price">市场价:¥<xsl:value-of select="Price_Market"/>
</div>
<div class="p_list_price">零售价:¥<xsl:value-of select="Price"/>
</div>
<div class="p_list_price">会员价:¥<xsl:value-of select="Price_Member"/>
</div>
<div class="p_list_botton">
<!-- 购买按钮 -->
<a>
<xsl:attribute name="href"><xsl:value-of select="pe:InstallDir()"/>Shop/ShoppingCart.aspx?Action=AddToCart&ProductID=<xsl:value-of select="ProductID" />&TableName=<xsl:value-of select="TableName" />
</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src">{PE.SiteConfig.ApplicationPath /}Skin/Default/images/ProductBuy.gif</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="alt">购买<xsl:value-of disable-output-escaping="yes" select="pe:CutText(ProductName,$titlelen,'…')" />
</xsl:attribute>
</xsl:element>
</a>
<!-- 详细按钮 -->
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetInfoPath(GeneralID)"/>
</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src">{PE.SiteConfig.ApplicationPath /}Skin/Default/images/ProductContent.gif</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="alt">查阅<xsl:value-of disable-output-escaping="yes" select="pe:CutText(ProductName,$titlelen,'…')" />详情</xsl:attribute>
</xsl:element>
</a>
</div>
<div class="clearbox">
</div>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</ul>
<div class="clearbox2">
</div>
</div>
</div>
<div class="childclass_bot">
</div>
</div>
<!-- 二列式栏目左右循环样式结束 -->
</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>
</root>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -