first commit
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
<root>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelType>Flash类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<LabelSqlString>SELECT TOP 1 * FROM PE_CommonModel CM INNER JOIN PE_U_Flash UT ON (CM.ItemID = UT.ID) WHERE CM.GeneralID = @itemId AND CM.Status=99</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="xml" />
|
||||
<xsl:param name="itemId"/>
|
||||
<xsl:template match="/">
|
||||
<root>
|
||||
<!--FieldTipsStart-->
|
||||
<GeneralID>
|
||||
<xsl:value-of select="/NewDataSet/Table/GeneralID"/>
|
||||
</GeneralID>
|
||||
<NodeID>
|
||||
<xsl:value-of select="/NewDataSet/Table/NodeID"/>
|
||||
</NodeID>
|
||||
<NodeName>
|
||||
<xsl:value-of select="/NewDataSet/Table/NodeID"/>
|
||||
</NodeName>
|
||||
<Title>
|
||||
<xsl:value-of select="/NewDataSet/Table/Title"/>
|
||||
</Title>
|
||||
<TitleFontColor>
|
||||
color:<xsl:value-of select="/NewDataSet/Table/TitleFontColor"/>
|
||||
</TitleFontColor>
|
||||
<TitleFontType>
|
||||
{PE.Label id="转换标题字型" titleFontType="<xsl:value-of select="/NewDataSet/Table/TitleFontType"/>" /}
|
||||
</TitleFontType>
|
||||
<Vote>
|
||||
<xsl:value-of select="pe:GetVoteForm(/NewDataSet/Table/GeneralID)"/>
|
||||
</Vote>
|
||||
<UpdateTime>
|
||||
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/UpdateTime,'yyyy年mm月dd日')"/>
|
||||
</UpdateTime>
|
||||
<Runtime>
|
||||
<xsl:value-of select="/NewDataSet/Table/Runtime"/>分钟
|
||||
</Runtime>
|
||||
<Hits>
|
||||
<script language="JavaScript" type="text/JavaScript" src="<xsl:value-of select="pe:InstallDir()" />Common/GetHits.aspx?id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>"></script>
|
||||
</Hits>
|
||||
<DayHits>
|
||||
<script language="JavaScript" type="text/JavaScript" src="
|
||||
<xsl:value-of select="pe:InstallDir()"/>Common/GetHits.aspx?hitstype=1&id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>
|
||||
"></script>
|
||||
</DayHits>
|
||||
<WeekHits>
|
||||
<script language="JavaScript" type="text/JavaScript" src="
|
||||
<xsl:value-of select="pe:InstallDir()"/>Common/GetHits.aspx?hitstype=2&id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>
|
||||
"></script>
|
||||
</WeekHits>
|
||||
<MonthHits>
|
||||
<script language="JavaScript" type="text/JavaScript" src="
|
||||
<xsl:value-of select="pe:InstallDir()"/>Common/GetHits.aspx?hitstype=3&id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>
|
||||
"></script>
|
||||
</MonthHits>
|
||||
<FlashWidth>
|
||||
<xsl:value-of select="/NewDataSet/Table/FlashWidth"/>
|
||||
</FlashWidth>
|
||||
<FlashHeight>
|
||||
<xsl:value-of select="/NewDataSet/Table/FlashHeight"/>
|
||||
</FlashHeight>
|
||||
<Intro>
|
||||
<xsl:value-of select="/NewDataSet/Table/Intro"/>
|
||||
</Intro>
|
||||
<PlayUrl>
|
||||
<xsl:value-of select="/NewDataSet/Table/PlayUrl"/>
|
||||
</PlayUrl>
|
||||
<!--FieldTipsEnd-->
|
||||
</root>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>itemId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>FlashID</intro>
|
||||
</attributes>
|
||||
<OutType>
|
||||
</OutType>
|
||||
<CacheTime>0</CacheTime>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
@@ -0,0 +1,434 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>Flash类</LabelType>
|
||||
<LabelIntro>Flash信息列表复杂算法主标签,此标签仅用来调用,无需修改!</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT NodeID,arrChildID,ItemListOrderType,ItemPageSize FROM PE_Nodes WHERE NodeID IN (@parentId)</LabelSqlString>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<datatype>string</datatype>
|
||||
<default>普通式</default>
|
||||
<intro>项目呈现样式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>usePage</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否分页显示</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>int</datatype>
|
||||
<default>10</default>
|
||||
<intro>输出的项目数量</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>50</default>
|
||||
<intro>项目标题长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>parentId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>父栏目ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>nodeArray</name>
|
||||
<datatype>string</datatype>
|
||||
<default>0</default>
|
||||
<intro>栏目数组</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>modelId</name>
|
||||
<datatype>string</datatype>
|
||||
<default>0</default>
|
||||
<intro>模型ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>specialId</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>专题ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>itemId</name>
|
||||
<datatype>string</datatype>
|
||||
<default>0</default>
|
||||
<intro>项目ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>itemListOrderType</name>
|
||||
<datatype>int</datatype>
|
||||
<default>1</default>
|
||||
<intro>项目列表排序方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>inDays</name>
|
||||
<datatype>int</datatype>
|
||||
<default />
|
||||
<intro>近多少天的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>betDate</name>
|
||||
<datatype>string</datatype>
|
||||
<default />
|
||||
<intro>介于时间段之间的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>editor</name>
|
||||
<datatype>string</datatype>
|
||||
<default />
|
||||
<intro>为指定编辑者的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>inputer</name>
|
||||
<datatype>string</datatype>
|
||||
<default />
|
||||
<intro>为指定录入者的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>hits</name>
|
||||
<datatype>int</datatype>
|
||||
<default />
|
||||
<intro>点击数大于等于指定值的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>dayHits</name>
|
||||
<datatype>int</datatype>
|
||||
<default />
|
||||
<intro>日点击数大于等于指定值的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>weekHits</name>
|
||||
<datatype>int</datatype>
|
||||
<default />
|
||||
<intro>周点击数大于等于指定值的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>monthHits</name>
|
||||
<datatype>int</datatype>
|
||||
<default />
|
||||
<intro>月点击数大于等于指定值的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>eliteLevel</name>
|
||||
<datatype>int</datatype>
|
||||
<default />
|
||||
<intro>推荐级大于等于指定值的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>priorityLevel</name>
|
||||
<datatype>int</datatype>
|
||||
<default />
|
||||
<intro>优先级大于等于指定值的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>picIsNotNull</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否查询带图片的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>disableVirtualLink</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否禁止输出虚连接项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayDateTime</name>
|
||||
<datatype>string</datatype>
|
||||
<default />
|
||||
<intro>显示日期格式如:mm-dd,为空则不显示</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayPropertyPrefix</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>项目列表前缀修饰符</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayNewSign</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>近多少天的项目视为最新,0不启用此功能</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayTitlePrefix</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示项目前缀修饰语</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayHits</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示项目点击数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayTips</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示作者,更新日期,点击数等浮动提示信息</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayInputer</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示内容的录入者</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayNodeName</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示所属栏目名称</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayHotSign</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示热门内容图标</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayCommentLink</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示评论链接</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>forceItemListOrder</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>true</default>
|
||||
<intro>强行由"项目列表排序方式参数"控制,否则由节点配置取代</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>forceOutputQty</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>true</default>
|
||||
<intro>强行由参数"输出的项目数量"否则由节点配置取代</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>optionalCond</name>
|
||||
<datatype>string</datatype>
|
||||
<default />
|
||||
<intro>可选扩展查询约束条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>optionalExtend</name>
|
||||
<datatype>string</datatype>
|
||||
<default />
|
||||
<intro>可选扩展参数</intro>
|
||||
</attributes>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="usePage" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="parentId" />
|
||||
<xsl:param name="nodeArray"/>
|
||||
<xsl:param name="modelId" />
|
||||
<xsl:param name="joinModelId"/>
|
||||
<xsl:param name="specialId" />
|
||||
<xsl:param name="itemId" />
|
||||
<xsl:param name="itemListOrderType" />
|
||||
<xsl:param name="inDays" />
|
||||
<xsl:param name="betDate" />
|
||||
<xsl:param name="editor" />
|
||||
<xsl:param name="inputer" />
|
||||
<xsl:param name="hits" />
|
||||
<xsl:param name="dayHits" />
|
||||
<xsl:param name="weekHits" />
|
||||
<xsl:param name="monthHits" />
|
||||
<xsl:param name="eliteLevel" />
|
||||
<xsl:param name="priorityLevel" />
|
||||
<xsl:param name="picIsNotNull"/>
|
||||
<xsl:param name="disableVirtualLink" />
|
||||
<xsl:param name="displayDateTime" />
|
||||
<xsl:param name="displayPropertyPrefix" />
|
||||
<xsl:param name="displayNewSign" />
|
||||
<xsl:param name="displayTitlePrefix" />
|
||||
<xsl:param name="displayHits" />
|
||||
<xsl:param name="displayTips" />
|
||||
<xsl:param name="displayInputer" />
|
||||
<xsl:param name="displayNodeName" />
|
||||
<xsl:param name="displayHotSign" />
|
||||
<xsl:param name="displayCommentLink" />
|
||||
<xsl:param name="forceItemListOrder" />
|
||||
<xsl:param name="forceOutputQty" />
|
||||
<xsl:param name="optionalCond" />
|
||||
<xsl:param name="optionalExtend" />
|
||||
<xsl:template match="/">
|
||||
<xsl:variable name="params">
|
||||
<!--如需增加标签传递参数请添加在此位置-->
|
||||
titleLength="<xsl:value-of select="$titleLength"/>" displayPropertyPrefix="<xsl:value-of select="$displayPropertyPrefix"/>" displayDateTime="<xsl:value-of select="$displayDateTime"/>" displayTitlePrefix="<xsl:value-of select="$displayTitlePrefix"/>" displayHits="<xsl:value-of select="$displayHits"/>" displayTips="<xsl:value-of select="$displayTips"/>" displayInputer="<xsl:value-of select="$displayInputer"/>" displayNodeName="<xsl:value-of select="$displayNodeName"/>" displayHotSign="<xsl:value-of select="$displayHotSign"/>" displayNewSign="<xsl:value-of select="$displayNewSign"/>" displayCommentLink="<xsl:value-of select="$displayCommentLink"/>" optionalExtend="<xsl:value-of select="$optionalExtend"/>"
|
||||
</xsl:variable>
|
||||
<xsl:variable name="importStyle">
|
||||
<!--样式依赖项,被传递标签样式名称规则-->
|
||||
Flash信息列表_<xsl:value-of select="$bindStyle"/>
|
||||
</xsl:variable>
|
||||
<!--核心计算方式开始,以下内容请勿修改-->
|
||||
<xsl:variable name="itemPageSize">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$forceOutputQty = 'true'">
|
||||
<xsl:value-of select="$outputQty"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="/NewDataSet/Table/ItemPageSize > 0">
|
||||
<xsl:value-of select="/NewDataSet/Table/ItemPageSize"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$outputQty"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="itemListOrderType">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$forceItemListOrder = 'true'">
|
||||
<xsl:value-of select="$itemListOrderType"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="/NewDataSet/Table/ItemListOrderType"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="itemListOrderValue">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$itemListOrderType = 1">CM.GeneralID DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 2">CM.GeneralID</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 3">CM.UpdateTime DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 4">CM.UpdateTime</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 5">CM.Hits DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 6">CM.Hits</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 7">CM.CommentAudited DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 8">CM.CommentAudited</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 9">CM.DayHits DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 10">CM.DayHits</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 11">CM.WeekHits DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 12">CM.WeekHits</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 13">CM.MonthHits DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 14">CM.MonthHits</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 15">CM.EliteLevel DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 16">CM.EliteLevel</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 17">CM.Priority DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 18">CM.Priority</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 19">CM.Hits DESC,CM.UpdateTime DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 20">CM.EliteLevel DESC,CM.UpdateTime DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 21">CM.Priority DESC,CM.UpdateTime DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 22">CM.CommentAudited DESC,CM.UpdateTime DESC</xsl:when>
|
||||
<xsl:otherwise>CM.UpdateTime DESC</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="node">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$nodeArray = 0">
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<xsl:value-of select="arrChildID"/>,
|
||||
</xsl:for-each>0
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$nodeArray"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="queryCondition">
|
||||
<xsl:if test="$specialId != 0">
|
||||
AND SI.SpecialID IN (<xsl:value-of select="$specialId"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$modelId != 0">
|
||||
AND CM.ModelID IN (<xsl:value-of select="$modelId"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$itemId != 0">
|
||||
AND CM.GeneralID IN (<xsl:value-of select="$itemId"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$picIsNotNull = 'true'">
|
||||
AND CM.DefaultPicUrl != ''
|
||||
</xsl:if>
|
||||
<xsl:if test="$disableVirtualLink = 'true'">
|
||||
AND CM.LinkType = 0
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer != ''">
|
||||
AND CM.Inputer = '<xsl:value-of select="$inputer"/>'
|
||||
</xsl:if>
|
||||
<xsl:if test="$editor != ''">
|
||||
AND CM.Editor = <xsl:value-of select="$editor"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$eliteLevel != ''">
|
||||
AND CM.EliteLevel >= <xsl:value-of select="$eliteLevel"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$priorityLevel != ''">
|
||||
AND CM.Priority >= <xsl:value-of select="$priorityLevel"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$hits != ''">
|
||||
AND CM.Hits >= <xsl:value-of select="$hits"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$dayHits != ''">
|
||||
AND CM.DayHits >= <xsl:value-of select="$dayHits"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$weekHits != ''">
|
||||
AND CM.WeekHits >= <xsl:value-of select="$weekHits"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$monthHits != ''">
|
||||
AND CM.MonthHits >= <xsl:value-of select="$monthHits"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$inDays != ''">
|
||||
AND DATEDIFF(d,CM.UpdateTime,GETDATE()) <= <xsl:value-of select="$inDays"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$betDate != ''">
|
||||
AND (CM.UpdateTime >= '<xsl:value-of select="substring-before($betDate,'|')" />' AND CM.UpdateTime <= '<xsl:value-of select="substring-after($betDate,'|')" />')
|
||||
</xsl:if>
|
||||
<xsl:if test="$optionalCond != ''">
|
||||
<xsl:value-of select="$optionalCond"/>
|
||||
</xsl:if>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="joinQuerySnippet">
|
||||
<xsl:if test="$specialId != 0">
|
||||
INNER JOIN PE_SpecialInfos SI ON (CM.ItemID = SI.GeneralID)
|
||||
</xsl:if>
|
||||
INNER JOIN PE_U_Flash UT ON (CM.ItemID = UT.ID)
|
||||
</xsl:variable>
|
||||
<!--核心计算方式结束,以上内容请勿修改-->
|
||||
<!--**********************************-->
|
||||
<!--分页、扩展样式、查询语句、参数传递-->
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$parentId = 0">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$usePage = 'false'">
|
||||
{PE.Label id="<xsl:value-of select="$importStyle"/>" <xsl:value-of select="$params"/> queryCond="SELECT TOP <xsl:value-of select="$itemPageSize"/> * FROM PE_CommonModel CM <xsl:value-of select="$joinQuerySnippet"/> WHERE CM.Status = 99 <xsl:value-of select="$queryCondition"/> ORDER BY <xsl:value-of select="$itemListOrderValue"/>" page="false" /}
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
{PE.Label id="<xsl:value-of select="$importStyle"/>" <xsl:value-of select="$params"/>" queryCond="SELECT TOP @pagesize * FROM PE_CommonModel CM <xsl:value-of select="$joinQuerySnippet"/> WHERE CM.Status = 99 <xsl:value-of select="$queryCondition"/> AND CM.ItemID NOT IN(SELECT TOP @startrow CM.ItemID FROM PE_CommonModel CM <xsl:value-of select="$itemListOrderValue"/> WHERE <xsl:value-of select="$queryCondition"/> ORDER BY <xsl:value-of select="$itemListOrderValue"/>) ORDER BY <xsl:value-of select="$itemListOrderType"/>" queryCount="SELECT COUNT (CM.ItemID) FROM PE_CommonModel CM <xsl:value-of select="$joinQuerySnippet"/> WHERE CM.Status = 99 <xsl:value-of select="$queryCondition"/>" page="true" pagesize="<xsl:value-of select="$itemPageSize"/>" urlpage="true" /}
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<font style="color:red">出错啦!指定了不可能的栏目ID(数组)!</font>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$usePage = 'false'">
|
||||
{PE.Label id="<xsl:value-of select="$importStyle"/>" <xsl:value-of select="$params"/> queryCond="SELECT TOP <xsl:value-of select="$itemPageSize"/> * FROM PE_CommonModel CM <xsl:value-of select="$joinQuerySnippet"/> WHERE CM.Status = 99 AND CM.NodeID IN (<xsl:value-of select="$node"/>) <xsl:value-of select="$queryCondition"/> ORDER BY <xsl:value-of select="$itemListOrderValue"/>" page="false" /}
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
{PE.Label id="<xsl:value-of select="$importStyle"/>" <xsl:value-of select="$params"/> queryCond="SELECT TOP @pagesize * FROM PE_CommonModel CM <xsl:value-of select="$joinQuerySnippet"/> WHERE CM.Status = 99 AND CM.NodeID IN (<xsl:value-of select="$node"/>) <xsl:value-of select="$queryCondition"/> AND CM.ItemID NOT IN(SELECT TOP @startrow CM.ItemID FROM PE_CommonModel CM <xsl:value-of select="$joinQuerySnippet"/> WHERE CM.Status = 99 AND CM.NodeID IN (<xsl:value-of select="$node"/>) <xsl:value-of select="$queryCondition"/> ORDER BY <xsl:value-of select="$itemListOrderValue"/>) ORDER BY <xsl:value-of select="$itemListOrderValue"/>" queryCount="SELECT COUNT (CM.ItemID) FROM PE_CommonModel CM <xsl:value-of select="$joinQuerySnippet"/> WHERE CM.Status = 99 AND CM.NodeID IN (<xsl:value-of select="$node"/>) <xsl:value-of select="$queryCondition"/>" page="true" pagesize="<xsl:value-of select="$itemPageSize"/>" urlpage="true" /}
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<Version officialVersion="" modifiedVersions="0000" compatibleVersion="" />
|
||||
</root>
|
||||
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>Flash类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>50</default>
|
||||
<intro>项目标题长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<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="no"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:param name="queryCount" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">还没有任何项目!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<div class="thumb">
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
|
||||
<xsl:choose>
|
||||
<xsl:when test="FlashPic!= ''">
|
||||
<img src="{pe:ConvertToAbsolutePath(FlashPic)}" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<img src="{pe:InstallDir()}images/nopic.gif" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
</div>
|
||||
<h3>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'')"/>
|
||||
</a>
|
||||
</h3>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 4 * FROM PE_CommonModel CM INNER JOIN PE_U_Flash UT ON (CM.ItemID = UT.ID) WHERE CM.Status = 99 AND SUBSTRING(FlashPic,0,10) != '' ORDER BY CM.UpdateTime DESC</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,246 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>Flash类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>50</default>
|
||||
<intro>项目标题长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayPropertyPrefix</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>项目列表前缀修饰符</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayDateTime</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>是否显示日期,为空则不显示</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayTitlePrefix</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示项目前缀修饰语</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayHits</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示项目点击数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayTips</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示作者,更新日期,点击数等浮动提示信息</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayInputer</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示内容的录入者</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayNodeName</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示所属栏目名称</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayHotSign</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示热门内容图标</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayNewSign</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示新内容图标</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>displayCommentLink</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否显示评论链接</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>optionalExtend</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>可选扩展参数</intro>
|
||||
</attributes>
|
||||
<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="no"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="displayPropertyPrefix" />
|
||||
<xsl:param name="displayDateTime" />
|
||||
<xsl:param name="displayTitlePrefix" />
|
||||
<xsl:param name="displayHits" />
|
||||
<xsl:param name="displayTips" />
|
||||
<xsl:param name="displayInputer" />
|
||||
<xsl:param name="displayNodeName" />
|
||||
<xsl:param name="displayHotSign" />
|
||||
<xsl:param name="displayNewSign" />
|
||||
<xsl:param name="displayCommentLink" />
|
||||
<xsl:param name="optionalExtend" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:param name="queryCount" />
|
||||
<xsl:variable name="hitsOfhot" select="pe:GetNodeInfo(/NewDataSet/Table/NodeID, 'HitsOfHot')"/>
|
||||
<xsl:variable name="leastOfEliteLevel" select="pe:GetNodeInfo(/NewDataSet/Table/NodeID, 'LeastOfEliteLevel')"/>
|
||||
<xsl:variable name="linkOpenType" select="pe:GetNodeInfo(/NewDataSet/Table/NodeID, 'ItemOpenType')"/>
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">还没有任何项目!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<xsl:if test="$displayPropertyPrefix != 0">
|
||||
<xsl:choose>
|
||||
<xsl:when test="EliteLevel > $leastOfEliteLevel">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:InstallDir()"/>images/elite<xsl:value-of select="$displayPropertyPrefix"/>.gif
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">推荐</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:when>
|
||||
<xsl:when test="Hits > $hitsOfhot">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:InstallDir()"/>images/ontop<xsl:value-of select="$displayPropertyPrefix"/>.gif
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">热门</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="pe:InstallDir()"/>images/common<xsl:value-of select="$displayPropertyPrefix"/>.gif
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="alt">普通</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayNodeName = 'true'">
|
||||
[<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetNodePath(false,NodeID)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:GetNodeInfo(NodeID, 'OpenType') = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:GetNode(NodeID,'name')" />
|
||||
</a>]
|
||||
</xsl:if> <xsl:if test="$displayTitlePrefix = 'true'">
|
||||
<xsl:if test="IncludePic != '无'">
|
||||
<xsl:value-of select="IncludePic"/>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
|
||||
<xsl:otherwise>_blank</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:if test="$displayTips = 'true'">
|
||||
<xsl:attribute name="title">标题:<xsl:value-of select="Title"/>
|
||||
<xsl:value-of select="'
'" />点击数:<xsl:value-of select="Hits"/>
|
||||
<xsl:value-of select="'
'" />发表时间:<xsl:value-of select="pe:FormatDate(UpdateTime, 'yy年mm月dd日')" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="TitleFontColor != '' or TitleFontType != '字形'">
|
||||
<font>
|
||||
<xsl:attribute name="style">
|
||||
<xsl:if test="TitleFontColor != ''">
|
||||
color:<xsl:value-of select="TitleFontColor"/>;
|
||||
</xsl:if>
|
||||
<xsl:if test="TitleFontType != '字形'">
|
||||
<xsl:choose>
|
||||
<xsl:when test="TitleFontType ='粗体'">font-weight:bold;font-style:normal;</xsl:when>
|
||||
<xsl:when test="TitleFontType ='斜体'">font-weight:normal ;font-style:italic ;</xsl:when>
|
||||
<xsl:when test="TitleFontType ='粗+斜'">font-weight:bold;font-style:italic ;</xsl:when>
|
||||
<xsl:when test="TitleFontType ='常规'">font-weight:normal ;font-style:normal;</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>;
|
||||
</xsl:if>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
|
||||
</font>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
<xsl:if test="$displayInputer = 'true'">
|
||||
[<xsl:value-of select="Inputer"/>]
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayHits = 'true'">
|
||||
[<xsl:value-of select="Hits"/>]
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayDateTime != ''">
|
||||
[<xsl:value-of select="pe:FormatDate(UpdateTime, $displayDateTime)" />]
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayCommentLink = 'true' and ShowCommentLink = 'true'">
|
||||
[<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:InstallDir()" />Comment/AddComment.aspx?itemId=<xsl:value-of select="GeneralID"/>&nodeId=<xsl:value-of select="NodeID"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="target">_blank</xsl:attribute>评论
|
||||
</a>]
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayHotSign = 'true' and Hits > $hitsOfhot">
|
||||
<img src="{pe:InstallDir()}images/hot.gif" alt="热门内容" />
|
||||
</xsl:if>
|
||||
<xsl:if test="$displayNewSign != '' and $displayNewSign >= pe:TimeSpan(UpdateTime,pe:TimeNow())">
|
||||
<img src="{pe:InstallDir()}images/new.gif" alt="最新内容" />
|
||||
</xsl:if>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,395 @@
|
||||
<root>
|
||||
<LabelType>Flash类</LabelType>
|
||||
<LabelIntro>Flash带图片的信息列表复杂算法主标签,此标签仅用来调用,无需修改!</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT NodeID,arrChildID,ItemListOrderType,ItemPageSize FROM PE_Nodes WHERE NodeID IN (@parentId)</LabelSqlString>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<datatype>string</datatype>
|
||||
<default>图片式</default>
|
||||
<intro>项目呈现样式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>usePage</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否分页显示</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<datatype>int</datatype>
|
||||
<default>10</default>
|
||||
<intro>输出的项目数量</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>50</default>
|
||||
<intro>项目标题长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>项目内容长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>parentId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>父栏目ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>nodeArray</name>
|
||||
<datatype>string</datatype>
|
||||
<default>0</default>
|
||||
<intro>栏目数组</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>modelId</name>
|
||||
<datatype>string</datatype>
|
||||
<default>0</default>
|
||||
<intro>模型ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>joinModelId</name>
|
||||
<datatype>int</datatype>
|
||||
<default>1</default>
|
||||
<intro>通过模型ID与指定的模型表联合</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>specialId</name>
|
||||
<datatype>int</datatype>
|
||||
<default>0</default>
|
||||
<intro>专题ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>itemId</name>
|
||||
<datatype>string</datatype>
|
||||
<default>0</default>
|
||||
<intro>项目ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>itemListOrderType</name>
|
||||
<datatype>int</datatype>
|
||||
<default>1</default>
|
||||
<intro>项目列表排序方式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>inDays</name>
|
||||
<datatype>int</datatype>
|
||||
<default />
|
||||
<intro>近多少天的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>betDate</name>
|
||||
<datatype>string</datatype>
|
||||
<default />
|
||||
<intro>介于时间段之间的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>editor</name>
|
||||
<datatype>string</datatype>
|
||||
<default />
|
||||
<intro>为指定编辑者的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>inputer</name>
|
||||
<datatype>string</datatype>
|
||||
<default />
|
||||
<intro>为指定录入者的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>hits</name>
|
||||
<datatype>int</datatype>
|
||||
<default />
|
||||
<intro>点击数大于等于指定值的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>dayHits</name>
|
||||
<datatype>int</datatype>
|
||||
<default />
|
||||
<intro>日点击数大于等于指定值的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>weekHits</name>
|
||||
<datatype>int</datatype>
|
||||
<default />
|
||||
<intro>周点击数大于等于指定值的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>monthHits</name>
|
||||
<datatype>int</datatype>
|
||||
<default />
|
||||
<intro>月点击数大于等于指定值的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>eliteLevel</name>
|
||||
<datatype>int</datatype>
|
||||
<default />
|
||||
<intro>推荐级大于等于指定值的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>priorityLevel</name>
|
||||
<datatype>int</datatype>
|
||||
<default />
|
||||
<intro>优先级大于等于指定值的项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>disableVirtualLink</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否禁止输出虚连接项目</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>imageClass</name>
|
||||
<datatype>string</datatype>
|
||||
<default>pe_u_thumb</default>
|
||||
<intro>图片区块选择器名</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentClass</name>
|
||||
<datatype>string</datatype>
|
||||
<default>pe_u_thumb_title</default>
|
||||
<intro>标题简介区择器名</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>imageWidth</name>
|
||||
<datatype>int</datatype>
|
||||
<default>160</default>
|
||||
<intro>图片宽度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>imageHeight</name>
|
||||
<datatype>int</datatype>
|
||||
<default>120</default>
|
||||
<intro>图片高度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>forceItemListOrder</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>true</default>
|
||||
<intro>强行由"项目列表排序方式参数"控制,否则由节点配置取代</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>forceOutputQty</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>true</default>
|
||||
<intro>强行由参数"输出的项目数量"否则由节点配置取代</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>optionalCond</name>
|
||||
<datatype>string</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>可选扩展查询约束条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>optionalExtend</name>
|
||||
<datatype>string</datatype>
|
||||
<default />
|
||||
<intro>可选扩展参数</intro>
|
||||
</attributes>
|
||||
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="usePage" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="contentLength" />
|
||||
<xsl:param name="parentId" />
|
||||
<xsl:param name="nodeArray"/>
|
||||
<xsl:param name="modelId" />
|
||||
<xsl:param name="joinModelId"/>
|
||||
<xsl:param name="specialId" />
|
||||
<xsl:param name="itemId" />
|
||||
<xsl:param name="itemListOrderType" />
|
||||
<xsl:param name="inDays" />
|
||||
<xsl:param name="betDate" />
|
||||
<xsl:param name="editor" />
|
||||
<xsl:param name="inputer" />
|
||||
<xsl:param name="hits" />
|
||||
<xsl:param name="dayHits" />
|
||||
<xsl:param name="weekHits" />
|
||||
<xsl:param name="monthHits" />
|
||||
<xsl:param name="eliteLevel" />
|
||||
<xsl:param name="priorityLevel" />
|
||||
<xsl:param name="disableVirtualLink" />
|
||||
<xsl:param name="imageClass" />
|
||||
<xsl:param name="contentClass" />
|
||||
<xsl:param name="imageWidth" />
|
||||
<xsl:param name="imageHeight" />
|
||||
<xsl:param name="forceItemListOrder" />
|
||||
<xsl:param name="forceOutputQty" />
|
||||
<xsl:param name="optionalCond" />
|
||||
<xsl:param name="optionalExtend" />
|
||||
<xsl:template match="/">
|
||||
<xsl:variable name="params">
|
||||
<!--如需增加标签传递参数请添加在此位置-->
|
||||
titleLength="<xsl:value-of select="$titleLength"/>" contentLength="<xsl:value-of select="$contentLength"/>" contentClass="<xsl:value-of select="$contentClass"/>" imageClass="<xsl:value-of select="$imageClass"/>" imageHeight="<xsl:value-of select="$imageHeight"/>" imageWidth="<xsl:value-of select="$imageWidth"/>" optionalExtend="<xsl:value-of select="$optionalExtend"/>"
|
||||
</xsl:variable>
|
||||
<xsl:variable name="importStyle">
|
||||
<!--样式依赖项,被传递标签样式名称规则-->
|
||||
Flash信息列表_<xsl:value-of select="$bindStyle"/>
|
||||
</xsl:variable>
|
||||
<!--核心计算方式开始,以下内容请勿修改-->
|
||||
<xsl:variable name="itemPageSize">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$forceOutputQty = 'true'">
|
||||
<xsl:value-of select="$outputQty"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="/NewDataSet/Table/ItemPageSize > 0">
|
||||
<xsl:value-of select="/NewDataSet/Table/ItemPageSize"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$outputQty"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="itemListOrderType">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$forceItemListOrder = 'true'">
|
||||
<xsl:value-of select="$itemListOrderType"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="/NewDataSet/Table/ItemListOrderType"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="itemListOrderValue">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$itemListOrderType = 1">CM.GeneralID DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 2">CM.GeneralID</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 3">CM.UpdateTime DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 4">CM.UpdateTime</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 5">CM.Hits DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 6">CM.Hits</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 7">CM.CommentAudited DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 8">CM.CommentAudited</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 9">CM.DayHits DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 10">CM.DayHits</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 11">CM.WeekHits DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 12">CM.WeekHits</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 13">CM.MonthHits DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 14">CM.MonthHits</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 15">CM.EliteLevel DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 16">CM.EliteLevel</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 17">CM.Priority DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 18">CM.Priority</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 19">CM.Hits DESC,CM.UpdateTime DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 20">CM.EliteLevel DESC,CM.UpdateTime DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 21">CM.Priority DESC,CM.UpdateTime DESC</xsl:when>
|
||||
<xsl:when test="$itemListOrderType = 22">CM.CommentAudited DESC,CM.UpdateTime DESC</xsl:when>
|
||||
<xsl:otherwise>CM.UpdateTime DESC</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="node">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$nodeArray = 0">
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<xsl:value-of select="arrChildID"/>,
|
||||
</xsl:for-each>0
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$nodeArray"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="queryCondition">
|
||||
<xsl:if test="$specialId != 0">
|
||||
AND SI.SpecialID IN (<xsl:value-of select="$specialId"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$modelId != 0">
|
||||
AND CM.ModelID IN (<xsl:value-of select="$modelId"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$itemId != 0">
|
||||
AND CM.GeneralID IN (<xsl:value-of select="$itemId"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$disableVirtualLink = 'true'">
|
||||
AND CM.LinkType = 0
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer != ''">
|
||||
AND CM.Inputer = '<xsl:value-of select="$inputer"/>'
|
||||
</xsl:if>
|
||||
<xsl:if test="$editor != ''">
|
||||
AND CM.Editor = <xsl:value-of select="$editor"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$eliteLevel != ''">
|
||||
AND CM.EliteLevel >= <xsl:value-of select="$eliteLevel"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$priorityLevel != ''">
|
||||
AND CM.Priority >= <xsl:value-of select="$priorityLevel"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$hits != ''">
|
||||
AND CM.Hits >= <xsl:value-of select="$hits"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$dayHits != ''">
|
||||
AND CM.DayHits >= <xsl:value-of select="$dayHits"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$weekHits != ''">
|
||||
AND CM.WeekHits >= <xsl:value-of select="$weekHits"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$monthHits != ''">
|
||||
AND CM.MonthHits >= <xsl:value-of select="$monthHits"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$inDays != ''">
|
||||
AND DATEDIFF(d,CM.UpdateTime,GETDATE()) <= <xsl:value-of select="$inDays"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$betDate != ''">
|
||||
AND (CM.UpdateTime >= '<xsl:value-of select="substring-before($betDate,'|')" />' AND CM.UpdateTime <= '<xsl:value-of select="substring-after($betDate,'|')" />')
|
||||
</xsl:if>
|
||||
<xsl:if test="$optionalCond != ''">
|
||||
<xsl:value-of select="$optionalCond"/>
|
||||
</xsl:if>
|
||||
AND SUBSTRING(UT.FlashPic,0,10) != ''
|
||||
</xsl:variable>
|
||||
<xsl:variable name="joinQuerySnippet">
|
||||
<xsl:if test="$specialId != 0">
|
||||
INNER JOIN PE_SpecialInfos SI ON (CM.ItemID = SI.GeneralID)
|
||||
</xsl:if>
|
||||
INNER JOIN PE_U_Flash UT ON (CM.ItemID = UT.ID)
|
||||
</xsl:variable>
|
||||
<!--核心计算方式结束,以上内容请勿修改-->
|
||||
<!--**********************************-->
|
||||
<!--分页、扩展样式、查询语句、参数传递-->
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$parentId = 0">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$usePage = 'false'">
|
||||
{PE.Label id="<xsl:value-of select="$importStyle"/>" <xsl:value-of select="$params"/> queryCond="SELECT TOP <xsl:value-of select="$itemPageSize"/> * FROM PE_CommonModel CM <xsl:value-of select="$joinQuerySnippet"/> WHERE CM.Status = 99 <xsl:value-of select="$queryCondition"/> ORDER BY <xsl:value-of select="$itemListOrderValue"/>" page="false" /}
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
{PE.Label id="<xsl:value-of select="$importStyle"/>" <xsl:value-of select="$params"/>" queryCond="SELECT TOP @pagesize * FROM PE_CommonModel CM <xsl:value-of select="$joinQuerySnippet"/> WHERE CM.Status = 99 <xsl:value-of select="$queryCondition"/> AND CM.ItemID NOT IN(SELECT TOP @startrow CM.ItemID FROM PE_CommonModel CM <xsl:value-of select="$itemListOrderValue"/> WHERE <xsl:value-of select="$queryCondition"/> ORDER BY <xsl:value-of select="$itemListOrderValue"/>) ORDER BY <xsl:value-of select="$itemListOrderType"/>" queryCount="SELECT COUNT (CM.ItemID) FROM PE_CommonModel CM <xsl:value-of select="$joinQuerySnippet"/> WHERE CM.Status = 99 <xsl:value-of select="$queryCondition"/>" page="true" pagesize="<xsl:value-of select="$itemPageSize"/>" urlpage="true" /}
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<font style="color:red">出错啦!指定了不可能的栏目ID(数组)!</font>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$usePage = 'false'">
|
||||
{PE.Label id="<xsl:value-of select="$importStyle"/>" <xsl:value-of select="$params"/> queryCond="SELECT TOP <xsl:value-of select="$itemPageSize"/> * FROM PE_CommonModel CM <xsl:value-of select="$joinQuerySnippet"/> WHERE CM.Status = 99 AND CM.NodeID IN (<xsl:value-of select="$node"/>) <xsl:value-of select="$queryCondition"/> ORDER BY <xsl:value-of select="$itemListOrderValue"/>" page="false" /}
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
{PE.Label id="<xsl:value-of select="$importStyle"/>" <xsl:value-of select="$params"/> queryCond="SELECT TOP @pagesize * FROM PE_CommonModel CM <xsl:value-of select="$joinQuerySnippet"/> WHERE CM.Status = 99 AND CM.NodeID IN (<xsl:value-of select="$node"/>) <xsl:value-of select="$queryCondition"/> AND CM.ItemID NOT IN(SELECT TOP @startrow CM.ItemID FROM PE_CommonModel CM <xsl:value-of select="$joinQuerySnippet"/> WHERE CM.Status = 99 AND CM.NodeID IN (<xsl:value-of select="$node"/>) <xsl:value-of select="$queryCondition"/> ORDER BY <xsl:value-of select="$itemListOrderValue"/>) ORDER BY <xsl:value-of select="$itemListOrderValue"/>" queryCount="SELECT COUNT (CM.ItemID) FROM PE_CommonModel CM <xsl:value-of select="$joinQuerySnippet"/> WHERE CM.Status = 99 AND CM.NodeID IN (<xsl:value-of select="$node"/>) <xsl:value-of select="$queryCondition"/>" page="true" pagesize="<xsl:value-of select="$itemPageSize"/>" urlpage="true" /}
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
@@ -0,0 +1,41 @@
|
||||
<root>
|
||||
<LabelType>Flash类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<LabelTemplate><![CDATA[<div class="c_newssearch_sp1">Flash搜索</div>
|
||||
<div class="c_newssearch_list">
|
||||
<select id="nodeId" name="nodeId" size="1">{PE.Label id="栏目分类下拉列表选项" nodeId="99" /}</select>
|
||||
<select name="fieldOption" id="fieldOption" size="1">
|
||||
<option value="title" selected="selected">名称</option>
|
||||
<option value="intro">简介</option>
|
||||
</select>
|
||||
<input id="keyword" onfocus="this.value='';" maxlength="100" size="30" value="" name="Keyword" />
|
||||
</div>
|
||||
<div class="c_newssearch_sp2">
|
||||
<input id="Submit" style="border: 0px; width: 81px; height: 26px;" type="image" src="{PE.SiteConfig.SkinPath/}Images/flashsearch_bt.gif" name="Submit" onclick="OnSearchCheckAndSubmit();" />
|
||||
</div>
|
||||
<div class="c_newssearch_list">
|
||||
<a href="{PE.SiteConfig.applicationpath/}search.aspx?searchtype=2&ModelId=25">高级搜索</a>
|
||||
</div>
|
||||
<script language="javascript" type="text/javascript">
|
||||
function OnSearchCheckAndSubmit() {
|
||||
var keyword = document.getElementById("keyword").value;
|
||||
if (keyword == '' || keyword == null) {
|
||||
alert("请填写您想搜索的关键词");
|
||||
return;
|
||||
}
|
||||
else {
|
||||
|
||||
var nodeSel = document.getElementById("nodeId");
|
||||
var fieldOptionSel = document.getElementById("fieldOption");
|
||||
var nodeId = nodeSel.options[nodeSel.options.selectedIndex].value;
|
||||
var fieldOption = fieldOptionSel.options[fieldOptionSel.options.selectedIndex].value;
|
||||
window.location = "{PE.SiteConfig.applicationpath/}search.aspx?searchtype=1&ModelId=25&nodeId=" + nodeId + "&Keyword=" + escape(keyword) + "&fieldOption=" + fieldOption;
|
||||
}
|
||||
}
|
||||
</script>]]></LabelTemplate>
|
||||
<OutType>txt</OutType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
</root>
|
||||
@@ -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>
|
||||
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>Flash类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>contentLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>内容长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>fieldValue</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default />
|
||||
<intro>查询值</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</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="no"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:param name="queryCount" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">还没有任何项目!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<div class="thumb">
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
|
||||
<xsl:choose>
|
||||
<xsl:when test="FlashPic!= ''">
|
||||
<img src="{pe:ConvertToAbsolutePath(FlashPic)}" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<img src="{pe:InstallDir()}images/nopic.gif" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
</div>
|
||||
<h3>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
|
||||
</a>
|
||||
</h3>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,35 @@
|
||||
<root>
|
||||
<LabelType>Flash类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>雅蓝图片节点左侧</LabelIntro>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<LabelTemplate><![CDATA[<div id="main_left"> {PE.Label id="CMS用户登录" /}
|
||||
<div class="left_box">
|
||||
<dl>
|
||||
<dt>推荐FLASH</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
{PE.Label id="Flash信息列表" titleLength="19" outputQty="14" itemListOrderType="20" displayPropertyPrefix="3" /}
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="left_box">
|
||||
<dl>
|
||||
<dt>热门FLASH</dt>
|
||||
<dd>
|
||||
<ul> {PE.Label id="Flash信息列表" titleLength="19" outputQty="14" itemListOrderType="5" displayPropertyPrefix="7" /}</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="left_box">
|
||||
<dl>
|
||||
<dt>本周排名TOP10</dt>
|
||||
<dd> <ul>{PE.Label id="Flash信息列表" titleLength="19" outputQty="10" itemListOrderType="13" inDays="7" displayPropertyPrefix="7" /} </ul></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearbox"> </div>]]></LabelTemplate>
|
||||
<OutType>txt</OutType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
</root>
|
||||
@@ -0,0 +1,180 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>Flash类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<default>60</default>
|
||||
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>bindStyle</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>普通式</default>
|
||||
<intro>内容呈现样式</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>outputQty</name>
|
||||
<default>30</default>
|
||||
<intro>每页显示数量</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>lowInfoPoint</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>阅读点数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>longInfoPoint</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>阅读点数</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>recordCompany</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>唱片公司</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>endDate</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>更新日期</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>title</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>标题</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>intro</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>简介</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>inputer</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>录入者</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT NodeID,arrChildID FROM PE_Nodes WHERE NodeID = @nodeId</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="titleLength" />
|
||||
<xsl:param name="bindStyle" />
|
||||
<xsl:param name="lowInfoPoint" />
|
||||
<xsl:param name="longInfoPoint" />
|
||||
<xsl:param name="startDate" />
|
||||
<xsl:param name="recordCompany" />
|
||||
<xsl:param name="endDate"/>
|
||||
<xsl:param name="title" />
|
||||
<xsl:param name="inputer" />
|
||||
<xsl:param name="intro" />
|
||||
<xsl:param name="outputQty" />
|
||||
<xsl:template match="/">
|
||||
{PE.Label id="Flash高级搜索_<xsl:value-of select="$bindStyle"/>" titleLength="<xsl:value-of select="$titleLength"/>" queryCond="SELECT TOP @pagesize *
|
||||
FROM PE_CommonModel CM
|
||||
INNER JOIN PE_U_Flash UT ON (CM.ItemID=UT.ID)
|
||||
WHERE CM.Status = 99 AND CM.NodeID IN(<xsl:value-of select="/NewDataSet/Table/arrChildID" />)
|
||||
<xsl:if test="$title != ''">
|
||||
AND CM.Title LIKE '%<xsl:value-of select="$title"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$intro !=''">
|
||||
AND UT.Intro LIKE '%<xsl:value-of select="$intro"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer !=''">
|
||||
AND CM.Inputer LIKE '%<xsl:value-of select="$inputer"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE CC.InfoPoint > <xsl:value-of select="$lowInfoPoint"/> )
|
||||
</xsl:if>
|
||||
<xsl:if test="$longInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE CC.InfoPoint < <xsl:value-of select="$longInfoPoint"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0 and $longInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE (CC.InfoPoint BETWEEN <xsl:value-of select="$lowInfoPoint"/> AND <xsl:value-of select="$longInfoPoint"/>))
|
||||
</xsl:if>
|
||||
<xsl:if test="$startDate != '' and $endDate !=''">
|
||||
AND (CM.UpdateTime BETWEEN '<xsl:value-of select="$startDate"/>' AND '<xsl:value-of select="$endDate"/>')
|
||||
</xsl:if>
|
||||
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.Status = 99 AND CM.NodeID IN(<xsl:value-of select="/NewDataSet/Table/arrChildID" />)
|
||||
<xsl:if test="$title != ''">
|
||||
AND CM.Title LIKE '%<xsl:value-of select="$title"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$intro !=''">
|
||||
AND UT.Intro LIKE '%<xsl:value-of select="$intro"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer !=''">
|
||||
AND CM.Inputer LIKE '%<xsl:value-of select="$inputer"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE CC.InfoPoint > <xsl:value-of select="$lowInfoPoint"/> )
|
||||
</xsl:if>
|
||||
<xsl:if test="$longInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE CC.InfoPoint < <xsl:value-of select="$longInfoPoint"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0 and $longInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE (CC.InfoPoint BETWEEN <xsl:value-of select="$lowInfoPoint"/> AND <xsl:value-of select="$longInfoPoint"/>))
|
||||
</xsl:if>
|
||||
<xsl:if test="$startDate != '' and $endDate !=''">
|
||||
AND (CM.UpdateTime BETWEEN '<xsl:value-of select="$startDate"/>' AND '<xsl:value-of select="$endDate"/>')
|
||||
</xsl:if> ORDER BY CM.UpdateTime DESC) ORDER BY CM.UpdateTime DESC" queryCount="SELECT COUNT (CM.GeneralID)
|
||||
FROM PE_CommonModel CM
|
||||
INNER JOIN PE_U_Flash UT ON (CM.ItemID=UT.ID)
|
||||
WHERE CM.Status = 99 AND CM.NodeID IN(<xsl:value-of select="/NewDataSet/Table/arrChildID" />)
|
||||
<xsl:if test="$title != ''">
|
||||
AND CM.Title LIKE '%<xsl:value-of select="$title"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$intro !=''">
|
||||
AND UT.Intro LIKE '%<xsl:value-of select="$intro"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$inputer !=''">
|
||||
AND CM.Inputer LIKE '%<xsl:value-of select="$inputer"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE CC.InfoPoint > <xsl:value-of select="$lowInfoPoint"/> )
|
||||
</xsl:if>
|
||||
<xsl:if test="$longInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE CC.InfoPoint < <xsl:value-of select="$longInfoPoint"/>)
|
||||
</xsl:if>
|
||||
<xsl:if test="$lowInfoPoint != 0 and $longInfoPoint != 0">
|
||||
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE (CC.InfoPoint BETWEEN <xsl:value-of select="$lowInfoPoint"/> AND <xsl:value-of select="$longInfoPoint"/>))
|
||||
</xsl:if>
|
||||
<xsl:if test="$startDate != '' and $endDate !=''">
|
||||
AND (CM.UpdateTime BETWEEN '<xsl:value-of select="$startDate"/>' AND '<xsl:value-of select="$endDate"/>')
|
||||
</xsl:if>" page="true" pagesize="<xsl:value-of select="$outputQty"/>" urlpage="true" /}
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<attributes>
|
||||
<name>startDate</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>更新日期</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>nodeId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>节点ID</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>Flash类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>@queryCond</LabelSqlString>
|
||||
<attributes>
|
||||
<name>titleLength</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>50</default>
|
||||
<intro>项目标题长度,一个汉字占两个字节</intro>
|
||||
</attributes>
|
||||
<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="no"/>
|
||||
<xsl:param name="titleLength" />
|
||||
<xsl:param name="queryCond" />
|
||||
<xsl:param name="queryCount" />
|
||||
<xsl:template match="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">还没有任何项目!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<div class="thumb">
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
|
||||
<xsl:choose>
|
||||
<xsl:when test="FlashPic!= ''">
|
||||
<img src="{pe:ConvertToAbsolutePath(FlashPic)}" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<img src="{pe:InstallDir()}images/nopic.gif" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
</div>
|
||||
<h3>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
|
||||
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
|
||||
</a>
|
||||
</h3>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>queryCond</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>SELECT TOP 5 * FROM PE_CommonModel CM WHERE CM.Status = 99 AND CM.ModelID IN (23) ORDER BY CM.UpdateTime DESC</default>
|
||||
<intro>查询条件</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>queryCount</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>统计条件</intro>
|
||||
</attributes>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,74 @@
|
||||
<root>
|
||||
<LabelType>Flash类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<LabelTemplate><![CDATA[ <div class="main_search">
|
||||
栏 目:<select id="nodeId" size="1" name="nodeid">{PE.Label id="栏目分类下拉列表选项" nodeid="99" /}
|
||||
</select>
|
||||
<br />
|
||||
标 题:<input size="30" maxlength="100" id="title" />
|
||||
<br />
|
||||
简 介:<input size="30" maxlength="100" id="intro" />
|
||||
<br />
|
||||
录 入 者:<input size="30" maxlength="100" id="inputer" />
|
||||
<br />
|
||||
查看点数:<input size="30" maxlength="100" id="lowinfopoint" />
|
||||
到
|
||||
<input size="30" maxlength="100" id="highinfopoint" />
|
||||
<br />
|
||||
更新时间:<input size="30" maxlength="100" id="begindate" />
|
||||
到
|
||||
<input size="30" maxlength="100" id="enddate" />
|
||||
<div class="main_search_sub">
|
||||
<input type="image" onclick="OnSearchCheckAndSubmit();" name="Submit" src="{PE.SiteConfig.SkinPath/}Images/search_b.gif" style="border: 0px none; width: 65px; height: 21px;" id="Submit" /></div>
|
||||
</div>
|
||||
<script type="text/javascript" language="javascript">
|
||||
function OnSearchCheckAndSubmit() {
|
||||
var nodeSel = document.getElementById("nodeId");
|
||||
var nodeId = nodeSel.options[nodeSel.options.selectedIndex].value;
|
||||
var title = document.getElementById("title").value;
|
||||
var inputer = document.getElementById("inputer").value;
|
||||
var intro = document.getElementById("intro").value;
|
||||
var lowinfopoint = document.getElementById("lowinfopoint").value;
|
||||
var highinfopoint = document.getElementById("highinfopoint").value;
|
||||
var begindate = document.getElementById("begindate").value;
|
||||
var enddate = document.getElementById("enddate").value;
|
||||
if (CheckFloat(lowinfopoint) && CheckFloat(highinfopoint) && CheckDateTime(begindate) && CheckDateTime(enddate)) {
|
||||
window.location = "{PE.SiteConfig.applicationpath /}search.aspx?searchtype=2&showtype=1&ModelId=25&nodeId=" + nodeId + "&title=" + escape(title) + "&inputer=" + inputer + "&intro=" + escape(intro) + "&lowinfopoint=" + lowinfopoint + "&highinfopoint=" + highinfopoint + "&begindate=" + escape(begindate) + "&enddate=" + escape(enddate);
|
||||
}
|
||||
}
|
||||
function CheckDateTime(str) {
|
||||
if (str != "") {
|
||||
var reg = /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/;
|
||||
var r = str.match(reg);
|
||||
if (r == null) {
|
||||
alert("请输入正确的日期格式!如:1900-01-01");
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function CheckFloat(str) {
|
||||
if (str != "") {
|
||||
var reg = /^\d+(\.\d+)?$/;
|
||||
|
||||
var r = str.match(reg);
|
||||
if (r == null) {
|
||||
alert("请输入数字型值!");
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>]]></LabelTemplate>
|
||||
<OutType>txt</OutType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
</root>
|
||||
Reference in New Issue
Block a user