?? 簡單列表隔行效果.config
字號:
?<root>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString>select top @shownum * from PE_CommonModel Where Status=99 and Nodeid in (@nodelist)</LabelSqlString>
<attributes>
<name>shownum</name>
<default>10</default>
<intro>列表數量</intro>
</attributes>
<attributes>
<name>showclass</name>
<default>false</default>
<intro>是否顯示文章所屬欄目</intro>
</attributes>
<attributes>
<name>titlelen</name>
<default>40</default>
<intro>標題長度</intro>
</attributes>
<attributes>
<name>contentlen</name>
<default>40</default>
<intro>內容長度</intro>
</attributes>
<attributes>
<name>propertytype</name>
<default>none</default>
<intro>列表前圖標樣式</intro>
</attributes>
<attributes>
<name>showauthor</name>
<default>false</default>
<intro>顯示作者</intro>
</attributes>
<attributes>
<name>showdatetype</name>
<default>none</default>
<intro>顯示日期</intro>
</attributes>
<attributes>
<name>showhits</name>
<default>false</default>
<intro>顯示點擊數</intro>
</attributes>
<attributes>
<name>showhotsign</name>
<default>false</default>
<intro>顯示熱門標記</intro>
</attributes>
<attributes>
<name>shownewsign</name>
<default>false</default>
<intro>顯示最新標記</intro>
</attributes>
<attributes>
<name>showtips</name>
<default>false</default>
<intro>顯示注釋</intro>
</attributes>
<attributes>
<name>opentype</name>
<default>_blank</default>
<intro>打開方式</intro>
</attributes>
<LabelType>通用列表標簽</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetSoftList.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<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="showclass" />
<xsl:param name="titlelen" />
<xsl:param name="contentlen" />
<xsl:param name="propertytype" />
<xsl:param name="showauthor" />
<xsl:param name="showdatetype" />
<xsl:param name="showhits" />
<xsl:param name="showhotsign" />
<xsl:param name="shownewsign" />
<xsl:param name="showtips" />
<xsl:param name="opentype" />
<xsl:template match="/">
<xsl:apply-templates select="NewDataSet/Table" />
</xsl:template>
<xsl:template match="NewDataSet/Table">
<ul>
<xsl:choose>
<xsl:when test="position() mod 2 = 1">
<xsl:attribute name="class">listbg1</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="class">listbg2</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$propertytype='none'">
</xsl:when>
<xsl:when test="$propertytype='1'">
<li class="listbg_l">
<img src="{pe:InstallDir()}images/Special_List2.gif" />
</li>
</xsl:when>
<xsl:when test="$propertytype='2'">
<li class="listbg_l">
<img src="{pe:InstallDir()}images/Special_List3.gif" />
</li>
</xsl:when>
<xsl:when test="$propertytype='3'">
<li class="listbg_l">
<img src="{pe:InstallDir()}images/Special_List4.gif" />
</li>
</xsl:when>
<xsl:when test="$propertytype='4'">
<li class="listbg_l">
<img src="{pe:InstallDir()}images/Special_List5.gif" />
</li>
</xsl:when>
<xsl:when test="$propertytype='5'">
<li class="listbg_l">
<img src="{pe:InstallDir()}images/Special_List6.gif" />
</li>
</xsl:when>
<xsl:when test="$propertytype='6'">
<li class="listbg_l">
<img src="{pe:InstallDir()}images/Special_List7.gif" />
</li>
</xsl:when>
<xsl:when test="$propertytype='7'">
<li class="listbg_l">
<img src="{pe:InstallDir()}images/Special_List8.gif" />
</li>
</xsl:when>
<xsl:when test="$propertytype='8'">
<li class="listbg_l">
<img src="{pe:InstallDir()}images/Special_List9.gif" />
</li>
</xsl:when>
<xsl:otherwise>
<li class="listbg_l">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="$propertytype" />
</xsl:attribute>
</xsl:element>
</li>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$showclass='true'">
<li id="listbg_c">
[<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('true',NodeID)" />
</xsl:attribute>
<xsl:if test="$opentype='_blank'">
<xsl:attribute name="target">_blank</xsl:attribute>
</xsl:if>
<xsl:value-of disable-output-escaping="yes" select="pe:GetNode(NodeID,'name')" />
</a>]</li>
</xsl:if>
<li id="listbg_a">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetInfoPath(GeneralID)" />
</xsl:attribute>
<xsl:if test="$opentype='_blank'">
<xsl:attribute name="target">_blank</xsl:attribute>
</xsl:if>
<xsl:if test="$showtips='true'">
<xsl:attribute name="title">作者:未知<xsl:value-of select="'
'" />發表時間:<xsl:value-of select="pe:FormatDate(UpdateTime, 'YYYY年MM月DD日')" />
<xsl:value-of select="'
'" />點擊數:0</xsl:attribute>
</xsl:if>
<xsl:value-of select="pe:CutText(Title,$titlelen,'…')" />
</a>
</li>
<xsl:if test="$showdatetype='true'">
<li class="listbg_r">
<xsl:value-of select="pe:FormatDate(UpdateTime, 'yy-mm-dd')" />
</li>
</xsl:if>
</ul>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>nodelist</name>
<default>1</default>
<intro>輸出欄目</intro>
</attributes>
<OutType>sin</OutType>
<CacheTime>0</CacheTime>
</root>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -