68 lines
1.9 KiB
XML
68 lines
1.9 KiB
XML
<?xml version="1.0"?>
|
|
<root>
|
|
<LabelType>问答类</LabelType>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<OutType>sin</OutType>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<attributes>
|
|
<name>honorTypeID</name>
|
|
<datatype>supersql</datatype>
|
|
<default>1</default>
|
|
<intro>头衔类型ID</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>honorTypeName</name>
|
|
<datatype>supersql</datatype>
|
|
<default>
|
|
</default>
|
|
<intro>头衔名称</intro>
|
|
</attributes>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<LabelSqlString>SELECT * FROM PE_QA_Honor WHERE [Type] = @honorTypeID</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="honorTypeID" />
|
|
<xsl:param name="honorTypeName" />
|
|
<xsl:output method="html" />
|
|
<xsl:template match="/">
|
|
<center>
|
|
<table width="70%" border="0" cellpadding="0" cellspacing="0" class="helpbox" >
|
|
<tr>
|
|
<td colspan="4" class="heading">头衔系列:<xsl:value-of select="$honorTypeName" /></td>
|
|
</tr>
|
|
<tr class="tit">
|
|
<td width="25%">等级</td>
|
|
<td width="25%">开始分数</td>
|
|
<td width="25%">结束分数</td>
|
|
<td width="25%">头衔</td>
|
|
</tr>
|
|
<xsl:for-each select="NewDataSet/Table">
|
|
<xsl:choose>
|
|
<xsl:when test="position()mod 2=0">
|
|
<tr class="bg2">
|
|
<td><xsl:value-of select="Grade"/></td>
|
|
<td><xsl:value-of select="MinPoint"/></td>
|
|
<td><xsl:value-of select="MaxPoint"/></td>
|
|
<td><xsl:value-of select="Honor"/></td>
|
|
</tr>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<tr>
|
|
<td><xsl:value-of select="Grade"/></td>
|
|
<td><xsl:value-of select="MinPoint"/></td>
|
|
<td><xsl:value-of select="MaxPoint"/></td>
|
|
<td><xsl:value-of select="Honor"/></td>
|
|
</tr>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:for-each>
|
|
</table>
|
|
</center>
|
|
<br/>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]></LabelTemplate>
|
|
</root> |