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,144 @@
<?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="2535" compatibleVersion="" />
<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="userName"/>
<xsl:param name="linkOpenType"/>
<xsl:param name="imageWidth"/>
<xsl:param name="imageHeight"/>
<xsl:param name="titleLength"/>
<xsl:variable name="IsBlogOwner" select="pe:LoginedUserName()=$userName"/>
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table)=0">暂无访客信息!</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<li>
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BID}" target="{$linkOpenType}" title="{Nickname}" class="pic">
<img width="{$imageWidth}" height="{$imageHeight}">
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="Face!= ''">
<xsl:value-of select="pe:ConvertToAbsolutePath(Face)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:SkinDir()"/>Blog/images/nopic.png</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="Nickname"/>
</xsl:attribute>
</img>
</a>
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BID}" target="{$linkOpenType}" title="{Nickname}">
<h4>
<xsl:value-of select="pe:CutText(Nickname,$titleLength,'')"/>
</h4>
</a>
<span class="dateTime">
<xsl:value-of select="pe:FormatDate(VisitTime,'yyyy-mm-dd hh:ff')"/>
</span>
<xsl:if test="$IsBlogOwner= 'true'">
<div class="menu">
[<a href="javascript:DeleteVisitor({ID});">
<xsl:attribute name="onclick">return confirm("确定要删除此访客信息吗?")</xsl:attribute>删除</a>]
</div>
</xsl:if>
</li>
</xsl:for-each>
<script language="javascript" type="text/javascript">
function DeleteVisitor(id){
var x = new AjaxRequest('XML', '');
x.para = ['id='+id,'bid='+@RequestInt_id];
x.post('deletevisitor', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=BlogAjaxHandler', function(s){
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
if (status == "ok") {
window.location.reload();
}
else {
ShowBlogMessage("error","删除失败!","");
}
});
}
</script>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>blogID</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>博客ID</intro>
</attributes>
<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_Visitor.BlogID = @blogID
</xsl:variable>
<sql>
EXEC [dbo].[PR_Common_PagingLarge] 'PE_BG_Visitor INNER JOIN PE_BG_Blog ON PE_BG_Visitor.VisitorName=PE_BG_Blog.UserName','PE_BG_Visitor.ID','PE_BG_Visitor.*,PE_BG_Blog.BlogID BID,PE_BG_Blog.Nickname,PE_BG_Blog.Face',@pagesize,@startrow,'<xsl:value-of select="$filter"/>','','PE_BG_Visitor.VisitTime DESC'
</sql>
<sqlpage>
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</sqlpage>
<countsql>
SELECT COUNT(ID) FROM PE_BG_Visitor INNER JOIN PE_BG_Blog ON PE_BG_Visitor.VisitorName = PE_BG_Blog.UserName WHERE PE_BG_Visitor.BlogID = @blogID
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></LabelSqlString>
<UsePage>True</UsePage>
<LabelSqlCount>SELECT COUNT(ID) FROM PE_BG_Visitor INNER JOIN PE_BG_Blog ON PE_BG_Visitor.VisitorName = PE_BG_Blog.UserName WHERE PE_BG_Visitor.BlogID = @blogID</LabelSqlCount>
<LabelSqlPage>
</LabelSqlPage>
<attributes>
<name>userName</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>用户名</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>_blank</default>
<intro>默认为新窗口打开</intro>
</attributes>
<attributes>
<name>imageWidth</name>
<datatype>int</datatype>
<default>50</default>
<intro>图片宽度</intro>
</attributes>
<attributes>
<name>imageHeight</name>
<datatype>int</datatype>
<default>50</default>
<intro>图片高度</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>16</default>
<intro>显示昵称长度</intro>
</attributes>
</root>