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,100 @@
<?xml version="1.0"?>
<root>
<LabelType>样式类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>titleLength</name>
<datatype>supersql</datatype>
<default>60</default>
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
</attributes>
<attributes>
<name>contentLength</name>
<datatype>supersql</datatype>
<default />
<intro>内容长度</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>内容链接的打开方式,2为栏目节点配置,1为新窗口,0为原窗口,其他则由参数值值取代</intro>
</attributes>
<attributes>
<name>queryCond</name>
<datatype>supersql</datatype>
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
<intro>查询条件</intro>
</attributes>
<attributes>
<name>queryCount</name>
<datatype>supersql</datatype>
<default />
<intro>统计条件</intro>
</attributes>
<attributes>
<name>fieldValue</name>
<datatype>supersql</datatype>
<default />
<intro>查询值</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>@queryCond</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="titleLength" />
<xsl:param name="contentLength" />
<xsl:param name="linkOpenType" />
<xsl:param name="fieldValue" />
<xsl:param name="queryCond" />
<xsl:param name="queryCount" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<li style="color:red">没有搜索到任何内容!</li>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<li>
<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:value-of disable-output-escaping="yes" select="pe:HighLightText(pe:CutText(Title,$titleLength,'…'),$fieldValue,'color:red')" />
</a>
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd')"/>
<br />
<xsl:if test="$contentLength &gt; 0">
<xsl:value-of disable-output-escaping="yes" select="pe:HighLightText(pe:CutText(Content,$contentLength,'…'),$fieldValue,'color:red')" />
</xsl:if>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<UsePage>True</UsePage>
<LabelSqlCount>@queryCount</LabelSqlCount>
</root>