Files
ningbo/动易的标签库/标签库/样式类/友情链接列表_图片式.config
T
2026-08-31 16:22:00 +08:00

101 lines
3.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>样式类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString>@QueryCond</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:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="titleLength" />
<xsl:param name="linkOpenType" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<li style="color:red">还没有任何内容!</li>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<li>
<a>
<xsl:attribute name="href">
<xsl:value-of select="SiteUrl" />
</xsl:attribute>
<xsl:attribute name="target">
<xsl:choose>
<xsl:when test="$linkOpenType = 0">
<xsl:choose>
<xsl:when test="pe:GetNodeInfo(NodeID, 'ItemOpenType') = 0">_self</xsl:when>
<xsl:otherwise>_blank</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
<xsl:otherwise>_self</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="LogoUrl !=''">
<xsl:if test="pe:IsStartWithhttp(LogoUrl)='false'">
<xsl:value-of select="pe:UpLoadDir()"/>
</xsl:if>
<xsl:value-of select="LogoUrl"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:UpLoadDir()"/>nopic.gif</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
</xsl:attribute>
</xsl:element>
</a>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>60</default>
<intro>内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>内容链接的打开方式,0为栏目节点配置,1为新窗口,2为原窗口,其他则由参数值值取代</intro>
</attributes>
<attributes>
<name>QueryCond</name>
<datatype>supersql</datatype>
<default>SELECT TOP 10 * FROM PE_U_FriendSite C</default>
<intro>查询条件</intro>
</attributes>
<attributes>
<name>QueryCount</name>
<datatype>supersql</datatype>
<default />
<intro>统计条件</intro>
</attributes>
<usePage>True</usePage>
<LabelSqlCount>@QueryCount</LabelSqlCount>
<Version officialVersion="" modifiedVersions="4000" compatibleVersion="" />
</root>