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

87 lines
2.4 KiB
XML

<?xml version="1.0"?>
<root>
<LabelType>样式类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<LabelSqlString>@queryCond</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:output method="html" />
<xsl:param name="imageHeight"/>
<xsl:param name="imageWidth"/>
<xsl:param name="contentLength"/>
<xsl:template match="/NewDataSet">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<font style="color:red">没有作者!</font>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="Table">
<li>
<a> <xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Common/ShowAuthor.aspx?authorName=<xsl:value-of select="pe:UrlEncode(Name)"/>&amp;upDateTime=
</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="Photo = ''">
<xsl:value-of select="pe:UpLoadDir()"/>nopic.gif
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:ConvertToAbsolutePath(Photo)" />
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="border">0</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="Name"/>
</xsl:attribute>
</xsl:element>
<br />
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(Intro,$contentLength,'…')"/>
</a>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>imageHeight</name>
<default>175</default>
<intro>头像高度</intro>
</attributes>
<attributes>
<name>imageWidth</name>
<default>150</default>
<intro>头像宽度</intro>
</attributes>
<attributes>
<name>contentLength</name>
<default>50</default>
<intro>作者简介的字数</intro>
</attributes>
<attributes>
<name>queryCond</name>
<default>SELECT * FROM PE_Author</default>
<intro>查询条件</intro>
</attributes>
<attributes>
<name>queryCount</name>
<default />
<intro>统计条件</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<UsePage>True</UsePage>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlCount>@queryCount</LabelSqlCount>
</root>