55 lines
1.8 KiB
XML
55 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<root>
|
|
<LabelType>百科类</LabelType>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<OutType>sin</OutType>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<Version officialVersion="" modifiedVersions="4701" compatibleVersion="" />
|
|
<attributes>
|
|
<name>entryId</name>
|
|
<datatype>supersql</datatype>
|
|
<default>0</default>
|
|
<intro>词条ID</intro>
|
|
</attributes>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<LabelSqlString>SELECT PE_EN_Entry_Edition.* FROM PE_EN_Entry_Edition WHERE EntryId = @entryId ORDER BY EditionId 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="entryId" />
|
|
<xsl:output method="html" />
|
|
<xsl:template match="/">
|
|
<xsl:variable name="total" select="count(/NewDataSet/Table)"/>
|
|
<xsl:for-each select="/NewDataSet/Table">
|
|
<xsl:variable name="no" select="($total + 1 - position())" />
|
|
<li>
|
|
<span class="l1">
|
|
<input type="checkbox">
|
|
<xsl:attribute name="value"><xsl:value-of select="EditionId" /></xsl:attribute>
|
|
</input>
|
|
<a target="_blank">
|
|
<xsl:attribute name="href">Edition.aspx?id=<xsl:value-of select="EditionId" />&no=<xsl:value-of select="$no" />
|
|
</xsl:attribute>
|
|
历史版本<xsl:value-of select="$no" />
|
|
</a>
|
|
</span>
|
|
<span class="l2">
|
|
<xsl:value-of select="pe:FormatDate(EditTime,'yyyy-mm-dd hh:ff')" />
|
|
</span>
|
|
<span class="l3">
|
|
<a target="_blank">
|
|
<xsl:attribute name="href">UserDoc.aspx?un=<xsl:value-of select="Editor" /></xsl:attribute>
|
|
<xsl:value-of select="Editor" />
|
|
</a>
|
|
</span>
|
|
<span class="l7">
|
|
<xsl:value-of select="pe:CutText(Reason,56,'...')" />
|
|
</span>
|
|
</li>
|
|
</xsl:for-each>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]></LabelTemplate>
|
|
</root> |