Files
ningbo/动易的标签库/标签库/栏目类/显示文章二列式栏目左右循环.config
T
2026-08-31 16:22:00 +08:00

244 lines
7.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<root>
<LabelType>栏目类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<CacheTime>0</CacheTime>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString>SELECT TOP @outputQty * FROM PE_CommonModel C INNER JOIN PE_U_Article A ON (C.ItemID = A.ID) WHERE C.NodeID IN (@nodeArray) AND C.SigninType!=2 AND C.Status = 99 ORDER BY C.UpdateTime 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="parentId"/>
<xsl:param name="titleLength"/>
<xsl:param name="displayPropertyType"/>
<xsl:param name="displayIncludePic"/>
<xsl:param name="displayAuthor"/>
<xsl:param name="displayDateTime"/>
<xsl:param name="displayHits"/>
<xsl:param name="displayHotSign"/>
<xsl:param name="displayNewSign"/>
<xsl:param name="displayTips"/>
<xsl:param name="displayCommentLink"/>
<xsl:param name="linkOpenType"/>
<xsl:param name="hits"/>
<xsl:param name="eliteLevel"/>
<xsl:template match="/NewDataSet">
<div class="childclass_main_box">
<div class="childclass_title">
<div class="more">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('false',$parentId)"/>
</xsl:attribute>[更多]</a>
</div>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('true',$parentId)"/>
</xsl:attribute>
<xsl:value-of select="pe:GetNode($parentId,'name')"/>
</a>
</div>
<div class="childclass_content">
<ul>
<xsl:choose>
<xsl:when test="count(Table) = 0">
<li style="color:red">本栏尚无内容!</li>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="Table">
<li>
<xsl:choose>
<xsl:when test="$displayPropertyType = 0">
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="pe:ConvertToInt($displayPropertyType) &gt; 0">
<xsl:choose>
<xsl:when test="Hits>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>$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:when>
<xsl:otherwise>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="pe:InstallDir()" />images/<xsl:value-of select="$displayPropertyType" />
</xsl:attribute>
<xsl:attribute name="alt">普通<xsl:value-of select="pe:GetModelItemName(ModelID)"/>
</xsl:attribute>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<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="Inputer"/>
<xsl:value-of select="'&#xD;'" />发表时间:<xsl:value-of select="pe:FormatDate(UpdateTime, 'yy年mm月dd日')" />
<xsl:value-of select="'&#xD;'" />点击数:<xsl:value-of select="Hits"/>
</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="$displayIncludePic = 'true'">
<xsl:if test="IncludePic != '无'">
<xsl:value-of select="IncludePic"/>
</xsl:if>
</xsl:if>
<xsl:if test="$displayAuthor = 'true'">
<xsl:value-of select="Inputer"/>
</xsl:if>
<xsl:if test="$displayDateTime != 0">(<xsl:value-of select="pe:FormatDate(UpdateTime, $displayDateTime)" />)</xsl:if>
<xsl:if test="$displayHotSign = 'true'">
<xsl:if test="Hits>pe:HitsOfHot()">
<img src="{pe:InstallDir()}images/hot.gif" />
</xsl:if>
</xsl:if>
<xsl:if test="$displayNewSign='true'">
<xsl:if test="2>pe:TimeSpan(UpdateTime,pe:TimeNow())">
<img src="{pe:InstallDir()}images/new.gif" />
</xsl:if>
</xsl:if>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</ul>
<div class="clearbox">
</div>
</div>
<div class="childclass_bot">
</div>
</div>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>outputQty</name>
<default>10</default>
<intro>显示个数</intro>
</attributes>
<attributes>
<name>nodeArray</name>
<default>1</default>
<intro>栏目ID</intro>
</attributes>
<attributes>
<name>parentId</name>
<default>0</default>
<intro>父栏目ID</intro>
</attributes>
<attributes>
<name>titleLength</name>
<default>20</default>
<intro>标题最多字符数</intro>
</attributes>
<attributes>
<name>displayPropertyType</name>
<default>0</default>
<intro>显示文章属性(固顶/推荐/普通)的方式</intro>
</attributes>
<attributes>
<name>displayIncludePic</name>
<default>false</default>
<intro>是否显示“[图文]”字样</intro>
</attributes>
<attributes>
<name>displayAuthor</name>
<default>false</default>
<intro>是否显示作者名</intro>
</attributes>
<attributes>
<name>displayDateTime</name>
<default>mm-dd</default>
<intro>日期显示方式</intro>
</attributes>
<attributes>
<name>displayHits</name>
<default>false</default>
<intro>是否显示点击数</intro>
</attributes>
<attributes>
<name>displayHotSign</name>
<default>false</default>
<intro>是否显示热门标志</intro>
</attributes>
<attributes>
<name>displayNewSign</name>
<default>false</default>
<intro>是否显示新内容标志</intro>
</attributes>
<attributes>
<name>displayTips</name>
<default>false</default>
<intro>是否显示作者、更新日期、点击数等浮动提示信息</intro>
</attributes>
<attributes>
<name>displayCommentLink</name>
<default>false</default>
<intro>是否显示评论链接</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>supersql</datatype>
<default>2</default>
<intro>内容链接的打开方式{栏目节点配置取代:2,新窗口:1,原窗口:0}</intro>
</attributes>
<attributes>
<name>hits</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>热门最小点击数</intro>
</attributes>
<attributes>
<name>eliteLevel</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>推荐优先级</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>