?? 商城商品子欄目一列式列表循環(huán).config
字號(hào):
<root>
<LabelType>列表標(biāo)簽</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro></LabelIntro>
<OutType>sin</OutType>
<CacheTime>0</CacheTime>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>parentid</name>
<default>2</default>
<intro>父欄目ID</intro>
</attributes>
<UsePage></UsePage>
<LabelSqlString>SELECT Top 1 * FROM PE_Nodes WHERE NodeID = @parentid</LabelSqlString>
<LabelSqlCount>select count(*) from PE_Nodes where ParentID = @parentid</LabelSqlCount>
<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" />
<!-- 定義參數(shù) -->
<xsl:param name="parentid"/>
<xsl:param name="titlelen"/>
<xsl:param name="hits"/>
<xsl:param name="elitelevel"/>
<xsl:param name="type" />
<xsl:param name="shownum" />
<xsl:param name="opentype" />
<xsl:template match="/NewDataSet">
<!-- 子欄目一列式列表循環(huán)開始 -->
<div class="childListBox">
<h2>
<!-- 顯示標(biāo)題 -->
<span class="columnTitle"><xsl:value-of select="pe:GetNode($parentid,'name')"/><span class="columnTitleInfo">信息列表</span></span>
<span class="floatRight"></span>
</h2>
<!-- 顯示內(nèi)容循環(huán) -->
<ul class="childImglist">
<xsl:choose>
<xsl:when test="count(Table) = 0">
<li>本欄尚無內(nèi)容!
</li>
</xsl:when>
<xsl:otherwise>
{PE.DataSource id="InfoList" datasource="顯示商品欄目循環(huán)列表信息_分頁" page="true" pagesize="<xsl:value-of select="$shownum"/>" pagemain="true" urlpage="true" arraynodeid="<xsl:value-of select="Table/arrChildID"/>" parentid="<xsl:value-of select="$parentid"/>" titlelen="<xsl:value-of select="$titlelen"/>" hits="<xsl:value-of select="$hits"/>" elitelevel="<xsl:value-of select="$elitelevel"/>" opentype="<xsl:value-of select="$opentype"/>" xslt="true"
<xsl:choose>
<xsl:when test="$type=1">isnew="convert(int,isnew) desc,"</xsl:when>
<xsl:when test="$type=2">status="and elitelevel >=100"</xsl:when>
<xsl:when test="$type=3">status="and ishot=1"</xsl:when>
<xsl:when test="$type=4">status="and isbest=1"</xsl:when>
<xsl:when test="$type=5">status="and priority >=100"</xsl:when>
</xsl:choose>
/}
{PE.Repeat id="InfoList" loop="1000"}
<li>
<div class="itemPic">
{PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="ProductThumb" /}
</div>
<div class="itemPrice">
<span class="price">
¥<strong>{PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="Price" /}</strong>
</span>
<span class="marketPrice">
¥{PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="MarketPrice" /}
</span>
</div>
<div class="itemName">
{PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="InfoPath" /}
</div>
<div class="p_list_botton">
{PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="BuyProduct" /}
{PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="DetailInfo" /}
</div>
</li>
{/PE.Repeat}
</xsl:otherwise>
</xsl:choose>
</ul>
<div class="clearbox"></div>
<div class="class_page1">{PE.Page id="url_動(dòng)易后臺(tái)風(fēng)格(2)" datasource="InfoList" unitname="個(gè)商品" /}</div>
</div>
<!-- 子欄目一列式列表循環(huán)結(jié)束 -->
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
<attributes>
<name>shownum</name>
<default>10</default>
<intro>每欄目顯示文章數(shù)</intro>
</attributes>
<attributes>
<name>titlelen</name>
<default>20</default>
<intro>標(biāo)題最多字符數(shù)</intro>
</attributes>
<attributes>
<name>hits</name>
<default>0</default>
<intro>最小熱門點(diǎn)擊數(shù)</intro>
</attributes>
<attributes>
<name>elitelevel</name>
<default>0</default>
<intro>推薦優(yōu)先級(jí)</intro>
</attributes>
<attributes>
<name>type</name>
<default></default>
<intro>要顯示的商品種類</intro>
</attributes>
<attributes>
<name>opentype</name>
<default>_blank</default>
<intro>打開方式</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
</root>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -