?? 商品子欄目信息一列式列表_普通式.config
字號:
<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="title"/>
<xsl:param name="queryCond" />
<xsl:template match="/">
<div class="childclasslist_box">
<div class="c_main_box">
<div class="class_title">
<div class="more">
</div>
<xsl:choose>
<xsl:when test="$title != ''">
<a href="#"><xsl:value-of select="$title" /></a>
</xsl:when>
<xsl:otherwise>
<a href="#"><xsl:value-of select="pe:GetNode($parentId,'name')"/></a>
</xsl:otherwise>
</xsl:choose>
</div>
<div class="class_content">
<div class="p_childclass_list">
<ul>
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<li style="color:red">尚無內容!</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: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>
<div class="p_list_price">市場價:<xsl:value-of select="format-number(Price_Market,'0.00')"/>
</div>
<div class="p_list_price">零售價:<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">購買<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>
<div class="clearbox">
</div>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</ul>
<div class="clearbox">
</div>
</div>
</div>
</div>
</div>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>outputQty</name>
<default>10</default>
<intro>顯示個數</intro>
</attributes>
<attributes>
<name>titleLenght</name>
<default>20</default>
<intro>標題字符</intro>
</attributes>
<attributes>
<name>title</name>
<default>
</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>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -