📄 公告列表.config
字号:
<root>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelType>公告类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/PE_Author.gif</LabelImage>
<LabelIntro>公告列表</LabelIntro>
<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="displayDateTime" />
<xsl:param name="titleLength" />
<xsl:param name="displayAuthor" />
<xsl:param name="linkOpenType" />
<xsl:param name="contentLength" />
<xsl:param name="contentType" />
<xsl:template match="/NewDataSet/Table">
<!-- 输出公告开始 -->
<ul>
<a>
<xsl:attribute name="href">
<xsl:value-of disable-output-escaping="yes" select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle)" />
</xsl:attribute>
<xsl:if test="$linkOpenType!=''">
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
</xsl:if>
<li class="announce_title">
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'…')" />
</li>
<xsl:if test="$contentLength != 0">
<li class="announce_text">
<xsl:choose>
<xsl:when test="$contentType='nohtml'">
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(pe:RemoveHtml(Content),$contentLength,'…')" />
</xsl:when>
<xsl:when test="$contentType='source'">
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(Content,$contentLength,'…')" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(pe:RemoveHtml(Content),$contentLength,'…')" />
</xsl:otherwise>
</xsl:choose>
</li>
</xsl:if>
<xsl:if test="$displayAuthor = 'true'">
<li class="announce_author">
<xsl:value-of select="Author"/>
</li>
</xsl:if>
<xsl:if test="$displayDateTime = 'true'">
<li class="announce_author">
[<xsl:value-of select="pe:FormatDate(DateAndTime, 'yy年mm月dd日')" />]
</li>
</xsl:if>
</a>
</ul>
<!-- 输出公告结束 -->
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>outputQty</name>
<default>10</default>
<intro>列表数量</intro>
</attributes>
<attributes>
<name>displayDateTime</name>
<default>true</default>
<intro>显示时间</intro>
</attributes>
<attributes>
<name>titleLength</name>
<default>40</default>
<intro>标题长度</intro>
</attributes>
<attributes>
<name>displayAuthor</name>
<default>true</default>
<intro>显示发布者</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<default>_blank</default>
<intro>打开窗口方式</intro>
</attributes>
<LabelSqlString><![CDATA[SELECT TOP @outputQty * FROM PE_U_Announce INNER JOIN PE_CommonModel ON PE_U_Announce.ID = PE_CommonModel.ItemID Where PE_CommonModel.TableName = 'PE_U_Announce' and PE_CommonModel.Status = 99 and PE_U_Announce.IsSelected = 1 AND DATEADD(d, PE_U_Announce.OutTime, PE_U_Announce.DateAndTime) >=getdate() OR (PE_CommonModel.TableName = 'PE_U_Announce') AND (PE_CommonModel.Status = 99) AND (PE_U_Announce.IsSelected = 1) AND (PE_U_Announce.OutTime = 0) ORDER BY PE_U_Announce.DateAndTime DESC]]></LabelSqlString>
<attributes>
<name>contentLength</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>显示内容,为0时则不显示内容</intro>
</attributes>
<attributes>
<name>contentType</name>
<default>html|||nohtml|||source</default>
<intro>内容显示时是否启用HTML支持</intro>
</attributes>
<OutType>sin</OutType>
<CacheTime>12</CacheTime>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -