111 lines
2.7 KiB
Plaintext
111 lines
2.7 KiB
Plaintext
<root>
|
|
<LabelType>其他类</LabelType>
|
|
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<OutType>sin</OutType>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<attributes>
|
|
<name>nodeid</name>
|
|
<default>0</default>
|
|
<intro>节点ID</intro>
|
|
</attributes>
|
|
<LabelSqlString>
|
|
SELECT
|
|
PE_Nodes.NodeID,
|
|
PE_Nodes.NodeName,
|
|
PE_Nodes.Child,
|
|
PE_Nodes.NodeType,
|
|
PE_Nodes.LinkUrl,
|
|
PE_Nodes.Depth
|
|
FROM
|
|
PE_Nodes
|
|
WHERE
|
|
ParentID = @nodeid
|
|
</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="depth"/>
|
|
<xsl:template match="/">
|
|
<xsl:for-each select="/NewDataSet/Table">
|
|
<xsl:choose>
|
|
<xsl:when test="Child = 0">
|
|
<li>
|
|
<a>
|
|
<xsl:choose>
|
|
<xsl:when test="NodeType = 1">
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="pe:GetNodePath('false',NodeID)" />
|
|
</xsl:attribute>
|
|
</xsl:when>
|
|
<xsl:when test="NodeType = 2">
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="pe:GetNodePath('false',NodeID)" />
|
|
</xsl:attribute>
|
|
</xsl:when>
|
|
<xsl:when test="NodeType = 3">
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="pe:GetNodePath('false',NodeID)" />
|
|
</xsl:attribute>
|
|
</xsl:when>
|
|
<xsl:when test="NodeType = 4">
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="LinkUrl"/>
|
|
</xsl:attribute>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
|
|
<xsl:value-of select="NodeName"/>
|
|
</a>
|
|
</li>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<li>
|
|
<a>
|
|
<xsl:choose>
|
|
<xsl:when test="NodeType = 1">
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="pe:GetNodePath('false',NodeID)" />
|
|
</xsl:attribute>
|
|
</xsl:when>
|
|
<xsl:when test="NodeType = 2">
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="pe:GetNodePath('false',NodeID)" />
|
|
</xsl:attribute>
|
|
</xsl:when>
|
|
<xsl:when test="NodeType = 3">
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="pe:GetNodePath('false',NodeID)" />
|
|
</xsl:attribute>
|
|
</xsl:when>
|
|
<xsl:when test="NodeType = 4">
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="LinkUrl"/>
|
|
</xsl:attribute>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
|
|
<xsl:value-of select="NodeName"/>
|
|
</a>
|
|
<xsl:if test="Child>0 and Depth<$depth">
|
|
<ul>
|
|
{PE.Label id="GOV_栏目多级菜单" nodeid="<xsl:value-of select="NodeID"/>" depth="<xsl:value-of select="$depth"/>" /}
|
|
</ul>
|
|
</xsl:if>
|
|
</li>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:for-each>
|
|
</xsl:template>
|
|
</xsl:transform>]]></LabelTemplate>
|
|
<attributes>
|
|
<name>depth</name>
|
|
<default>5</default>
|
|
<intro>显示多少层</intro>
|
|
</attributes>
|
|
</root> |