first commit
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user