74 lines
2.4 KiB
XML
74 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<root>
|
|
<LabelType>列表类</LabelType>
|
|
<LabelIntro>SuperSlide专用</LabelIntro>
|
|
<OutType>sin</OutType>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<EnabelAjax>False</EnabelAjax>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<LabelSqlString>@queryCond</LabelSqlString>
|
|
<attributes>
|
|
<name>titleLength</name>
|
|
<datatype>supersql</datatype>
|
|
<default>50</default>
|
|
<intro>标题长度</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>width</name>
|
|
<datatype>supersql</datatype>
|
|
<default>428</default>
|
|
<intro>焦点图宽度</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>height</name>
|
|
<datatype>supersql</datatype>
|
|
<default>280</default>
|
|
<intro>焦点图高度</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>queryCond</name>
|
|
<datatype>supersql</datatype>
|
|
<default>SELECT TOP 5 * FROM PE_CommonModel WHERE DefaultPicUrl != ''</default>
|
|
<intro>查询条件</intro>
|
|
</attributes>
|
|
<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="height"/>
|
|
<xsl:param name="width"/>
|
|
<xsl:param name="titleLength"/>
|
|
<xsl:output method="xml" indent="yes"/>
|
|
<xsl:template match="NewDataSet">
|
|
<xsl:choose>
|
|
<xsl:when test="count(Table) > 1">
|
|
<div class="hd">
|
|
<ul>
|
|
<xsl:for-each select="Table">
|
|
<li>
|
|
<xsl:value-of select="position()"/>
|
|
</li>
|
|
</xsl:for-each>
|
|
</ul>
|
|
</div>
|
|
<div class="bd">
|
|
<ul>
|
|
<xsl:for-each select="Table">
|
|
<li>
|
|
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
|
|
|
<img src="{pe:PathFind(DefaultPicUrl)}" />
|
|
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
|
|
</a>
|
|
</li>
|
|
</xsl:for-each>
|
|
</ul>
|
|
</div>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<span class="missing_data">还没有任何内容!</span>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]></LabelTemplate>
|
|
<Version officialVersion="" modifiedVersions="3505" compatibleVersion="" />
|
|
</root> |