120 lines
5.6 KiB
XML
120 lines
5.6 KiB
XML
<?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="2902" compatibleVersion="" />
|
||
<attributes>
|
||
<name>outputQty</name>
|
||
<datatype>supersql</datatype>
|
||
<default>10</default>
|
||
<intro>显示数量</intro>
|
||
</attributes>
|
||
<attributes>
|
||
<name>currentPage</name>
|
||
<datatype>supersql</datatype>
|
||
<default>1</default>
|
||
<intro>当前页数</intro>
|
||
</attributes>
|
||
<attributes>
|
||
<name>blogId</name>
|
||
<datatype>sql.int</datatype>
|
||
<default>0</default>
|
||
<intro>博客ID</intro>
|
||
</attributes>
|
||
<attributes>
|
||
<name>username</name>
|
||
<datatype>supersql</datatype>
|
||
<default>
|
||
</default>
|
||
<intro>用户名</intro>
|
||
</attributes>
|
||
<UsePage>True</UsePage>
|
||
<IsXsltSql>true</IsXsltSql>
|
||
<IsXsltCountSql>false</IsXsltCountSql>
|
||
<LabelSqlString>
|
||
<![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">
|
||
<!--要使用上一步定义的自定义参数,要作为XSLT参数使用,务必要在这里声明。如:<xsl:param name="myPara" />.引用该参数:$myPara -->
|
||
<xsl:output method="xml" />
|
||
<xsl:template match="/">
|
||
<!--请按提示编辑,保持该模板结构的正确性-->
|
||
<root>
|
||
<xsl:variable name="filter">
|
||
PE_BG_log.BlogID = @blogId
|
||
</xsl:variable>
|
||
<sql>
|
||
EXEC [dbo].[PR_Common_PagingLarge] 'PE_BG_log INNER JOIN PE_BG_COMMENT ON PE_BG_log.LogID =PE_BG_COMMENT.LogID LEFT JOIN PE_BG_Blog ON PE_BG_Blog.UserName = PE_BG_COMMENT.UserName','PE_BG_Comment.CommentID','PE_BG_Blog.BlogID,PE_BG_Blog.BlogName,PE_BG_Blog.Face,PE_BG_log.Title,PE_BG_Comment.*',@pagesize,@startrow,'<xsl:value-of select="$filter"/>','','PE_BG_Comment.CommentID DESC'
|
||
</sql>
|
||
<sqlpage>
|
||
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
|
||
</sqlpage>
|
||
<countsql>
|
||
SELECT COUNT(*) FROM PE_BG_log L INNER JOIN PE_BG_COMMENT C ON L.LogID =C.LogID WHERE L.BlogID = @blogId
|
||
</countsql>
|
||
</root>
|
||
</xsl:template>
|
||
</xsl:transform>]]></LabelSqlString>
|
||
<LabelSqlCount>SELECT COUNT(*) FROM PE_BG_log L INNER JOIN PE_BG_COMMENT C ON L.LogID =C.LogID WHERE L.BlogID = @blogId
|
||
</LabelSqlCount>
|
||
<LabelSqlPage>
|
||
</LabelSqlPage>
|
||
<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:output method="html" />
|
||
<xsl:param name="blogId" />
|
||
<xsl:template match="/NewDataSet">
|
||
<xsl:choose>
|
||
<xsl:when test="count(/NewDataSet/Table) = 0">
|
||
<span>还没有博客评论!</span>
|
||
</xsl:when>
|
||
<xsl:otherwise>
|
||
<div class="menu">
|
||
<input type="checkbox" id="checkAll" onclick='CheckJob(this.form)'/>
|
||
全选 <input type="button" name="deleteAll" onclick="return batchconfirm('确定要删除选中的评论吗?');" value="删除" class="bt" id="deleteAll"/>
|
||
</div>
|
||
<xsl:for-each select="/NewDataSet/Table">
|
||
<ul class="commentList">
|
||
<li>
|
||
<input type="checkbox" id='J_PE_CommentID{CommentID}' name="J_PE_CommentID" value='{CommentID}' />
|
||
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BlogID}" title="{BlogName}" class="pic">
|
||
<xsl:choose>
|
||
<xsl:when test="Face!= ''">
|
||
<img src="{pe:ConvertToAbsolutePath(Face)}" />
|
||
</xsl:when>
|
||
<xsl:otherwise>
|
||
<img src="{pe:SkinDir()}Blog/images/nopic.png" alt="个人图片" />
|
||
</xsl:otherwise>
|
||
</xsl:choose>
|
||
</a>
|
||
<strong>
|
||
<xsl:value-of select="Nickname"/>
|
||
</strong>
|
||
<span class="dateTime">
|
||
<xsl:value-of select="pe:FormatDate(CreateTime,'yyyy-mm-dd hh:ff:ss')"/>
|
||
[<a href="javascript:DelComment({CommentID},{$blogId});" onclick="return confirm('确定要删除此评论吗?');">删除</a>]
|
||
</span>
|
||
<p>
|
||
<div id="wrap" class="commentmanagewrap" >
|
||
<xsl:value-of select="Content"/>
|
||
</div>
|
||
</p>
|
||
<div class="source">
|
||
评论于:<cite>
|
||
<a href="{pe:InstallDir()}Blog/Item.aspx?id={BlogID}&logId={LogID}" title="{Title}">
|
||
<xsl:value-of select="Title"/>
|
||
</a>
|
||
</cite>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
</xsl:for-each>
|
||
</xsl:otherwise>
|
||
</xsl:choose>
|
||
</xsl:template>
|
||
</xsl:stylesheet>]]></LabelTemplate>
|
||
</root> |