?? 頭條圖片顯示列表.config
字號:
<root>
<LabelType>列表標(biāo)簽</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>第一條自動(dòng)顯示為圖片</LabelIntro>
<LabelDataType>sql_sysquery</LabelDataType>
<UsePage>
</UsePage>
<LabelSqlString>SELECT TOP @listnum GeneralID,NodeID,TableName,Title,Inputer,Hits,UpdateTime,Status FROM PE_CommonModel WHERE (Status = 99) ORDER BY 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:param name="useimg" />
<xsl:param name="titlelen" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="position() = 1">
<xsl:choose>
<xsl:when test="$useimg = 'true'">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetInfoPath(GeneralID)"/>
</xsl:attribute>
<img src="{pe:Txt2Img(pe:EncodeText(Title,'htmldecode'),'黑體;100;1;true','40;400;10;10','220;40;20;20','Skin/Title/txtbg.jpg','true','Skin/Title/list1.jpg',1)}" border="0" />
</a>
</xsl:when>
<xsl:otherwise>
<li>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetInfoPath(GeneralID)"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(pe:EncodeText(Title,'htmldecode'),$titlelen,'…')"/>
</a>
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<li>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetInfoPath(GeneralID)"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(pe:EncodeText(Title,'htmldecode'),$titlelen,'…')"/>
</a>
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<LabelSqlCount>select count(id) from database</LabelSqlCount>
<attributes>
<name>listnum</name>
<default>10</default>
<intro>列表數(shù)量</intro>
</attributes>
<OutType>sin</OutType>
<attributes>
<name>useimg</name>
<default>false</default>
<intro>頭條是否顯示為圖片</intro>
</attributes>
<CacheTime>60</CacheTime>
<attributes>
<name>titlelen</name>
<default>40</default>
<intro>標(biāo)題長度</intro>
</attributes>
</root>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -