180 lines
5.0 KiB
Plaintext
180 lines
5.0 KiB
Plaintext
<root>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<LabelType>栏目类</LabelType>
|
|
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<LabelSqlString><![CDATA[SELECT TOP @outputQty * FROM PE_CommonModel CM INNER JOIN PE_U_Photo UT ON (CM.ItemID = UT.ID) WHERE CM.NodeID IN (@nodeArray) AND CM.Status = 99 AND CM.SigninType!=2 AND CM.EliteLevel >= @eliteLevel AND CM.Hits >= @hits ORDER BY CM.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="titleLength" />
|
|
<xsl:param name="linkOpenType" />
|
|
<xsl:output method="xml" />
|
|
<xsl:template match="/">
|
|
<NewDataSet>
|
|
<xsl:for-each select="NewDataSet/Table">
|
|
<Table>
|
|
<GeneralID>
|
|
<xsl:value-of select="GeneralID"/>
|
|
</GeneralID>
|
|
<NodeID>
|
|
<xsl:value-of select="NodeID"/>
|
|
</NodeID>
|
|
<ModelId>
|
|
<xsl:value-of select="ModelId"/>
|
|
</ModelId>
|
|
<ItemId>
|
|
<xsl:value-of select="ItemId"/>
|
|
</ItemId>
|
|
<TableName>
|
|
<xsl:value-of select="TableName"/>
|
|
</TableName>
|
|
<Inputer>
|
|
<xsl:value-of select="Inputer"/>
|
|
</Inputer>
|
|
<Hits>
|
|
<xsl:value-of select="Hits"/>
|
|
</Hits>
|
|
<DayHits>
|
|
<xsl:value-of select="DayHits"/>
|
|
</DayHits>
|
|
<WeekHits>
|
|
<xsl:value-of select="WeekHits"/>
|
|
</WeekHits>
|
|
<MonthHits>
|
|
<xsl:value-of select="MonthHits"/>
|
|
</MonthHits>
|
|
<UpdateTime>
|
|
<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd')"/>
|
|
</UpdateTime>
|
|
<CommentAudited>
|
|
<xsl:value-of select="CommentAudited"/>
|
|
</CommentAudited>
|
|
<Title>
|
|
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'…')" />
|
|
</Title>
|
|
<SoftVersion>
|
|
<xsl:value-of select="SoftVersion"/>
|
|
</SoftVersion>
|
|
<Author>
|
|
<xsl:value-of select="Author"/>
|
|
</Author>
|
|
<CopyFrom>
|
|
<xsl:value-of select="CopyFrom"/>
|
|
</CopyFrom>
|
|
<Keyword>
|
|
<xsl:value-of select="Keyword"/>
|
|
</Keyword>
|
|
<DefaultPicUrl>
|
|
<a href="<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>">
|
|
<img 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>
|
|
" alt="<xsl:value-of select="Title" />" border="0" />
|
|
</a>
|
|
</DefaultPicUrl>
|
|
<PhotoUrl>
|
|
<xsl:choose>
|
|
<xsl:when test="PhotoUrl !=''">
|
|
<xsl:if test="pe:IsStartWithhttp(PhotoUrl)='false'">
|
|
<xsl:value-of select="pe:UpLoadDir()"/>
|
|
</xsl:if>
|
|
<xsl:value-of select="PhotoUrl"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="pe:UpLoadDir()"/>nopic.gif
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</PhotoUrl>
|
|
<PhotoIntro>
|
|
<xsl:value-of disable-output-escaping="yes" select="PhotoIntro"/>
|
|
</PhotoIntro>
|
|
<Stars>
|
|
<xsl:value-of select="Stars"/>
|
|
</Stars>
|
|
<LastHitTime>
|
|
<xsl:value-of select="LastHitTime"/>
|
|
</LastHitTime>
|
|
<InfoPath>
|
|
<a href="<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>" linkOpenType="<xsl:choose>
|
|
<xsl:when test="$linkOpenType = 2">
|
|
<xsl:choose>
|
|
<xsl:when test="pe:GetNodeInfo(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:value-of select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'…')" />
|
|
</a>
|
|
</InfoPath>
|
|
<NodePath>
|
|
<a href="<xsl:value-of select="pe:GetNodePath('true',NodeID)"/>">
|
|
<xsl:value-of select="pe:GetNode(NodeID,'name')" />
|
|
</a>
|
|
</NodePath>
|
|
</Table>
|
|
</xsl:for-each>
|
|
</NewDataSet>
|
|
</xsl:template>
|
|
</xsl:transform>]]></LabelTemplate>
|
|
<OutType>
|
|
</OutType>
|
|
<CacheTime>0</CacheTime>
|
|
<UsePage>
|
|
</UsePage>
|
|
<LabelSqlCount>SELECT COUNT(*) from PE_Nodes where ParentID = @parentId</LabelSqlCount>
|
|
<attributes>
|
|
<name>outputQty</name>
|
|
<default>10</default>
|
|
<intro>显示个数</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>nodeArray</name>
|
|
<default>2</default>
|
|
<intro>子栏目ID</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>parentId</name>
|
|
<datatype>supersql</datatype>
|
|
<default>2</default>
|
|
<intro>父栏目ID{默认值:2,传入值@RequestInt_Id}</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>titleLength</name>
|
|
<default>20</default>
|
|
<intro>标题字符数</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>
|
|
<attributes>
|
|
<name>linkOpenType</name>
|
|
<datatype>supersql</datatype>
|
|
<default>2</default>
|
|
<intro>内容链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</intro>
|
|
</attributes>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
</root> |