106 lines
3.1 KiB
XML
106 lines
3.1 KiB
XML
<?xml version="1.0"?>
|
|
<root>
|
|
<LabelType>【附加包】</LabelType>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<OutType>sin</OutType>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<attributes>
|
|
<name>nodeId</name>
|
|
<datatype>supersql</datatype>
|
|
<default>0</default>
|
|
<intro>当前所在的节点ID{默认值:0,传入值:@RequestInt_Id}</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>depth</name>
|
|
<datatype>supersql</datatype>
|
|
<default>0</default>
|
|
<intro>显示第几层的节点</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>nodeNameLength</name>
|
|
<default>20</default>
|
|
<intro>节点名称长度,两个字节等于一个汉字,如:输入20则显示10个汉字</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>linkOpenType</name>
|
|
<default>0</default>
|
|
<intro>内容链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>displayNodeTips</name>
|
|
<default>true</default>
|
|
<intro>是否显示栏目节点描述语</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>splitChar</name>
|
|
<default>★</default>
|
|
<intro>同层级节点间分割符号</intro>
|
|
</attributes>
|
|
<LabelSqlString>
|
|
SELECT
|
|
N.NodeID,
|
|
N.NodeName,
|
|
N.Tips,
|
|
N.NodeType,
|
|
N.LinkUrl
|
|
FROM
|
|
PE_Nodes N
|
|
WHERE
|
|
N.ShowOnPath = 1 AND
|
|
N.ShowOnMenu = 1 AND
|
|
N.Depth = @depth AND
|
|
N.RootID = (SELECT [IN].RootID FROM PE_Nodes [IN] WHERE [IN].NodeID = @nodeId)
|
|
ORDER BY
|
|
N.OrderID
|
|
</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:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
|
|
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
|
<xsl:param name="nodeNameLength" />
|
|
<xsl:param name="linkOpenType" />
|
|
<xsl:param name="displayNodeTips" />
|
|
<xsl:param name="splitChar" />
|
|
<xsl:template match="/NewDataSet/Table">
|
|
<li><a>
|
|
<xsl:attribute name="href">
|
|
<xsl:choose>
|
|
<xsl:when test="NodeType = 4">
|
|
<xsl:value-of select="LinkUrl"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="pe:GetNodePath(false,NodeID)"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:attribute>
|
|
<xsl:attribute name="target">
|
|
<xsl:choose>
|
|
<xsl:when test="$linkOpenType = 2">
|
|
<xsl:choose>
|
|
<xsl:when test="pe:GetNodeInfo(NodeID,'OpenType') = 0">_self</xsl:when>
|
|
<xsl:otherwise>_blank</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:when>
|
|
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
|
|
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="$linkOpenType"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:attribute>
|
|
<xsl:if test="$displayNodeTips = 'true'">
|
|
<xsl:attribute name="title">
|
|
<xsl:value-of select="Tips" />
|
|
</xsl:attribute>
|
|
</xsl:if>
|
|
<xsl:value-of select="pe:CutText(NodeName,$nodeNameLength,'…')"/>
|
|
</a></li>
|
|
<xsl:if test="position() != last()">
|
|
<xsl:value-of select="$splitChar"/>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]></LabelTemplate>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
</root> |