?? 商品帶價(jià)格信息列表_普通式.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>@queryCond</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="titleLenght"/>
<xsl:param name="contentLenght"/>
<xsl:param name="IsShowButton"/>
<xsl:param name="IsShowPriceMarket"/>
<xsl:param name="IsShowPrice"/>
<xsl:param name="IsShowContent"/>
<xsl:param name="priceDescription" />
<xsl:param name="queryCond" />
<xsl:param name="monetaryUnit" />
<xsl:template match="/">
<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:InstallDir()"/>Images/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,$titleLenght,'...')" />
</div>
<xsl:if test="$IsShowContent!='false'">
<div class="p_list_content">
<xsl:value-of select="pe:CutText(ProductIntro,$contentLenght,'...')" />
</div>
</xsl:if>
<xsl:if test="$IsShowPriceMarket!='false'">
<div class="p_list_price">市場(chǎng)價(jià):<xsl:value-of select="format-number(Price_Market,'0.00')"/><xsl:value-of select="$monetaryUnit"/>
</div>
</xsl:if>
<xsl:if test="$IsShowPrice!='false'">
<div class="p_list_price"><xsl:value-of select="$priceDescription"/><span class="p_list_price_number"><xsl:value-of select="format-number(Price,'0.00')"/></span><xsl:value-of select="$monetaryUnit"/>
</div>
</xsl:if>
<xsl:if test="$IsShowButton!='false'">
<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">購買<xsl:value-of select="pe:CutText(ProductName,$titleLenght,'...')" />
</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,$titleLenght,'...')" />詳情</xsl:attribute>
</xsl:element>
</a>
</div>
</xsl:if>
<div class="clearbox">
</div>
</li>
</xsl:for-each>
<div class="clearbox"></div>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>outputQty</name>
<default>10</default>
<intro>顯示個(gè)數(shù)</intro>
</attributes>
<attributes>
<name>titleLenght</name>
<default>20</default>
<intro>標(biāo)題字符</intro>
</attributes>
<attributes>
<name>IsShowPriceMarket</name>
<default>true</default>
<intro>是否顯示市場(chǎng)價(jià)格</intro>
</attributes>
<attributes>
<name>IsShowPrice</name>
<default>true</default>
<intro>是否顯示商品價(jià)格</intro>
</attributes>
<attributes>
<name>priceDescription</name>
<default></default>
<intro>現(xiàn)價(jià)價(jià)格前文字說明,默認(rèn)不顯示</intro>
</attributes>
<attributes>
<name>monetaryUnit</name>
<default></default>
<intro>貨幣符號(hào),默認(rèn)不顯示</intro>
</attributes>
<attributes>
<name>IsShowContent</name>
<default>false</default>
<intro>是否顯示商品簡(jiǎn)介</intro>
</attributes>
<attributes>
<name>contentLenght</name>
<default>60</default>
<intro>簡(jiǎn)介字符數(shù)目</intro>
</attributes>
<attributes>
<name>IsShowButton</name>
<default>true</default>
<intro>是否顯示按鈕</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>queryCond</name>
<datatype>supersql</datatype>
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
<intro>查詢條件</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -