first commit
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>Tag类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<UsePage />
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<LabelSqlString>SELECT Hits = @hits</LabelSqlString>
|
||||
<LabelSqlCount>SELECT COUNT(*) FROM PE_Keywords</LabelSqlCount>
|
||||
<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="hits"/>
|
||||
<xsl:param name="inDays"/>
|
||||
<xsl:param name="linkOpenType"/>
|
||||
<xsl:param name="usePage"/>
|
||||
<xsl:param name="outputQty"/>
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$usePage = 'false'">
|
||||
{PE.Label id="Tag列表_<xsl:value-of select="$bindStyle"/>" maxHits="{PE.Label id="取得Tag最大点击值" /}" hits="<xsl:value-of select="$hits"/>" linkOpenType="<xsl:value-of select="$linkOpenType"/>" page="false" urlpage="false" queryCond="SELECT TOP <xsl:value-of select="$outputQty"/> *
|
||||
FROM PE_Keywords K
|
||||
WHERE K.Hits >= <xsl:value-of select="$hits"/>
|
||||
<xsl:if test="$inDays != ''">
|
||||
AND DATEDIFF(day, K.LastUseTime, GETDATE()) <= <xsl:value-of select="$inDays"/>
|
||||
</xsl:if>
|
||||
ORDER BY K.Priority DESC,K.QuoteTimes DESC" /}
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
{PE.Label id="Tag列表_<xsl:value-of select="$bindStyle"/>" maxHits="{PE.Label id="取得Tag最大点击值" /}" hits="<xsl:value-of select="$hits"/>" linkOpenType="<xsl:value-of select="$linkOpenType"/>" page="true" pagesize="<xsl:value-of select="$outputQty"/>" urlpage="true" queryCond="SELECT TOP @pagesize *
|
||||
FROM PE_Keywords K
|
||||
WHERE K.KeywordID NOT IN(
|
||||
SELECT TOP @startrow KeywordID
|
||||
FROM PE_Keywords
|
||||
WHERE Hits >= <xsl:value-of select="Hits"/>
|
||||
<xsl:if test="$inDays != ''">
|
||||
AND DATEDIFF(day, LastUseTime, GETDATE()) <= <xsl:value-of select="$inDays"/>
|
||||
</xsl:if>
|
||||
ORDER BY Priority DESC,QuoteTimes DESC)
|
||||
AND K.Hits >= <xsl:value-of select="$hits"/>
|
||||
<xsl:if test="$inDays != ''">
|
||||
AND DATEDIFF(day, K.LastUseTime, GETDATE()) <= <xsl:value-of select="$inDays"/>
|
||||
</xsl:if>
|
||||
ORDER BY K.Priority DESC,K.QuoteTimes DESC" queryCount="SELECT COUNT(*) FROM PE_Keywords WHERE Hits >= <xsl:value-of select="Hits"/> <xsl:if test="$inDays != ''">
|
||||
AND DATEDIFF(day, LastUseTime, GETDATE()) <= <xsl:value-of select="$inDays"/>
|
||||
</xsl:if>" /}
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>hits</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>热门点击数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>inDays</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>100</default>
|
||||
<intro>日期范围</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>普通式</default>
|
||||
<intro>呈现样式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>linkOpenType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>_blank</default>
|
||||
<intro>打开方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>usePage</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>true</default>
|
||||
<intro>是否分页</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>20</default>
|
||||
<intro>每页分页数</intro>
|
||||
</attributes>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>Tag类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<LabelSqlString>SELECT TOP 1 * FROM PE_Keywords ORDER BY Hits 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="hits"/>
|
||||
<xsl:template match="/NewDataSet">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(Table)=0">5</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="Table/Hits < 5">5</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="Table/Hits"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>Tag类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>itemId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>内容ID{默认值:1,传入值:@RequestInt_Id}</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<LabelSqlString>SELECT KeywordID,KeywordText FROM PE_Keywords WHERE KeywordID IN(SELECT KeywordID FROM PE_KeywordRelationShip WHERE GeneralID = @itemId)</LabelSqlString>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:param name="splitChar" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:InstallDir()"/>Tag.aspx?keyword=<xsl:value-of select="KeywordText"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="KeywordText"/>
|
||||
</a>
|
||||
<xsl:if test="position() != last()">
|
||||
<xsl:value-of select="$splitChar" />
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<attributes>
|
||||
<name>splitChar</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>|</default>
|
||||
<intro>关键词间拆分符</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>Tag类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>splitChar</name>
|
||||
<default>|</default>
|
||||
<intro>分割符号</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT TOP @outputQty KeywordText FROM PE_Keywords ORDER BY Priority DESC,Hits 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="splitChar"/>
|
||||
<xsl:variable name="countnum" select="count(/NewDataSet/Table)"/>
|
||||
<xsl:template match="/NewDataSet">
|
||||
<xsl:for-each select="Table">
|
||||
<a> <xsl:attribute name="href"><xsl:value-of select="pe:InstallDir()"/>Tag.aspx?keyword=<xsl:value-of select="KeywordText"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="KeywordText"/>
|
||||
</a>
|
||||
<xsl:if test="position()<$countnum">
|
||||
<xsl:value-of select="$splitChar"/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>20</default>
|
||||
<intro>显示数目</intro>
|
||||
</attributes>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
Reference in New Issue
Block a user