Files
2026-08-31 16:22:00 +08:00

48 lines
1.7 KiB
XML

<?xml version="1.0"?>
<root>
<LabelType>访谈类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2510" compatibleVersion="" />
<attributes>
<name>interviewId</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_CommonModel WHERE Status = 99 AND GeneralID IN (SELECT GeneralId FROM PE_GV_InterviewRelationInfo WHERE InterviewId = @interviewId AND InfoType = 1) 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:pe="labelproc" exclude-result-prefixes="pe">
<xsl:param name="interviewId" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose><xsl:when test="count(NewDataSet/Table) = 0">
没有任何摘要内容
</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">_blank</xsl:attribute>
<xsl:value-of select="pe:CutText(Title,50,'…')" />
</a>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>