96 lines
3.7 KiB
XML
96 lines
3.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<root>
|
|
<LabelType>博客类</LabelType>
|
|
<LabelIntro>
|
|
</LabelIntro>
|
|
<OutType>sin</OutType>
|
|
<LabelDataType>sql_sysquery</LabelDataType>
|
|
<EnabelAjax>True</EnabelAjax>
|
|
<Version officialVersion="" modifiedVersions="2905" compatibleVersion="" />
|
|
<attributes>
|
|
<name>blogID</name>
|
|
<datatype>supersql</datatype>
|
|
<default>0</default>
|
|
<intro>博客ID</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>number</name>
|
|
<datatype>supersql</datatype>
|
|
<default>10</default>
|
|
<intro>显示数量</intro>
|
|
</attributes>
|
|
<IsXsltSql>false</IsXsltSql>
|
|
<IsXsltCountSql>false</IsXsltCountSql>
|
|
<LabelSqlString><![CDATA[SELECT TOP @number V.*,B.BlogID BID,B.Nickname,B.Face FROM PE_BG_Visitor V INNER JOIN PE_BG_Blog B ON V.VisitorName = B.UserName WHERE V.BlogID= '@blogID' ORDER BY VisitTime DESC]]></LabelSqlString>
|
|
<LabelTemplate>
|
|
<![CDATA[<?xml version="1.0" encoding="utf-8"?>
|
|
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
|
|
<xsl:param name="imageWidth"/>
|
|
<xsl:param name="imageHeight"/>
|
|
<xsl:param name="linkOpenType"/>
|
|
<xsl:param name="titleLength"/>
|
|
<xsl:output method="html" />
|
|
<xsl:template match="/NewDataSet">
|
|
<xsl:choose>
|
|
<xsl:when test="count(/NewDataSet/Table) = 0">
|
|
<li class="nolistdata" >暂无访客信息!</li>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
|
|
<xsl:for-each select="/NewDataSet/Table">
|
|
<li>
|
|
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BID}" target="{$linkOpenType}" title="{Nickname}" class="vistierPic">
|
|
<img width="{$imageWidth}" height="{$imageHeight}">
|
|
<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="alt">
|
|
<xsl:value-of select="Nickname"/>
|
|
</xsl:attribute>
|
|
</img>
|
|
</a>
|
|
<strong>
|
|
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BID}" target="{$linkOpenType}" title="{Nickname}" >
|
|
<xsl:value-of select="pe:CutText(Nickname,$titleLength,'')" />
|
|
</a>
|
|
</strong>
|
|
<span>
|
|
<xsl:value-of select="pe:FormatDate(VisitTime,'yyyy-mm-dd hh:ff')"/>
|
|
</span>
|
|
</li>
|
|
</xsl:for-each>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:transform>]]></LabelTemplate>
|
|
<attributes>
|
|
<name>imageWidth</name>
|
|
<datatype>int</datatype>
|
|
<default>50</default>
|
|
<intro>图片宽度</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>imageHeight</name>
|
|
<datatype>int</datatype>
|
|
<default>50</default>
|
|
<intro>图片高度</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>linkOpenType</name>
|
|
<datatype>string</datatype>
|
|
<default>_blank</default>
|
|
<intro>默认为新窗口打开</intro>
|
|
</attributes>
|
|
<attributes>
|
|
<name>titleLength</name>
|
|
<datatype>int</datatype>
|
|
<default>16</default>
|
|
<intro>显示昵称长度</intro>
|
|
</attributes>
|
|
</root> |