?? 顯示圖片一列式欄目列表.config
字號:
<root>
<LabelType>欄目類</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<CacheTime>0</CacheTime>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString>SELECT TOP @outputQty * FROM PE_CommonModel C INNER JOIN PE_U_Photo P ON C.ItemID=P.ID WHERE C.NodeID IN (@nodeArray) AND C.Status = 99 ORDER BY C.UpdateTime
</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="titleLength"/>
<xsl:param name="displayPropertyType"/>
<xsl:param name="displayIncludePic"/>
<xsl:param name="displayAuthor"/>
<xsl:param name="displayDateTime"/>
<xsl:param name="displayHits"/>
<xsl:param name="displayHotSign"/>
<xsl:param name="displayNewSign"/>
<xsl:param name="displayTips"/>
<xsl:param name="displayCommentLink"/>
<xsl:param name="linkOpenType"/>
<xsl:param name="eliteLevel"/>
<xsl:template match="/">
<xsl:for-each select="/NewDataSet/Table">
<xsl:if test="position() = 1">
<div class="pe_u_thumb">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('true',$parentId)"/>
</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="DefaultPicUrl"/>
</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="pe:GetNode($parentId,'name')"/>
</xsl:attribute>
</xsl:element>
</a>
</div>
<div class="pe_u_thumb_title">[<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('true',$parentId)"/>
</xsl:attribute>
<xsl:value-of select="pe:GetNode($parentId,'name')"/>
</a>]</div>
</xsl:if>
<div class="pe_u_thumb_list">
<xsl:choose>
<xsl:when test="$displayPropertyType = 0">
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="pe:Convert2Int($displayPropertyType) > 0">
<xsl:choose>
<xsl:when test="Hits>pe:HitsOfHot()">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="pe:InstallDir()" />images/ontop<xsl:value-of select="$displayPropertyType" />.gif</xsl:attribute>
<xsl:attribute name="alt">熱門<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
</xsl:attribute>
</xsl:element>
</xsl:when>
<xsl:when test="EliteLevel>$eliteLevel">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="pe:InstallDir()" />images/elite<xsl:value-of select="$displayPropertyType" />.gif</xsl:attribute>
<xsl:attribute name="alt">推薦<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
</xsl:attribute>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="pe:InstallDir()" />images/common<xsl:value-of select="$displayPropertyType" />.gif</xsl:attribute>
<xsl:attribute name="alt">普通<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
</xsl:attribute>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="pe:InstallDir()" />images/<xsl:value-of select="$displayPropertyType" />.gif</xsl:attribute>
<xsl:attribute name="alt">普通<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
</xsl:attribute>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<a>
<xsl:attribute name="href">
<xsl:value-of disable-output-escaping="yes" select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle)" />
</xsl:attribute>
<xsl:attribute name="target">
<xsl:choose>
<xsl:when test="$linkOpenType = 2">
<xsl:choose>
<xsl:when test="pe:GetNodeFieldName(NodeID,'OpenType') = 0">_self</xsl:when>
<xsl:otherwise>_blank</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$linkOpenType"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="$displayTips='true'">
<xsl:attribute name="title">作者:<xsl:value-of select="Inputer"/>
<xsl:value-of select="'
'" />發表時間:<xsl:value-of select="pe:FormatDate(UpdateTime, 'yy年mm月dd日')" />
<xsl:value-of select="'
'" />點擊數:<xsl:value-of select="Hits"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
</a>
<xsl:if test="$displayHits='true'">(<xsl:value-of select="Hits"/>)</xsl:if>
<xsl:if test="$displayIncludePic='true'">
<xsl:if test="IncludePic !='無'">
<xsl:value-of select="IncludePic"/>
</xsl:if>
</xsl:if>
<xsl:if test="$displayAuthor='true'">
<xsl:value-of select="Inputer"/>
</xsl:if>
<xsl:if test="$displayDateTime!='0'">(<xsl:value-of select="pe:FormatDate(UpdateTime, $displayDateTime)" />)</xsl:if>
<xsl:if test="$displayHotSign='true'">
<xsl:if test="Hits>pe:HitsOfHot()">
<img src="{pe:InstallDir()}images/hot.gif" />
</xsl:if>
</xsl:if>
<xsl:if test="$displayNewSign='true'">
<xsl:if test="2>pe:TimeSpan(UpdateTime,pe:TimeNow())">
<img src="{pe:InstallDir()}images/new.gif" />
</xsl:if>
</xsl:if>
</div>
</xsl:for-each>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>outputQty</name>
<default>10</default>
<intro>顯示個數</intro>
</attributes>
<attributes>
<name>nodeArray</name>
<default>1</default>
<intro>欄目ID</intro>
</attributes>
<attributes>
<name>parentId</name>
<default>0</default>
<intro>父欄目ID</intro>
</attributes>
<attributes>
<name>titleLength</name>
<default>20</default>
<intro>標題最多字符數</intro>
</attributes>
<attributes>
<name>displayPropertyType</name>
<default>0</default>
<intro>顯示圖片屬性(固頂/推薦/普通)的方式</intro>
</attributes>
<attributes>
<name>displayIncludePic</name>
<default>false</default>
<intro>是否顯示“[圖文]”字樣</intro>
</attributes>
<attributes>
<name>displayAuthor</name>
<default>false</default>
<intro>是否顯示作者名</intro>
</attributes>
<attributes>
<name>displayDateTime</name>
<default>mm-dd</default>
<intro>日期顯示方式</intro>
</attributes>
<attributes>
<name>displayHits</name>
<default>false</default>
<intro>是否顯示點擊數</intro>
</attributes>
<attributes>
<name>displayHotSign</name>
<default>false</default>
<intro>是否顯示熱門標志</intro>
</attributes>
<attributes>
<name>displayNewSign</name>
<default>false</default>
<intro>是否顯示新內容標志</intro>
</attributes>
<attributes>
<name>displayTips</name>
<default>false</default>
<intro>是否顯示作者、更新日期、點擊數等浮動提示信息</intro>
</attributes>
<attributes>
<name>displayCommentLink</name>
<default>false</default>
<intro>是否顯示評論鏈接</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>supersql</datatype>
<default>2</default>
<intro>內容鏈接的打開方式{欄目節點配置取代:2,新窗口:1,原窗口:0}</intro>
</attributes>
<attributes>
<name>hits</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>熱門最小點擊數</intro>
</attributes>
<attributes>
<name>eliteLevel</name>
<default>0</default>
<intro>推薦優先級</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -