92 lines
3.0 KiB
XML
92 lines
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<root>
|
|
<LabelType>样式类</LabelType>
|
|
<LabelIntro>
|
|
</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>focusWidth</name>
|
|
<datatype>supersql</datatype>
|
|
<default>428</default>
|
|
<intro>焦点图宽度</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>focusHeight</name>
|
|
<datatype>supersql</datatype>
|
|
<default>280</default>
|
|
<intro>焦点图高度</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>optionalExtend</name>
|
|
<datatype>supersql</datatype>
|
|
<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:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
|
|
<xsl:param name="titleLength" />
|
|
<xsl:param name="focusWidth" />
|
|
<xsl:param name="focusHeight" />
|
|
<xsl:param name="optionalExtend" />
|
|
<xsl:param name="queryCond" />
|
|
<xsl:template match="/">
|
|
<xsl:choose>
|
|
<xsl:when test="count(NewDataSet/Table) > 1">
|
|
<ul class="pic">
|
|
<xsl:for-each select="NewDataSet/Table">
|
|
<li>
|
|
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
|
<img src="{pe:PathFind(DefaultPicUrl)}" />
|
|
</a>
|
|
</li>
|
|
</xsl:for-each>
|
|
</ul>
|
|
<div class="txt-bg">`</div>
|
|
<div class="txt">
|
|
<ul>
|
|
<xsl:for-each select="NewDataSet/Table">
|
|
<li>
|
|
<a href="{pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)}">
|
|
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')"/>
|
|
</a>
|
|
</li>
|
|
</xsl:for-each>
|
|
</ul>
|
|
</div>
|
|
<ul class="num">
|
|
<xsl:for-each select="NewDataSet/Table">
|
|
<li>
|
|
<a>
|
|
<xsl:value-of select="position()"/>
|
|
</a>
|
|
<span>_</span>
|
|
</li>
|
|
</xsl:for-each>
|
|
</ul>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<span class="missing_data">还没有任何内容!</span>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:stylesheet>]]></LabelTemplate>
|
|
<attributes>
|
|
<name>queryCond</name>
|
|
<datatype>supersql</datatype>
|
|
<default>SELECT TOP 5 * FROM PE_CommonModel WHERE DefaultPicUrl != ''</default>
|
|
<intro>查询条件</intro>
|
|
</attributes>
|
|
<Version officialVersion="" modifiedVersions="0000" compatibleVersion="" />
|
|
</root> |