first commit
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
<?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="/">
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||||
<li style="color:red">没有作者列表!</li>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<div class="s_classlist_title">
|
||||
<div class="s_classlist_title_r">姓名</div>
|
||||
<div class="s_classlist_title_c">性别</div>
|
||||
<div class="s_classlist_title_l">简介</div>
|
||||
</div>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<div class="s_classlist_text">
|
||||
<div class="s_classlist_text_r">
|
||||
<xsl:value-of select="Name"/>
|
||||
</div>
|
||||
<div class="s_classlist_text_c">
|
||||
<xsl:choose>
|
||||
<xsl:when test="Sex=1">男</xsl:when>
|
||||
<xsl:otherwise>女</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</div>
|
||||
<div class="s_classlist_text_l">
|
||||
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(Intro,$contentLength,'…')"/>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</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>
|
||||
Reference in New Issue
Block a user