Files
2026-08-31 16:22:00 +08:00

59 lines
2.2 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0"?>
<root>
<LabelType>留言类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>itemId</name>
<default>0</default>
<intro>信息ID</intro>
</attributes>
<LabelSqlString>SELECT TOP @outputQty * FROM PE_Comment WHERE GeneralID=@itemId AND Status = 1 ORDER BY UpdateTime 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:variable name="_userName" select="pe:LoginedUserName()"/>
<xsl:variable name="_isAdmin" select="pe:IsAdminLogined()"/>
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<div class="Reply" width="95%">
<dl>
<dt class="ReplyAdminTd" >
<span class="ReplyAdmin">最近回复</span><xsl:value-of select="CommentTitle"/>
</dt>
<dd>
<xsl:choose>
<xsl:when test="IsPrivate = 'true'">
<xsl:choose>
<xsl:when test="(UserName = $_userName or $_isAdmin = 'true')">
<xsl:value-of disable-output-escaping="yes" select="Content"/>
</xsl:when>
<xsl:otherwise>该内容设置了隐藏!</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="Content"/>
</xsl:otherwise>
</xsl:choose>
</dd>
<dd class="ReplyTime">
回复人:<xsl:choose>
<xsl:when test="UserName='游客'">[游客]</xsl:when>
<xsl:otherwise>[用户]</xsl:otherwise>
</xsl:choose><xsl:text disable-output-escaping="yes">&amp;nbsp;&amp;nbsp;</xsl:text>回复时间:<xsl:value-of select="pe:FormatDate(UpdateTime,'yy-mm-dd')"/>
</dd>
</dl>
</div>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>outputQty</name>
<default>1</default>
<intro>显示个数</intro>
</attributes>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>