91 lines
2.9 KiB
Plaintext
91 lines
2.9 KiB
Plaintext
<root>
|
|
<LabelType>栏目类</LabelType>
|
|
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<OutType>sin</OutType>
|
|
<CacheTime>0</CacheTime>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<attributes>
|
|
<name>outputQty</name>
|
|
<default>8</default>
|
|
<intro>显示个数</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>titleLength</name>
|
|
<default>10</default>
|
|
<intro>标题字符数</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>parentId</name>
|
|
<default>0</default>
|
|
<intro>父栏目ID</intro>
|
|
</attributes>
|
|
<LabelSqlString><![CDATA[SELECT TOP @outputQty * FROM PE_CommonModel C INNER JOIN PE_U_Photo T ON (C.ItemID = T.ID) WHERE (C.NodeID = @parentId) AND C.Status = 99 AND C.SigninType!=2 AND C.DefaultPicUrl != '' 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="outputQty" />
|
|
<xsl:param name="titleLength" />
|
|
<xsl:template match="/">
|
|
<xsl:if test="count(/NewDataSet/Table)=0" >
|
|
<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="pe:UpLoadDir()" />nopic.gif</xsl:attribute>
|
|
<xsl:attribute name="alt">该栏目没有图片</xsl:attribute>
|
|
<xsl:attribute name="border">0</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>
|
|
<xsl:for-each select="/NewDataSet/Table">
|
|
<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:choose>
|
|
<xsl:when test="DefaultPicUrl !=''">
|
|
<xsl:if test="pe:IsStartWithhttp(DefaultPicUrl)='false'">
|
|
<xsl:value-of select="pe:UpLoadDir()"/>
|
|
</xsl:if>
|
|
<xsl:value-of select="DefaultPicUrl"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="pe:UpLoadDir()"/>nopic.gif</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:attribute>
|
|
<xsl:attribute name="alt">
|
|
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
|
|
</xsl:attribute>
|
|
<xsl:attribute name="border">0</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:for-each>
|
|
</xsl:template>
|
|
</xsl:transform>]]></LabelTemplate>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
</root> |