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

85 lines
2.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>outputQty</name>
<datatype>supersql</datatype>
<default>3</default>
<intro>输出个数</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP @outputQty * FROM PE_GV_Interview WHERE Status != 0 AND Status != 1 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:param name="outputQty" />
<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>
<div class="Iv_homelistpic">
{PE.Label id="访谈首图片" interviewId="<xsl:value-of select="InterviewId"/>" isShowLink="false" /}
</div>
<div class="Iv_homelisttext">
<p>
<b>主 题:</b> <xsl:value-of select="InterviewTitle"/>
</p>
<p>
<b>时 间:</b> <xsl:value-of select="pe:FormatDate(BeginTime,'yyyy年mm月dd日 hh时')"/>(星期<xsl:value-of select="pe:ConverToWeek(BeginTime)"/>)</p>
<p>
<b>嘉 宾:</b> <xsl:value-of select="pe:ReplaceText(HonoredGuest,'$$$',' ')"/>
</p>
<p>
<b>提 示:</b> <xsl:value-of select="Content"/> </p>
</div>
<div class="clearbox">
</div>
<div class="Iv_homelistline">
<b>
<a>
<xsl:attribute name="href">{PE.SiteConfig.ApplicationPath/}Government/Interview/Interview.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
</xsl:attribute>访谈实录 >>
</a>
</b>
<span>
<a>
<xsl:attribute name="href">
{PE.SiteConfig.ApplicationPath/}Government/Interview/Picture.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
</xsl:attribute>
<xsl:attribute name="target">
_blank
</xsl:attribute>
图片</a>
</span>
<span>
<a>
<xsl:attribute name="href">{PE.SiteConfig.ApplicationPath/}Government/Interview/Detail.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>文字</a>
</span>
<span>
<a>
<xsl:attribute name="href">{PE.SiteConfig.ApplicationPath/}Government/Interview/Abstract.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>访谈摘要</a>
</span>
</div>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>