first commit
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
<?xml version="1.0"?>
|
||||
<root>
|
||||
<LabelType>专题类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<attributes>
|
||||
<name>specialId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>专题ID{默认值:1,传入值:@RequestInt_Id}</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>DisplayType</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>输出类型{名称:1,类别ID:2,图片:3,提示:4,描述:5,打开方式:6,自设内容:7}</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT
|
||||
S.SpecialID,
|
||||
S.SpecialName,
|
||||
S.SpecialCategoryID,
|
||||
S.SpecialPic,
|
||||
S.SpecialTips,
|
||||
S.Description,
|
||||
S.OpenType,
|
||||
S.Custom_Content
|
||||
FROM
|
||||
PE_Specials S
|
||||
WHERE
|
||||
S.SpecialID = @specialId</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="DisplayType" />
|
||||
<xsl:param name="number" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$DisplayType = 1">
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetSpecialPath(SpecialID)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="title">
|
||||
<xsl:value-of disable-output-escaping="yes" select="Description"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="SpecialName"/>
|
||||
</a>
|
||||
</xsl:when>
|
||||
<xsl:when test="$DisplayType = 2">
|
||||
<xsl:value-of select="SpecialCategoryID"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$DisplayType = 3">
|
||||
<xsl:value-of select="SpecialPic"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$DisplayType = 4">
|
||||
<xsl:value-of select="SpecialTips"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$DisplayType = 5">
|
||||
<xsl:value-of disable-output-escaping="yes" select="Description"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$DisplayType = 6">
|
||||
<xsl:value-of select="OpenType"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$DisplayType = 7">
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:GetCustomContent($number,Custom_Content) "/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>number</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>1</default>
|
||||
<intro>自设内容序号,注意仅当输出类型为自设内容时有效</intro>
|
||||
</attributes>
|
||||
</root>
|
||||
Reference in New Issue
Block a user