first commit
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
<?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="2904" compatibleVersion="" />
|
||||
<attributes>
|
||||
<name>isComment</name>
|
||||
<datatype>bool</datatype>
|
||||
<default>false</default>
|
||||
<intro>是否允许发表评论</intro>
|
||||
</attributes>
|
||||
<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:output method="html" />
|
||||
<xsl:param name="isComment" />
|
||||
<xsl:template match="/NewDataSet/Table">
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="Column1 > 0">
|
||||
<div class="commentList">
|
||||
<h4>评论</h4>
|
||||
<div class="menu">
|
||||
</div>
|
||||
<ul>
|
||||
<div id="pe100_博客评论信息列表">
|
||||
</div>
|
||||
<div class="bcommentpage">
|
||||
<span id="pe100_page_博客评论信息列表">
|
||||
</span>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<div id="pe100_博客评论信息列表">
|
||||
</div>
|
||||
<span id="pe100_page_博客评论信息列表">
|
||||
</span>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="$isComment= 'true'">
|
||||
{PE.Label id="博文发表评论" /}
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:transform>]]></LabelTemplate>
|
||||
<attributes>
|
||||
<name>logId</name>
|
||||
<datatype>supersql</datatype>
|
||||
<default>0</default>
|
||||
<intro>博文ID</intro>
|
||||
</attributes>
|
||||
<IsXsltSql>false</IsXsltSql>
|
||||
<IsXsltCountSql>false</IsXsltCountSql>
|
||||
<LabelSqlString>SELECT COUNT(*) FROM PE_BG_Comment WHERE LOGID = @logId</LabelSqlString>
|
||||
</root>
|
||||
Reference in New Issue
Block a user