Files
ningbo/动易的标签库/标签库/留言类/回复留言列表.config
T
2026-08-31 16:22:00 +08:00

158 lines
4.8 KiB
Plaintext
Raw 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.
<root>
<LabelType>留言类</LabelType>
<LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
<LabelIntro>DIV格式的简单评论列表</LabelIntro>
<LabelDataType>sql_sysquery</LabelDataType>
<attributes>
<name>itemId</name>
<datatype>supersql</datatype>
<default>5</default>
<intro>内容ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<attributes>
<name>outputQty</name>
<default>10</default>
<intro>显示数量</intro>
</attributes>
<LabelSqlString>SELECT TOP @pagesize * FROM PE_Comment WHERE CommentID NOT IN (SELECT TOP @startrow CommentID FROM PE_Comment WHERE GeneralID = @itemId ORDER BY UpdateTime DESC) AND 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:param name="SystemCurrentPage" />
<xsl:param name="outputQty" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:variable name="_userName" select="pe:LoginedUserName()"/>
<xsl:variable name="_isAdmin" select="pe:IsAdminLogined()"/>
<xsl:if test="count(/NewDataSet/Table) = 0" >
<div class="c_spacing">
</div>
<div id="bbs_title">
<li style="color:red">尚无回复留言!</li>
</div>
</xsl:if>
<xsl:for-each select="/NewDataSet/Table">
<xsl:variable name="userimg" select="pe:GetUserFace(UserName)"/>
<div class="c_spacing">
</div>
<div id="bbs_title">
<dl>回复主题 <span id="ctl00_CphContent_LblTitle">
<xsl:value-of disable-output-escaping="yes" select="pe:FiltText(CommentTitle)"/>
</span>
</dl>
</div>
<div id="bbs_center">
<div id="bbs_left">
<xsl:choose>
<xsl:when test="$userimg != 'err'">
<xsl:choose>
<xsl:when test="pe:IsStartWithhttp($userimg)='true'">
<img src="{$userimg}" width="80" height="90" border="0" />
</xsl:when>
<xsl:otherwise>
<img src="{pe:InstallDir()}{$userimg}" width="80" height="90" border="0" />
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<img src="{pe:InstallDir()}Images/Comment/01.gif" />
</xsl:otherwise>
</xsl:choose>
<br />
<strong>
<xsl:choose>
<xsl:when test="UserName = '游客'">
<br />[游客]
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="ReplyUserName"/>
</xsl:otherwise>
</xsl:choose>
</strong>
<br />
<div style="text-align: left;padding-left:30px;">
</div>
</div>
<div id="bbs_right">
<div id="bbs_text">
<dl>
<dt class="bbs_center_line">
<xsl:if test="UserName != '游客'">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>User/Message/Message.aspx?UserName=<xsl:value-of select="UserName" />
</xsl:attribute>
<img alt="短信" src="{pe:InstallDir()}Images/Comment/message.gif" align="Absmiddle" style="border: 0px;" />
</a>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>User/Default.aspx</xsl:attribute>
<img alt="信息" src="{pe:InstallDir()}Images/Comment/profile.gif" align="Absmiddle" style="border: 0px;" />
</a>
</xsl:if>
<a>
<xsl:attribute name="href">mailto:<xsl:value-of select="Email"/>
</xsl:attribute>
<img alt="邮箱" src="{pe:InstallDir()}Images/Comment/email.gif" align="Absmiddle" style="border: 0px;" />
</a>
</dt>
<dd class="bbs_center_right">
</dd>
<dd>
<span id="LblContent">
<span id="commenttxt_{CommentID}">
<xsl:choose>
<xsl:when test="IsPrivate = 'true'">
<xsl:choose>
<xsl:when test="(UserName = $_userName or $_isAdmin = 'true')">
<xsl:value-of select="Content"/>
</xsl:when>
<xsl:otherwise>该内容设置了隐藏!</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="Content"/>
</xsl:otherwise>
</xsl:choose>
</span>
</span>
</dd>
</dl>
</div>
</div>
<div class="clearbox">
</div>
</div>
<div id="bbs_bot">
<div id="bbs_botleft">
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="pe:InstallDir()"/>Images/Comment/ip.gif</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="UpdateTime"/>
</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
</xsl:element>
<xsl:value-of select="pe:FormatDate(UpdateTime,'yy-mm-dd')"/>
</div>
<div id="bbs_botright">
<div style="padding-right: 4px; float: right;">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:GetNodePath('false',NodeID)"/>
</xsl:attribute>返回列表</a>
</div>
</div>
</div>
</xsl:for-each>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<UsePage>True</UsePage>
<LabelSqlCount>SELECT COUNT(*) FROM PE_Comment WHERE GeneralID = @itemId AND Status = 1</LabelSqlCount>
<OutType>sin</OutType>
<CacheTime>12</CacheTime>
<EnabelAjax>True</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
</root>