Files
2026-08-31 16:22:00 +08:00

70 lines
1.9 KiB
XML

<?xml version="1.0"?>
<root>
<LabelType>样式类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString>@queryCond</LabelSqlString>
<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="/NewDataSet">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<li style="color:red">没有作者列表!</li>
</xsl:when>
<xsl:otherwise>
<table>
<tr>
<td>姓名</td>
<td>性别</td>
<td>简介</td>
</tr>
<xsl:for-each select="Table">
<tr>
<td>
<a href="{pe:InstallDir()}Common/ShowAuthor.aspx?authorName={Name}&amp;upDateTime=">
<xsl:value-of select="Name"/>
</a>
</td>
<td>
<xsl:choose>
<xsl:when test="Sex=1">男</xsl:when>
<xsl:otherwise>女</xsl:otherwise>
</xsl:choose>
</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>
<attributes>
<name>queryCond</name>
<default>SELECT * FROM PE_Author</default>
<intro>查询条件</intro>
</attributes>
<attributes>
<name>queryCount</name>
<default>
</default>
<intro>统计条件</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<UsePage>True</UsePage>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlCount>@queryCount</LabelSqlCount>
<attributes>
<name>contentLength</name>
<datatype>supersql</datatype>
<default>50</default>
<intro>简介长度</intro>
</attributes>
</root>