81 lines
2.8 KiB
XML
81 lines
2.8 KiB
XML
<?xml version="1.0"?>
|
|
<root>
|
|
<LabelType>Flash类</LabelType>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<OutType>sin</OutType>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<attributes>
|
|
<name>titleLength</name>
|
|
<datatype>supersql</datatype>
|
|
<default>60</default>
|
|
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>contentLength</name>
|
|
<datatype>supersql</datatype>
|
|
<default />
|
|
<intro>内容长度</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>queryCond</name>
|
|
<datatype>supersql</datatype>
|
|
<default>SELECT TOP 10 * FROM PE_CommonModel</default>
|
|
<intro>查询条件</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>queryCount</name>
|
|
<datatype>supersql</datatype>
|
|
<default />
|
|
<intro>统计条件</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>fieldValue</name>
|
|
<datatype>supersql</datatype>
|
|
<default />
|
|
<intro>查询值</intro>
|
|
</attributes>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<LabelSqlString>@queryCond</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:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
|
|
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
|
|
<xsl:param name="titleLength" />
|
|
<xsl:param name="queryCond" />
|
|
<xsl:param name="queryCount" />
|
|
<xsl:template match="/">
|
|
<xsl:choose>
|
|
<xsl:when test="count(/NewDataSet/Table) = 0">
|
|
<li style="color:red">还没有任何项目!</li>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:for-each select="/NewDataSet/Table">
|
|
<li>
|
|
<div class="thumb">
|
|
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
|
|
<xsl:choose>
|
|
<xsl:when test="FlashPic!= ''">
|
|
<img src="{pe:ConvertToAbsolutePath(FlashPic)}" />
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<img src="{pe:InstallDir()}images/nopic.gif" />
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</a>
|
|
</div>
|
|
<h3>
|
|
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}" title="{Title}">
|
|
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
|
|
</a>
|
|
</h3>
|
|
</li>
|
|
</xsl:for-each>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]></LabelTemplate>
|
|
<UsePage>True</UsePage>
|
|
<LabelSqlCount>@queryCount</LabelSqlCount>
|
|
</root> |