⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 回复留言列表.config

📁 动易SiteFactory网上商店系统正式版动易SiteFactory网上商店系统正式版
💻 CONFIG
字号:
<root>
  <LabelType>通用列表标签</LabelType>
  <LabelImage>../../Admin/Images/LabelIco/GetArticleCustom.gif</LabelImage>
  <LabelIntro>DIV格式的简单评论列表</LabelIntro>
  <LabelDataType>sql_sysquery</LabelDataType>
  <attributes>
    <name>gid</name>
    <default>1</default>
    <intro>内容ID</intro>
  </attributes>
  <attributes>
    <name>listnum</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 = @gid ORDER BY UpdateDateTime DESC) and (GeneralID = @gid) AND Status=1 ORDER BY UpdateDateTime 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="listnum" />
<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>尚无回复留言!</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 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="$userimg != ''">
            <xsl:value-of disable-output-escaping="yes" select="$userimg"/>
         </xsl:when>
         <xsl:otherwise>
            <img src="{pe:InstallDir()}Images/Comment/01.gif" />
         </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  select="pe:FiltText(Content)"/>
        </xsl:when>
        <xsl:otherwise>
            <xsl:choose>
            <xsl:when test="(UserName=$loginedusername and $loginedusername!='') or isadminlogined='true'">
                 <xsl:value-of  select="pe:FiltText(Content)"/>
            </xsl:when>
            <xsl:otherwise>
                  本留言只有留言人和管理员可见!
            </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="UpdateDateTime"/>
</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
</xsl:element>
 <xsl:value-of select="pe:FormatDate(UpdateDateTime,'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 = @gid AND Status=1</LabelSqlCount>
  <OutType>sin</OutType>
  <CacheTime>12</CacheTime>
</root>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -