125 lines
4.2 KiB
XML
125 lines
4.2 KiB
XML
<?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>
|