Files
ningbo/动易的标签库/标签库/其他类/心情指数排行.config
T
2026-08-31 16:22:00 +08:00

96 lines
4.1 KiB
XML

<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>moodId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>心情指数方案ID</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT * FROM PE_MoodScheme WHERE MoodID = @moodId</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:pe="labelproc" exclude-result-prefixes="pe">
<xsl:param name="moodId" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:call-template name="GetOptionName">
<xsl:with-param name="moodOption" select="NewDataSet/Table/MoodOption"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="GetOptionName">
<xsl:param name="moodOption"/>
<xsl:param name="position" select="0" />
<xsl:choose>
<xsl:when test="contains($moodOption,'$$$')">
<div class="childclass_main_box">
<div class="childclass_title">
<a href="###">
<xsl:value-of select="substring-before(substring-before($moodOption,'$$$'),'|')"/>
</a>
</div>
<div class="childclass_content">
<ul>
{PE.Label id="心情指数信息列表" moodId="<xsl:value-of select="$moodId"/>" outputQty="10" orderType="<xsl:value-of select="$position"/>" /}
</ul>
<div class="clearbox"> </div>
</div>
<div class="childclass_bot">
</div>
</div>
<xsl:variable name="after" select="substring-after($moodOption,'$$$')" />
<xsl:choose>
<xsl:when test="contains($after,'$$$')">
<xsl:call-template name="GetOptionName">
<xsl:with-param name="moodOption" select="$after"/>
<xsl:with-param name="position" select="$position + 1"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<div class="childclass_main_box">
<div class="childclass_title">
<a href="###">
<xsl:value-of select="substring-before($after,'|')"/>
</a>
</div>
<div class="childclass_content">
<ul>
{PE.Label id="心情指数信息列表" moodId="<xsl:value-of select="$moodId"/>" outputQty="10" orderType="<xsl:value-of select="$position + 1"/>" /}
</ul>
<div class="clearbox"> </div>
</div>
<div class="childclass_bot">
</div>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<div class="childclass_main_box">
<div class="childclass_title">
<a href="###">
<xsl:value-of select="$moodOption"/>
</a>
</div>
<div class="childclass_content">
<ul>
{PE.Label id="心情指数信息列表" moodId="<xsl:value-of select="$moodId"/>" outputQty="10" orderType="<xsl:value-of select="$position"/>" /}
</ul>
<div class="clearbox"> </div>
</div>
<div class="childclass_bot">
</div>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]>
</LabelTemplate>
</root>