Files
ningbo/动易的标签库/标签库/访谈类/访谈列表.config
T
2026-08-31 16:22:00 +08:00

52 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="" />
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP @pagesize * FROM PE_GV_Interview WHERE Status != 0 AND InterviewId NOT IN (SELECT TOP @startrow InterviewId FROM PE_GV_Interview WHERE Status != 0 ORDER BY BeginTime DESC) ORDER BY BeginTime 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: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>
<a>
<xsl:attribute name="href">
{PE.SiteConfig.ApplicationPath/}Government/Interview/Interview.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
·<xsl:choose>
<xsl:when test="Status = 1">
<strong>预告:</strong>
</xsl:when>
<xsl:when test="Status = 2">
<strong>进行中:</strong>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="pe:CutText(InterviewTitle,48,'...')"/>
</a>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<UsePage>True</UsePage>
<LabelSqlCount>SELECT COUNT(InterviewId) FROM PE_GV_Interview WHERE Status != 0</LabelSqlCount>
<LabelSqlPage>
</LabelSqlPage>
</root>