Files
ningbo/动易的标签库/标签库/博客类/博客列表_名人博客.config
T
2026-08-31 16:22:00 +08:00

105 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2903" compatibleVersion="" />
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>_blank</default>
<intro>打开方式:默认为新窗口打开</intro>
</attributes>
<attributes>
<name>outputQty</name>
<datatype>supersql</datatype>
<default>16</default>
<intro>输出数量</intro>
</attributes>
<attributes>
<name>imageQty</name>
<datatype>int</datatype>
<default>4</default>
<intro>显示图片数量</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>10</default>
<intro>标题长度</intro>
</attributes>
<attributes>
<name>imageWidth</name>
<datatype>int</datatype>
<default>70</default>
<intro>图片宽度</intro>
</attributes>
<attributes>
<name>imageHeight</name>
<datatype>int</datatype>
<default>70</default>
<intro>图片高度</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP @outputQty PE_BG_Blog.* FROM PE_BG_Blog WHERE State = 1 ORDER BY EliteLevel DESC</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:pe="labelproc" exclude-result-prefixes="pe">
<xsl:param name="linkOpenType" />
<xsl:param name="outputQty" />
<xsl:param name="imageQty" />
<xsl:param name="titleLength" />
<xsl:param name="imageWidth" />
<xsl:param name="imageHeight" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table)=0">暂无访客信息!</xsl:when>
<xsl:otherwise>
<ul class="thumbList clearFloat">
<xsl:for-each select="/NewDataSet/Table">
<xsl:if test="position()&lt;=$imageQty">
<li>
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BlogID}" target="{$linkOpenType}" title="{BlogName}" class="pic">
<xsl:element name="img"> <xsl:attribute name="src"><xsl:choose>
<xsl:when test="Face!= ''">
<xsl:value-of select="pe:ConvertToAbsolutePath(Face)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:SkinDir()"/>Blog/images/noPic.png</xsl:otherwise>
</xsl:choose>
</xsl:attribute> <xsl:attribute name="width"> <xsl:value-of select="$imageWidth"/></xsl:attribute>
<xsl:attribute name="height"><xsl:value-of select="$imageHeight"/></xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="BlogName"/></xsl:attribute><xsl:attribute name="title"><xsl:value-of select="BlogName"/></xsl:attribute> </xsl:element>
</a>
<h4>
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BlogID}" target="{$linkOpenType}" title="{BlogName}">
<xsl:value-of select="pe:CutText(BlogName,$titleLength,'')"/>
</a>
</h4>
</li>
</xsl:if>
</xsl:for-each>
</ul>
<xsl:if test="count(/NewDataSet/Table)&gt;$imageQty">
<ul class="textList clearFloat">
<xsl:for-each select="/NewDataSet/Table">
<xsl:if test="position()&gt;$imageQty">
<li>
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BlogID}" target="{$linkOpenType}" title="{BlogName}">
<xsl:value-of select="pe:CutText(BlogName,$titleLength,'')"/>
</a>
</li>
</xsl:if>
</xsl:for-each>
</ul>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>