first commit
This commit is contained in:
@@ -0,0 +1,147 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<LabelType>评论类</LabelType>
|
||||
<LabelIntro>
|
||||
</LabelIntro>
|
||||
<OutType>sin</OutType>
|
||||
<LabelDataType>static</LabelDataType>
|
||||
<EnabelAjax>True</EnabelAjax>
|
||||
<Version officialVersion="" modifiedVersions="3004" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>itemId</name>
|
||||
<datatype>int</datatype>
|
||||
<default>1</default>
|
||||
<intro>项目ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>nodeId</name>
|
||||
<datatype>int</datatype>
|
||||
<default>1</default>
|
||||
<intro>项目所在的节点ID</intro>
|
||||
</attributes>
|
||||
<attributes>
|
||||
<name>targetId</name>
|
||||
<datatype>string</datatype>
|
||||
<default>commentForm</default>
|
||||
<intro>评论容器装载目标</intro>
|
||||
</attributes>
|
||||
<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:param name="nodeId" />
|
||||
<xsl:param name="targetId" />
|
||||
<xsl:variable name="rootDir" select="pe:InstallDir()"/>
|
||||
<xsl:output method="html" />
|
||||
<xsl:template match="/">
|
||||
<xsl:variable name="commentStyle">
|
||||
<ul class="user_info">
|
||||
<li>
|
||||
<label>
|
||||
<span>标题:</span>
|
||||
<input type="text" class="input_tx" id="commentTitle"/>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label id="commentUsernameBlock">
|
||||
<span>用户名:</span>
|
||||
<input type="text" class="input_tx" value="游客" id="commentUsername"/>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label>
|
||||
<span id="commentRankingBlock">
|
||||
评分:
|
||||
<img onmouseout="rankingMouseOut()" onmouseover="rankingMouseOver(1)" onclick="rankingClick(1)" alt="星级1" src="{$rootDir}images/fstar.gif"/>
|
||||
<img onmouseout="rankingMouseOut()" onmouseover="rankingMouseOver(2)" onclick="rankingClick(2)" alt="星级2" src="{$rootDir}images/fstar.gif"/>
|
||||
<img onmouseout="rankingMouseOut()" onmouseover="rankingMouseOver(3)" onclick="rankingClick(3)" alt="星级3" src="{$rootDir}images/fstar.gif"/>
|
||||
<img onmouseout="rankingMouseOut()" onmouseover="rankingMouseOver(4)" onclick="rankingClick(4)" alt="星级4" src="{$rootDir}images/estar.gif"/>
|
||||
<img onmouseout="rankingMouseOut()" onmouseover="rankingMouseOver(5)" onclick="rankingClick(5)" alt="星级5" src="{$rootDir}images/estar.gif"/>
|
||||
</span>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label id="commentEmailBlock">
|
||||
<span>邮 箱:</span>
|
||||
<input type="text" class="input_tx" id="commentEmail"/>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label>
|
||||
匿名发表<input type="checkbox" onclick="setAnonymous(this)" class="input_check"/>
|
||||
</label>
|
||||
<xsl:if test="pe:IsLogined() = 'true'">
|
||||
<label>
|
||||
隐藏内容<input type="checkbox" onclick="setPrivate(this)" class="input_check"/>
|
||||
</label>
|
||||
</xsl:if>
|
||||
</li>
|
||||
</ul>
|
||||
<textarea wrap="on" id="commentContnet"/>
|
||||
<div class="return">
|
||||
<button onmouseout="changeBtnStyle(this, 'bt')" onmouseover="changeBtnStyle(this, 'bt_click')" onclick="addComment()" class="bt" id="publish_msg">马上发表</button>
|
||||
<xsl:if test="pe:GetNodeInfo($nodeId,'EnableValidCode') = 'true'">
|
||||
<img align="absmiddle" style="border: medium none ; cursor: pointer;" src="{$rootDir}Controls/validateCodeImage.aspx" onclick="refreshValidCode(this);" id="commentValidCodeImg" title="看不清楚,换一个"/>
|
||||
<input type="text" onfocus="this.select();" size="12" id="commentValidCode" value="" maxlength="6"/>
|
||||
</xsl:if>
|
||||
</div>
|
||||
</xsl:variable>
|
||||
<a name="#commentTarget"/>
|
||||
<div class="msg_list_box">
|
||||
<div class="hd">
|
||||
<h3> 网友评论</h3>
|
||||
<p> (以下评论仅代表网友意见,与本站立场无关) </p>
|
||||
<div class="count">
|
||||
网友评论共 <strong id="commentCount">100</strong> 条
|
||||
</div>
|
||||
</div>
|
||||
<div class="bd">
|
||||
<ul class="msg_list" id="pe100_评论列表">
|
||||
</ul>
|
||||
<div class="page_box" id="pe100_page_评论列表">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="msg_box">
|
||||
<div class="hd">
|
||||
<ul class="standpoint">
|
||||
<li onclick="setViewpoint(1)" class="current" id="commentViewpointTab1" style="cursor: pointer;">我支持</li>
|
||||
<li onclick="setViewpoint(0)" id="commentViewpointTab0" style="cursor: pointer;">我中立</li>
|
||||
<li onclick="setViewpoint(-1)" id="commentViewpointTab-1" style="cursor: pointer;">我反对</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="bd">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:EnableComment($nodeId) = 'true'">
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:EnableTouristsComment($nodeId)='true'">
|
||||
<xsl:copy-of select="$commentStyle"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:IsLogined() = 'true'">
|
||||
<xsl:copy-of select="$commentStyle"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<font style="color:red">该信息所属栏目不允许游客发表评论!</font>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="pe:UserPurview('commentcheck',$nodeId) = 'true'">
|
||||
<xsl:copy-of select="$commentStyle"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<font style="color:red">该信息所属栏目不允许发表评论!</font>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>]]></LabelTemplate>
|
||||
</root>
|
||||
Reference in New Issue
Block a user