59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
<root>
|
|
<LabelType>样式类</LabelType>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<OutType>sin</OutType>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<UsePage>True</UsePage>
|
|
<LabelSqlString>SELECT TOP @pagesize * FROM PE_Source WHERE Passed=1 AND ID NOT IN(SELECT TOP @startrow ID FROM PE_Source WHERE Passed=1 ORDER BY ID DESC) ORDER BY ID DESC</LabelSqlString>
|
|
<LabelSqlCount>SELECT COUNT(ID) FROM PE_Source WHERE Passed = 1</LabelSqlCount>
|
|
<LabelTemplate>
|
|
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
|
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
|
<xsl:param name="contentLength" />
|
|
<xsl:output method="html" />
|
|
<xsl:template match="/">
|
|
<xsl:choose>
|
|
<xsl:when test="count(/NewDataSet/Table) = 0">
|
|
<li style="color:red">没有来源列表!</li>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<table width="%100">
|
|
<tr>
|
|
<td>来源名称</td>
|
|
<td>联系人</td>
|
|
<td>来源简介</td>
|
|
</tr>
|
|
<xsl:for-each select="/NewDataSet/Table">
|
|
<tr>
|
|
<td>
|
|
<a>
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="pe:InstallDir()"/>Common/ShowCopyFrom.aspx?copyfrom=<xsl:value-of select="Name"/>
|
|
</xsl:attribute>
|
|
<xsl:value-of select="Name"/>
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<xsl:value-of select="Contacter"/>
|
|
</td>
|
|
<td>
|
|
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(Intro,$contentLength,'…')"/>
|
|
</td>
|
|
</tr>
|
|
</xsl:for-each>
|
|
</table>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:transform>]]></LabelTemplate>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<attributes>
|
|
<name>contentLength</name>
|
|
<datatype>supersql</datatype>
|
|
<default>50</default>
|
|
<intro>来源简介长度</intro>
|
|
</attributes>
|
|
</root> |