first commit
This commit is contained in:
@@ -0,0 +1,190 @@
|
||||
<root>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelType>栏目类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<LabelSqlString><![CDATA[SELECT TOP @outputQty * FROM PE_CommonModel C INNER JOIN PE_U_Soft S ON (C.ItemID = S.ID) WHERE C.NodeID IN (@nodeArray) AND C.Status = 99 AND C.SigninType!=2 AND C.EliteLevel >= @eliteLevel AND C.Hits >= @hits 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: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>
|
||||
<DemoUrl>
|
||||
<xsl:value-of select="DemoUrl"/>
|
||||
</DemoUrl>
|
||||
<Keyword>
|
||||
<xsl:value-of select="Keyword"/>
|
||||
</Keyword>
|
||||
<OperatingSystem>
|
||||
<xsl:value-of select="OperatingSystem"/>
|
||||
</OperatingSystem>
|
||||
<SoftType>
|
||||
<xsl:value-of select="SoftType"/>
|
||||
</SoftType>
|
||||
<SoftLanguage>
|
||||
<xsl:value-of select="SoftLanguage"/>
|
||||
</SoftLanguage>
|
||||
<CopyrightType>
|
||||
<xsl:value-of select="CopyrightType"/>
|
||||
</CopyrightType>
|
||||
<RegUrl>
|
||||
<xsl:value-of select="RegUrl"/>
|
||||
</RegUrl>
|
||||
<SoftIntro>
|
||||
<xsl:value-of disable-output-escaping="yes" select="SoftIntro"/>
|
||||
</SoftIntro>
|
||||
<DefaultPicUrl>
|
||||
<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>
|
||||
</DefaultPicUrl>
|
||||
<SoftSize>
|
||||
<xsl:value-of select="SoftSize"/>
|
||||
</SoftSize>
|
||||
<DownloadUrl>
|
||||
<xsl:value-of select="DownloadUrl"/>
|
||||
</DownloadUrl>
|
||||
<Stars>
|
||||
<xsl:value-of select="Stars"/>
|
||||
</Stars>
|
||||
<DecompressPassword>
|
||||
<xsl:value-of select="DecompressPassword"/>
|
||||
</DecompressPassword>
|
||||
<LastHitTime>
|
||||
<xsl:value-of select="LastHitTime"/>
|
||||
</LastHitTime>
|
||||
<InfoPath>
|
||||
<a href="<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>" target="<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>sin</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>3</default>
|
||||
<intro>子栏目ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>parentId</name>
|
||||
<default>3</default>
|
||||
<intro>父栏目ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>20</default>
|
||||
<intro>标题字符数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>eliteLevel</name>
|
||||
<default>0</default>
|
||||
<intro>推荐级别</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>hits</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>热门最小点击数</intro>
|
||||
</attributes>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>2</default>
|
||||
<intro>链接打开方式</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
Reference in New Issue
Block a user