66 lines
2.2 KiB
Plaintext
66 lines
2.2 KiB
Plaintext
<root>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<LabelType>专题类</LabelType>
|
|
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<LabelSqlString>SELECT Top @pagesize C.*,I.SpecialID FROM PE_CommonModel C INNER JOIN PE_SpecialInfos I ON C.GeneralID=I.GeneralID WHERE C.GeneralID NOT IN (SELECT Top @startrow IC.GeneralID FROM PE_CommonModel IC INNER JOIN PE_SpecialInfos II ON IC.GeneralID=II.GeneralID WHERE II.SpecialID =@specialId AND IC.Status=99 ORDER BY IC.UpdateTime DESC) AND I.SpecialID=@specialId 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:param name="titleLength" />
|
|
<xsl:param name="specialId" />
|
|
<xsl:output method="xml" />
|
|
<xsl:template match="/">
|
|
<NewDataSet>
|
|
<xsl:for-each select="NewDataSet/Table">
|
|
<Table>
|
|
<GeneralId>
|
|
<xsl:value-of select="GeneralID"/>
|
|
</GeneralId>
|
|
<Inputer>
|
|
<xsl:value-of select="Inputer"/>
|
|
</Inputer>
|
|
<Hits>
|
|
<xsl:value-of select="Hits"/>
|
|
</Hits>
|
|
<UpdateTime>
|
|
<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd')"/>
|
|
</UpdateTime>
|
|
<SpecialName>
|
|
<xsl:value-of select="pe:GetSpecial($specialId,'name')"/>
|
|
</SpecialName>
|
|
<Title>
|
|
<xsl:value-of select="pe:CutText(Title,$titleLength,'...')"/>
|
|
</Title>
|
|
<InfoPath>
|
|
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
|
</InfoPath>
|
|
</Table>
|
|
</xsl:for-each>
|
|
</NewDataSet>
|
|
</xsl:template>
|
|
</xsl:transform>]]></LabelTemplate>
|
|
<OutType>
|
|
</OutType>
|
|
<CacheTime>0</CacheTime>
|
|
<UsePage>True</UsePage>
|
|
<LabelSqlCount>select count(C.GeneralID) from PE_CommonModel C INNER JOIN PE_SpecialInfos I ON C.GeneralID=I.GeneralID where I.SpecialID =@specialId and C.Status=99</LabelSqlCount>
|
|
<attributes>
|
|
<name>specialId</name>
|
|
<default>1</default>
|
|
<intro>专题ID</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>titleLength</name>
|
|
<default>20</default>
|
|
<intro>标题最多字符数</intro>
|
|
</attributes>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
</root> |