?? 回復留言列表.config
字號:
?<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="loginedusername" select="pe:LoginedUserName()"/>
<xsl:variable name="isadminlogined" 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:value-of select="ReplyUserName"/>
<xsl:if test="UserName = '游客'">
<br />[游客]</xsl:if>
</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 = 'false'">
<xsl:value-of disable-output-escaping="yes" select="pe:FiltText(Content)"/>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="(UserName=$loginedusername and $loginedusername!='') or isadminlogined='true'">
<xsl:value-of disable-output-escaping="yes" select="pe:FiltText(Content)"/>
</xsl:when>
<xsl:otherwise>
<li style="color:red">本留言只有留言人和管理員可見!</li>
</xsl:otherwise>
</xsl:choose>
</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>
<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>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -