first commit
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>Flash类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>parentId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>内容父栏目ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>10</default>
|
||||
<intro>输出的内容数量</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>300</default>
|
||||
<intro>内容最多显示字符数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>fieldName</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>title</default>
|
||||
<intro>搜索条件字段名</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>fieldValue</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>搜索条件字段值</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>普通式</default>
|
||||
<intro>内容呈现样式</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT NodeID,arrChildID FROM PE_Nodes WHERE NodeID = @parentId</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="titleLength" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:param name="fieldName" />
|
||||
<xsl:param name="fieldValue" />
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="linkOpenType" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">
|
||||
没有任何相关搜索结果!
|
||||
</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
{PE.Label id="Flash栏目内搜索_<xsl:value-of select="$bindStyle"/>" titleLength="<xsl:value-of select="$titleLength"/>" contentLength="<xsl:value-of select="$contentLength"/>" linkOpenType="<xsl:value-of select="$linkOpenType"/>" fieldValue="<xsl:value-of select="$fieldValue"/>" queryCond="SELECT TOP @pagesize *
|
||||
FROM PE_CommonModel CM INNER JOIN PE_U_Flash UT ON (CM.ItemID = UT.ID)
|
||||
WHERE CM.NodeID IN (<xsl:value-of select="/NewDataSet/Table/arrChildID"/>) AND CM.Status = 99
|
||||
<xsl:choose>
|
||||
<xsl:when test="$fieldName = 'title'">
|
||||
AND CM.Title LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'intro'">
|
||||
AND UT.Intro LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
</xsl:choose>AND CM.GeneralID NOT IN (SELECT TOP @startrow CM.GeneralID
|
||||
FROM PE_CommonModel CM INNER JOIN PE_U_Flash UT ON (CM.ItemID = UT.ID)
|
||||
WHERE CM.NodeID IN (<xsl:value-of select="/NewDataSet/Table/arrChildID"/>) AND CM.Status = 99
|
||||
<xsl:choose>
|
||||
<xsl:when test="$fieldName = 'title'">
|
||||
AND CM.Title LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'intro'">
|
||||
AND UT.Intro LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
</xsl:choose> ORDER BY CM.UpdateTime )
|
||||
ORDER BY CM.UpdateTime" queryCount="SELECT COUNT (CM.ItemID)
|
||||
FROM PE_CommonModel CM INNER JOIN PE_U_Flash UT ON (CM.ItemID = UT.ID)
|
||||
WHERE CM.NodeID IN (<xsl:value-of select="/NewDataSet/Table/arrChildID"/>) AND CM.Status = 99
|
||||
<xsl:choose>
|
||||
<xsl:when test="$fieldName = 'title'">
|
||||
AND CM.Title LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'intro'">
|
||||
AND UT.Intro LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
</xsl:choose>" page="true" pagesize="<xsl:value-of select="$outputQty"/>" urlpage="true" /}
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
Reference in New Issue
Block a user