?? 顯示圖片一列式欄目上下循環.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 DESC</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:template match="/NewDataSet"><div class="c_spacing"></div><div class="c_main_box"><div class="class_title"><div class="more"><a><xsl:attribute name="href"><xsl:value-of select="pe:GetNodePath('true',$parentId)"/></xsl:attribute>[更多]</a></div><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><div class="class_content"><div class="p_class_list"><ul><xsl:choose><xsl:when test="count(Table) = 0"><li style="color:red">本欄尚無內容!</li></xsl:when><xsl:otherwise><xsl:for-each select="Table"><li><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:value-of select="DefaultPicUrl"/></xsl:attribute><xsl:attribute name="border">0</xsl:attribute><xsl:attribute name="alt"><xsl:value-of select="pe:CutText(Title,$titleLength,'…')" /></xsl:attribute></xsl:element><br /><xsl:value-of select="pe:CutText(Title,$titleLength,'…')" /></a></li></xsl:for-each></xsl:otherwise></xsl:choose></ul></div><div class="clearbox"></div></div></div></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>2</default>
<intro>父欄目ID</intro>
</attributes>
<attributes>
<name>titleLength</name>
<default>20</default>
<intro>標題最多字符數</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -