Files
ningbo/动易的标签库/标签库/百科类/互动百科_通用词条列表_词条分类列表.config
2026-08-31 16:22:00 +08:00

89 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>百科类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="4704" compatibleVersion="" />
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>
</default>
<intro>链接打开方式</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>
</default>
<intro>标题长度</intro>
</attributes>
<attributes>
<name>sqlString</name>
<datatype>supersql</datatype>
<default>SELECT 1</default>
<intro>查询语句</intro>
</attributes>
<attributes>
<name>sqlCount</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>统计语句</intro>
</attributes>
<UsePage>True</UsePage>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>@sqlString</LabelSqlString>
<LabelSqlCount>@sqlCount</LabelSqlCount>
<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="linkOpenType" />
<xsl:param name="titleLength" />
<xsl:param name="sqlString" />
<xsl:param name="sqlCount" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<li>暂无词条</li>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<li>
<h5>
<a>
<xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId"/>
</xsl:attribute>
<xsl:value-of select="EntryName"/>
</a>
</h5>
<div class="author">词条创建者: <a href="javascript:;" target="_blank">
<xsl:attribute name="href">UserDoc.aspx?un=<xsl:value-of select="Inputer"/>
</xsl:attribute>
<xsl:value-of select="Inputer"/>
</a> 更新时间: <xsl:value-of select="pe:FormatDate(EditTime,'yyyy-mm-dd hh:ff:ss')"/>
</div>
<div class="label">
<strong>标签:</strong>
<xsl:value-of select="Tag"/>
</div>
<div class="abstract">
<strong>摘要:</strong>
<xsl:value-of select="pe:CutText(Summary,200,'...')"/>
<a>
<xsl:attribute name="href">Doc.aspx?id=<xsl:value-of select="EntryId"/>
</xsl:attribute>[阅读全文]</a>
</div>
<div class="edit">编辑: <xsl:value-of select="EditTimes"/>次 | 浏览: <xsl:value-of select="Hits"/>次</div>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>