80 lines
3.8 KiB
XML
80 lines
3.8 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>348</default>
|
|
<intro>焦点图宽度</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>focusHeight</name>
|
|
<datatype>supersql</datatype>
|
|
<default>230</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="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 = '0xFFFFFF|0x2|0099FF|15|0xFFFFFF|0x0099FF|0x000000|8|3|1|_blank';
|
|
var files = '<xsl:for-each select="/NewDataSet/Table">
|
|
<xsl:value-of select="pe:ConvertToAbsolutePath(TitlePicUrl)"/>
|
|
<xsl:if test="position() != last()">|</xsl:if>
|
|
</xsl:for-each>';
|
|
var links = '<xsl:for-each select="/NewDataSet/Table">
|
|
<xsl:value-of select="pe:InstallDir()"/>Blog/Item.aspx?LogId=<xsl:value-of select="LogID"/>^Id=<xsl:value-of select="BlogID"/>
|
|
<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,'"',''),$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()}Blog/images/bcastr31.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="bcastr_config=' + config + '&bcastr_file=' + files + '&bcastr_link=' + links + '&bcastr_title=' + texts + '"/>');
|
|
document.write('<embed src="{pe:SkinDir()}Blog/images/bcastr31.swf" wmode="opaque" FlashVars="bcastr_config=' + config + '&bcastr_file=' + files + '&bcastr_link=' + links + '&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"></embed>');
|
|
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>
|
|
<Version officialVersion="" modifiedVersions="2903" compatibleVersion="" />
|
|
</root> |