first commit
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
<?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="2900" 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>titleLength</name>
|
||||
<datatype>int</datatype>
|
||||
<default>20</default>
|
||||
<intro>标题长度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>imageWidth</name>
|
||||
<datatype>int</datatype>
|
||||
<default>72</default>
|
||||
<intro>图片宽度</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>imageHeight</name>
|
||||
<datatype>int</datatype>
|
||||
<default>54</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 CreateTime 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="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>
|
||||
<div class="imgText">
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<xsl:if test="position()=1">
|
||||
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BlogID}" title="{BlogName}" class="pic">
|
||||
<img alt="{BlogName}" title="{BlogName}">
|
||||
<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>
|
||||
</img>
|
||||
</a>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
<ul>
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<xsl:if test="position()<5">
|
||||
<li><a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BlogID}" title="{BlogName}"><xsl:value-of select="pe:CutText(BlogName,$titleLength,'')"/></a></li>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</div>
|
||||
<ul class="textList clearFloat">
|
||||
<xsl:for-each select="/NewDataSet/Table">
|
||||
<xsl:if test="position()>4">
|
||||
<li><a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BlogID}" title="{BlogName}"><xsl:value-of select="pe:CutText(BlogName,$titleLength,'')"/></a></li>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
Reference in New Issue
Block a user