?? 商城根欄目列表.config
字號:
<root>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelType>通用列表標簽</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetSlidePicProduct.gif</LabelImage>
<LabelIntro>根欄目導航標簽</LabelIntro>
<LabelSqlString>select top @num * from PE_Nodes WHERE ParentID=0 and ShowOnMenu=1 order by RootID</LabelSqlString>
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
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="colnum" />
<xsl:param name="target" />
<xsl:param name="showtips" />
<xsl:param name="titlelen" />
<xsl:param name="NodeId" />
<xsl:param name="splitchar" />
<xsl:param name="hoverStyle" />
<xsl:template match="/">
<ul>
<xsl:for-each select="/NewDataSet/Table">
<!--?根據欄目屬性輸出連接地址 -->
<xsl:value-of select="$splitchar" />
<li>
<!--?判斷是否當前欄目-->
<xsl:if test="NodeID = $NodeId">
<xsl:attribute name="id">
<xsl:value-of select="$hoverStyle" />
</xsl:attribute>
</xsl:if>
<a>
<xsl:choose>
<xsl:when test="NodeType = 1">
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('false',NodeID)" />
</xsl:attribute>
</xsl:when>
<xsl:when test="NodeType = 2">
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('false',NodeID)" />
</xsl:attribute>
</xsl:when>
<xsl:when test="NodeType = 3">
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('false',NodeID)" />
</xsl:attribute>
</xsl:when>
<xsl:when test="NodeType = 4">
<xsl:attribute name="href">
<xsl:value-of select="LinkUrl"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="OpenType='1'">
<xsl:attribute name="target">_blank</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="target">_self</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$showtips = 'true'">
<xsl:attribute name="title">
<xsl:value-of select="Tips" />
</xsl:attribute>
</xsl:if>
<span>
<xsl:value-of select="pe:CutText(NodeName,$titlelen,'')" />
</span>
</a>
</li>
<xsl:if test="position() = count(/NewDataSet/Table)">
<xsl:value-of select="$splitchar" />
</xsl:if>
<xsl:if test="position() mod $colnum = 0">
<xsl:if test="count(/NewDataSet/Table) > position()">
<xsl:value-of select="$splitchar" />
</xsl:if>
</xsl:if>
</xsl:for-each>
</ul>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>num</name>
<default>40</default>
<intro>?顯示數量</intro>
</attributes>
<attributes>
<name>colnum</name>
<default>1</default>
<intro>每行顯示</intro>
</attributes>
<attributes>
<name>showtips</name>
<default>false</default>
<intro>顯示欄目注釋</intro>
</attributes>
<attributes>
<name>titlelen</name>
<default>20</default>
<intro>標題長度</intro>
</attributes>
<attributes>
<name>NodeId</name>
<default>0</default>
<intro>當前頁欄目ID</intro>
</attributes>
<attributes>
<name>target</name>
<default>_self</default>
<intro>打開方式</intro>
</attributes>
<OutType>sin</OutType>
<attributes>
<name>splitchar</name>
<default>
</default>
<intro>分割符</intro>
</attributes>
<attributes>
<name>hoverStyle</name>
<default>topTabOn</default>
<intro>當前欄目鏈接樣式</intro>
</attributes>
<CacheTime>720</CacheTime>
</root>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -