75 lines
2.3 KiB
XML
75 lines
2.3 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 NodeID,GeneralID,InputTime,PinyinTitle,DefaultPicUrl,Title FROM PE_CommonModel WHERE GeneralID IN (SELECT GeneralId FROM PE_GV_InterviewRelationInfo WHERE InterviewId = @interviewId AND InfoType = 3) AND Status = 99 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: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>
|
|
<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:element name="img">
|
|
<xsl:attribute name="src">
|
|
<xsl:choose>
|
|
<xsl:when test="DefaultPicUrl != ''">
|
|
<xsl:value-of select="pe:UpLoadDir()"/>
|
|
<xsl:value-of select="DefaultPicUrl"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:value-of select="pe:InstallDir()"/>Images/nopic.gif
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:attribute>
|
|
</xsl:element>
|
|
</a>
|
|
</div>
|
|
<div>
|
|
<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,20,'…')" />
|
|
</a>
|
|
</div>
|
|
</li>
|
|
</xsl:for-each>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]></LabelTemplate>
|
|
</root> |