first commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>音乐类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>txt</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<LabelTemplate><![CDATA[ <script type="text/javascript">
|
||||
function PlayCheckedMusic(form) {
|
||||
var ids = "";
|
||||
var temp = document.getElementById(form);
|
||||
for (var i = 0; i < temp.elements.length; i++) {
|
||||
var e = temp.elements[i];
|
||||
if (e.type == "checkbox") {
|
||||
if (e.checked == true) {
|
||||
ids = ids + e.value + ',';
|
||||
}
|
||||
}
|
||||
}
|
||||
if (ids == "") {
|
||||
alert("请选择要播放的歌曲");
|
||||
return false;
|
||||
}
|
||||
ids = ids.substring(0, ids.length - 1);
|
||||
SetCookie("MusicListCollection", ids, 30, "/", "", false);
|
||||
window.location="{PE.Label id="取得节点链接路径" nodeId="98" /}";
|
||||
}
|
||||
</script>]]></LabelTemplate>
|
||||
</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 > 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_Music 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,107 @@
|
||||
<?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: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>
|
||||
<form id="form1">
|
||||
<table id="musicList" summary="热门歌曲列表">
|
||||
<caption>
|
||||
<strong>{PE.Label id="取得节点名称带链接" nodeId="@RequestInt_Id" outputType="linked" /}</strong></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
</th>
|
||||
<th scope="col">歌曲名称</th>
|
||||
<th scope="col">歌手名称</th>
|
||||
<th scope="col">语言</th>
|
||||
<th scope="col">风格</th>
|
||||
<th scope="col">专辑</th>
|
||||
<th scope="col">试听</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="8">
|
||||
<span class="menu">
|
||||
<a class="selectAll" style="cursor: pointer" onclick="CheckAllMusic('form1')" title="全选">全选</a>
|
||||
<a class="selectInvert" style="cursor: pointer" onclick="CheckOhterMusic('form1')" title="反选">反选</a>
|
||||
<a class="play" style="cursor: pointer" onclick="PlayCheckedMusic('form1')" title="播放">播放</a>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" value="{GeneralID}" />
|
||||
</td>
|
||||
<td>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
||||
<xsl:value-of select="Title"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="Singer"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="Language"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="Style"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="RecordCompany"/>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">试听</a>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></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,246 @@
|
||||
<?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 > $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,109 @@
|
||||
<?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: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>
|
||||
<form id="form1">
|
||||
<div id="musicList" summary="热门歌曲列表">
|
||||
<ul>
|
||||
<li class="title">
|
||||
<span class="select">
|
||||
</span>
|
||||
<span class="sing">歌曲名</span>
|
||||
<span class="singer">歌手名</span>
|
||||
<span class="album">唱片公司</span>
|
||||
<span class="language">语言</span>
|
||||
<span class="style">风格</span>
|
||||
<span class="listen">试听</span>
|
||||
<span>大小</span>
|
||||
</li>
|
||||
<li class="sele">
|
||||
<a class="selectAll" style="cursor: pointer" onclick="CheckAllMusic('form1')" title="全选">全选</a>
|
||||
<a class="selectInvert" style="cursor: pointer" onclick="CheckOhterMusic('form1')" title="反选">反选</a>
|
||||
<a class="play" style="cursor: pointer" onclick="PlayCheckedMusic('form1')" title="播放">播放</a>
|
||||
</li>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<span class="select">
|
||||
<input type="checkbox" value="{GeneralID}" />
|
||||
</span>
|
||||
<span class="sing">
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
||||
<xsl:value-of select="Title"/>
|
||||
</a>
|
||||
</span>
|
||||
<span class="singer">
|
||||
<xsl:value-of select="Singer"/>
|
||||
</span>
|
||||
<span class="album">
|
||||
<xsl:value-of select="RecordCompany"/>
|
||||
</span>
|
||||
<span class="language">
|
||||
<xsl:value-of select="Language"/>
|
||||
</span>
|
||||
<span class="style">
|
||||
<xsl:value-of select="Style"/>
|
||||
</span>
|
||||
<span class="listen">
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">试听</a>
|
||||
</span>
|
||||
<span>
|
||||
<xsl:value-of select="pe:ConvertSizeToShow(MusicSize)"/>
|
||||
</span>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
<li class="sele">
|
||||
<a class="selectAll" style="cursor: pointer" onclick="CheckAllMusic('form1')" title="全选">全选</a>
|
||||
<a class="selectInvert" style="cursor: pointer" onclick="CheckOhterMusic('form1')" title="反选">反选</a>
|
||||
<a class="play" style="cursor: pointer" onclick="PlayCheckedMusic('form1')" title="播放">播放</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>
|
||||
]]></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>
|
||||
<LabelSqlPage>
|
||||
</LabelSqlPage>
|
||||
</root>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?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>
|
||||
<input type="checkbox" value="{GeneralID}" />
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
||||
<xsl:value-of select="Title"/>
|
||||
</a>
|
||||
</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 (24) 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>参数名称</name>
|
||||
<datatype>string</datatype>
|
||||
<default>默认值</default>
|
||||
<intro>参数说明</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
@@ -0,0 +1,105 @@
|
||||
<?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: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>
|
||||
<form id="form1">
|
||||
<table id="musicList" summary="热门歌曲列表">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
</th>
|
||||
<th scope="col">歌曲名称</th>
|
||||
<th scope="col">歌手名称</th>
|
||||
<th scope="col">语言</th>
|
||||
<th scope="col">风格</th>
|
||||
<th scope="col">专辑</th>
|
||||
<th scope="col">试听</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="10">
|
||||
<span class="menu">
|
||||
<a class="selectAll" style="cursor: pointer" onclick="CheckAllMusic('form1')" title="全选">全选</a>
|
||||
<a class="selectInvert" style="cursor: pointer" onclick="CheckOhterMusic('form1')" title="反选">反选</a>
|
||||
<a class="play" style="cursor: pointer" onclick="PlayCheckedMusic('form1')" title="播放">播放</a>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" value="{GeneralID}" />
|
||||
</td>
|
||||
<td>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
||||
<xsl:value-of select="Title"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="Singer"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="Language"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="Style"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="RecordCompany"/>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">试听</a>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></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,46 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<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="97" /}</select>
|
||||
<select name="fieldOption" id="fieldOption" size="1">
|
||||
<option value="title" selected="selected">名 称</option>
|
||||
<option value="singer">歌 手</option>
|
||||
<option value="style">风 格</option>
|
||||
<option value="recordCompany">唱片公司</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/musicsearch_bt.gif" name="Submit" onclick="OnSearchCheckAndSubmit();" />
|
||||
</div>
|
||||
<div class="c_newssearch_list">
|
||||
<a href="{PE.SiteConfig.applicationpath/}search.aspx?searchtype=2&ModelId=24">高级搜索</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=24&nodeId=" + nodeId + "&Keyword=" + escape(keyword) + "&fieldOption=" + fieldOption;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
]]></LabelTemplate>
|
||||
<OutType>txt</OutType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
</root>
|
||||
@@ -0,0 +1,44 @@
|
||||
<root>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelType>音乐类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<LabelSqlString>SELECT * FROM PE_CommonModel CM INNER JOIN PE_U_Music UT ON (CM.ItemID = UT.ID) WHERE CM.GeneralID IN (@musicIds) AND CM.Status=99 ORDER BY CM.UpdateTime DESC</LabelSqlString>
|
||||
<LabelTemplate>
|
||||
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
||||
<xsl:output method="xml" />
|
||||
<xsl:param name="itemId"/>
|
||||
<xsl:template match="/">
|
||||
<select id="MusicList" ondblclick="PlayMusic()" style="width: 100%;" size="12">
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<xsl:choose>
|
||||
<xsl:when test="not(contains(PlayUrl,'$$$'))">
|
||||
<option value="{pe:ConvertToAbsolutePath(substring-after(PlayUrl,'|'))}" lrcUrl="{pe:ConvertToAbsolutePath(substring-after(LrcUrl,'|'))}" musicName="{Title}" singer="{Singer}" styles="{Style}" language="{Language}" issusingDate="{pe:FormatDate(IssusingDate,'yyyy-mm-dd')}" recordCompany="{RecordCompany}" intro="{Intro}">
|
||||
<xsl:value-of select="Title"/>
|
||||
</option>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<option value="{pe:ConvertToAbsolutePath(substring-before(substring-after(PlayUrl,'|'),'$'))}" lrcUrl="{pe:ConvertToAbsolutePath(substring-before(substring-after(LrcUrl,'|'),'$'))}" musicName="{Title}" singer="{Singer}" styles="{Style}" language="{Language}" issusingDate="{pe:FormatDate(IssusingDate,'yyyy-mm-dd')}" recordCompany="{RecordCompany}" intro="{Intro}">
|
||||
<xsl:value-of select="Title"/>
|
||||
</option>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
</select>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]>
|
||||
</LabelTemplate>
|
||||
<attributes>
|
||||
<name>musicIds</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>音乐ID</intro>
|
||||
</attributes>
|
||||
<OutType>sin</OutType>
|
||||
<CacheTime>0</CacheTime>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<EnabelAjax>True</EnabelAjax>
|
||||
</root>
|
||||
@@ -0,0 +1,27 @@
|
||||
<root>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<LabelType>音乐类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetPicArticle.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<LabelSqlString>SELECT TOP 10 * FROM PE_CommonModel CM INNER JOIN PE_U_Music UT ON (CM.ItemID = UT.ID) WHERE CM.Status=99 ORDER BY NEWID()</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="/NewDataSet/Table">
|
||||
<li>
|
||||
<input type="checkbox" id="randomMusic" value="{GeneralID}" />
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
||||
<xsl:value-of select="Title"/>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<OutType>sin</OutType>
|
||||
<CacheTime>0</CacheTime>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<EnabelAjax>True</EnabelAjax>
|
||||
</root>
|
||||
@@ -0,0 +1,129 @@
|
||||
<?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_Music 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 = 'singer'">
|
||||
AND UT.Singer LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'style'">
|
||||
AND UT.Style LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'recordCompany'">
|
||||
AND UT.RecordCompany 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_Music 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 = 'singer'">
|
||||
AND UT.Singer LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'style'">
|
||||
AND UT.Style LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'recordCompany'">
|
||||
AND UT.RecordCompany 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_Music 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 = 'singer'">
|
||||
AND UT.Singer LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'style'">
|
||||
AND UT.Style LIKE '%<xsl:value-of select="$fieldValue"/>%'
|
||||
</xsl:when>
|
||||
<xsl:when test="$fieldName = 'recordCompany'">
|
||||
AND UT.RecordCompany 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,124 @@
|
||||
<?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>
|
||||
<form id="form1">
|
||||
<div id="musicList" summary="热门歌曲列表">
|
||||
<ul>
|
||||
<li class="title">
|
||||
<span class="select"></span>
|
||||
<span class="sing">歌曲名</span>
|
||||
<span class="singer">歌手名</span>
|
||||
<span class="album">唱片公司</span>
|
||||
<span class="language">语言</span>
|
||||
<span class="style">风格</span>
|
||||
<span class="listen">试听</span>
|
||||
<span>大小</span>
|
||||
</li>
|
||||
<li class="sele">
|
||||
<a class="selectAll" style="cursor: pointer" onclick="CheckAllMusic('form1')" title="全选">全选</a>
|
||||
<a class="selectInvert" style="cursor: pointer" onclick="CheckOhterMusic('form1')" title="反选">反选</a>
|
||||
<a class="play" style="cursor: pointer" onclick="PlayCheckedMusic('form1')" title="播放">播放</a>
|
||||
</li>
|
||||
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li><span class="select">
|
||||
<input type="checkbox" value="{GeneralID}" />
|
||||
</span>
|
||||
<span class="sing">
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
||||
<xsl:value-of select="Title"/>
|
||||
</a>
|
||||
</span>
|
||||
<span class="singer">
|
||||
<xsl:value-of select="Singer"/>
|
||||
</span>
|
||||
<span class="album">
|
||||
<xsl:value-of select="RecordCompany"/>
|
||||
</span>
|
||||
<span class="language">
|
||||
<xsl:value-of select="Language"/>
|
||||
</span>
|
||||
<span class="style">
|
||||
<xsl:value-of select="Style"/>
|
||||
</span>
|
||||
<span class="listen">
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">试听</a>
|
||||
</span>
|
||||
<span>
|
||||
<xsl:value-of select="pe:ConvertSizeToShow(MusicSize)"/>
|
||||
</span>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
<li class="sele">
|
||||
<a class="selectAll" style="cursor: pointer" onclick="CheckAllMusic('form1')" title="全选">全选</a>
|
||||
<a class="selectInvert" style="cursor: pointer" onclick="CheckOhterMusic('form1')" title="反选">反选</a>
|
||||
<a class="play" style="cursor: pointer" onclick="PlayCheckedMusic('form1')" title="播放">播放</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]>
|
||||
</LabelTemplate>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,121 @@
|
||||
<?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>
|
||||
<form id="form1">
|
||||
<table id="musicList" summary="热门歌曲列表">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"></th>
|
||||
<th scope="col">歌曲名称</th>
|
||||
<th scope="col">歌手名称</th>
|
||||
<th scope="col">语言</th>
|
||||
<th scope="col">风格</th>
|
||||
<th scope="col">专辑</th>
|
||||
<th scope="col">试听</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="10">
|
||||
<span class="menu">
|
||||
<a class="selectAll" style="cursor: pointer" onclick="CheckAllMusic('form1')" title="全选">全选</a>
|
||||
<a class="selectInvert" style="cursor: pointer" onclick="CheckOhterMusic('form1')" title="反选">反选</a>
|
||||
<a class="play" style="cursor: pointer" onclick="PlayCheckedMusic('form1')" title="播放">播放</a>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" value="{GeneralID}" />
|
||||
</td>
|
||||
<td>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
||||
<xsl:value-of select="Title"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="Singer"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="Language"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="Style"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="RecordCompany"/>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">试听</a>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<UsePage>True</UsePage>
|
||||
<LabelSqlCount>@queryCount</LabelSqlCount>
|
||||
</root>
|
||||
@@ -0,0 +1,33 @@
|
||||
<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>24小时试听排行</dt>
|
||||
<dd>
|
||||
{PE.Label id="音乐信息列表" titleLength="19" outputQty="14" itemListOrderType="9" displayPropertyPrefix="6" /}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="left_box">
|
||||
<dl>
|
||||
<dt>历史视听排行</dt>
|
||||
<dd>
|
||||
{PE.Label id="音乐信息列表" titleLength="19" outputQty="14" itemListOrderType="5" displayPropertyPrefix="7" /}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="left_box">
|
||||
<dl>
|
||||
<dt>网友推荐歌曲</dt>
|
||||
<dd> {PE.Label id="音乐信息列表" titleLength="19" outputQty="10" itemListOrderType="15" inDays="7" displayPropertyPrefix="4" /} </dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearbox"> </div>]]></LabelTemplate>
|
||||
<OutType>txt</OutType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
</root>
|
||||
@@ -0,0 +1,240 @@
|
||||
<?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>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>issusingDate</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>发行日期</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>style</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>风格</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>language</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>
|
||||
</default>
|
||||
<intro>语言</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>singer</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="language" />
|
||||
<xsl:param name="intro" />
|
||||
<xsl:param name="style" />
|
||||
<xsl:param name="issusingDate" />
|
||||
<xsl:param name="singer" />
|
||||
<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_Music 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="$recordCompany !=''">
|
||||
AND UT.RecordCompany LIKE '%<xsl:value-of select="$recordCompany"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$singer !=''">
|
||||
AND UT.Singer LIKE '%<xsl:value-of select="$singer"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$language != ''">
|
||||
AND UT.Language LIKE '%<xsl:value-of select="$language"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$style != ''">
|
||||
AND UT.Style LIKE '%<xsl:value-of select="$style"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$intro != ''">
|
||||
AND UT.Intro LIKE '%<xsl:value-of select="$intro"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$issusingDate != ''">
|
||||
AND UT.IssusingDate LIKE '%<xsl:value-of select="$issusingDate"/>%'
|
||||
</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_Music 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="$recordCompany !=''">
|
||||
AND UT.RecordCompany LIKE '%<xsl:value-of select="$recordCompany"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$singer !=''">
|
||||
AND UT.Singer LIKE '%<xsl:value-of select="$singer"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$language != ''">
|
||||
AND UT.Language LIKE '%<xsl:value-of select="$language"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$style != ''">
|
||||
AND UT.Style LIKE '%<xsl:value-of select="$style"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$intro != ''">
|
||||
AND UT.Intro LIKE '%<xsl:value-of select="$intro"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$issusingDate != ''">
|
||||
AND UT.IssusingDate LIKE '%<xsl:value-of select="$issusingDate"/>%'
|
||||
</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_Music 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="$recordCompany !=''">
|
||||
AND UT.RecordCompany LIKE '%<xsl:value-of select="$recordCompany"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$singer !=''">
|
||||
AND UT.Singer LIKE '%<xsl:value-of select="$singer"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$language != ''">
|
||||
AND UT.Language LIKE '%<xsl:value-of select="$language"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$style != ''">
|
||||
AND UT.Style LIKE '%<xsl:value-of select="$style"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$intro != ''">
|
||||
AND UT.Intro LIKE '%<xsl:value-of select="$intro"/>%'
|
||||
</xsl:if>
|
||||
<xsl:if test="$issusingDate != ''">
|
||||
AND UT.IssusingDate LIKE '%<xsl:value-of select="$issusingDate"/>%'
|
||||
</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,107 @@
|
||||
<?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: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>
|
||||
<form id="form1">
|
||||
<div id="musicList" summary="热门歌曲列表">
|
||||
<ul>
|
||||
<li class="title">
|
||||
<span class="select"></span>
|
||||
<span class="sing">歌曲名</span>
|
||||
<span class="singer">歌手名</span>
|
||||
<span class="album">唱片公司</span>
|
||||
<span class="language">语言</span>
|
||||
<span class="style">风格</span>
|
||||
<span class="listen">试听</span>
|
||||
<span>大小</span>
|
||||
</li>
|
||||
<li class="sele">
|
||||
<a class="selectAll" style="cursor: pointer" onclick="CheckAllMusic('form1')" title="全选">全选</a>
|
||||
<a class="selectInvert" style="cursor: pointer" onclick="CheckOhterMusic('form1')" title="反选">反选</a>
|
||||
<a class="play" style="cursor: pointer" onclick="PlayCheckedMusic('form1')" title="播放">播放</a>
|
||||
</li>
|
||||
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li><span class="select">
|
||||
<input type="checkbox" value="{GeneralID}" />
|
||||
</span>
|
||||
<span class="sing">
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
||||
<xsl:value-of select="Title"/>
|
||||
</a>
|
||||
</span>
|
||||
<span class="singer">
|
||||
<xsl:value-of select="Singer"/>
|
||||
</span>
|
||||
<span class="album">
|
||||
<xsl:value-of select="RecordCompany"/>
|
||||
</span>
|
||||
<span class="language">
|
||||
<xsl:value-of select="Language"/>
|
||||
</span>
|
||||
<span class="style">
|
||||
<xsl:value-of select="Style"/>
|
||||
</span>
|
||||
<span class="listen">
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">试听</a>
|
||||
</span>
|
||||
<span>
|
||||
<xsl:value-of select="pe:ConvertSizeToShow(MusicSize)"/>
|
||||
</span>
|
||||
</li>
|
||||
|
||||
</xsl:for-each>
|
||||
<li class="sele">
|
||||
<a class="selectAll" style="cursor: pointer" onclick="CheckAllMusic('form1')" title="全选">全选</a>
|
||||
<a class="selectInvert" style="cursor: pointer" onclick="CheckOhterMusic('form1')" title="反选">反选</a>
|
||||
<a class="play" style="cursor: pointer" onclick="PlayCheckedMusic('form1')" title="播放">播放</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]>
|
||||
</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,105 @@
|
||||
<?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: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>
|
||||
<form id="form1">
|
||||
<table id="musicList" summary="热门歌曲列表">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">
|
||||
</th>
|
||||
<th scope="col">歌曲名称</th>
|
||||
<th scope="col">歌手名称</th>
|
||||
<th scope="col">语言</th>
|
||||
<th scope="col">风格</th>
|
||||
<th scope="col">专辑</th>
|
||||
<th scope="col">试听</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="10">
|
||||
<span class="menu">
|
||||
<a class="selectAll" style="cursor: pointer" onclick="CheckAllMusic('form1')" title="全选">全选</a>
|
||||
<a class="selectInvert" style="cursor: pointer" onclick="CheckOhterMusic('form1')" title="反选">反选</a>
|
||||
<a class="play" style="cursor: pointer" onclick="PlayCheckedMusic('form1')" title="播放">播放</a>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" value="{GeneralID}" />
|
||||
</td>
|
||||
<td>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
||||
<xsl:value-of select="Title"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="Singer"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="Language"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="Style"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="RecordCompany"/>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">试听</a>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></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,85 @@
|
||||
<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="97" /}</select>
|
||||
<br />
|
||||
歌曲标题:<input size="30" maxlength="100" id="title" />
|
||||
<br />
|
||||
唱片公司:<input size="30" maxlength="100" id="recordCompany" />
|
||||
<br />
|
||||
歌 手:<input size="30" maxlength="100" id="singer" />
|
||||
<br />
|
||||
语 言:<input size="30" maxlength="100" id="language" />
|
||||
<br />
|
||||
风 格:<input size="30" maxlength="100" id="style" />
|
||||
<br />
|
||||
简 介:<input size="30" maxlength="100" id="intro" />
|
||||
<br />
|
||||
发行日期:<input name="keyword" size="30" maxlength="100" id="issusingDate" />
|
||||
<br />
|
||||
查看点数:<input name="lowinfopoint" 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 recordCompany = document.getElementById("recordCompany").value;
|
||||
var singer = document.getElementById("singer").value;
|
||||
var language = document.getElementById("language").value;
|
||||
var intro = document.getElementById("intro").value;
|
||||
var issusingDate = document.getElementById("issusingDate").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) && CheckDateTime(issusingDate)) {
|
||||
window.location = "{PE.SiteConfig.applicationpath /}search.aspx?searchtype=2&showtype=1&ModelId=24&nodeId=" + nodeId + "&title=" + escape(title) + "&recordCompany=" + recordCompany + "&intro=" + escape(intro) + "&singer=" + escape(singer) + "&language=" + escape(language) + "&issusingDate=" + escape(issusingDate) + "&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>
|
||||
Reference in New Issue
Block a user