first commit
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<root>
|
||||
<LabelType>其他类</LabelType>
|
||||
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>sql_sysquery</LabelDataType>
|
||||
<attributes>
|
||||
<name>nodeId</name>
|
||||
<default>12</default>
|
||||
<intro>节点ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>parentId</name>
|
||||
<default>4</default>
|
||||
<intro>父栏目ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>className</name>
|
||||
<default>current</default>
|
||||
<intro>当前li类名</intro>
|
||||
</attributes>
|
||||
<LabelSqlString>SELECT
|
||||
N.NodeID,
|
||||
N.NodeName
|
||||
FROM
|
||||
PE_Nodes N
|
||||
WHERE
|
||||
N.ParentID = @parentId AND
|
||||
N.ShowOnMenu = 1 AND
|
||||
N.ShowOnPath = 1
|
||||
ORDER BY OrderID</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="nodeId" />
|
||||
<xsl:param name="className" />
|
||||
<xsl:template match="/">
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<li>
|
||||
<xsl:if test="$nodeId = NodeID">
|
||||
<xsl:attribute name="class">
|
||||
<xsl:value-of select="$className" />
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="pe:GetNodePath(false,NodeID)"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="NodeName"/>
|
||||
</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<EnabelAjax>False</EnabelAjax>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
</root>
|
||||
Reference in New Issue
Block a user