?? 顯示分類商品一列式列表循環(huán).config
字號(hào):
<root>
<LabelType>欄目類</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<CacheTime>0</CacheTime>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString> SELECT TOP @outputQty C.GeneralID,C.NodeID,C.Title,C.PinyinTitle,C.InputTime,CP.ProductID,CP.TableName,CP.ProductName,CP.Price_Market,CP.Price,CP.ProductThumb
FROM (PE_CommonModel C INNER JOIN PE_CommonProduct CP ON C.ItemID=CP.ProductID)
WHERE C.NodeID in (@nodeArray) AND c.status=99 AND CP.EnableSale=1 @producttype @status
Order by @isnew 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="titleLength"/>
<xsl:param name="title"/>
<xsl:param name="type"/>
<xsl:template match="/">
<div class="c_main_box">
<div class="childclass_title">
<div class="more">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('true',$parentId)"/>
<xsl:if test="$type != ''">
<xsl:text>?type=</xsl:text>
<xsl:value-of select="$type"/>
</xsl:if>
</xsl:attribute> [更多]</a>
</div>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('true',$parentId)"/>
<xsl:if test="$type != ''">
<xsl:text>&type=</xsl:text>
<xsl:value-of select="$type"/>
</xsl:if>
</xsl:attribute>
<xsl:value-of select="$title" />
</a>
</div>
<div class="class_content">
<div class="p_childclass_list">
<ul>
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<li style="color:red">尚無(wú)內(nèi)容!</li>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<li>
<div class="p_list_pic">
<a>
<xsl:attribute name="href">
<xsl:value-of disable-output-escaping="yes" select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle)"/>
</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="string-length(ProductThumb)=0">
<xsl:value-of select="pe:UpLoadDir()"/>nopic.gif</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:ConvertAbsolutePath(ProductThumb)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="ProductName" />
</xsl:attribute>
</xsl:element>
</a>
</div>
<div class="p_list_name">
<xsl:value-of select="pe:CutText(ProductName,$titleLength,'…')" />
</div>
<div class="p_list_price">市場(chǎng)價(jià):¥<xsl:value-of select="format-number(Price_Market,'0.00')"/>
</div>
<div class="p_list_price">零售價(jià):¥<xsl:value-of select="format-number(Price,'0.00')"/>
</div>
<div class="p_list_botton">
<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: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">購(gòu)買<xsl:value-of select="pe:CutText(ProductName,$titleLength,'…')" />
</xsl:attribute>
</xsl:element>
</a>
<a>
<xsl:attribute name="href">
<xsl:value-of disable-output-escaping="yes" select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle)"/>
</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 select="pe:CutText(ProductName,$titleLength,'…')" />詳情</xsl:attribute>
</xsl:element>
</a>
</div>
<div class="clearbox">
</div>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</ul>
<div class="clearbox">
</div>
</div>
</div>
</div>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>outputQty</name>
<default>10</default>
<intro>顯示個(gè)數(shù)</intro>
</attributes>
<attributes>
<name>nodeArray</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>欄目ID</intro>
</attributes>
<attributes>
<name>parentId</name>
<default>0</default>
<intro>父欄目ID</intro>
</attributes>
<attributes>
<name>titleLength</name>
<default>20</default>
<intro>標(biāo)題字符數(shù)</intro>
</attributes>
<attributes>
<name>producttype</name>
<default>and producttype!=4</default>
<intro>商品類型</intro>
</attributes>
<attributes>
<name>status</name>
<default>
</default>
<intro>商品狀態(tài)</intro>
</attributes>
<attributes>
<name>title</name>
<default>
</default>
<intro>標(biāo)題</intro>
</attributes>
<attributes>
<name>isnew</name>
<default>
</default>
<intro>新品排序</intro>
</attributes>
<attributes>
<name>type</name>
<default>
</default>
<intro>要顯示的商品種類</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -