first commit

This commit is contained in:
2026-08-31 16:22:00 +08:00
commit e969a1e559
2665 changed files with 128795 additions and 0 deletions
@@ -0,0 +1,80 @@
<?xml version="1.0"?>
<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>
<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) = 0">
<font style="color:red">还没有任何信息!</font>
</xsl:when>
<xsl:otherwise>
<script type="text/javascript">
var swf_width = <xsl:value-of select="$focusWidth" />;
var swf_height = <xsl:value-of select="$focusHeight" />;
var config = '6|0xffffff|0x0099FF|20|0xffffff|0x0099FF|0x000000';//config 设置分别为: 自动播放时间(秒)|文字颜色|文字背景色|文字背景透明度|按键数字色|当前按键色|普通按键色
var files = '<xsl:for-each select="/NewDataSet/Table">
<xsl:value-of select="pe:ConvertToAbsolutePath(DefaultPicUrl)"/>
<xsl:if test="position() != last()">|</xsl:if>
</xsl:for-each>';
var links = '<xsl:for-each select="/NewDataSet/Table">
<xsl:value-of select="pe:GetInfoPath(NodeID,GeneralID,InputTime,PinyinTitle,HtmlPageName)"/>
<xsl:if test="position() != last()">|</xsl:if>
</xsl:for-each>';
var texts = '<xsl:for-each select="/NewDataSet/Table">
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(pe:ReplaceText(Title,'&quot;',''),$titleLength,'…')"/>
<xsl:if test="position() != last()">|</xsl:if>
</xsl:for-each>';
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + swf_width + '" height="' + swf_height + '">');
document.write('<param name="movie" value="{pe:SkinDir()}swf/focus_2.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="wmode" value="opaque" />');
document.write('<param name="FlashVars" value="config=' + config + '&amp;bcastr_flie=' + files + '&amp;bcastr_link=' + links + '&amp;bcastr_title=' + texts + '" />');
document.write('<embed src="{pe:SkinDir()}swf/focus_2.swf" wmode="opaque" FlashVars="config=' + config + '&amp;bcastr_flie=' + files + '&amp;bcastr_link=' + links + '&amp;bcastr_title=' + texts + '" menu="false" quality="high" width="' + swf_width + '" height="' + swf_height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
</script>
</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>
</root>