87 lines
2.7 KiB
XML
87 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="2511" compatibleVersion="" />
|
|
<attributes>
|
|
<name>interviewId</name>
|
|
<datatype>supersql</datatype>
|
|
<default>1</default>
|
|
<intro>访谈ID</intro>
|
|
</attributes>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<LabelSqlString>SELECT NodeID,GeneralID,InputTime,PinyinTitle,DefaultPicUrl,Title FROM PE_CommonModel WHERE GeneralID IN (SELECT MIN(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="isShowLink" />
|
|
<xsl:output method="html" />
|
|
<xsl:template match="/">
|
|
<xsl:choose>
|
|
<xsl:when test="count(NewDataSet/Table) = 0">
|
|
<xsl:element name="img">
|
|
<xsl:attribute name="src">
|
|
<xsl:value-of select="pe:InstallDir()"/>Images/nopic.gif
|
|
</xsl:attribute>
|
|
<xsl:attribute name="border">0</xsl:attribute>
|
|
</xsl:element>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:for-each select="NewDataSet/Table">
|
|
<xsl:choose>
|
|
<xsl:when test="isShowLink = 'True'">
|
|
<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:attribute name="border">0</xsl:attribute>
|
|
</xsl:element>
|
|
</a>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<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:attribute name="border">0</xsl:attribute>
|
|
</xsl:element>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:for-each>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]></LabelTemplate>
|
|
<attributes>
|
|
<name>isShowLink</name>
|
|
<datatype>bool</datatype>
|
|
<default>True</default>
|
|
<intro>是否显示链接</intro>
|
|
</attributes>
|
|
</root> |