first commit

This commit is contained in:
2026-08-31 16:22:00 +08:00
commit e969a1e559
2665 changed files with 128795 additions and 0 deletions
@@ -0,0 +1,132 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>评论类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>True</EnabelAjax>
<Version officialVersion="" modifiedVersions="3004" compatibleVersion="" />
<attributes>
<name>itemId</name>
<datatype>sql.int</datatype>
<default>13</default>
<intro>项目Id</intro>
</attributes>
<UsePage>True</UsePage>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP @pagesize * FROM PE_Comment WHERE CommentID NOT IN (SELECT TOP @startrow CommentID FROM PE_Comment WHERE GeneralID = @itemId AND Status=1 ORDER BY UpdateTime DESC) AND (GeneralID = @itemId) AND Status=1 ORDER BY UpdateTime DESC</LabelSqlString>
<LabelSqlCount>SELECT COUNT(*) FROM PE_Comment WHERE GeneralID = @itemId AND Status=1</LabelSqlCount>
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pe="labelproc" exclude-result-prefixes="pe">
<xsl:param name="itemId" />
<xsl:variable name="rootDir" select="pe:InstallDir()"/>
<xsl:variable name="stars">&lt;img src="<xsl:value-of select="$rootDir"/>images/fstar.gif" alt="星级" /&gt;</xsl:variable>
<xsl:variable name="_userName" select="pe:LoginedUserName()"/>
<xsl:variable name="_isAdmin" select="pe:IsAdminLogined()"/>
<xsl:output method="html" />
<xsl:template name="_splitIp">
<xsl:param name="_ipData"/>
<xsl:choose>
<xsl:when test="contains($_ipData,'.')">
<xsl:value-of select="substring-before($_ipData,'.')"/>.
<xsl:variable name="_after" select="substring-after($_ipData,'.')" />
<xsl:choose>
<xsl:when test="contains($_after,'.')">
<xsl:call-template name="_splitIp">
<xsl:with-param name="_ipData" select="$_after"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>* </xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template match="/NewDataSet/Table">
<li>
<div class="msg_info">
<span class="reviewer">
<xsl:value-of select="UserName"/>
[<xsl:choose>
<xsl:when test="CommentType='2'">手机用户
</xsl:when>
<xsl:otherwise>普通用户
</xsl:otherwise>
</xsl:choose>]
</span>
<span class="reviewer_IP"> ( <xsl:call-template name="_splitIp">
<xsl:with-param name="_ipData" select="IP"/>
</xsl:call-template> ) </span> 于 <xsl:value-of select="pe:FormatDate(UpdateTime,'yy-mm-dd hh:ff:ss')"/> 发表
<span class="star">
<em>星级:</em>
<xsl:value-of disable-output-escaping="yes" select="pe:ConvertToChar(Score,$stars)"/>
</span>
</div>
<div class="msg_content">
<h4>
<xsl:choose>
<xsl:when test="Position = '1'">[我支持]</xsl:when>
<xsl:when test="Position = '-1'">[我反对]</xsl:when>
<xsl:otherwise>[我中立]</xsl:otherwise>
</xsl:choose>:<xsl:value-of select="CommentTitle"/>
</h4>
<p>
<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>
</p>
<xsl:if test="Reply != ''">
<div class="reply">
<span class="replyer">★管理员回复:</span>
<xsl:choose>
<xsl:when test="IsPrivate = 'true'">
<xsl:choose>
<xsl:when test="(UserName = $_userName or $_isAdmin = 'true')">
<xsl:value-of select="Reply"/>
</xsl:when>
<xsl:otherwise>该内容设置了隐藏!</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="Reply"/>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:if>
</div>
<div class="msg_replyer_box">
<div class="reviewer_info">
<xsl:if test="UserName != '游客'">
<a href="{$rootDir}User/Message/Message.aspx?inceptUser={UserName}" title="短信" class="sms">短信</a>
</xsl:if>
<a href="mailto:{Email}" title="#" class="mail">邮件</a>[ 支持:<em>{PE.Label id="评论辩论人数统计" commentId="<xsl:value-of select="CommentID"/>" position="1" /}</em> 中立:<em>{PE.Label id="评论辩论人数统计" commentId="<xsl:value-of select="CommentID"/>" position="0" /}</em> 反对:<em>{PE.Label id="评论辩论人数统计" commentId="<xsl:value-of select="CommentID"/>" position="-1" /}</em> ]
</div>
<div class="return">
<em>操作:</em>
<a>
<xsl:attribute name="href" >
<xsl:value-of select="$rootDir"/>Comment/CommentPKZoneManage.aspx?Id=<xsl:value-of select="GeneralID" />&amp;CommentID=<xsl:value-of select="CommentID" />&amp;Title=<xsl:value-of select="CommentTitle" />
</xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute>PK Zone
</a>
<a href="###" onclick="addPkZone({CommentID},1,'支持!')">支持</a>
<a href="###" onclick="addPkZone({CommentID},-1,'反对!')">反对</a>
</div>
</div>
</li>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>