first commit

This commit is contained in:
2026-08-31 16:22:00 +08:00
commit e969a1e559
2665 changed files with 128795 additions and 0 deletions
@@ -0,0 +1,36 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>nodeid</name>
<default>1</default>
<intro>节点ID</intro>
</attributes>
<LabelSqlString>SELECT ParentID FROM PE_Nodes WHERE NodeID=@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="nodeid"/>
<xsl:template match="/NewDataSet">
<xsl:choose>
<xsl:when test="count(Table)=0">
<xsl:value-of select="$nodeid"/>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="Table/ParentID=0">
<xsl:value-of select="$nodeid"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="Table/ParentID"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
</root>
@@ -0,0 +1,111 @@
<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&gt;0 and Depth&lt;$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>
@@ -0,0 +1,250 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>60</default>
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>内容链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</intro>
</attributes>
<attributes>
<name>displayPropertyType</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>内容列表前缀修饰符{不启用:0,样式一:1,样式二:2,样式三:3,样式四:4,样式五:5,样式六:6,样式七:7,样式八:8,样式九:9,样式十:10}</intro>
</attributes>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>内容ID{默认值:0,传入值:@RequestInt_Id}</intro>
</attributes>
<attributes>
<name>nodeArray</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>节点ID{默认值:0,传入值:@RequestInt_Id}</intro>
</attributes>
<attributes>
<name>unit</name>
<datatype>string</datatype>
<default>篇</default>
<intro>计量单位{篇:篇,条:条,组:组}</intro>
</attributes>
<attributes>
<name>optionalExtend</name>
<datatype>string</datatype>
<default>0</default>
<intro>可选扩展参数</intro>
</attributes>
<attributes>
<name>displayNodeName</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示所属栏目名称</intro>
</attributes>
<attributes>
<name>displayInputer</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示内容的录入者</intro>
</attributes>
<attributes>
<name>displayDateTime</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示更新日期</intro>
</attributes>
<attributes>
<name>displayTips</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示作者,更新日期,点击数等浮动提示信息</intro>
</attributes>
<attributes>
<name>displayHits</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示内容点击数</intro>
</attributes>
<attributes>
<name>displayHotSign</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示热门内容图标</intro>
</attributes>
<attributes>
<name>displayNewSign</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示新内容图标</intro>
</attributes>
<attributes>
<name>displayCommentLink</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示评论链接</intro>
</attributes>
<IsXsltSql>true</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString><![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:param name="nodeArray" />
<xsl:output method="xml" />
<xsl:template match="/">
<root>
<sql>
SELECT TOP 1 * FROM PE_CommonModel C WHERE C.GeneralID &lt; @itemId AND C.Status = 99
<xsl:if test="$nodeArray != 0">
AND C.NodeID IN (@nodeArray)
</xsl:if>
ORDER BY C.GeneralID DESC
</sql>
<countsql>
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></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="titleLength" />
<xsl:param name="hits" />
<xsl:param name="eliteLevel" />
<xsl:param name="priorityLevel" />
<xsl:param name="linkOpenType" />
<xsl:param name="displayPropertyType" />
<xsl:param name="optionalExtend" />
<xsl:param name="displayNodeName" />
<xsl:param name="displayInputer" />
<xsl:param name="displayDateTime" />
<xsl:param name="displayTips" />
<xsl:param name="displayHits" />
<xsl:param name="displayHotSign" />
<xsl:param name="displayNewSign" />
<xsl:param name="displayCommentLink" />
<xsl:param name="unit" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<font style="color:red">上一<xsl:value-of select="$unit" />:没有了!</font>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<font style="color:red">上一<xsl:value-of select="$unit" /></font>
<xsl:if test="$displayNodeName = 'true'">[ <a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath(false,NodeID)"/>
</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:value-of select="pe:GetNode(NodeID,'name')" />
</a> ]</xsl:if>
<xsl:if test="$displayPropertyType != 0">
<xsl:choose>
<xsl:when test="Hits &gt; pe:HitsOfHot()">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="pe:InstallDir()"/>images/ontop<xsl:value-of select="$displayPropertyType"/>.gif</xsl:attribute>
<xsl:attribute name="alt">热门<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
</xsl:attribute>
</xsl:element>
</xsl:when>
<xsl:when test="EliteLevel &gt; $eliteLevel">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="pe:InstallDir()"/>images/elite<xsl:value-of select="$displayPropertyType"/>.gif</xsl:attribute>
<xsl:attribute name="alt">推荐<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
</xsl:attribute>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="pe:InstallDir()"/>images/common<xsl:value-of select="$displayPropertyType"/>.gif</xsl:attribute>
<xsl:attribute name="alt">普通<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
</xsl:attribute>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
</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="$displayTips = 'true'">
<xsl:attribute name="title">标题:<xsl:value-of select="Title"/>
<xsl:value-of select="'&#xD;'" />点击数:<xsl:value-of select="Hits"/>
<xsl:value-of select="'&#xD;'" />发表时间:<xsl:value-of select="pe:FormatDate(UpdateTime, 'yy年mm月dd日')" />
</xsl:attribute>
</xsl:if>
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
</a>
<xsl:if test="$displayHits = 'true'">[ <xsl:value-of select="Hits"/> ]</xsl:if>
<xsl:if test="$displayInputer = 'true'">[ <xsl:value-of select="Inputer"/> ]</xsl:if>
<xsl:if test="$displayDateTime = 'true'">[ <xsl:value-of select="pe:FormatDate(UpdateTime, 'mm-dd')" /> ]</xsl:if>
<xsl:if test="$displayCommentLink = 'true' and ShowCommentLink = 'true'">
[<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()" />Comment/AddComment.aspx?itemId=<xsl:value-of select="GeneralID"/>&amp;nodeId=<xsl:value-of select="NodeID"/>
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>评论</a> ]
</xsl:if>
<xsl:if test="$displayHotSign = 'true'">
<xsl:if test="Hits &gt; pe:HitsOfHot()">
<img src="{pe:InstallDir()}images/hot.gif" alt="热门内容" />
</xsl:if>
</xsl:if>
<xsl:if test="$displayNewSign = 'true'">
<xsl:if test="3 &gt; pe:TimeSpan(UpdateTime,pe:TimeNow())">
<img src="{pe:InstallDir()}images/new.gif" alt="最新内容" />
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<usePage>
</usePage>
<LabelSqlCount>@QueryCount</LabelSqlCount>
</root>
@@ -0,0 +1,254 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>60</default>
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>内容链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</intro>
</attributes>
<attributes>
<name>displayPropertyType</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>内容列表前缀修饰符{不启用:0,样式一:1,样式二:2,样式三:3,样式四:4,样式五:5,样式六:6,样式七:7,样式八:8,样式九:9,样式十:10}</intro>
</attributes>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>内容ID{默认值:0,传入值:@RequestInt_Id}</intro>
</attributes>
<attributes>
<name>nodeArray</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>节点ID{默认值:0,传入值:@RequestInt_Id}</intro>
</attributes>
<attributes>
<name>unit</name>
<datatype>string</datatype>
<default>篇</default>
<intro>计量单位{篇:篇,条:条,组:组}</intro>
</attributes>
<attributes>
<name>optionalExtend</name>
<datatype>string</datatype>
<default>0</default>
<intro>可选扩展参数</intro>
</attributes>
<attributes>
<name>displayNodeName</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示所属栏目名称</intro>
</attributes>
<attributes>
<name>displayInputer</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示内容的录入者</intro>
</attributes>
<attributes>
<name>displayDateTime</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示更新日期</intro>
</attributes>
<attributes>
<name>displayTips</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示作者,更新日期,点击数等浮动提示信息</intro>
</attributes>
<attributes>
<name>displayHits</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示内容点击数</intro>
</attributes>
<attributes>
<name>displayHotSign</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示热门内容图标</intro>
</attributes>
<attributes>
<name>displayNewSign</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示新内容图标</intro>
</attributes>
<attributes>
<name>displayCommentLink</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否显示评论链接</intro>
</attributes>
<IsXsltSql>true</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>
<![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:param name="nodeArray" />
<xsl:output method="xml" />
<xsl:template match="/">
<root>
<sql>
SELECT TOP 1 * FROM PE_CommonModel C WHERE C.GeneralID &gt; @itemId AND C.Status = 99
<xsl:if test="$nodeArray != 0">
AND C.NodeID IN (@nodeArray)
</xsl:if>
ORDER BY C.GeneralID ASC
</sql>
<countsql>
</countsql>
</root>
</xsl:template>
</xsl:transform>]]>
</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="titleLength" />
<xsl:param name="hits" />
<xsl:param name="eliteLevel" />
<xsl:param name="priorityLevel" />
<xsl:param name="linkOpenType" />
<xsl:param name="displayPropertyType" />
<xsl:param name="optionalExtend" />
<xsl:param name="displayNodeName" />
<xsl:param name="displayInputer" />
<xsl:param name="displayDateTime" />
<xsl:param name="displayTips" />
<xsl:param name="displayHits" />
<xsl:param name="displayHotSign" />
<xsl:param name="displayNewSign" />
<xsl:param name="displayCommentLink" />
<xsl:param name="unit" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<font style="color:red">下一<xsl:value-of select="$unit" />:没有了!</font>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<font style="color:red">下一<xsl:value-of select="$unit" /></font>
<xsl:if test="$displayNodeName = 'true'">[ <a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath(false,NodeID)"/>
</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:value-of select="pe:GetNode(NodeID,'name')" />
</a> ]</xsl:if>
<xsl:if test="$displayPropertyType != 0">
<xsl:choose>
<xsl:when test="Hits &gt; pe:HitsOfHot()">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="pe:InstallDir()"/>images/ontop<xsl:value-of select="$displayPropertyType"/>.gif</xsl:attribute>
<xsl:attribute name="alt">热门<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
</xsl:attribute>
</xsl:element>
</xsl:when>
<xsl:when test="EliteLevel &gt; $eliteLevel">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="pe:InstallDir()"/>images/elite<xsl:value-of select="$displayPropertyType"/>.gif</xsl:attribute>
<xsl:attribute name="alt">推荐<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
</xsl:attribute>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="pe:InstallDir()"/>images/common<xsl:value-of select="$displayPropertyType"/>.gif</xsl:attribute>
<xsl:attribute name="alt">普通<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
</xsl:attribute>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
</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="$displayTips = 'true'">
<xsl:attribute name="title">标题:<xsl:value-of select="Title"/>
<xsl:value-of select="'&#xD;'" />点击数:<xsl:value-of select="Hits"/>
<xsl:value-of select="'&#xD;'" />发表时间:<xsl:value-of select="pe:FormatDate(UpdateTime, 'yy年mm月dd日')" />
</xsl:attribute>
</xsl:if>
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
</a>
<xsl:if test="$displayHits = 'true'">[ <xsl:value-of select="Hits"/> ]</xsl:if>
<xsl:if test="$displayInputer = 'true'">[ <xsl:value-of select="Inputer"/> ]</xsl:if>
<xsl:if test="$displayDateTime = 'true'">[ <xsl:value-of select="pe:FormatDate(UpdateTime, 'mm-dd')" /> ]</xsl:if>
<xsl:if test="$displayCommentLink = 'true' and ShowCommentLink = 'true'">
[<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()" />Comment/AddComment.aspx?itemId=<xsl:value-of select="GeneralID"/>&amp;nodeId=<xsl:value-of select="NodeID"/>
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>评论</a> ]
</xsl:if>
<xsl:if test="$displayHotSign = 'true'">
<xsl:if test="Hits &gt; pe:HitsOfHot()">
<img src="{pe:InstallDir()}images/hot.gif" alt="热门内容" />
</xsl:if>
</xsl:if>
<xsl:if test="$displayNewSign = 'true'">
<xsl:if test="3 &gt; pe:TimeSpan(UpdateTime,pe:TimeNow())">
<img src="{pe:InstallDir()}images/new.gif" alt="最新内容" />
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]>
</LabelTemplate>
<usePage>
</usePage>
<LabelSqlCount>@QueryCount</LabelSqlCount>
</root>
@@ -0,0 +1,95 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>内容签收</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<attributes>
<name>itemId</name>
<default>0</default>
<intro>内容ID</intro>
</attributes>
<LabelTemplate>
<![CDATA[ <span id="content_signin"></span><span id="content_SigninAjaxStatus"></span>
<script type="text/javascript">
function GetContentSigninStatus(id)
{
var x = new AjaxRequest('XML','content_SigninAjaxStatus');
x.para = ['itemId='+id];
x.post('GetContentSigninStatus', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s)
{
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
document.getElementById("content_SigninAjaxStatus").style.display = "none";
switch (status)
{
case "NoSignin":
break;
case "NoLogin":
break;
case "AutoSignin":
var time = xml.getElementsByTagName("time")[0].firstChild.data;
AutoSigninContent(id,time);
break;
case "NormalSignin":
document.getElementById("content_signin").innerHTML = "【<span style='cursor: pointer;' onclick=\"SigninContent('"+id+"')\" >点击签收</span>】";
break;
case "SigninOutTime":
document.getElementById("content_signin").innerHTML = "【已过签收截止时间】";
break;
case "Signined":
document.getElementById("content_signin").innerHTML = "【已签收】";
break;
}
});
}
function AutoSigninContent(id,time)
{
var secs = time;
var wait = secs * 1000;
document.getElementById("content_signin").innerHTML = "【自动签收[" + secs +"]秒】";
for(i = 1; i <= secs; i++)
{
window.setTimeout("UpdateAutoSigninTime(" + i + "," + secs + ")", i * 1000);
}
window.setTimeout("SigninContent('"+id+"')", wait);
}
function UpdateAutoSigninTime(number,wait)
{
printnr = wait - number;
document.getElementById("content_signin").innerHTML = "【自动签收[" + printnr +"]秒】";
}
function SigninContent(id)
{
var x = new AjaxRequest('XML','content_SigninAjaxStatus');
x.para = ['itemId='+id];
x.post('SigninContent', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s)
{
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
document.getElementById("content_SigninAjaxStatus").style.display = "none";
switch (status)
{
case "Signined":
document.getElementById("content_signin").innerHTML = "【已签收】";
break;
case "NotSignined":
document.getElementById("content_signin").innerHTML = "【签收失败】";
break;
case "SigninOutTime":
document.getElementById("content_signin").innerHTML = "【已过签收截止时间】";
break;
}
}
);
}
GetContentSigninStatus('<xsl:value-of select="$itemId"/>');
</script>]]>
</LabelTemplate>
<EnabelAjax>False</EnabelAjax>
</root>
@@ -0,0 +1,46 @@
<root>
<LabelType>其他类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetPicProduct.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>6</default>
<intro>相关编号</intro>
</attributes>
<LabelSqlString>SELECT DISTINCT(C.ModelID),M.ModelName FROM PE_CorrelativeItems C INNER JOIN PE_Model M ON (C.ModelID = M.ModelID) WHERE C.GeneralID = @itemId</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="itemId"/>
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<font style="color:red">没有相关内容</font>
</xsl:when>
<xsl:otherwise>
<div class="ProductDetail">
<ul>
<xsl:for-each select="/NewDataSet/Table">
<li>
<b>
<xsl:value-of select="ModelName" />
</b>
</li>
{PE.Label id="内容页相关信息_普通式" modelID="<xsl:value-of select="ModelID" />" generalID="<xsl:value-of select="$itemId"/>" /}
</xsl:for-each>
</ul>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<attributes>
<name>nodeId</name>
<default>1</default>
<intro>栏目编号</intro>
</attributes>
<attributes>
<name>modelId</name>
<default>1</default>
<intro>模型编号</intro>
</attributes>
<LabelTemplate><![CDATA[<a href="{PE.SiteConfig.ApplicationPath /}User/Content/AnonymousContent.aspx?nodeId=<xsl:value-of select="$nodeId"/>&modelId=<xsl:value-of select="$modelId"/>" target="_blank"><xsl:value-of select="$displayName"/></a>]]></LabelTemplate>
<attributes>
<name>displayName</name>
<default>用户投稿</default>
<intro>显示的名</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
</root>
@@ -0,0 +1,61 @@
<root>
<LabelType>其他类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString>SELECT NodeID = @nodeId</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="metaType"/>
<xsl:param name="siteConfig"/>
<xsl:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="$metaType = 'keywords'">
<xsl:choose>
<xsl:when test="$siteConfig = 'false'">
<xsl:value-of select="pe:GetNodeInfo(NodeID,'MetaKeywords')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:MetaKeywords()"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$siteConfig = 'false'">
<xsl:value-of select="pe:GetNodeInfo(NodeID,'MetaDescription')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:MetaDescription()"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]>
</LabelTemplate>
<OutType>sin</OutType>
<CacheTime>0</CacheTime>
<attributes>
<name>nodeId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>节点ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<attributes>
<name>siteConfig</name>
<default>false</default>
<intro>是否是网站配置中的META信息</intro>
</attributes>
<attributes>
<name>metaType</name>
<default>keywords</default>
<intro>META类型{关键词:keywords,描述语:description}</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,29 @@
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString><![CDATA[SELECT TOP 1 * FROM PE_CommonModel WHERE GeneralID < @itemId AND TableName='PE_U_Photo' AND Status = 99 ORDER BY GeneralID DESC]]></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:template match="/">
<xsl:if test="count(/NewDataSet/Table) &gt; 0">
<Input id='prev' onclick="javascript:window.open('{pe:GetInfoPath(NewDataSet/Table/NodeID,NewDataSet/Table/GeneralID,NewDataSet/Table/InputTime,NewDataSet/Table/Title)}', '_self')" type="button" value="上一组美图" name="prev"/>
</xsl:if>
</xsl:template>
</xsl:stylesheet>]]>
</LabelTemplate>
<CacheTime>60</CacheTime>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>图片ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,29 @@
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString><![CDATA[SELECT TOP 1 * FROM PE_CommonModel WHERE GeneralID > @itemId AND TableName='PE_U_Photo' AND Status = 99 ORDER BY GeneralID ASC]]></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:template match="/">
<xsl:if test="count(/NewDataSet/Table) &gt; 0">
<Input id="next" onclick="javascript:window.open('{pe:GetInfoPath(NewDataSet/Table/NodeID,NewDataSet/Table/GeneralID,NewDataSet/Table/InputTime,NewDataSet/Table/Title)}', '_self')" type="button" value="下一组美图" name="next" />
</xsl:if>
</xsl:template>
</xsl:stylesheet>]]>
</LabelTemplate>
<CacheTime>60</CacheTime>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>图片ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,41 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>specialId</name>
<datatype>sql.int</datatype>
<default>1</default>
<intro>专题Id</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 1 * FROM PE_Specials WHERE SpecialID = @specialId</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="specialId" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="metaType = 'description'">
<xsl:value-of select="MetaDescription"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="MetaKeywords"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]>
</LabelTemplate>
<attributes>
<name>metaType</name>
<datatype>string</datatype>
<default>keywords</default>
<intro>META类型{关键词:keywords,描述语:description}</intro>
</attributes>
</root>
@@ -0,0 +1,108 @@
<?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">
<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>
<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>
@@ -0,0 +1,32 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro />
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>nodeId</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>节点ID,支持数组如:(1,2,3,4,5){默认值:0,自动传入:@RequestInt_Id}</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT N.arrChildID FROM PE_Nodes N WHERE N.NodeID IN (@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:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">0</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<xsl:value-of select="arrChildID"/>,</xsl:for-each>0
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
</root>
@@ -0,0 +1,178 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>nodeId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>栏目ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>
SELECT *
FROM
PE_Nodes N
WHERE
N.NodeID = @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:param name="displayType" />
<xsl:param name="number" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="$displayType = 1">
<xsl:value-of select="pe:GetNode(NodeID,'name')"/>
</xsl:when>
<xsl:when test="$displayType = 2">
<xsl:value-of select="pe:GetNodeInfo(NodeID,'MetaKeywords')"/>
</xsl:when>
<xsl:when test="$displayType = 3">
<xsl:value-of select="pe:GetNodeInfo(NodeID,'MetaDescription')"/>
</xsl:when>
<xsl:when test="$displayType = 4">
<xsl:choose>
<xsl:when test="pe:GetNodeInfo(NodeID,'ItemOpenType') = 0">_self</xsl:when>
<xsl:otherwise>_blank</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="$displayType = 5">
<xsl:value-of select="pe:GetNodeInfo(NodeID,'ItemListOrderType')"/>
</xsl:when>
<xsl:when test="$displayType = 6">
<xsl:choose>
<xsl:when test="pe:GetNodeInfo(NodeID,'ItemPageSize') = 0">10</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:GetNodeInfo(NodeID,'ItemPageSize')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="$displayType = 7">
<xsl:value-of select="pe:GetNodeInfo(NodeID,'HitsOfHot')"/>
</xsl:when>
<xsl:when test="$displayType = 8">
<xsl:value-of select="NodeType"/>
</xsl:when>
<xsl:when test="$displayType = 9">
<xsl:value-of disable-output-escaping="yes" select="Tips"/>
</xsl:when>
<xsl:when test="$displayType = 10">
<xsl:value-of disable-output-escaping="yes" select="Description"/>
</xsl:when>
<xsl:when test="$displayType = 11">
<xsl:choose>
<xsl:when test="NodePicUrl != ''">
<xsl:value-of select="NodePicUrl"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:InstallDir()"/>images/nopic.gif
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="$displayType = 12">
<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="$displayType = 13">
<xsl:value-of select="ItemCount"/>
</xsl:when>
<xsl:when test="$displayType = 14">
<xsl:value-of select="CommentCount"/>
</xsl:when>
<xsl:when test="$displayType = 15">
<xsl:value-of disable-output-escaping="yes" select="pe:GetCustomContent($number,Custom_Content) "/>
</xsl:when>
<xsl:when test="$displayType = 16">
<xsl:value-of select="LinkUrl"/>
</xsl:when>
<xsl:when test="$displayType = 17">
<xsl:value-of select="SubDomain"/>
</xsl:when>
<xsl:when test="$displayType = 18">
<xsl:value-of select="ParentID"/>
</xsl:when>
<xsl:when test="$displayType = 19">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath(false,ParentID)"/>
</xsl:attribute>
<xsl:value-of select="pe:GetNode(ParentID,'name')"/>
</a>
</xsl:when>
<xsl:when test="$displayType = 20">
<xsl:value-of select="RootID"/>
</xsl:when>
<xsl:when test="$displayType = 21">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath(false,RootID)"/>
</xsl:attribute>
<xsl:value-of select="pe:GetNode(RootID,'name')"/>
</a>
</xsl:when>
<xsl:when test="$displayType = 22">
<xsl:value-of select="arrChildID"/>
</xsl:when>
<xsl:when test="$displayType = 23">
<xsl:value-of select="ParentPath"/>
</xsl:when>
<xsl:when test="$displayType = 24">
<xsl:value-of select="Depth"/>
</xsl:when>
<xsl:when test="$displayType = 25">
<xsl:value-of select="Child"/>
</xsl:when>
<xsl:when test="$displayType = 26">
<xsl:value-of select="PrevID"/>
</xsl:when>
<xsl:when test="$displayType = 27">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath(false,PrevID)"/>
</xsl:attribute>
<xsl:value-of select="pe:GetNode(PrevID,'name')"/>
</a>
</xsl:when>
<xsl:when test="$displayType = 28">
<xsl:value-of select="NextID"/>
</xsl:when>
<xsl:when test="$displayType = 29">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath(false,NextID)"/>
</xsl:attribute>
<xsl:value-of select="pe:GetNode(NextID,'name')"/>
</a>
</xsl:when>
<xsl:when test="$displayType = 30">
<xsl:value-of select="pe:GetNodePath(false,NodeID)"/>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
<attributes>
<name>displayType</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>输出类型{名称:1,META关键词:2,META描述语:3,内容打开方式:4,内容排序方式:5,内容分页大小:6,热门最小点击数:7,类型:8,提示:9,说明:10,图片:11,打开方式:12,项目数:13,评论数:14,自设内容:15,外部链接地址:16,子域名:17,父栏目ID:18,父栏目名称:19,根栏目ID:20,根栏目名称:21,所有子节点:22,父路径:23,深度值:24,子节点数:25,上一节点ID:26,上一节点名称:27,下一节点ID:28,下一节点名称:29}</intro>
</attributes>
<attributes>
<name>number</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>自设内容序号,注意仅当输出类型为自设内容时有效</intro>
</attributes>
</root>
@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>nodeId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>节点ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT NodeID = @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:template match="/NewDataSet/Table">
<xsl:value-of select="pe:GetNodeInfo(NodeID,'ItemOpenType')"/>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
</root>
@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>nodeId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>节点ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT NodeID = @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:template match="/NewDataSet/Table">
<xsl:value-of select="pe:GetNodeInfo(NodeID,'NodeName')"/>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
</root>
@@ -0,0 +1,55 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>nodeId</name>
<datatype>int</datatype>
<default>1</default>
<intro>节点Id</intro>
</attributes>
<attributes>
<name>outputType</name>
<datatype>string</datatype>
<default>normal</default>
<intro>配置输出的类型</intro>
</attributes>
<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:param name="nodeId" />
<xsl:param name="outputType" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="$outputType = 'normal'">
<xsl:value-of select="pe:GetNodePath('false',$nodeId)"/>
</xsl:when>
<xsl:when test="$outputType = 'linked'">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('false',$nodeId)"/>
</xsl:attribute>
<xsl:value-of select="pe:GetNodeInfo($nodeId, 'NodeName')"/>
</a>
</xsl:when>
<xsl:otherwise>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('false',$nodeId)"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="pe:GetNodeInfo($nodeId, 'Tips')"/>
</xsl:attribute>
<xsl:value-of select="pe:GetNodeInfo($nodeId, 'NodeName')"/>
</a>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
</root>
@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>nodeId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>节点ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT NodeID = @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:template match="/NewDataSet/Table">
<xsl:value-of select="pe:GetNodeInfo(NodeID,'HitsOfHot')"/>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
</root>
@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>nodeId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>节点ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT NodeID = @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:template match="/NewDataSet/Table">
<xsl:value-of select="pe:GetNodePath(false,NodeID)"/>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
</root>
@@ -0,0 +1,27 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>节点ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 1 NodeID FROM PE_CommonModel WHERE GeneralID = @itemId</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:template match="/NewDataSet/Table">
<xsl:value-of select="NodeID"/>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
</root>
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString>
<![CDATA[SELECT TOP 1
CM.GeneralID
FROM PE_CommonModel CM
INNER JOIN PE_U_Announce UT ON ( CM.GeneralID = UT.ID )
WHERE UT.ShowType IN ('弹出','全部')
AND UT.IsSelected = 1
AND (
DATEDIFF(d, UT.DateAndTime, GETDATE()) <= UT.OutTime
OR UT.OutTime = 0
)
AND CM.status = 99]]></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:template match="/">
<xsl:if test="NewDataSet/Table">
<script type="text/javascript">
window.open ("<xsl:value-of select="pe:InstallDir()" />Category_5/index.aspx", "newwindow", "height=440, width=400, toolbar=no, menubar=no, scrollbars=auto, resizable=yes, location=no, status=no")
</script>
</xsl:if>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<Version officialVersion="" modifiedVersions="3001" compatibleVersion="" />
</root>
@@ -0,0 +1,71 @@
<?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</intro>
</attributes>
<attributes>
<name>splitChar</name>
<datatype>supersql</datatype>
<default>&gt;&gt;</default>
<intro>栏目名称之间分隔符</intro>
</attributes>
<LabelSqlString>SELECT N.NodeID,N.ParentID,N.NodeName,N.Tips,N.Child,N.OpenType,N.ShowOnPath FROM PE_Nodes N WHERE N.NodeID = @nodeId</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="nodeId" />
<xsl:param name="placeholderId" />
<xsl:param name="splitChar" />
<xsl:template match="/NewDataSet/Table">
{PE.Label id="当前位置导航" nodeId="<xsl:value-of select="ParentID"/>" splitChar="<xsl:value-of select="$splitChar"/>" placeholderId="lewi" /}
<xsl:if test="ShowOnPath = 'true'">
<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="OpenType != 0">_blank</xsl:when>
<xsl:otherwise>_self</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="Tips != ''">
<xsl:attribute name="title">
<xsl:value-of select="Tips" />
</xsl:attribute>
</xsl:if>
<xsl:value-of select="NodeName"/>
</a>
<xsl:if test="$splitChar != '' and Child &gt; 0 and $placeholderId != 0">
<xsl:value-of select="$splitChar" />
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:stylesheet>]]>
</LabelTemplate>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<attributes>
<name>placeholderId</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>占位符ID,此参数无需设置,无需调用</intro>
</attributes>
</root>
@@ -0,0 +1,59 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>nodeId</name>
<datatype>supersql</datatype>
<default>27</default>
<intro>当前节点ID</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>
SELECT
DPO.NodeName,
DPO.Tips,
DPO.ParentID,
DPO.NodeID,
(SELECT DPS.ParentID FROM PE_Nodes DPS WHERE DPS.NodeID = @nodeId) AS CurrentID
FROM
PE_Nodes DPO
WHERE
DPO.ParentID = (SELECT DPT.ParentID FROM PE_Nodes DPT WHERE DPT.NodeID = (SELECT DPS.ParentID FROM PE_Nodes DPS WHERE DPS.NodeID = @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:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="NodeID = CurrentID">
<li class="current_class">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath(false,NodeID)"/>
</xsl:attribute>
<xsl:value-of select="NodeName"/>
</a>
</li>
</xsl:when>
<xsl:otherwise>
<li>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath(false,NodeID)"/>
</xsl:attribute>
<xsl:value-of select="NodeName"/>
</a>
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
</root>
@@ -0,0 +1,124 @@
<?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>
<attributes>
<name>outputQty</name>
<datatype>supersql</datatype>
<default>10</default>
<intro>输出多少条项目</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP @outputQty * FROM PE_Mood INNER JOIN PE_CommonModel ON (PE_Mood.GeneralID = PE_CommonModel.GeneralID) WHERE PE_Mood.MoodID = @moodId ORDER BY M@orderType DESC</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:param name="orderType" />
<xsl:param name="outputQty" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<li>
<span style="float:right">
<xsl:call-template name="GetMoodValue">
<xsl:with-param name="position" select="$orderType"/>
</xsl:call-template>
</span>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<xsl:attribute name="title">标题:<xsl:value-of select="Title"/>
<xsl:value-of select="'&#xD;'" />点击数:<xsl:value-of select="Hits"/>
<xsl:value-of select="'&#xD;'" />发表时间:<xsl:value-of select="pe:FormatDate(UpdateTime, 'yy年mm月dd日')" />
</xsl:attribute>
<xsl:value-of select="pe:CutText(Title,50,'…')" />
</a>
</li>
</xsl:template>
<xsl:template name="GetMoodValue">
<xsl:param name="position" />
<xsl:choose>
<xsl:when test="$position = 0">
<xsl:value-of select="M0"/>
</xsl:when>
<xsl:when test="$position = 1">
<xsl:value-of select="M1"/>
</xsl:when>
<xsl:when test="$position = 2">
<xsl:value-of select="M2"/>
</xsl:when>
<xsl:when test="$position = 3">
<xsl:value-of select="M3"/>
</xsl:when>
<xsl:when test="$position = 4">
<xsl:value-of select="M4"/>
</xsl:when>
<xsl:when test="$position = 5">
<xsl:value-of select="M5"/>
</xsl:when>
<xsl:when test="$position = 6">
<xsl:value-of select="M6"/>
</xsl:when>
<xsl:when test="$position = 7">
<xsl:value-of select="M7"/>
</xsl:when>
<xsl:when test="$position = 8">
<xsl:value-of select="M8"/>
</xsl:when>
<xsl:when test="$position = 9">
<xsl:value-of select="M9"/>
</xsl:when>
<xsl:when test="$position = 10">
<xsl:value-of select="M10"/>
</xsl:when>
<xsl:when test="$position = 11">
<xsl:value-of select="M11"/>
</xsl:when>
<xsl:when test="$position = 12">
<xsl:value-of select="M12"/>
</xsl:when>
<xsl:when test="$position = 13">
<xsl:value-of select="M13"/>
</xsl:when>
<xsl:when test="$position = 14">
<xsl:value-of select="M14"/>
</xsl:when>
<xsl:when test="$position = 15">
<xsl:value-of select="M15"/>
</xsl:when>
<xsl:when test="$position = 16">
<xsl:value-of select="M16"/>
</xsl:when>
<xsl:when test="$position = 17">
<xsl:value-of select="M17"/>
</xsl:when>
<xsl:when test="$position = 18">
<xsl:value-of select="M8"/>
</xsl:when>
<xsl:when test="$position = 19">
<xsl:value-of select="M19"/>
</xsl:when>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]>
</LabelTemplate>
<attributes>
<name>orderType</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>排序方式M0为第一个选项以此类推</intro>
</attributes>
</root>
@@ -0,0 +1,96 @@
<?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>
@@ -0,0 +1,219 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<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:output method="html" />
<xsl:template match="/">
<xsl:if test="(/NewDataSet/Table/MoodStatus) = 'true'">
<div id="moodVote">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<xsl:call-template name="GetOptionIcon">
<xsl:with-param name="moodOption" select="NewDataSet/Table/MoodOption"/>
</xsl:call-template>
</tr>
<tr>
<xsl:call-template name="GetOptionName">
<xsl:with-param name="moodOption" select="NewDataSet/Table/MoodOption"/>
</xsl:call-template>
</tr>
<tr>
<xsl:call-template name="GetOptionIndex">
<xsl:with-param name="moodOption" select="NewDataSet/Table/MoodOption"/>
</xsl:call-template>
</tr>
</tbody>
</table>
</div>
<script type="text/javascript">
function MoodVote(value) {
var x = new AjaxRequest('XML', 'status');
x.para = ['position=' + value, 'generalId=@RequestInt_Id', 'moodId=<xsl:value-of select="NewDataSet/Table/MoodID"/>'];
x.paratype = ['nohtml', 'nohtml', 'nohtml']
x.post('MoodVote', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s) {
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
switch (status) {
case "ok":
DisplayResult();
break;
case "isOnlyMember":
alert("只有会员才能发表投票!");
break;
default:
alert("投票失败!");
break;
}
});
}
function getlabel(labelname, targetid) {
var x = new AjaxRequest('XML', targetid);
x.post(labelname, '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s) {
var xml = x.createXmlDom(s);
$(targetid).innerHTML = xml.getElementsByTagName("body")[0].firstChild.data;
});
}
function DisplayResult() {
var x = new AjaxRequest('XML', 'moodVote');
x.labelname = "显示心情指数";
x.para = ['itemId=@RequestInt_Id'];
x.paratype = ['nohtml', 'nohtml', 'nohtml']
x.post('updatelabel', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s) {
var xml = x.createXmlDom(s);
document.getElementById('moodVote').innerHTML = xml.getElementsByTagName("body")[0].firstChild.data;
});
}
</script>
</xsl:if>
</xsl:template>
<!--方法模板在不能理解含义的情况下请勿修改
任何修改都有可能导致改模板不能正常工作
By Lewi-->
<!--组合选项名模板-->
<xsl:template name="GetOptionName">
<xsl:param name="moodOption"/>
<xsl:choose>
<xsl:when test="contains($moodOption,'$$$')">
<td align="center" valign="bottom">
<xsl:value-of select="substring-before(substring-before($moodOption,'$$$'),'|')"/>
</td>
<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:call-template>
</xsl:when>
<xsl:otherwise>
<td align="center" valign="bottom">
<xsl:value-of select="substring-before($after,'|')"/>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<td align="center" valign="bottom">
<xsl:value-of select="substring-before($moodOption,'|')"/>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!--组合选项图标ICON模板-->
<xsl:template name="GetOptionIcon">
<xsl:param name="moodOption"/>
<xsl:choose>
<xsl:when test="contains($moodOption,'$$$')">
<td align="center" valign="bottom">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="pe:IsStartWithhttp(substring-after(substring-before($moodOption,'$$$'),'|')) = 'true'">
<xsl:value-of select="substring-after(substring-before($moodOption,'$$$'),'|')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:InstallDir()"/>Images/MoodIcon/<xsl:value-of select="substring-after(substring-before($moodOption,'$$$'),'|')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:element>
</td>
<xsl:variable name="after" select="substring-after($moodOption,'$$$')" />
<xsl:choose>
<xsl:when test="contains($after,'$$$')">
<xsl:call-template name="GetOptionIcon">
<xsl:with-param name="moodOption" select="$after"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<td align="center" valign="bottom">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="pe:IsStartWithhttp(substring-after($after,'|')) = 'true'">
<xsl:value-of select="substring-after($after,'|')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:InstallDir()"/>Images/MoodIcon/<xsl:value-of select="substring-after($after,'|')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:element>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<td align="center" valign="bottom">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="pe:IsStartWithhttp(substring-after($moodOption,'|')) = 'true'">
<xsl:value-of select="substring-after($moodOption,'|')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:InstallDir()"/>Images/MoodIcon/<xsl:value-of select="substring-after($moodOption,'|')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:element>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!--组合选项索引模板-->
<xsl:template name="GetOptionIndex">
<xsl:param name="moodOption"/>
<xsl:param name="position" select="0" />
<xsl:choose>
<xsl:when test="contains($moodOption,'$$$')">
<td align="center" valign="bottom">
<input onclick="javascript:MoodVote(this.value);" value="{$position}" type="radio" name="moodradio" />
</td>
<xsl:variable name="after" select="substring-after($moodOption,'$$$')" />
<xsl:choose>
<xsl:when test="contains($after,'$$$')">
<xsl:call-template name="GetOptionIndex">
<xsl:with-param name="moodOption" select="$after"/>
<xsl:with-param name="position" select="$position + 1"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<td align="center" valign="bottom">
<input onclick="javascript:MoodVote(this.value);" value="{$position + 1}" type="radio" name="moodradio" />
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<td align="center" valign="bottom">
<input onclick="javascript:MoodVote(this.value);" value="{$position}" type="radio" name="moodradio" />
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]>
</LabelTemplate>
<attributes>
<name>moodId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>心情指数ID</intro>
</attributes>
</root>
@@ -0,0 +1,35 @@
<root>
<LabelType>其他类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/PE_Path.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString>select ParentID,NodeID from PE_Nodes where NodeID=(select nodeid from PE_CommonModel where GeneralID=@ItemID)</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="ItemID" />
<xsl:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="ParentID = 0">
{PE.Label id="栏目分类下拉列表选项" nodeid="<xsl:value-of select="NodeID"/>" depth="5" /}
</xsl:when>
<xsl:otherwise>
{PE.Label id="栏目分类下拉列表选项" nodeid="<xsl:value-of select="ParentID"/>" depth="5" /}
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
<attributes>
<name>ItemID</name>
<default>1</default>
<intro>文章ID</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,43 @@
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>软件ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<attributes>
<name>tableName</name>
<default>PE_U_Soft</default>
<intro>所属表名</intro>
</attributes>
<LabelSqlString>SELECT DownloadUrl,arrServerName FROM @tableName WHERE ID=(SELECT TOP 1 ItemID FROM PE_CommonModel WHERE GeneralID=@itemId AND Status = 99) </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="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="itemId" />
<xsl:template match="/NewDataSet/Table">
<Root>
<LocalServer>
<xsl:value-of select="pe:ShowDownloadPath($itemId,DownloadUrl,pe:InstallDir())"/>
</LocalServer>
<MirrorServer>
<xsl:choose>
<xsl:when test="arrServerName !=''">
<xsl:value-of select="pe:ShowDownloadPathMore($itemId,DownloadUrl,pe:InstallDir(),arrServerName)"/>
</xsl:when>
</xsl:choose>
</MirrorServer>
</Root>
</xsl:template>
</xsl:stylesheet>]]>
</LabelTemplate>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,36 @@
<root>
<LabelType>其他类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>JavaScript脚本驱动的FLASH幻灯标签</LabelIntro>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString>SELECT PhotoUrl FROM PE_U_Photo WHERE ID =(SELECT TOP 1 ItemID FROM PE_CommonModel WHERE GeneralID = @itemId AND Status = 99)</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:param name="itemId" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:value-of disable-output-escaping="yes" select="pe:SlidePlay()"/>
{PE.Label id="取得上一组图片" itemId="<xsl:value-of select="$itemId" />" /}
{PE.Label id="取得下一组图片" itemId="<xsl:value-of select="$itemId" />" /}
<xsl:value-of disable-output-escaping="yes" select="pe:ViewPhoto(550,400,NewDataSet/Table/PhotoUrl,pe:UpLoadDir(),1)"/>
{PE.Label id="取得上一组图片" itemId="<xsl:value-of select="$itemId" />" /}
{PE.Label id="取得下一组图片" itemId="<xsl:value-of select="$itemId" />" /}
<input id="SlideButton" onclick="SlidePlay()" type="button" value="幻灯放映" name="Prev" />
<input id="interval" style="text-align: center" size="3" value="5" name="interval" /> 秒
<xsl:value-of disable-output-escaping="yes" select="pe:GetPhotoPathList(1,127,96,5,4,NewDataSet/Table/PhotoUrl,pe:UpLoadDir(),1)"/>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
<OutType>sin</OutType>
<CacheTime>60</CacheTime>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>14</default>
<intro>图片ID</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -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>
@@ -0,0 +1,349 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>True</EnabelAjax>
<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:variable name="good"/>
<xsl:output method="html" />
<xsl:template match="/">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<xsl:call-template name="GetOptionValue">
<xsl:with-param name="moodOption" select="NewDataSet/Table/MoodOption"/>
</xsl:call-template>
</tr>
<tr>
<xsl:call-template name="GetImageHeight">
<xsl:with-param name="moodOption" select="NewDataSet/Table/MoodOption"/>
</xsl:call-template>
</tr>
<tr>
<xsl:call-template name="GetOptionIcon">
<xsl:with-param name="moodOption" select="NewDataSet/Table/MoodOption"/>
</xsl:call-template>
</tr>
<tr>
<xsl:call-template name="GetOptionName">
<xsl:with-param name="moodOption" select="NewDataSet/Table/MoodOption"/>
</xsl:call-template>
</tr>
</tbody>
</table>
</xsl:template>
<!--方法模板在不能理解含义的情况下请勿修改
任何修改都有可能导致改模板不能正常工作
By Lewi-->
<!--获取选项对应名称-->
<xsl:template name="GetOptionName">
<xsl:param name="moodOption"/>
<xsl:choose>
<xsl:when test="contains($moodOption,'$$$')">
<td align="center" valign="bottom">
<xsl:value-of select="substring-before(substring-before($moodOption,'$$$'),'|')"/>
</td>
<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:call-template>
</xsl:when>
<xsl:otherwise>
<td align="center" valign="bottom">
<xsl:value-of select="substring-before($after,'|')"/>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<td align="center" valign="bottom">
<xsl:value-of select="substring-before($moodOption,'|')"/>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!--获取选项对应图标-->
<xsl:template name="GetOptionIcon">
<xsl:param name="moodOption"/>
<xsl:choose>
<xsl:when test="contains($moodOption,'$$$')">
<td align="center" valign="bottom">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="pe:IsStartWithhttp(substring-after(substring-before($moodOption,'$$$'),'|')) = 'true'">
<xsl:value-of select="substring-after(substring-before($moodOption,'$$$'),'|')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:InstallDir()"/>Images/MoodIcon/<xsl:value-of select="substring-after(substring-before($moodOption,'$$$'),'|')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:element>
</td>
<xsl:variable name="after" select="substring-after($moodOption,'$$$')" />
<xsl:choose>
<xsl:when test="contains($after,'$$$')">
<xsl:call-template name="GetOptionIcon">
<xsl:with-param name="moodOption" select="$after"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<td align="center" valign="bottom">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="pe:IsStartWithhttp(substring-after($after,'|')) = 'true'">
<xsl:value-of select="substring-after($after,'|')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:InstallDir()"/>Images/MoodIcon/<xsl:value-of select="substring-after($after,'|')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:element>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<td align="center" valign="bottom">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="pe:IsStartWithhttp(substring-after($moodOption,'|')) = 'true'">
<xsl:value-of select="substring-after($moodOption,'|')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:InstallDir()"/>Images/MoodIcon/<xsl:value-of select="substring-after($moodOption,'|')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:element>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!--获取选项对应数值-->
<xsl:template name="GetOptionValue">
<xsl:param name="moodOption"/>
<xsl:param name="position" select="0" />
<xsl:choose>
<xsl:when test="contains($moodOption,'$$$')">
<td align="center" valign="bottom">
<xsl:call-template name="GetMoodValue">
<xsl:with-param name="position" select="$position"/>
</xsl:call-template>
</td>
<xsl:variable name="after" select="substring-after($moodOption,'$$$')" />
<xsl:choose>
<xsl:when test="contains($after,'$$$')">
<xsl:call-template name="GetOptionValue">
<xsl:with-param name="moodOption" select="$after"/>
<xsl:with-param name="position" select="$position + 1"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<td align="center" valign="bottom">
<xsl:call-template name="GetMoodValue">
<xsl:with-param name="position" select="$position+1"/>
</xsl:call-template>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<td align="center" valign="bottom">
<xsl:call-template name="GetMoodValue">
<xsl:with-param name="position" select="$position"/>
</xsl:call-template>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!--获取生成图片高度-->
<xsl:template name="GetImageHeight">
<xsl:param name="maxImageHeight" select="68"/>
<xsl:param name="moodOption"/>
<xsl:param name="position" select="0" />
<xsl:choose>
<xsl:when test="contains($moodOption,'$$$')">
<td style="background: url({pe:InstallDir()}Images/MoodIcon/motion_vote.gif) no-repeat center 50%" height="{$maxImageHeight}" align="center" valign="bottom">
<xsl:variable name="currentValue">
<xsl:call-template name="GetMoodValue">
<xsl:with-param name="position" select="$position"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="totalValue">
<xsl:call-template name="GetTotalValue"/>
</xsl:variable>
<xsl:variable name="relativeValue">
<xsl:choose>
<xsl:when test="$totalValue = 0">
<xsl:value-of select="0"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$maxImageHeight * ($currentValue div $totalValue)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<img alt="{$currentValue}人" height="{round($relativeValue)}" src="{pe:InstallDir()}Images/MoodIcon/motion_vote_orange.gif" width="32"/>
</td>
<xsl:variable name="after" select="substring-after($moodOption,'$$$')" />
<xsl:choose>
<xsl:when test="contains($after,'$$$')">
<xsl:call-template name="GetImageHeight">
<xsl:with-param name="moodOption" select="$after"/>
<xsl:with-param name="position" select="$position + 1"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<td style="background: url({pe:InstallDir()}Images/MoodIcon/motion_vote.gif) no-repeat center 50%" height="{$maxImageHeight}" align="center" valign="bottom">
<xsl:variable name="currentValue">
<xsl:call-template name="GetMoodValue">
<xsl:with-param name="position" select="$position+1"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="totalValue">
<xsl:call-template name="GetTotalValue"/>
</xsl:variable>
<xsl:variable name="relativeValue">
<xsl:choose>
<xsl:when test="$totalValue = 0">
<xsl:value-of select="0"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$maxImageHeight * ($currentValue div $totalValue)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<img alt="{$currentValue}人" height="{round($relativeValue)}" src="{pe:InstallDir()}Images/MoodIcon/motion_vote_orange.gif" width="32"/>
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<td style="background: url({pe:InstallDir()}Images/MoodIcon/motion_vote.gif) no-repeat center 50%" height="{$maxImageHeight}" align="center" valign="bottom">
<xsl:variable name="currentValue">
<xsl:call-template name="GetMoodValue">
<xsl:with-param name="position" select="$position+1"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="totalValue">
<xsl:call-template name="GetTotalValue"/>
</xsl:variable>
<xsl:variable name="relativeValue">
<xsl:choose>
<xsl:when test="$totalValue = 0">
<xsl:value-of select="0"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$maxImageHeight * ($currentValue div $totalValue)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<img alt="{$currentValue}人" height="{round($relativeValue)}" src="{pe:InstallDir()}Images/MoodIcon/motion_vote_orange.gif" width="32" />
</td>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="GetMoodValue">
<xsl:param name="position" />
<xsl:choose>
<xsl:when test="$position = 0">
<xsl:value-of select="NewDataSet/Table/M0"/>
</xsl:when>
<xsl:when test="$position = 1">
<xsl:value-of select="NewDataSet/Table/M1"/>
</xsl:when>
<xsl:when test="$position = 2">
<xsl:value-of select="NewDataSet/Table/M2"/>
</xsl:when>
<xsl:when test="$position = 3">
<xsl:value-of select="NewDataSet/Table/M3"/>
</xsl:when>
<xsl:when test="$position = 4">
<xsl:value-of select="NewDataSet/Table/M4"/>
</xsl:when>
<xsl:when test="$position = 5">
<xsl:value-of select="NewDataSet/Table/M5"/>
</xsl:when>
<xsl:when test="$position = 6">
<xsl:value-of select="NewDataSet/Table/M6"/>
</xsl:when>
<xsl:when test="$position = 7">
<xsl:value-of select="NewDataSet/Table/M7"/>
</xsl:when>
<xsl:when test="$position = 8">
<xsl:value-of select="NewDataSet/Table/M8"/>
</xsl:when>
<xsl:when test="$position = 9">
<xsl:value-of select="NewDataSet/Table/M9"/>
</xsl:when>
<xsl:when test="$position = 10">
<xsl:value-of select="NewDataSet/Table/M10"/>
</xsl:when>
<xsl:when test="$position = 11">
<xsl:value-of select="NewDataSet/Table/M11"/>
</xsl:when>
<xsl:when test="$position = 12">
<xsl:value-of select="NewDataSet/Table/M12"/>
</xsl:when>
<xsl:when test="$position = 13">
<xsl:value-of select="NewDataSet/Table/M13"/>
</xsl:when>
<xsl:when test="$position = 14">
<xsl:value-of select="NewDataSet/Table/M14"/>
</xsl:when>
<xsl:when test="$position = 15">
<xsl:value-of select="NewDataSet/Table/M15"/>
</xsl:when>
<xsl:when test="$position = 16">
<xsl:value-of select="NewDataSet/Table/M16"/>
</xsl:when>
<xsl:when test="$position = 17">
<xsl:value-of select="NewDataSet/Table/M17"/>
</xsl:when>
<xsl:when test="$position = 18">
<xsl:value-of select="NewDataSet/Table/M8"/>
</xsl:when>
<xsl:when test="$position = 19">
<xsl:value-of select="NewDataSet/Table/M19"/>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template name="GetTotalValue">
<xsl:for-each select="NewDataSet/Table">
<xsl:value-of select="M0+M1+M2+M3+M4+M5+M6+M7+M8+M9+M10+M11+M12+M13+M14+M15+M16+M17+M18+M19"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>]]>
</LabelTemplate>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>6</default>
<intro>信息ID</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>
SELECT *
FROM
PE_Mood
INNER JOIN PE_MoodScheme ON (PE_Mood.MoodID = PE_MoodScheme.MoodID)
WHERE
PE_Mood.GeneralID = @itemId
</LabelSqlString>
</root>
@@ -0,0 +1,42 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>outputQty</name>
<default>10</default>
<intro>显示个数</intro>
</attributes>
<LabelSqlString>SELECT TOP @outputQty KeywordText FROM PE_Keywords ORDER BY Hits DESC,Priority DESC</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="splitChar"/>
<xsl:variable name="countnum" select="count(/NewDataSet/Table)"/>
<xsl:template match="/NewDataSet">
<xsl:for-each select="Table">
<a> <xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Tag.aspx?keyword=<xsl:value-of select="KeywordText"/>
</xsl:attribute>
<xsl:value-of select="KeywordText"/>
</a>
<xsl:if test="position()&lt;$countnum">
<xsl:value-of select="$splitChar"/>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
<attributes>
<name>splitChar</name>
<default> | </default>
<intro>分割符号</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,39 @@
<root>
<LabelType>其他类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>用户排名列表</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>outputQty</name>
<default>10</default>
<intro>列表数量</intro>
</attributes>
<LabelSqlString>SELECT TOP @outputQty * FROM PE_Users INNER JOIN PE_UserGroups ON PE_Users.GroupID = PE_UserGroups.GroupID WHERE Status=0 ORDER BY PE_Users.PassedItems DESC, PE_Users.JoinTime DESC</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:template match="/">
<div>
<li>
<xsl:text disable-output-escaping="yes">用户名 &amp;nbsp;&amp;nbsp;文章数</xsl:text>
</li>
<xsl:for-each select="/NewDataSet/Table">
<li>
<xsl:value-of select="UserName"/> <xsl:text disable-output-escaping="yes">&amp;nbsp;&amp;nbsp;</xsl:text>[<xsl:value-of select="PassedItems"/>]</li>
</xsl:for-each>
</div>
<div style="text-align:right;">
<a>
<xsl:attribute name="href">{PE.SiteConfig.applicationpath/}Common/UsersList.aspx</xsl:attribute>更多</a>
<xsl:text disable-output-escaping="yes">&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</xsl:text>
</div>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
<CacheTime>0</CacheTime>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,133 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>sorting</name>
<datatype>supersql</datatype>
<default>JoinTime</default>
<intro>排序方式</intro>
</attributes>
<LabelSqlString>SELECT TOP @pagesize * FROM PE_Users WHERE Status = 0 AND UserID NOT IN(SELECT TOP @startrow UserID FROM PE_Users WHERE Status = 0 ORDER BY @sorting DESC) ORDER BY @sorting DESC</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:template match="/NewDataSet">
<xsl:choose>
<xsl:when test="count(Table) = 0">
<font style="color:red">无会员信息!</font>
</xsl:when>
<xsl:otherwise>
<table border="0" cellpadding="0" cellspacing="1">
<tbody>
<tr class="odd_row">
<td>会员名称</td>
<td>Email</td>
<td>性别</td>
<td>注册日期</td>
<td>
<xsl:value-of select="pe:PointName()"/>数</td>
<td>发表文章数</td>
<td>短消息</td>
</tr>
<xsl:for-each select="Table">
<xsl:choose>
<xsl:when test="position()mod 2=0">
<tr class="odd_row">
<td>
<xsl:value-of select="UserName"/>
</td>
<td>
<xsl:if test="PrivacySetting=2">保密</xsl:if>
<xsl:if test="PrivacySetting=0 or PrivacySetting=1"><xsl:value-of select="Email"/></xsl:if>
</td>
<td>
<xsl:if test="PrivacySetting=2">保密</xsl:if>
<xsl:if test="PrivacySetting=0 or PrivacySetting=1">
<xsl:if test="Sex=0">保密</xsl:if>
<xsl:if test="Sex=1">男</xsl:if>
<xsl:if test="Sex=2">女</xsl:if>
</xsl:if>
</td>
<td>
<xsl:if test="PrivacySetting=2">保密</xsl:if>
<xsl:if test="PrivacySetting=0 or PrivacySetting=1"><xsl:value-of select="pe:FormatDate(JoinTime,'yyyy-mm-dd')"/></xsl:if>
</td>
<td>
<xsl:if test="PrivacySetting=2">保密</xsl:if>
<xsl:if test="PrivacySetting=0 or PrivacySetting=1">
<xsl:value-of select="UserPoint"/>
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
<xsl:value-of select="pe:PointUnit()"/>
</xsl:if>
</td>
<td>
<xsl:if test="PrivacySetting=2">保密</xsl:if>
<xsl:if test="PrivacySetting=0 or PrivacySetting=1"><xsl:value-of select="PassedItems"/>篇</xsl:if>
</td>
<td>
<a>
<xsl:attribute name="href">{PE.SiteConfig.applicationpath/}User/Message/Message.aspx?inceptUser=<xsl:value-of select="UserName"/>
</xsl:attribute> 发短消息</a>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td>
<xsl:value-of select="UserName"/>
</td>
<td>
<xsl:if test="PrivacySetting=2">保密</xsl:if>
<xsl:if test="PrivacySetting=0 or PrivacySetting=1"><xsl:value-of select="Email"/></xsl:if>
</td>
<td>
<xsl:if test="PrivacySetting=2">保密</xsl:if>
<xsl:if test="PrivacySetting=0 or PrivacySetting=1">
<xsl:if test="Sex=0">保密</xsl:if>
<xsl:if test="Sex=1">男</xsl:if>
<xsl:if test="Sex=2">女</xsl:if>
</xsl:if>
</td>
<td>
<xsl:if test="PrivacySetting=2">保密</xsl:if>
<xsl:if test="PrivacySetting=0 or PrivacySetting=1"><xsl:value-of select="pe:FormatDate(JoinTime,'yyyy-mm-dd')"/></xsl:if>
</td>
<td>
<xsl:if test="PrivacySetting=2">保密</xsl:if>
<xsl:if test="PrivacySetting=0 or PrivacySetting=1">
<xsl:value-of select="UserPoint"/>
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
<xsl:value-of select="pe:PointUnit()"/>
</xsl:if>
</td>
<td>
<xsl:if test="PrivacySetting=2">保密</xsl:if>
<xsl:if test="PrivacySetting=0 or PrivacySetting=1"><xsl:value-of select="PassedItems"/>篇</xsl:if>
</td>
<td>
<a>
<xsl:attribute name="href">{PE.SiteConfig.applicationpath/}User/Message/Message.aspx?inceptUser=<xsl:value-of select="UserName"/>
</xsl:attribute> 发短消息</a>
</td>
</tr>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</tbody>
</table>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
<UsePage>True</UsePage>
<LabelSqlCount>SELECT COUNT(UserID) FROM PE_Users WHERE Status = 0</LabelSqlCount>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,26 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>静态标签编辑器后台最新文章列表,若需要针对管理员进行设置,请新建标签名为"管理员ID + 编辑器内容列表"的标签进行个性化设置</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 10 GeneralID,ItemID,TableName,Title,Status FROM PE_CommonModel WHERE (Status = 99) ORDER BY GeneralID DESC </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:template match="/">
<div class="fixdiv">
<xsl:for-each select="NewDataSet/Table">
<div onclick="cit()" outype="6" itemurl="{pe:GetInfoPath(ItemID)}" class="spanfixdiv">
<xsl:value-of select="Title"/>
</div>
</xsl:for-each>
</div>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
</root>
@@ -0,0 +1,39 @@
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<CacheTime>0</CacheTime>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString>select NodeId,Custom_Content from PE_Nodes where NodeID=@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:param name="nodeid"/>
<xsl:param name="num"/>
<xsl:template match="/">
<xsl:for-each select="/NewDataSet/Table">
<xsl:value-of disable-output-escaping="yes" select="pe:GetCustomContent($num,Custom_Content) "/>
</xsl:for-each>
</xsl:template>
</xsl:transform>]]>
</LabelTemplate>
<attributes>
<name>nodeid</name>
<default>1</default>
<intro>栏目ID</intro>
</attributes>
<attributes>
<name>num</name>
<default>1</default>
<intro>自设内容序号</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?><root><LabelType></LabelType><LabelIntro>在前台显示转入后台编辑的按钮,只有有权限才会显示</LabelIntro><OutType>txt</OutType><LabelDataType>static</LabelDataType><LabelTemplate>
<![CDATA[<span id="content_AdminEdit"></span>
<script type="text/javascript">
$(document).ready(function()
{
$.pe.ajax('admineditcheck',{params:{itemId:<xsl:value-of select="$itemId"/>},success:function(s) {
if ($(s).find('status').text() == 'OK') {
var managedir = "{PE.SiteConfig.ApplicationPath/}Common/GetContentEdit.aspx?itemId=<xsl:value-of select="$itemId"/>";
$("#content_AdminEdit").html("【<a href='" + managedir + "' target='_blank'>进入后台编辑</a>】")
}
}});
});
</script>]]></LabelTemplate><attributes><name>itemId</name><default>0</default><intro>内容ID{默认值:0,传入值:@RequestInt_Id}</intro></attributes><EnabelAjax>False</EnabelAjax></root>
@@ -0,0 +1,48 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>itemId</name>
<default>1</default>
<intro>文章ID</intro>
</attributes>
<attributes>
<name>titleFontType</name>
<datatype>supersql</datatype>
<default>规则</default>
<intro>标题字型</intro>
</attributes>
<LabelSqlString><![CDATA[SELECT AAA = '@titleFontType']]></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="titleFontType" />
<xsl:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="$titleFontType='粗体'">
font-weight:bold;font-style:normal;
</xsl:when>
<xsl:when test="$titleFontType='斜体'">
font-weight:normal ;font-style:italic ;
</xsl:when>
<xsl:when test="$titleFontType='粗+斜'">
font-weight:bold;font-style:italic ;
</xsl:when>
<xsl:when test="$titleFontType='规则'">
font-weight:normal ;font-style:normal;
</xsl:when>
<xsl:otherwise>
font-weight:normal ;font-style:normal;
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
@@ -0,0 +1,147 @@
<?xml version="1.0"?>
<root>
<LabelType>其他类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<LabelTemplate>
<![CDATA[
<div class="left_box">
<dl>
<dt>自定义表单</dt>
<dd>
<ul>
<script type="text/javascript" src="{PE.SiteConfig.ApplicationPath/}js/jquery.pack.js"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery.fn.addOption = function(text,value)
{
jQuery(this).get(0).options.add(new Option(text,value));
}
jQuery.fn.clearAll = function()
{
jQuery(this).get(0).options.length = 0;
}
function GetWorkCategory(value,depth)
{
if(value=="-1")
return;
var array1 = value.split('|');
var formInfoArr = array1[2].split(',');
jQuery('#selFormList').clearAll();
if(formInfoArr.length <= 0)
{
if(depth > 0)
{
jQuery('#selFormList').addOption('没有绑定表单', '-1');
jQuery('#ErrorMessage').css("display", "");
jQuery('#ErrorMessage').html("<span style='color:Blue;'>此表单类别没有绑定表单!</span>");
jQuery('#workcategory').css("display", "");
jQuery('#CustomFormList').css("display", "none");
jQuery('#DivJumpToForm').css("display", "none");
}
else
{
jQuery('#ErrorMessage').css("display", "none");
jQuery('#workcategory').css("display", "");
jQuery('#CustomFormList').css("display", "");
jQuery('#DivJumpToForm').css("display", "");
}
}
else
{
for(var index = 0;index < formInfoArr.length;index ++)
{
var formInfo = formInfoArr[index].split('$');
if(formInfo.length == 2){
jQuery('#selFormList').addOption(formInfo[1], formInfo[0]);}
}
if(jQuery('#selFormList').get(0).options.length == 0 && depth > 0)
{
jQuery('#selFormList').addOption('没有绑定表单', '-1');
jQuery('#ErrorMessage').css("display", "");
jQuery('#ErrorMessage').html("<span style='color:Blue;'>此表单类别没有绑定表单!</span>");
jQuery('#workcategory').css("display", "");
jQuery('#CustomFormList').css("display", "none");
jQuery('#DivJumpToForm').css("display", "none");
}
else
{
jQuery('#ErrorMessage').css("display", "none");
jQuery('#workcategory').css("display", "");
jQuery('#CustomFormList').css("display", "");
jQuery('#DivJumpToForm').css("display", "");
}
}
jQuery("#categoryidhidden").get(0).value = array1[1];
var xml = "<root><type>GetWorkCateory</type><ParentID>" + array1[1] + "</ParentID></root>";
jQuery.post('{PE.SiteConfig.ApplicationPath/}ajax.aspx', xml, function(s)
{
var categoryList = jQuery("WorkCategory", s);
if(categoryList.length > 0)
{
var workcategory = jQuery('#workcategory');
var workcategorySub = jQuery('#workcategory' + depth);
if(workcategorySub.length == 0)
{
workcategory.append(jQuery("<select id='workcategory" + depth + "' onchange='GetWorkCategory(this.value,"+ (depth + 1) +")'></select>"));
workcategory.append(jQuery("<br/>"));
}
jQuery('#workcategory' + depth).clearAll();
jQuery('#workcategory' + depth).addOption("选择类别","-1");
categoryList.each(function(i)
{
var category = jQuery(this).text();
var array = category.split('|');
var name = array[0];
jQuery('#workcategory' + depth).addOption(name,category);
});
jQuery('#CustomFormList').css("display", "none");
jQuery('#DivJumpToForm').css("display", "none");
}
else
{
if(depth == 0)
{
jQuery('#ErrorMessage').css("display", "");
jQuery('#ErrorMessage').html("<span style='color:Blue;'>很抱歉,还没有添加自定义表单类别,请联系管理员到后台添加!</span>");
jQuery('#workcategory').css("display", "none");
jQuery('#CustomFormList').css("display", "none");
jQuery('#DivJumpToForm').css("display", "none");
}
}
});
}
jQuery(document).ready(function() {
GetWorkCategory("a|0|,",0);
jQuery("#JumpToForm").click(function(){
var formid = jQuery("#selFormList").get(0).value;
var categoryid = jQuery("#categoryidhidden").get(0).value;
if(formid != "-1" && formid != "")
{
window.location = "{PE.SiteConfig.ApplicationPath/}webform.aspx?workcategoryid=" + categoryid + "&customformid=" + formid ;
}
else
{
alert("请选择表单!");
}
});
});
</script>
<input id="categoryidhidden" type="hidden" value="0" />
<div id="workcategory" style="display:none;">选择表单类别:</div>
<div id="CustomFormList" style="display:none;">
<span>选择表单:</span><select id="selFormList" name="selFormList"><option value="-1">请选择</option></select> <br/>
</div>
<div id="DivJumpToForm" style="display:none;text-align:center"><span style="text-align:center"><input type="button" id="JumpToForm" value="转到表单提交页" class="inputbutton"></span></div>
<div id="ErrorMessage" style="display:none;"></div>
</ul>
</dd>
</dl>
</div>]]>
</LabelTemplate>
</root>