first commit

This commit is contained in:
2026-08-31 16:22:00 +08:00
commit e969a1e559
2665 changed files with 128795 additions and 0 deletions
@@ -0,0 +1,36 @@
<root>
<LabelType>视频类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>软件ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<LabelSqlString>SELECT DownloadUrl FROM PE_U_Video WHERE ID=(SELECT TOP 1 ItemID FROM PE_CommonModel WHERE GeneralID=@itemId AND Status = 99) </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="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="itemId" />
<xsl:template match="/NewDataSet/Table">
<Root>
<LocalServer>
<xsl:value-of select="pe:ShowDownloadPath($itemId,DownloadUrl,pe:InstallDir())"/>
</LocalServer>
<MirrorServer>
<xsl:choose>
<xsl:when test="arrServerName !=''">
<xsl:value-of select="pe:ShowDownloadPathMore($itemId,DownloadUrl,pe:InstallDir(),arrServerName)"/>
</xsl:when>
</xsl:choose>
</MirrorServer>
</Root>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,126 @@
<root>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelType>视频类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<LabelSqlString>SELECT TOP 1 * FROM PE_CommonModel CM INNER JOIN PE_U_Video 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>
&lt;script language="JavaScript" type="text/JavaScript" src="<xsl:value-of select="pe:InstallDir()" />Common/GetHits.aspx?id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>"&gt;&lt;/script&gt;
</Hits>
<DayHits>
&lt;script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot; src=&quot;
<xsl:value-of select="pe:InstallDir()"/>Common/GetHits.aspx?hitstype=1&amp;id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>
&quot;&gt;&lt;/script&gt;
</DayHits>
<WeekHits>
&lt;script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot; src=&quot;
<xsl:value-of select="pe:InstallDir()"/>Common/GetHits.aspx?hitstype=2&amp;id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>
&quot;&gt;&lt;/script&gt;
</WeekHits>
<MonthHits>
&lt;script language=&quot;JavaScript&quot; type=&quot;text/JavaScript&quot; src=&quot;
<xsl:value-of select="pe:InstallDir()"/>Common/GetHits.aspx?hitstype=3&amp;id=<xsl:value-of select="/NewDataSet/Table/GeneralID"/>
&quot;&gt;&lt;/script&gt;
</MonthHits>
<EnTitle>
<xsl:value-of select="/NewDataSet/Table/EnTitle"/>
</EnTitle>
<Cover>
<xsl:choose>
<xsl:when test="/NewDataSet/Table/Cover != ''">
&lt;img width="180" height="238" src="<xsl:value-of select="pe:ConvertToAbsolutePath(/NewDataSet/Table/Cover)"/>" /&gt;
</xsl:when>
<xsl:otherwise>
&lt;img width="180" height="238" src="<xsl:value-of select="pe:InstallDir()"/>images/nopic.gif" /&gt;
</xsl:otherwise>
</xsl:choose>
</Cover>
<Tags>
<xsl:value-of select="/NewDataSet/Table/Tags"/>
</Tags>
<Type>
&lt;a href="<xsl:value-of select="pe:InstallDir()"/>search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword=<xsl:value-of select="pe:UrlEncode(/NewDataSet/Table/Type)"/>&amp;fieldOption=type" &gt;<xsl:value-of select="/NewDataSet/Table/Type" />&lt;/a&gt;
</Type>
<Director>
<xsl:value-of select="/NewDataSet/Table/Director"/>
</Director>
<Starring>
<xsl:value-of select="/NewDataSet/Table/Starring"/>
</Starring>
<Dub>
&lt;a href="<xsl:value-of select="pe:InstallDir()"/>search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword=<xsl:value-of select="pe:UrlEncode(/NewDataSet/Table/Dub)"/>&amp;fieldOption=dub" &gt;<xsl:value-of select="/NewDataSet/Table/Dub" />&lt;/a&gt;
</Dub>
<Region>
&lt;a href="<xsl:value-of select="pe:InstallDir()"/>search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword=<xsl:value-of select="pe:UrlEncode(/NewDataSet/Table/Region)"/>&amp;fieldOption=region" &gt;<xsl:value-of select="/NewDataSet/Table/Region" />&lt;/a&gt;
</Region>
<Released>
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/Released,'yyyy-mm-dd')"/>
</Released>
<Synopsis>
<xsl:value-of select="/NewDataSet/Table/Synopsis"/>
</Synopsis>
<Backporject>
<xsl:value-of select="/NewDataSet/Table/Backporject"/>
</Backporject>
<DownloadUrl>
<xsl:value-of select="/NewDataSet/Table/PlayUrl"/>
</DownloadUrl>
<Still>
<xsl:value-of select="/NewDataSet/Table/Still"/>
</Still>
<Poster>
<xsl:value-of select="/NewDataSet/Table/Poster"/>
</Poster>
<Wallpaper>
<xsl:value-of select="/NewDataSet/Table/Wallpaper"/>
</Wallpaper>
<!--FieldTipsEnd-->
</root>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>itemId</name>
<default>1</default>
<intro>视频ID</intro>
</attributes>
<OutType>
</OutType>
<CacheTime>0</CacheTime>
<EnabelAjax>False</EnabelAjax>
</root>
@@ -0,0 +1,432 @@
<root>
<LabelType>视频类</LabelType>
<LabelIntro>视频信息列表复杂算法主标签,此标签仅用来调用,无需修改!</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">
<!--样式依赖项,被传递标签样式名称规则-->
视频信息列表_<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 &gt; 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 &gt;= <xsl:value-of select="$eliteLevel"/>
</xsl:if>
<xsl:if test="$priorityLevel != ''">
AND CM.Priority &gt;= <xsl:value-of select="$priorityLevel"/>
</xsl:if>
<xsl:if test="$hits != ''">
AND CM.Hits &gt;= <xsl:value-of select="$hits"/>
</xsl:if>
<xsl:if test="$dayHits != ''">
AND CM.DayHits &gt;= <xsl:value-of select="$dayHits"/>
</xsl:if>
<xsl:if test="$weekHits != ''">
AND CM.WeekHits &gt;= <xsl:value-of select="$weekHits"/>
</xsl:if>
<xsl:if test="$monthHits != ''">
AND CM.MonthHits &gt;= <xsl:value-of select="$monthHits"/>
</xsl:if>
<xsl:if test="$inDays != ''">
AND DATEDIFF(d,CM.UpdateTime,GETDATE()) &lt;= <xsl:value-of select="$inDays"/>
</xsl:if>
<xsl:if test="$betDate != ''">
AND (CM.UpdateTime &gt;= '<xsl:value-of select="substring-before($betDate,'|')" />' AND CM.UpdateTime &lt;= '<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_Video 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="$joinQuerySnippet"/> WHERE CM.Status = 99 <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 <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,69 @@
<?xml version="1.0"?>
<root>
<LabelType>视频类</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="linkOpenType" />
<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>
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
<xsl:choose>
<xsl:when test="Cover != ''">
<img src="{pe:ConvertToAbsolutePath(Cover)}" />
</xsl:when>
<xsl:otherwise>
<img src="{pe:InstallDir()}images/nopic.gif" />
</xsl:otherwise>
</xsl:choose>
</a>
<h4>
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
</a>
</h4>
</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,68 @@
<?xml version="1.0"?>
<root>
<LabelType>视频类</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: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="still">
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
<xsl:choose>
<xsl:when test="Cover != ''">
<img src="{pe:ConvertToAbsolutePath(Cover)}" />
</xsl:when>
<xsl:otherwise>
<img src="{pe:InstallDir()}images/nopic.gif" />
</xsl:otherwise>
</xsl:choose>
</a>
</div>
<h4>
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
</a>
</h4>
</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,82 @@
<?xml version="1.0"?>
<root>
<LabelType>视频类</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="contentLength" />
<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">
<div class="focus">
<div class="thumb">
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
<xsl:choose>
<xsl:when test="Cover != ''">
<img src="{pe:ConvertToAbsolutePath(Cover)}" />
</xsl:when>
<xsl:otherwise>
<img src="{pe:InstallDir()}images/nopic.gif" />
</xsl:otherwise>
</xsl:choose>
</a>
</div>
<h4>
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
</a>
</h4>
<p>
<xsl:value-of select="pe:CutText(Synopsis,$contentLength,'…')" />
<em>
<a href="#" title="#">【查看详情】</a>
</em>
</p>
<br class="clearbox" />
</div>
</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>
<attributes>
<name>contentLength</name>
<datatype>supersql</datatype>
<default>150</default>
<intro>内容长度,一个汉字占两个字节</intro>
</attributes>
</root>
@@ -0,0 +1,139 @@
<?xml version="1.0"?>
<root>
<LabelType>视频类</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="posterThumb">
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
<xsl:choose>
<xsl:when test="Cover != ''">
<img width="100" height="140" src="{pe:ConvertToAbsolutePath(Cover)}" />
</xsl:when>
<xsl:otherwise>
<img width="100" height="140" src="{pe:InstallDir()}images/nopic.gif" />
</xsl:otherwise>
</xsl:choose>
</a>
</div>
<div class="movieInfo">
<h3>
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
</a>
</h3>
<h4>
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{EnTitle}">
<xsl:value-of select="pe:CutText(EnTitle,$titleLength,'…')"/>
</a>
</h4>
<p class="director">
导 演: <xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="Director"/>
<xsl:with-param name="fieldOption" select="'director'"/>
</xsl:call-template>
</p>
<p class="starring">
演 员: <xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="Starring"/>
<xsl:with-param name="fieldOption" select="'starring'"/>
</xsl:call-template>
</p>
<p class="area">
地区:<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode(Region)}&amp;fieldOption=region" >
<xsl:value-of select="Region" />
</a>
</p>
<p class="area">
类型:<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode(Type)}&amp;fieldOption=type" >
<xsl:value-of select="Type" />
</a>
</p>
<p class="showtime">
上映时间:<span>
<xsl:value-of select="pe:FormatDate(Released,'yyyy-mm-dd')"/>
</span>
</p>
</div>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="splitStr">
<xsl:param name="srcStr"/>
<xsl:param name="fieldOption"/>
<xsl:choose>
<xsl:when test="contains($srcStr,'|')">
<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode(substring-before($srcStr,'|'))}&amp;fieldOption={$fieldOption}">
<xsl:value-of select="substring-before($srcStr,'|')"/>
</a>
<xsl:variable name="dstStr" select="substring-after($srcStr,'|')" />
<xsl:choose>
<xsl:when test="contains($srcStr,'|')">
<xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="$dstStr"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode($dstStr)}&amp;fieldOption={$fieldOption}">
<xsl:value-of select="$dstStr"/>
</a>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode($srcStr)}&amp;fieldOption={$fieldOption}">
<xsl:value-of select="$srcStr"/>
</a>
</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>
<attributes>
<name>fieldOption</name>
<datatype>string</datatype>
<default>keyword</default>
<intro>字段名称</intro>
</attributes>
</root>
@@ -0,0 +1,248 @@
<?xml version="1.0"?>
<root>
<LabelType>视频类</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 &gt; $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 &gt; $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="'&#xD;'" />点击数:<xsl:value-of select="Hits"/>
<xsl:value-of select="'&#xD;'" />发表时间:<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"/>&amp;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 &gt; $hitsOfhot">
<img src="{pe:InstallDir()}images/hot.gif" alt="热门内容" />
</xsl:if>
<xsl:if test="$displayNewSign != '' and $displayNewSign &gt;= 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,62 @@
<?xml version="1.0"?>
<root>
<LabelType>视频类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>dataSource</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:pe="labelproc" exclude-result-prefixes="pe">
<xsl:output method="html" indent="yes"/>
<xsl:param name="dataSource"/>
<xsl:param name="fieldOption"/>
<xsl:template match="/">
<xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="$dataSource"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="splitStr">
<xsl:param name="srcStr"/>
<xsl:choose>
<xsl:when test="contains($srcStr,'|')">
<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode(substring-before($srcStr,'|'))}&amp;fieldOption={$fieldOption}">
<xsl:value-of select="substring-before($srcStr,'|')"/>
</a>
<xsl:variable name="dstStr" select="substring-after($srcStr,'|')" />
<xsl:choose>
<xsl:when test="contains($srcStr,'|')">
<xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="$dstStr"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode($dstStr)}&amp;fieldOption={$fieldOption}">
<xsl:value-of select="$dstStr"/>
</a>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<a href="{pe:InstallDir()}search.aspx?searchtype=1&amp;ModelId=23&amp;nodeId=9&amp;Keyword={pe:UrlEncode($srcStr)}&amp;fieldOption={$fieldOption}">
<xsl:value-of select="$srcStr"/>
</a>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>fieldOption</name>
<datatype>string</datatype>
<default>
</default>
<intro>选项类型</intro>
</attributes>
</root>
@@ -0,0 +1,62 @@
<?xml version="1.0"?>
<root>
<LabelType>视频类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>dataSource</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:pe="labelproc" exclude-result-prefixes="pe">
<xsl:output method="html" indent="yes"/>
<xsl:param name="dataSource"/>
<xsl:template match="/">
<xsl:if test="$dataSource != ''">
<xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="$dataSource"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template name="splitStr">
<xsl:param name="srcStr"/>
<xsl:choose>
<xsl:when test="contains($srcStr,'$$$')">
<li>
<a href="{pe:ConvertToAbsolutePath(substring-after(substring-before($srcStr,'$$$'),'|'))}" target="_blank" >
<img src="{pe:ConvertToAbsolutePath(substring-after(substring-before($srcStr,'$$$'),'|'))}" />
</a>
</li>
<xsl:variable name="dstStr" select="substring-after($srcStr,'$$$')" />
<xsl:choose>
<xsl:when test="contains($srcStr,'$$$')">
<xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="$dstStr"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<li>
<a href="{pe:ConvertToAbsolutePath(substring-after(substring-before($dstStr,'$$$'),'|'))}" target="_blank" >
<img src="{pe:ConvertToAbsolutePath(substring-after(substring-before($dstStr,'$$$'),'|'))}" />
</a>
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<li>
<a href="{pe:ConvertToAbsolutePath(substring-after($srcStr,'|'))}" target="_blank" >
<img src="{pe:ConvertToAbsolutePath(substring-after($srcStr,'|'))}" />
</a>
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,48 @@
<root>
<LabelType>视频类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<LabelDataType>static</LabelDataType>
<LabelTemplate><![CDATA[<div class="c_newssearch_sp1">视频搜索</div>
<div class="c_newssearch_list">
<select id="nodeId" name="nodeId" size="1">{PE.Label id="栏目分类下拉列表选项" nodeId="96" /}</select>
<select name="fieldOption" id="fieldOption" size="1">
<option value="title" selected="selected">中文名</option>
<option value="enTitle">英文名</option>
<option value="tags">标 签</option>
<option value="director">导 演</option>
<option value="starring">演 员</option>
<option value="region">地 区</option>
<option value="dub">配 音</option>
<option value="synopsis">花 絮</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/moviesearch_bt.gif" name="Submit" onclick="OnSearchCheckAndSubmit();" />
</div>
<div class="c_newssearch_list">
<a href="{PE.SiteConfig.applicationpath/}search.aspx?searchtype=2&ModelId=23">高级搜索</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=23&nodeId=" + nodeId + "&Keyword=" + escape(keyword) + "&fieldOption=" + fieldOption;
}
}
</script>]]></LabelTemplate>
<OutType>txt</OutType>
<EnabelAjax>False</EnabelAjax>
</root>
@@ -0,0 +1,175 @@
<?xml version="1.0"?>
<root>
<LabelType>视频类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>parentId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>内容父栏目ID{默认值:1,自动传入:@RequestInt_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>
<default>普通式</default>
<intro>内容呈现样式{普通式:普通式,默认值:普通式}</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>内容链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</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="视频栏目内搜索_<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_Video 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 = 'enTitle'">
AND UT.EnTitle LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'tags'">
AND UT.Tags LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'director'">
AND UT.Director LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'starring'">
AND UT.Starring LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'dub'">
AND UT.Dub LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'type'">
AND UT.Type LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'region'">
AND UT.Region LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'synopsis'">
AND UT.Synopsis 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_Video 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 = 'enTitle'">
AND UT.EnTitle LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'tags'">
AND UT.Tags LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'director'">
AND UT.Director LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'starring'">
AND UT.Starring LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'dub'">
AND UT.Dub LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'type'">
AND UT.Type LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'region'">
AND UT.Region LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'synopsis'">
AND UT.Synopsis 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_Video 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 = 'enTitle'">
AND UT.EnTitle LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'tags'">
AND UT.Tags LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'director'">
AND UT.Director LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'starring'">
AND UT.Starring LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'dub'">
AND UT.Dub LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'type'">
AND UT.Type LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'region'">
AND UT.Region LIKE '%<xsl:value-of select="$fieldValue"/>%'
</xsl:when>
<xsl:when test="$fieldName = 'synopsis'">
AND UT.Synopsis 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,87 @@
<?xml version="1.0"?>
<root>
<LabelType>视频类</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>linkOpenType</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>内容链接的打开方式,2为栏目节点配置,1为新窗口,0为原窗口,其他则由参数值值取代</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: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="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="still">
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
<xsl:choose>
<xsl:when test="Cover != ''">
<img src="{pe:ConvertToAbsolutePath(Cover)}" />
</xsl:when>
<xsl:otherwise>
<img src="{pe:InstallDir()}images/nopic.gif" />
</xsl:otherwise>
</xsl:choose>
</a>
</div>
<h4>
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
</a>
</h4>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<UsePage>True</UsePage>
<LabelSqlCount>@queryCount</LabelSqlCount>
</root>
@@ -0,0 +1,41 @@
<root>
<LabelType>视频类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/PE_Path.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString>SELECT NodeID,NodeName,ShowOnList_Parent FROM PE_Nodes WHERE ParentID = @nodeId AND NodeType = 1 AND PurviewType != 3 ORDER BY OrderID ASC</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: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">
<xsl:if test="ShowOnList_Parent='true'">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('false',NodeID)" />
</xsl:attribute>
<xsl:value-of select="NodeName"/>
</a>
</xsl:if>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>nodeId</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>节点ID</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,42 @@
<root>
<LabelType>视频类</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>最近更新</dt>
<dd>
<ul>
{PE.Label id="视频信息列表" outputQty="10" itemListOrderType="3" displayPropertyPrefix="6" bindStyle="视频普通列表" modelId="23" /}
</ul>
</dd>
</dl>
</div>
<div class="left_box">
<dl>
<dt>推荐电影</dt>
<dd>
<ul>
{PE.Label id="视频信息列表" outputQty="10" itemListOrderType="15" displayPropertyPrefix="3" bindStyle="视频普通列表" modelId="23" /}
</ul>
</dd>
</dl>
</div>
<div class="left_box">
<dl>
<dt>本周热门TOP10</dt>
<dd>
<ul>
{PE.Label id="视频信息列表" outputQty="10" itemListOrderType="11" displayPropertyPrefix="7" bindStyle="视频普通列表" modelId="23" /}
</ul>
</dd>
</dl>
</div>
</div>
<div class="clearbox"> </div>]]></LabelTemplate>
<OutType>txt</OutType>
<EnabelAjax>False</EnabelAjax>
</root>
@@ -0,0 +1,86 @@
<root>
<LabelType>视频类</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>电影栏目分类</dt>
<dd>
<ul>
<p>{PE.Label id="PE-取得当前节点的同层级节点" nodeId="@RequestInt_Id" /}</p>
</ul>
</dd>
</dl>
</div>
<div class="left_box">
<dl>
<dt>分类检索</dt>
<dd>
<h4>
地区</h4>
<p>
<a href="#" onclick="typeSearch('region', '大陆')" >大陆</a>
<a href="#" onclick="typeSearch('region', '美国')" >美国</a>
<a href="#" onclick="typeSearch('region', '香港')" >香港</a>
<a href="#" onclick="typeSearch('region', '台湾')" >台湾</a>
<a href="#" onclick="typeSearch('region', '韩国')" >韩国</a>
<a href="#" onclick="typeSearch('region', '日本')" >日本</a>
<a href="#" onclick="typeSearch('region', '法国')" >法国</a>
<a href="#" onclick="typeSearch('region', '英国')" >英国</a>
<a href="#" onclick="typeSearch('region', '意大利')" >意大利</a>
<a href="#" onclick="typeSearch('region', '西班牙')" >西班牙</a>
<a href="#" onclick="typeSearch('region', '加拿大')" >加拿大</a>
<a href="#" onclick="typeSearch('region', '德国')" >德国</a>
<a href="#" onclick="typeSearch('region', '泰国')" >泰国</a>
</p>
<h4>
语言</h4>
<p>
<a href="#" onclick="typeSearch('dub', '英语')" >英语</a>
<a href="#" onclick="typeSearch('dub', '国语')" >国语</a>
<a href="#" onclick="typeSearch('dub', '粤语')" >粤语</a>
<a href="#" onclick="typeSearch('dub', '韩语')" >韩语</a>
<a href="#" onclick="typeSearch('dub', '法语')" >法语</a>
<a href="#" onclick="typeSearch('dub', '日语')" >日语</a>
<a href="#" onclick="typeSearch('dub', '德语')" >德语</a>
<a href="#" onclick="typeSearch('dub', '西班牙语')" >西班牙语</a>
<a href="#" onclick="typeSearch('dub', '俄语')" >俄语</a>
<a href="#" onclick="typeSearch('dub', '希腊语')" >希腊语</a>
<a href="#" onclick="typeSearch('dub', '越南语')" >越南语</a>
<a href="#" onclick="typeSearch('dub', '葡萄牙语')" >葡萄牙语</a>
</p>
</dd>
<script language="javascript" type="text/javascript">
function typeSearch(fieldOption, keyword) {
window.location.href = "{PE.SiteConfig.applicationpath/}search.aspx?searchtype=1&ModelId=23&nodeId=93&Keyword=" + escape(keyword) + "&fieldOption=" + fieldOption;
}
</script>
</dl>
</div>
<div class="left_box">
<dl>
<dt>推荐电影</dt>
<dd>
<ul>
{PE.Label id="视频信息列表" outputQty="10" itemListOrderType="15" displayPropertyPrefix="3" bindStyle="视频普通列表" modelId="23" /}
</ul>
</dd>
</dl>
</div>
<div class="left_box">
<dl>
<dt>本周排名TOP10</dt>
<dd>
<ul>
{PE.Label id="视频信息列表" outputQty="10" itemListOrderType="11" displayPropertyPrefix="7" bindStyle="视频普通列表" modelId="23" /}
</ul>
</dd>
</dl>
</div>
</div>
<div class="clearbox"> </div>]]></LabelTemplate>
<OutType>txt</OutType>
<EnabelAjax>False</EnabelAjax>
</root>
@@ -0,0 +1,87 @@
<root>
<LabelType>视频类</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>电影栏目分类</dt>
<dd>
<ul>
<p>{PE.Label id="视频栏目分类" nodeId="@RequestInt_id" /}</p>
</ul>
</dd>
</dl>
</div>
<div class="left_box">
<dl>
<dt>分类检索</dt>
<dd>
<h4>
地区</h4>
<p>
<a href="#" onclick="typeSearch('region', '大陆')" >大陆</a>
<a href="#" onclick="typeSearch('region', '美国')" >美国</a>
<a href="#" onclick="typeSearch('region', '香港')" >香港</a>
<a href="#" onclick="typeSearch('region', '台湾')" >台湾</a>
<a href="#" onclick="typeSearch('region', '韩国')" >韩国</a>
<a href="#" onclick="typeSearch('region', '日本')" >日本</a>
<a href="#" onclick="typeSearch('region', '法国')" >法国</a>
<a href="#" onclick="typeSearch('region', '英国')" >英国</a>
<a href="#" onclick="typeSearch('region', '意大利')" >意大利</a>
<a href="#" onclick="typeSearch('region', '西班牙')" >西班牙</a>
<a href="#" onclick="typeSearch('region', '加拿大')" >加拿大</a>
<a href="#" onclick="typeSearch('region', '德国')" >德国</a>
<a href="#" onclick="typeSearch('region', '泰国')" >泰国</a>
</p>
<h4>
语言</h4>
<p>
<a href="#" onclick="typeSearch('dub', '英语')" >英语</a>
<a href="#" onclick="typeSearch('dub', '国语')" >国语</a>
<a href="#" onclick="typeSearch('dub', '粤语')" >粤语</a>
<a href="#" onclick="typeSearch('dub', '韩语')" >韩语</a>
<a href="#" onclick="typeSearch('dub', '法语')" >法语</a>
<a href="#" onclick="typeSearch('dub', '日语')" >日语</a>
<a href="#" onclick="typeSearch('dub', '德语')" >德语</a>
<a href="#" onclick="typeSearch('dub', '西班牙语')" >西班牙语</a>
<a href="#" onclick="typeSearch('dub', '俄语')" >俄语</a>
<a href="#" onclick="typeSearch('dub', '希腊语')" >希腊语</a>
<a href="#" onclick="typeSearch('dub', '越南语')" >越南语</a>
<a href="#" onclick="typeSearch('dub', '葡萄牙语')" >葡萄牙语</a>
</p>
</dd>
<script language="javascript" type="text/javascript">
function typeSearch(fieldOption, keyword) {
window.location.href = "{PE.SiteConfig.applicationpath/}search.aspx?searchtype=1&ModelId=23&nodeId=93&Keyword=" + escape(keyword) + "&fieldOption=" + fieldOption;
}
</script>
</dl>
</div>
<div class="left_box">
<dl>
<dt>推荐电影</dt>
<dd>
<ul>
{PE.Label id="视频信息列表" outputQty="10" itemListOrderType="15" displayPropertyPrefix="3" bindStyle="视频普通列表" modelId="23" /}
</ul>
</dd>
</dl>
</div>
<div class="left_box">
<dl>
<dt>本周排名TOP10</dt>
<dd>
<ul>
{PE.Label id="视频信息列表" outputQty="10" itemListOrderType="11" displayPropertyPrefix="7" bindStyle="视频普通列表" modelId="23" /}
</ul>
</dd>
</dl>
</div>
</div>
<div class="clearbox"> </div>]]></LabelTemplate>
<OutType>txt</OutType>
<EnabelAjax>False</EnabelAjax>
</root>
@@ -0,0 +1,68 @@
<?xml version="1.0"?>
<root>
<LabelType>视频类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 5 * FROM PE_CommonModel CM INNER JOIN PE_U_Video UT ON (CM.GeneralID = UT.ID) WHERE CM.Status = 99 AND DATALENGTH(UT.Cover) > 0 ORDER BY CM.UpdateTime DESC</LabelSqlString>
<attributes>
<name>titleLength</name>
<datatype>supersql</datatype>
<default>50</default>
<intro>项目标题长度,一个汉字占两个字节</intro>
</attributes>
<attributes>
<name>focusWidth</name>
<datatype>supersql</datatype>
<default>370</default>
<intro>焦点图宽度</intro>
</attributes>
<attributes>
<name>focusHeight</name>
<datatype>supersql</datatype>
<default>226</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="titleLength" />
<xsl:param name="focusWidth" />
<xsl:param name="focusHeight" />
<xsl:param name="optionalExtend" />
<xsl:param name="queryCond" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(NewDataSet/Table) = 0">
<font style="color:red">还没有任何信息!</font>
</xsl:when>
<xsl:otherwise>
<script type="text/javascript">
var swf_width = <xsl:value-of select="$focusWidth" />;
var swf_height = <xsl:value-of select="$focusHeight" />+20;
var title_height = 0;
var focus_height = swf_height + title_height;
var interval_time = 4;
var files = '<xsl:for-each select="/NewDataSet/Table"><xsl:value-of select="pe:ConvertToAbsolutePath(Cover)"/><xsl:if test="position() != last()">|</xsl:if></xsl:for-each>';
var links = '<xsl:for-each select="/NewDataSet/Table"><xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/><xsl:if test="position() != last()">|</xsl:if></xsl:for-each>';
var texts = '<xsl:for-each select="/NewDataSet/Table"><xsl:value-of disable-output-escaping="yes" select="pe:CutText(pe:ReplaceText(Title,'&quot;',''),$titleLength,'…')"/><xsl:if test="position() != last()">|</xsl:if></xsl:for-each>';
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + swf_width + '" height="' + focus_height + '">');
document.write('<param name="movie" value="{pe:SkinDir()}swf/focus_1.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="wmode" value="opaque" />');
document.write('<param name="FlashVars" value="borderwidth=' + swf_width + '&amp;borderheight=' + swf_height + '&amp;textheight=' + title_height + '&amp;interval_time=' + interval_time + '&amp;pics=' + files + '&amp;links=' + links + '&amp;texts=' + texts + '" />');
document.write('<embed src="{pe:SkinDir()}swf/focus_1.swf" wmode="opaque" FlashVars="borderwidth=' + swf_width + '&amp;borderheight=' + swf_height + '&amp;textheight=' + title_height + '&amp;interval_time=' + interval_time + '&amp;pics=' + files + '&amp;links=' + links + '&amp;texts=' + texts + '" menu="false" quality="high" width="' + swf_width + '" height="' + focus_height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
</script>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]>
</LabelTemplate>
</root>
@@ -0,0 +1,68 @@
<?xml version="1.0"?>
<root>
<LabelType>视频类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 1 * FROM PE_CommonModel CM INNER JOIN PE_U_Video UT ON (CM.ItemID = UT.ID) WHERE CM.Status = 99 AND CM.ModelID IN (23) ORDER BY CM.GeneralID DESC</LabelSqlString>
<attributes>
<name>titleLength</name>
<datatype>supersql</datatype>
<default>50</default>
<intro>项目标题长度,一个汉字占两个字节</intro>
</attributes>
<attributes>
<name>contentLength</name>
<datatype>supersql</datatype>
<default>150</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="contentLength" />
<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">
<div class="headline">
<h1>
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
</a>
</h1>
<div class="posterThumb">
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{pe:CutText(Title,$titleLength,'…')}">
<xsl:choose>
<xsl:when test="Cover != ''">
<img src="{pe:ConvertToAbsolutePath(Cover)}" />
</xsl:when>
<xsl:otherwise>
<img src="{pe:InstallDir()}images/nopic.gif" />
</xsl:otherwise>
</xsl:choose>
</a>
</div>
<p>
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
<xsl:value-of select="pe:CutText(Synopsis,$contentLength,'…')" />
</a>
</p>
</div>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<UsePage>
</UsePage>
<LabelSqlCount>@queryCount</LabelSqlCount>
</root>
@@ -0,0 +1,275 @@
<?xml version="1.0"?>
<root>
<LabelType>视频类</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>startDate</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>enTitle</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>英文标题</intro>
</attributes>
<attributes>
<name>intro</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>简介</intro>
</attributes>
<attributes>
<name>tags</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>标签</intro>
</attributes>
<attributes>
<name>starring</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>演员</intro>
</attributes>
<attributes>
<name>director</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>导演</intro>
</attributes>
<attributes>
<name>region</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>区域</intro>
</attributes>
<attributes>
<name>type</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="endDate" />
<xsl:param name="title" />
<xsl:param name="enTitle" />
<xsl:param name="intro" />
<xsl:param name="tags" />
<xsl:param name="starring" />
<xsl:param name="director" />
<xsl:param name="region" />
<xsl:param name="keyword" />
<xsl:param name="type" />
<xsl:param name="dub" />
<xsl:param name="outputQty" />
<xsl:template match="/">
{PE.Label id="视频高级搜索_<xsl:value-of select="$bindStyle"/>" titleLength="<xsl:value-of select="$titleLength"/>" queryCond="SELECT TOP @pagesize *
FROM PE_CommonModel CM
INNER JOIN PE_U_Video 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="$enTitle !=''">
AND UT.EnTitle LIKE '%<xsl:value-of select="$enTitle"/>%'
</xsl:if>
<xsl:if test="$intro !=''">
AND UT.Intro LIKE '%<xsl:value-of select="$intro"/>%'
</xsl:if>
<xsl:if test="$tags != ''">
AND UT.Tags LIKE '%<xsl:value-of select="$tags"/>%'
</xsl:if>
<xsl:if test="$starring != ''">
AND UT.Starring LIKE '%<xsl:value-of select="$starring"/>%'
</xsl:if>
<xsl:if test="$director != ''">
AND UT.Director LIKE '%<xsl:value-of select="$director"/>%'
</xsl:if>
<xsl:if test="$region != ''">
AND UT.Region LIKE '%<xsl:value-of select="$region"/>%'
</xsl:if>
<xsl:if test="$type != ''">
AND UT.Type LIKE '%<xsl:value-of select="$type"/>%'
</xsl:if>
<xsl:if test="$dub != ''">
AND UT.Dub LIKE '%<xsl:value-of select="$dub"/>%'
</xsl:if>
<xsl:if test="$lowInfoPoint != 0">
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE CC.InfoPoint &gt; <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 &lt; <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_Video 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="$enTitle !=''">
AND UT.EnTitle LIKE '%<xsl:value-of select="$enTitle"/>%'
</xsl:if>
<xsl:if test="$intro !=''">
AND UT.Intro LIKE '%<xsl:value-of select="$intro"/>%'
</xsl:if>
<xsl:if test="$tags != ''">
AND UT.Tags LIKE '%<xsl:value-of select="$tags"/>%'
</xsl:if>
<xsl:if test="$starring != ''">
AND UT.Starring LIKE '%<xsl:value-of select="$starring"/>%'
</xsl:if>
<xsl:if test="$director != ''">
AND UT.Director LIKE '%<xsl:value-of select="$director"/>%'
</xsl:if>
<xsl:if test="$region != ''">
AND UT.Region LIKE '%<xsl:value-of select="$region"/>%'
</xsl:if>
<xsl:if test="$type != ''">
AND UT.Type LIKE '%<xsl:value-of select="$type"/>%'
</xsl:if>
<xsl:if test="$dub != ''">
AND UT.Dub LIKE '%<xsl:value-of select="$dub"/>%'
</xsl:if>
<xsl:if test="$lowInfoPoint != 0">
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE CC.InfoPoint &gt; <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 &lt; <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_Video 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="$enTitle !=''">
AND UT.EnTitle LIKE '%<xsl:value-of select="$enTitle"/>%'
</xsl:if>
<xsl:if test="$intro !=''">
AND UT.Intro LIKE '%<xsl:value-of select="$intro"/>%'
</xsl:if>
<xsl:if test="$tags != ''">
AND UT.Tags LIKE '%<xsl:value-of select="$tags"/>%'
</xsl:if>
<xsl:if test="$starring != ''">
AND UT.Starring LIKE '%<xsl:value-of select="$starring"/>%'
</xsl:if>
<xsl:if test="$director != ''">
AND UT.Director LIKE '%<xsl:value-of select="$director"/>%'
</xsl:if>
<xsl:if test="$region != ''">
AND UT.Region LIKE '%<xsl:value-of select="$region"/>%'
</xsl:if>
<xsl:if test="$type != ''">
AND UT.Type LIKE '%<xsl:value-of select="$type"/>%'
</xsl:if>
<xsl:if test="$dub != ''">
AND UT.Dub LIKE '%<xsl:value-of select="$dub"/>%'
</xsl:if>
<xsl:if test="$lowInfoPoint != 0">
AND CM.GeneralID IN(SELECT CC.GeneralID FROM PE_ContentCharge CC WHERE CC.InfoPoint &gt; <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 &lt; <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>dub</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,71 @@
<?xml version="1.0"?>
<root>
<LabelType>视频类</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="linkOpenType" />
<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="still">
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
<xsl:choose>
<xsl:when test="Cover != ''">
<img src="{pe:ConvertToAbsolutePath(Cover)}" />
</xsl:when>
<xsl:otherwise>
<img src="{pe:InstallDir()}images/nopic.gif" />
</xsl:otherwise>
</xsl:choose>
</a>
</div>
<h4>
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
</a>
</h4>
</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,94 @@
<root>
<LabelType>视频类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>雅蓝软件搜索</LabelIntro>
<LabelDataType>static</LabelDataType>
<LabelTemplate>
<![CDATA[<div class="main_search">
视频栏目:<select size='1'id="nodeId">{PE.Label id="栏目分类下拉列表选项" nodeid="96" /}</select>
<br />
中文标题:<input size="30" maxlength="100" id="title" />
<br />
英文标题:<input size="30" maxlength="100" id="enTitle" />
<br />
剧情简介:<input size="30" maxlength="100" id="intro" />
<br />
视频标签:<input size="30" maxlength="100" id="tags" />
<br />
演  员:<input size="30" maxlength="100" id="starring" />
<br />
导  演:<input size="30" maxlength="100" id="director" />
<br />
地  区:<input size="30" maxlength="100" id="region" />
<br />
类  型:<input size="30" maxlength="100" id="type" />
<br />
配  音:<input size="30" maxlength="100" id="dub" />
<br />
查看点数:<input size="30" maxlength="100" id="lowinfopoint" />
<input name="highinfopoint" size="30" maxlength="100" id="highinfopoint" />
<br />
更新时间:<input name="begindate" size="30" maxlength="100" id="begindate" />
<input name="enddate" 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>
<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 enTitle = document.getElementById("enTitle").value;
var intro = document.getElementById("intro").value;
var tags = document.getElementById("tags").value;
var starring = document.getElementById("starring").value;
var director = document.getElementById("director").value;
var region = document.getElementById("region").value;
var type = document.getElementById("type").value;
var dub = document.getElementById("dub").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=23&nodeId=" + nodeId + "&title=" + escape(title) + "&enTitle=" + enTitle + "&intro=" + escape(intro) + "&tags=" + escape(tags) + "&starring=" + escape(starring) + "&director=" + escape(director) + "&region=" + escape(region) + "&type=" + escape(type) + "&dub=" + escape(dub) + "&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>
</div>]]></LabelTemplate>
<OutType>txt</OutType>
<EnabelAjax>False</EnabelAjax>
</root>