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