58 lines
1.9 KiB
XML
58 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<root>
|
|
<LabelType>WAP类</LabelType>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<OutType>sin</OutType>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<Version officialVersion="" modifiedVersions="4004" compatibleVersion="" />
|
|
<attributes>
|
|
<name>letterId</name>
|
|
<datatype>supersql</datatype>
|
|
<default>1</default>
|
|
<intro>当前信件ID</intro>
|
|
</attributes>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<LabelSqlString><![CDATA[SELECT TOP 1 PE_GV_Letters.* FROM PE_GV_Letters WHERE LetterId > @letterId AND Status > -1 AND IsPublic = 1 AND LetterTypeId = @typeId ORDER BY LetterId 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="letterId" />
|
|
<xsl:param name="titleLength"/>
|
|
<xsl:output method="html" />
|
|
<xsl:template match="/">
|
|
<xsl:choose>
|
|
<xsl:when test="count(/NewDataSet/Table) = 0">
|
|
<div><font style="color:red">>>没有了!</font>
|
|
</div>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<div>
|
|
<xsl:for-each select="/NewDataSet/Table">
|
|
>> <a>
|
|
<xsl:attribute name="href">
|
|
Letter.aspx?LetterId=<xsl:value-of select="LetterId"/>&TypeId=<xsl:value-of select="LetterTypeId"/>
|
|
<xsl:value-of select="pe:AddSid(1)"/>
|
|
</xsl:attribute>
|
|
<xsl:value-of select="pe:CutText(Title,$titleLength,'...')"/>
|
|
</a>
|
|
</xsl:for-each>
|
|
</div>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]></LabelTemplate>
|
|
<attributes>
|
|
<name>titleLength</name>
|
|
<datatype>int</datatype>
|
|
<default>30</default>
|
|
<intro>标题长度</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>typeId</name>
|
|
<datatype>supersql</datatype>
|
|
<default>1</default>
|
|
<intro>信件类型</intro>
|
|
</attributes>
|
|
</root> |