78 lines
2.3 KiB
XML
78 lines
2.3 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="4005" compatibleVersion="" />
|
|
<attributes>
|
|
<name>outputQty</name>
|
|
<datatype>int</datatype>
|
|
<default>20</default>
|
|
<intro>输出记录数</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>titleLength</name>
|
|
<datatype>int</datatype>
|
|
<default>40</default>
|
|
<intro>标题长度</intro>
|
|
</attributes>
|
|
<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="usePage" />
|
|
<xsl:param name="bindStyle" />
|
|
<xsl:param name="outputQty" />
|
|
<xsl:param name="titleLength" />
|
|
<xsl:output method="html" />
|
|
<xsl:template match="/NewDataSet/Table">
|
|
<p>
|
|
<a>
|
|
<xsl:attribute name="href">
|
|
<xsl:value-of select="pe:GetSiteConfigInfo('rootpath')"/>Wap/Interview/Interview.aspx?InterviewId=<xsl:value-of select="InterviewId"/>
|
|
</xsl:attribute>
|
|
<xsl:choose>
|
|
<xsl:when test="Status = 1">预告:</xsl:when>
|
|
<xsl:when test="Status = 2">进行中:</xsl:when>
|
|
<xsl:when test="Status = 3">已结束:</xsl:when>
|
|
<xsl:otherwise>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
<xsl:value-of select="pe:CutText(InterviewTitle,$titleLength,'...')"/>
|
|
</a>
|
|
</p>
|
|
</xsl:template>
|
|
</xsl:transform>]]></LabelTemplate>
|
|
<attributes>
|
|
<name>bindStyle</name>
|
|
<datatype>string</datatype>
|
|
<default>标题式</default>
|
|
<intro>
|
|
</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>usePage</name>
|
|
<datatype>string</datatype>
|
|
<default>true</default>
|
|
<intro>是否分页</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>queryCond</name>
|
|
<datatype>supersql</datatype>
|
|
<default>select 1</default>
|
|
<intro>SQL查询</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>queryCount</name>
|
|
<datatype>supersql</datatype>
|
|
<default>
|
|
</default>
|
|
<intro>SQL统计</intro>
|
|
</attributes>
|
|
<UsePage>True</UsePage>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<LabelSqlString>@queryCond</LabelSqlString>
|
|
<LabelSqlCount>@queryCount</LabelSqlCount>
|
|
</root> |