📄 显示商品栏目循环列表信息.config
字号:
<root>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelType>数据源标签</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<LabelSqlString><![CDATA[SELECT TOP @shownum C.*,P.* FROM PE_CommonModel C INNER JOIN PE_CommonProduct P ON C.ItemID=P.ProductID WHERE C.NodeId in (@arraynodeid) AND P.EnableSale=1 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:param name="titlelen" />
<xsl:output method="xml" />
<xsl:template match="/">
<NewDataSet>
<xsl:for-each select="NewDataSet/Table">
<Table>
<GeneralID>
<xsl:value-of select="GeneralID"/>
</GeneralID>
<NodeID>
<xsl:value-of select="NodeID"/>
</NodeID>
<ModelId>
<xsl:value-of select="ModelId"/>
</ModelId>
<ItemId>
<xsl:value-of select="ItemId"/>
</ItemId>
<TableName>
<xsl:value-of select="TableName"/>
</TableName>
<Inputer>
<xsl:value-of select="Inputer"/>
</Inputer>
<Hits>
<xsl:value-of select="Hits"/>
</Hits>
<DayHits>
<xsl:value-of select="DayHits"/>
</DayHits>
<WeekHits>
<xsl:value-of select="WeekHits"/>
</WeekHits>
<MonthHits>
<xsl:value-of select="MonthHits"/>
</MonthHits>
<UpdateTime>
<xsl:value-of select="UpdateTime"/>
</UpdateTime>
<CommentAudited>
<xsl:value-of select="CommentAudited"/>
</CommentAudited>
<ProductName>
<xsl:value-of select="pe:CutText(pe:RemoveHtml(pe:EncodeText(ProductName,'htmldecode')),$titlelen,'...')"/>
</ProductName>
<ProductNum>
<xsl:value-of select="ProductNum"/>
</ProductNum>
<ProductType>
<xsl:value-of select="ProductType"/>
</ProductType>
<ServiceTermUnit>
<xsl:value-of select="ServiceTermUnit"/>
</ServiceTermUnit>
<ServiceTerm>
<xsl:value-of select="ServiceTerm"/>
</ServiceTerm>
<ProductThumb>
<a href="<xsl:value-of select="pe:GetInfoPath(GeneralID)"/>">
<img src="<xsl:value-of select="pe:ConvertAbsolutePath(ProductThumb)"/>" alt="<xsl:value-of select="ProductName" />" border="0" />
</a>
</ProductThumb>
<ProductPic>
<xsl:value-of select="pe:ConvertAbsolutePath(ProductPic)"/>
</ProductPic>
<Price>
<xsl:value-of select="format-number(Price,'0.00')"/>
</Price>
<MarketPrice>
<xsl:value-of select="format-number(Price_Market,'0.00')"/>
</MarketPrice>
<MemberPrice>
<xsl:choose>
<xsl:when test="Price_Member > 0" >¥<xsl:value-of select="format-number(Price_Member,'0.00')"/>
</xsl:when>
<xsl:when test="Price_Member = 0 "><span title="按会员组优惠方案">详</span>
</xsl:when>
<xsl:otherwise><span title="按会员组优惠价">详</span>
</xsl:otherwise>
</xsl:choose>
</MemberPrice>
<AgentPrice>
<xsl:value-of select="format-number(Price_Agent,'0.00')"/>
</AgentPrice>
<InfoPath>
<a href="<xsl:value-of select="pe:GetInfoPath(GeneralID)"/>">
<xsl:value-of select="pe:CutText(pe:RemoveHtml(pe:EncodeText(ProductName,'htmldecode')),$titlelen,'...')" />
</a>
</InfoPath>
<NodePath>
<a href="<xsl:value-of select="pe:GetNodePath('true',NodeID)"/>">
<xsl:value-of select="pe:GetNode(NodeID,'name')" />
</a>
</NodePath>
<BuyProduct>
<a href="{PE.SiteConfig.ApplicationPath /}Shop/ShoppingCart.aspx?Action=AddToCart&ID=<xsl:value-of select="GeneralID" />">
<img src="{PE.SiteConfig.ApplicationPath /}Skin/Default/images/ProductBuy.gif" alt="购买<xsl:value-of select="pe:CutText(pe:EncodeText(ProductName,'htmldecode'),$titlelen,'...')" />" border="0" />
</a>
</BuyProduct>
<DetailInfo>
<a href="<xsl:value-of select="pe:GetInfoPath(GeneralID)"/>">
<img src="{PE.SiteConfig.ApplicationPath /}Skin/Default/images/ProductContent.gif" alt="查阅<xsl:value-of select="pe:CutText(pe:EncodeText(ProductName,'htmldecode'),$titlelen,'...')" />详情" border="0" />
</a>
</DetailInfo>
</Table>
</xsl:for-each>
</NewDataSet>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<OutType>sin</OutType>
<CacheTime>0</CacheTime>
<UsePage>
</UsePage>
<LabelSqlCount>select count(*) from PE_Nodes where ParentID = @parentid</LabelSqlCount>
<attributes>
<name>shownum</name>
<default>10</default>
<intro>显示个数</intro>
</attributes>
<attributes>
<name>arraynodeid</name>
<default>36</default>
<intro>子栏目ID</intro>
</attributes>
<attributes>
<name>parentid</name>
<default>4</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 + -