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,18 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2510" compatibleVersion="" />
<LabelTemplate>
<![CDATA[<div id="footer">
<div class="foot">
<div id="siteDom"><a href="mailto:{PE.SiteConfig.WebmasterEmail /}">联系我们</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath/}category_7/index.aspx">网站留言</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath /}category_6/index.aspx">友情链接</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath /}Category_8/index.aspx">版权声明</a> </div>
<div id="siteInfo">
{PE.SiteConfig.CopyRight /}
</div></div>
</div>]]></LabelTemplate>
</root>
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2901" compatibleVersion="" />
<LabelTemplate>
<![CDATA[{PE.DataSource datasource="博客数据源标签" id="博客数据源标签" BlogID="@RequestInt_Id" xslt="true" /}
<div id="maskBlog" class="mask"> </div>
{PE.Label id="博客弹出层初始化JS" /}
{PE.Label id="博客开通"/}
{PE.Label id="博客信息提示"/}
{PE.Label id="博客顶部登录" inLabel="true"/}
{PE.Label id="博客名称编辑弹出层" inLabel="true" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}
{PE.Label id="页面设置" inLabel="true" src="{PE.SiteConfig.ApplicationPath/}Blog/SkinSet.aspx" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}
<div class="header">
<div class="head">
<div class="logo"><a href="{PE.SiteConfig.ApplicationPath/}Blog/Index.aspx" title="动易博客">{PE.SiteConfig.SiteName /}博客</a></div>
<div id="toolBar">
<span id="loginBar"><a href="javascript:;" onclick='ShowPopup("maskLogin","login_box")'>登录</a> | <a href="{PE.SiteConfig.ApplicationPath/}User/Register.aspx">注册</a></span><a id="user_Blog"></a> <input id="searchValue" class="inText" type="text"/> <input id="search" class="bt" type="button" value="搜索" onclick="OnUserSearch()"/>
</div>
</div><div class="clear"></div>
<div class="banner">
<div id="siteTitle">
<h1><a href="{PE.SiteConfig.ApplicationPath/}Blog/UserIndex.aspx?id=@RequestInt_Id"><span id="blogname">{PE.Field id="博客数据源标签" fieldname="BlogName"/}</span></a> </h1> {PE.Label id="博客名称编辑" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}
</div>
<div class="clear"></div>
<div class="M001MN1101">
<ul>
{PE.Label id="用户博客顶部导航" blogId="@RequestInt_Id" categoryId="@RequestInt_categoryid" oupputQty="7" openType="0" /}
</ul>
</div>
<div id="topManager">
{PE.Label id="顶部博客管理" blogId="@RequestInt_Id" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}
</div>
</div></div>
<script>
function OnUserSearch(){
var tarEle=document.getElementById("searchValue");
if(tarEle.value==""){
ShowBlogMessage("warn","请填写您想搜索的关键词!","");
}
else{
window.location = "{PE.SiteConfig.applicationpath/}Blog/search.aspx?searchtype=1&Keyword=" + escape(tarEle.value);
}
}
CheckBlogIsLogin();
</script>
]]>
</LabelTemplate>
</root>
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2901" compatibleVersion="" />
<attributes>
<name>blogId</name>
<datatype>sql.int</datatype>
<default>0</default>
<intro>博客ID</intro>
</attributes>
<attributes>
<name>isBlogOwner</name>
<datatype>bool</datatype>
<default>false</default>
<intro>是否博客主</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 1 BlogName,Nickname,Face,Intro FROM PE_BG_Blog WHERE BlogID=@blogId</LabelSqlString>
<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="blogId" />
<xsl:param name="isBlogOwner" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<div id="blogerInfo" class="sideInfo">
<div class="moduleHeader">
<h3>个人资料</h3>
<div class="moduleMenu">
<xsl:if test="$isBlogOwner='true'">
[<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/UserInfo.aspx?id=@RequestInt_Id</xsl:attribute>
<xsl:attribute name="title">管理</xsl:attribute>管理</a>]
</xsl:if>
</div>
</div>
<div class="moduleContent">
<div class="pic">
<img src="个人头像" title="个人头像">
<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>
</img>
</div>
<h4>
<xsl:value-of select="Nickname"/>
</h4>
<strong>自我介绍:</strong>
<p>
<xsl:value-of select="Intro"/><xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text></p>
</div>
</div>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>True</EnabelAjax>
<Version officialVersion="" modifiedVersions="2901" compatibleVersion="" />
<attributes>
<name>blogId</name>
<datatype>int</datatype>
<default>0</default>
<intro>博客ID</intro>
</attributes>
<LabelTemplate><![CDATA[<div class="moduleContent">
<ul>
{PE.Label id="博文评论列表" blogId="<xsl:value-of select="$blogId"/>" outputQty="7" contentLength="30" /}
</ul>
</div>]]></LabelTemplate>
</root>
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>True</EnabelAjax>
<Version officialVersion="" modifiedVersions="2905" compatibleVersion="" />
<attributes>
<name>blogID</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>博客ID</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:param name="blogID"/>
<xsl:output method="html" />
<xsl:template match="/">
<div class="moduleContent">
<ul>
{PE.Label id="博客最近访客" blogID="<xsl:value-of select="$blogID" />" number="10" /}
</ul>
</div>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
</root>
@@ -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="2901" compatibleVersion="" />
<attributes>
<name>BlogID</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>用户名</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString><![CDATA[SELECT TOP 1 Module,UserName FROM PE_BG_Blog WHERE BlogID=@BlogID]]></LabelSqlString>
<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="UserName" />
<xsl:param name="BlogID" />
<xsl:output method="html" indent="no" />
<xsl:template match="/NewDataSet/Table">
<xsl:variable name="isBlogOwner" select="pe:LoginedUserName()=UserName"/>
<div id="sideBar">
{PE.Label id="侧栏个人资料" blogId="<xsl:value-of select="$BlogID"/>" isBlogOwner="<xsl:value-of select="$isBlogOwner"/>"/}
<div class="column" id="column1">
</div>
</div>
<input type="hidden" id="HdnItemValue" value='' />
<input type="hidden" id="HdnOldValue" value='' />
<script language="javascript" type="text/javascript">
function Init(strModule) {
var arrModule = strModule.split(',');
for (var i = 0; i &lt; arrModule.length; i++) {
switch (arrModule[i]) {
case "category":
var category = document.createElement("div");
category.id = "category";
category.className = "sideModule";
document.getElementById("column1").appendChild(category);
module("category","侧栏用户博文分类",['blogId=@RequestInt_id'],"博文分类","categoryHeader","removeCategory","manageCategory","{PE.SiteConfig.ApplicationPath/}Blog/UserCategory.aspx?id=@RequestInt_id");
break;
case "visitor":
var visitor = document.createElement("div");
visitor.id = "visitor";
visitor.className = "sideModule";
document.getElementById("column1").appendChild(visitor);
module("visitor","侧栏最近访客",['blogId=@RequestInt_id'],"最近访客","visitorHeader","removeVisitor","manageVisitor","{PE.SiteConfig.ApplicationPath/}Blog/Visitor.aspx?id=@RequestInt_id");
break;
case "comment":
var comment = document.createElement("div");
comment.id = "comment";
comment.className = "sideModule";
document.getElementById("column1").appendChild(comment);
module("comment","侧栏博文评论列表",['blogId=@RequestInt_id'],"评论列表","commentHeader","removeComment","managecComment","{PE.SiteConfig.ApplicationPath/}Blog/CommentList.aspx?id=@RequestInt_id");
break;
}
}
}
function module(moduleName,labelname,para,headerText,moduleHeader,removeModuleId,manageId,manageUrl)
{
var strModule;
var strVisitor;
var moduleHeader = '<div><xsl:attribute name="class">moduleHeader</xsl:attribute>
<xsl:if test="$isBlogOwner">
<xsl:attribute name="style">cursor:move</xsl:attribute>
</xsl:if>
<h3>' + headerText + '</h3>
<div>
<xsl:attribute name="class">moduleMenu</xsl:attribute>';
<xsl:if test="$isBlogOwner">
moduleHeader += '[<a><xsl:attribute name="href">#</xsl:attribute><xsl:attribute name="id">' + manageId + '</xsl:attribute>管理</a>][<a><xsl:attribute name="href">#</xsl:attribute><xsl:attribute name="id">' + removeModuleId + '</xsl:attribute>隐藏</a>]';
</xsl:if>
moduleHeader += "</div></div>";
var x = new AjaxRequest('XML', moduleName);
x.labelname = labelname;
x.para = para;
x.currentpage = 1;
x.post('updatelabel', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=BlogAjaxHandler', function(s) {
var xml = x.createXmlDom(s);
document.getElementById(moduleName).innerHTML =moduleHeader + xml.getElementsByTagName("body")[0].firstChild.data;
<xsl:if test="$isBlogOwner">
if(moduleName=="category"){
jQuery("#" + manageId).mousedown(function(e){ShowCategory("mask","category_box");return false;});
}
else{
jQuery("#" + manageId).mousedown(function(e){window.location.href=manageUrl; return false;});
}
jQuery("#" + removeModuleId).mousedown(function(e){removeModule(moduleName,e,'<xsl:value-of select="$BlogID"/>'); return false;});
dragInit('<xsl:value-of select="$BlogID"/>');
</xsl:if>
});
}
function SetCategory() {
window.location.reload();
}
function InitCategory(){
var x = new AjaxRequest('XML', '');
x.para = ['blogID=@RequestInt_id'];
x.post('initcategory', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=BlogAjaxHandler', function(s){
var xml = x.createXmlDom(s);
var categoryValue = "";
var status = xml.getElementsByTagName("status")[0].firstChild.data;
if(status == "null"){
categoryValue = "";
}
else{
categoryValue = xml.getElementsByTagName("categoryValue")[0].firstChild.data
}
document.getElementById("HdnItemValue").value=categoryValue;
document.getElementById("HdnOldValue").value=categoryValue;
});
}
function ShowCategory(maskDiv,popupBox){
ShowPopup(maskDiv,popupBox);
InitItem(document.getElementById('HdnOldValue').value);
}
Init("<xsl:value-of select="Module"/>")
InitCategory();
</script>
{PE.Label id="博客用户自定义分类" /}
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,141 @@
<?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="2913" compatibleVersion="" />
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>
</default>
<intro>默认为原窗口打开,新窗口打开:_blank</intro>
</attributes>
<attributes>
<name>listOrderType</name>
<datatype>int</datatype>
<default>1</default>
<intro>排序方式:1排序ID排序、2按类别ID排序(升序)、3按类别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">
<xsl:param name="listOrderType" />
<xsl:output method="xml" />
<xsl:template match="/">
<root>
<sql>
SELECT TOP @outputQty * FROM PE_BG_Category
<xsl:choose>
<xsl:when test="$listOrderType=1"> ORDER BY OrderID ASC</xsl:when>
<xsl:when test="$listOrderType=2"> ORDER BY CategoryID ASC</xsl:when>
<xsl:when test="$listOrderType=3"> ORDER BY CategoryID DESC</xsl:when>
<xsl:otherwise> ORDER BY OrderID ASC</xsl:otherwise>
</xsl:choose>
</sql>
<sqlpage>
</sqlpage>
<countsql>
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></LabelSqlString>
<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="linkOpenType" />
<xsl:param name="titleLength" />
<xsl:param name="categoryId" />
<xsl:param name="hitsType" />
<xsl:param name="linkUrl" />
<xsl:output method="html" />
<xsl:variable name="CategoryCount" select="count(/NewDataSet/Table)"/>
<xsl:template match="/">
<li id="C_0">
<a target="{$linkOpenType}">
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="$linkUrl = 'Rank.aspx'"><xsl:value-of select="pe:InstallDir()"/>Blog/<xsl:value-of select="$linkUrl"/>?categoryId=0&amp;hitsType=<xsl:value-of select="$hitsType"/></xsl:when>
<xsl:otherwise><xsl:value-of select="pe:InstallDir()"/>Blog/<xsl:value-of select="$linkUrl"/>?categoryId=0</xsl:otherwise>
</xsl:choose>
</xsl:attribute>全部</a>
</li>
<xsl:for-each select="/NewDataSet/Table">
<li id="C_{CategoryID}">
<a target="{$linkOpenType}">
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="$linkUrl = 'Rank.aspx'"><xsl:value-of select="pe:InstallDir()"/>Blog/<xsl:value-of select="$linkUrl"/>?categoryId=<xsl:value-of select="CategoryID"/>&amp;hitsType=<xsl:value-of select="$hitsType"/></xsl:when>
<xsl:otherwise><xsl:value-of select="pe:InstallDir()"/>Blog/<xsl:value-of select="$linkUrl"/>?categoryId=<xsl:value-of select="CategoryID"/></xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="pe:CutText(CategoryName,$titleLength,'')"/>
</a>
</li>
</xsl:for-each>
<script type="text/javascript" language="JavaScript">
function Category(num)
{
var arr=new Array;
arr[0]=0;
<xsl:for-each select="/NewDataSet/Table">
arr[<xsl:value-of select="position()"/>]=<xsl:value-of select="CategoryID"/>;
</xsl:for-each>
for(var i=0;i&lt;arr.length;i++)
{
if(arr[i]==num)
{
document.getElementById("C_"+arr[i]).className="on";
}
else
{
if(i==arr.length-1)
{
document.getElementById("C_"+arr[i]).className="lastOne";
}
else
{
document.getElementById("C_"+arr[i]).className="";
}
}
}
}
Category('<xsl:value-of select="$categoryId"/>');
</script>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>outputQty</name>
<datatype>supersql</datatype>
<default>50</default>
<intro>显示栏目数</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>10</default>
<intro>标题长度</intro>
</attributes>
<attributes>
<name>categoryId</name>
<datatype>int</datatype>
<default>0</default>
<intro>栏目ID:默认为0(全部)</intro>
</attributes>
<attributes>
<name>hitsType</name>
<datatype>int</datatype>
<default>7</default>
<intro>点击排行类型:默认为点击总排行</intro>
</attributes>
<attributes>
<name>linkUrl</name>
<datatype>string</datatype>
<default>Rank.aspx</default>
<intro>目标链接</intro>
</attributes>
</root>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>True</EnabelAjax>
<Version officialVersion="" modifiedVersions="2904" compatibleVersion="" />
<attributes>
<name>blogId</name>
<datatype>int</datatype>
<default>0</default>
<intro>博客ID{默认值:0,自动传入:@RequestInt_id}</intro>
</attributes>
<LabelTemplate>
<![CDATA[<div class="moduleContent">
<ul>
{PE.Label id="用户博文分类" blogId="<xsl:value-of select="$blogId"/>" outputQty="10" /}
</ul>
</div>
]]></LabelTemplate>
</root>
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2511" compatibleVersion="" />
<attributes>
<name>blogId</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>博客ID</intro>
</attributes>
<attributes>
<name>username</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>用户名</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString><![CDATA[SELECT COUNT(*) FROM PE_BG_Blog WHERE UserName='@username' AND BlogID='@blogId']]></LabelSqlString>
<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="blogId" />
<xsl:param name="username" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="Column1=0">
</xsl:when>
<xsl:otherwise>
<a href="#" title="发博文">
<span>发博文</span>
</a>
<em>
[<a href="#" title="管理评论">管理评论</a>] [<a href="#" title="页面设置">页面设置</a>]
</em>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2516" compatibleVersion="" />
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 10 PE_BG_log.* FROM PE_BG_log </LabelSqlString>
<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="blogId"/>
<xsl:param name="type"/>
<xsl:output method="html" />
<xsl:template match="/">
{PE.Label id="显示博主回收站和草稿箱" type="<xsl:value-of select="$type" />" username="<xsl:value-of select="pe:LoginedUserName()"/>" blogid="<xsl:value-of select="$blogId" />" /}
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>blogId</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>博客ID</intro>
</attributes>
<attributes>
<name>type</name>
<datatype>int</datatype>
<default>
</default>
<intro>类型</intro>
</attributes>
</root>
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2511" compatibleVersion="" />
<attributes>
<name>BlogId</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>博客ID</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="BlogId" />
<xsl:output method="html" />
<xsl:template match="/">
{PE.Label id="功能设置" username="<xsl:value-of select="pe:LoginedUserName()"/>" blogid="<xsl:value-of select="$BlogId" />" /}
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2900" compatibleVersion="" />
<LabelTemplate>
<![CDATA[
<div id="BlogMessage_box" class="content_box" style="z-index:202">
<div class="content_title">
<div class="ctLeft" style="width:85%;" onmousedown="MDown('BlogMessage_box')">
<span id="bm_title">信息标题</span>
</div>
<span class="ctRight" onclick="CloseBlogMessage()" title="关闭">
</span>
</div>
<div id="BlogMessage_Content">
<div id="bm_content">
<span id="bm_icon" class="bm_warn"></span><span id="bm_message">没有提示信息</span>
</div>
<div class="bm_bottom"><a class="CP_a_btn2" onclick="CloseBlogMessage()"><cite>确定</cite></a></div></div>
</div>
</div>
<div id="BlogMessage_mask" class="mask" style="z-index:200"></div>
<script type="text/javascript">
var url="";
function ShowBlogMessage(operate,message,linkurl){
url = linkurl;
var tarTitle=document.getElementById("bm_title");
var tarMessage=document.getElementById("bm_message");
var tarIcon=document.getElementById("bm_icon");
switch(operate){
case "success":
tarTitle.innerHTML="成功信息";
tarIcon.className="bm_success";
break;
case "error":
tarTitle.innerHTML="错误信息";
tarIcon.className="bm_fail";
break;
case "warn":
tarTitle.innerHTML="警告信息";
tarIcon.className="bm_warn";
break;
default:
break;
}
tarMessage.innerHTML=message;
ShowPopup("BlogMessage_mask","BlogMessage_box");
}
function CloseBlogMessage(){
if(url!=""&&url!=null){
this.location.href = url;
}
else{
document.getElementById("BlogMessage_mask").style.visibility='hidden';
document.getElementById("BlogMessage_box").style.visibility='hidden';
}
}
</script>
]]></LabelTemplate>
</root>
@@ -0,0 +1,149 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>通用信息焦点图复杂算法主标签,此标签仅用来调用,无需修改!</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT * FROM PE_BG_log</LabelSqlString>
<attributes>
<name>bindStyle</name>
<datatype>string</datatype>
<default>普通式</default>
<intro>项目呈现样式</intro>
</attributes>
<attributes>
<name>outputQty</name>
<datatype>int</datatype>
<default>10</default>
<intro>输出的项目数量</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>50</default>
<intro>项目标题长度,一个汉字占两个字节</intro>
</attributes>
<attributes>
<name>listOrderType</name>
<datatype>int</datatype>
<default>1</default>
<intro>项目列表排序方式</intro>
</attributes>
<attributes>
<name>hits</name>
<datatype>int</datatype>
<default>
</default>
<intro>点击数大于等于指定值的项目</intro>
</attributes>
<attributes>
<name>dayHits</name>
<datatype>int</datatype>
<default />
<intro>日点击数大于等于指定值的项目</intro>
</attributes>
<attributes>
<name>weekHits</name>
<datatype>int</datatype>
<default />
<intro>周点击数大于等于指定值的项目</intro>
</attributes>
<attributes>
<name>monthHits</name>
<datatype>int</datatype>
<default />
<intro>月点击数大于等于指定值的项目</intro>
</attributes>
<attributes>
<name>eliteLevel</name>
<datatype>int</datatype>
<default />
<intro>推荐级大于等于指定值的项目</intro>
</attributes>
<attributes>
<name>focusWidth</name>
<datatype>int</datatype>
<default>348</default>
<intro>焦点图宽度</intro>
</attributes>
<attributes>
<name>focusHeight</name>
<datatype>int</datatype>
<default>230</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:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
<xsl:param name="bindStyle" />
<xsl:param name="outputQty" />
<xsl:param name="titleLength" />
<xsl:param name="listOrderType" />
<xsl:param name="hits" />
<xsl:param name="dayHits" />
<xsl:param name="weekHits" />
<xsl:param name="monthHits" />
<xsl:param name="eliteLevel" />
<xsl:param name="focusWidth" />
<xsl:param name="focusHeight" />
<!--约束条件节,如需维护此节,请注意各项数据有效性-->
<xsl:variable name="_constraint">
<xsl:if test="$eliteLevel != ''">
AND EliteLevel &gt;= <xsl:value-of select="$eliteLevel"/>
</xsl:if>
<xsl:if test="$hits != ''">
AND Hits &gt;= <xsl:value-of select="$hits"/>
</xsl:if>
<xsl:if test="$dayHits != ''">
AND DayHits &gt;= <xsl:value-of select="$dayHits"/>
</xsl:if>
<xsl:if test="$weekHits != ''">
AND WeekHits &gt;= <xsl:value-of select="$weekHits"/>
</xsl:if>
<xsl:if test="$monthHits != ''">
AND MonthHits &gt;= <xsl:value-of select="$monthHits"/>
</xsl:if>
</xsl:variable>
<xsl:template match="/">
<!--参数传递节,如需增加参数传递,请修改此变量节-->
<xsl:variable name="_params">
titleLength="<xsl:value-of select="$titleLength"/>" focusWidth="<xsl:value-of select="$focusWidth"/>" focusHeight="<xsl:value-of select="$focusHeight"/>"
</xsl:variable>
<!--绑定样式前缀节,如需维护,请修改此变量节-->
<xsl:variable name="_bindStyle">
博客信息焦点图_<xsl:value-of select="$bindStyle"/>
</xsl:variable>
<!--内容列表排序方式判断、此变量节请勿修改-->
<xsl:variable name="_listOrderType">
<xsl:value-of select="$listOrderType"/>
</xsl:variable>
<!--内容列表排序、此变量节请勿修改-->
<xsl:variable name="_listOrderValue">
<xsl:choose>
<xsl:when test="$_listOrderType = 1">LogID DESC</xsl:when>
<xsl:when test="$_listOrderType = 2">LogID ASC</xsl:when>
<xsl:when test="$_listOrderType = 3">UpdateTime DESC,LogID DESC</xsl:when>
<xsl:when test="$_listOrderType = 4">UpdateTime ASC,LogID DESC</xsl:when>
<xsl:when test="$_listOrderType = 5">Hits DESC,LogID DESC</xsl:when>
<xsl:when test="$_listOrderType = 6">Hits ASC,LogID DESC</xsl:when>
<xsl:when test="$_listOrderType = 7">DayHits DESC,LogID DESC</xsl:when>
<xsl:when test="$_listOrderType = 8">DayHits ASC,LogID DESC</xsl:when>
<xsl:when test="$_listOrderType = 9">WeekHits DESC,LogID DESC</xsl:when>
<xsl:when test="$_listOrderType = 10">WeekHits ASC,LogID DESC</xsl:when>
<xsl:when test="$_listOrderType = 11">MonthHits DESC,LogID DESC</xsl:when>
<xsl:when test="$_listOrderType = 12">MonthHits ASC,LogID DESC</xsl:when>
<xsl:when test="$_listOrderType = 13">EliteLevel DESC,LogID DESC</xsl:when>
<xsl:when test="$_listOrderType = 14">EliteLevel ASC,LogID DESC</xsl:when>
<xsl:when test="$_listOrderType = 15">Hits DESC,UpdateTime DESC,LogID DESC</xsl:when>
<xsl:when test="$_listOrderType = 16">EliteLevel DESC,UpdateTime DESC,LogID DESC</xsl:when>
<xsl:otherwise>UpdateTime DESC,LogID DESC</xsl:otherwise>
</xsl:choose>
</xsl:variable>
{PE.Label id="<xsl:value-of select="$_bindStyle"/>" <xsl:value-of select="$_params"/> queryCond="SELECT TOP <xsl:value-of select="$outputQty"/> * FROM PE_BG_log WHERE TitlePicUrl!='' AND State = 1 AND (IndexState = 2 OR ClassState = 2) <xsl:value-of select="$_constraint"/> ORDER BY <xsl:value-of select="$_listOrderValue"/>" page="false" /}
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<Version officialVersion="" modifiedVersions="2905" compatibleVersion="" />
</root>
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>@queryCond</LabelSqlString>
<attributes>
<name>titleLength</name>
<datatype>supersql</datatype>
<default>50</default>
<intro>项目标题长度,一个汉字占两个字节</intro>
</attributes>
<attributes>
<name>focusWidth</name>
<datatype>supersql</datatype>
<default>348</default>
<intro>焦点图宽度</intro>
</attributes>
<attributes>
<name>focusHeight</name>
<datatype>supersql</datatype>
<default>230</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:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
<xsl:param name="titleLength" />
<xsl:param name="focusWidth" />
<xsl:param name="focusHeight" />
<xsl:param name="queryCond" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(NewDataSet/Table) = 0">
<font style="color:red">还没有任何信息!</font>
</xsl:when>
<xsl:otherwise>
<script type="text/javascript">
var swf_width=<xsl:value-of select="$focusWidth"/>;
var swf_height=<xsl:value-of select="$focusHeight"/>;
var config = '0xFFFFFF|0x2|0099FF|15|0xFFFFFF|0x0099FF|0x000000|8|3|1|_blank';
var files = '<xsl:for-each select="/NewDataSet/Table">
<xsl:value-of select="pe:ConvertToAbsolutePath(TitlePicUrl)"/>
<xsl:if test="position() != last()">|</xsl:if>
</xsl:for-each>';
var links = '<xsl:for-each select="/NewDataSet/Table">
<xsl:value-of select="pe:InstallDir()"/>Blog/Item.aspx?LogId=<xsl:value-of select="LogID"/>^Id=<xsl:value-of select="BlogID"/>
<xsl:if test="position() != last()">|</xsl:if>
</xsl:for-each>';
var texts = '<xsl:for-each select="/NewDataSet/Table">
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(pe:ReplaceText(Title,'&quot;',''),$titleLength,'…')"/>
<xsl:if test="position() != last()">|</xsl:if>
</xsl:for-each>';
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + swf_width + '" height="' + swf_height + '">');
document.write('<param name="movie" value="{pe:SkinDir()}Blog/images/bcastr31.swf"/>');
document.write('<param name="quality" value="high"/>');
document.write('<param name="menu" value="false"/>');
document.write('<param name="wmode" value="opaque"/>');
document.write('<param name="FlashVars" value="bcastr_config=' + config + '&amp;bcastr_file=' + files + '&amp;bcastr_link=' + links + '&amp;bcastr_title=' + texts + '"/>');
document.write('<embed src="{pe:SkinDir()}Blog/images/bcastr31.swf" wmode="opaque" FlashVars="bcastr_config=' + config + '&amp;bcastr_file=' + files + '&amp;bcastr_link=' + links + '&amp;bcastr_title=' + texts + '" menu="false" quality="high" width="' + swf_width + '" height="' + swf_height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object>');
</script>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>queryCond</name>
<datatype>supersql</datatype>
<default>SELECT TOP 5 * FROM PE_CommonModel WHERE DefaultPicUrl != ''</default>
<intro>查询条件</intro>
</attributes>
<Version officialVersion="" modifiedVersions="2903" compatibleVersion="" />
</root>
@@ -0,0 +1,193 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>@queryCond</LabelSqlString>
<attributes>
<name>titleLength</name>
<datatype>supersql</datatype>
<default>50</default>
<intro>项目标题长度,一个汉字占两个字节</intro>
</attributes>
<attributes>
<name>focusWidth</name>
<datatype>supersql</datatype>
<default>348</default>
<intro>焦点图宽度</intro>
</attributes>
<attributes>
<name>focusHeight</name>
<datatype>supersql</datatype>
<default>160</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:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
<xsl:param name="titleLength" />
<xsl:param name="focusWidth" />
<xsl:param name="focusHeight" />
<xsl:param name="queryCond" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(NewDataSet/Table) = 0">
<font style="color:red">还没有任何信息!</font>
</xsl:when>
<xsl:otherwise>
<style type="text/css">
.texttitle { color: #C10001; }
.texttitle a:link { color: #C10001; text-decoration: none; }
.texttitle a:visited { color: #C10001; text-decoration: none; }
.texttitle a:hover { color: #C10001; text-decoration: underline; }
.texttitle a:active { color: #C10001; text-decoration: none; }
#imgTitle { filter: Alpha(opacity=70); left: 0px; overflow: hidden; position: relative; text-align: left; }
#imgTitle_up { left: 0px; height: 1px; text-align: left; }
#imgTitle_down { left: 0px; text-align: right; }
.imgClassBlog { border-right: #fff 1px solid; border-top: #fff 1px solid; border-left: #fff 1px solid; border-bottom: #fff 1px solid; }
#txtFrom { vertical-align: middle; padding-top: 2px; text-align: center; }
.button { padding-right: 7px; padding-left: 7px; background: #7b7b63; padding-bottom: 2px; margin: 0px; font: bold 9px sans-serif; border-left: #fff 1px solid; padding-top: 2px; text-decoration: none; }
a.button { color: #ffffff; font-family: sans-serif; background-color: #000000; text-decoration: none; }
a.button:link { color: #ffffff; font-family: sans-serif; background-color: #000000; text-decoration: none; }
a.button:visited { color: #ffffff; font-family: sans-serif; background-color: #000000; text-decoration: none; }
a.button:hover { background: #fff; color: #fff; font-family: sans-serif; text-decoration: none; }
.buttonDiv { background: #000000; float: left; vertical-align: middle; width: 21px; height: 1px; text-align: center; }
.trans { filter: progid:DXImageTransform.Microsoft.Alpha(startX=0, startY=0, finishX=100, finishY=100,style=1,opacity=0,finishOpacity=40); width: 90px; background-color: #000; }
</style>
<script type="text/javascript">
var imgWidth = <xsl:value-of select="$focusWidth" />;
var imgHeight = <xsl:value-of select="$focusHeight" />;
var textFromHeight = 21;
var textStyle = &quot;texttitle&quot;;
var textLinkStyle = &quot;texttitle&quot;;
var buttonLineOn = &quot;#f60&quot;;
var buttonLineOff = &quot;#000&quot;;
var BlogTimeOut = 5000;
var imgUrl = new Array();
var imgLink = new Array();
var imgtext = new Array();
var imgAlt = new Array();
var adNum = 0;
document.write('&lt;style type=&quot;text/css&quot;&gt;');
document.write('#focuseFrom{width:' + (imgWidth + 2) + ';margin: 0px; padding:0px;height:' + (imgHeight + textFromHeight) + 'px; overflow:hidden;}');
document.write('#txtFrom{height:' + textFromHeight + 'px;line-height:' + textFromHeight + 'px;width:' + imgWidth + 'px;overflow:hidden;}');
document.write('#imgTitle{width:' + imgWidth + ';top:-' + (textFromHeight + 14) + 'px;height:18px}');
document.write('&lt;/style&gt;');
document.write('&lt;div id=&quot;focuseFrom&quot;&gt;');
<xsl:for-each select="/NewDataSet/Table">
imgUrl[<xsl:value-of select="position()"/>] = '<xsl:value-of select="pe:ConvertToAbsolutePath(TitlePicUrl)"/>';
imgtext[<xsl:value-of select="position()"/>] = '&lt;a href=&quot;<xsl:value-of select="pe:InstallDir()"/>Blog/Item.aspx?LogId=<xsl:value-of select="LogID"/>&amp;Id=<xsl:value-of select="BlogID"/>&quot; target=&quot;_blank&quot; class=&quot;linkblack&quot;&gt;<xsl:value-of select="pe:CutText(pe:ReplaceText(Title,'&quot;',''),$titleLength,'…')"/>&lt;/a&gt;';
imgLink[<xsl:value-of select="position()"/>] = '<xsl:value-of select="pe:InstallDir()"/>Blog/Item.aspx?LogId=<xsl:value-of select="LogID"/>&amp;Id=<xsl:value-of select="BlogID"/>';
imgAlt[<xsl:value-of select="position()"/>] = '<xsl:value-of select="Title"/>';
</xsl:for-each>
var theTimer;
function changeimg(n){
adNum = n;
window.clearInterval(theTimer);
adNum = adNum - 1;
nextAd();
}
function goUrl(){
window.open(imgLink[adNum], '_blank');
}
if (navigator.appName == &quot;Netscape&quot;) {
document.write('&lt;style type=&quot;text/css&quot;&gt;');
document.write('.buttonDiv{height:4px;width:21px;}');
document.write('&lt;/style&gt;');
function nextAd(){
if (adNum &lt; (imgUrl.length - 1))
adNum++;
else
adNum = 1;
theTimer = setTimeout(&quot;nextAd()&quot;, BlogTimeOut);
document.images.imgInit.src = imgUrl[adNum];
document.images.imgInit.alt = imgAlt[adNum];
document.getElementById('focustext').innerHTML = imgtext[adNum];
document.getElementById('imgLink').href = imgLink[adNum];
}
document.write('&lt;a id=&quot;imgLink&quot; href=&quot;' + imgLink[1] + '&quot; target=_blank class=&quot;p1&quot;&gt;&lt;img src=&quot;' + imgUrl[1] + '&quot; name=&quot;imgInit&quot; width=' + imgWidth + ' height=' + imgHeight + ' border=1 alt=&quot;' + imgAlt[1] + '&quot; class=&quot;imgClassBlog&quot;&gt;&lt;/a&gt;&lt;div id=&quot;txtFrom&quot;&gt;&lt;span id=&quot;focustext&quot; class=&quot;' + textStyle + '&quot;&gt;' + imgtext[1] + '&lt;/span&gt;&lt;/div&gt;')
document.write('&lt;div id=&quot;imgTitle&quot;&gt;');
document.write('&lt;div id=&quot;imgTitle_down&quot;&gt;');
for (var i = 1; i &lt; imgUrl.length; i++) {
document.write('&lt;a href=&quot;javascript:changeimg(' + i + ')&quot; class=&quot;button&quot; style=&quot;cursor:hand&quot; title=&quot;' + imgAlt[i] + '&quot;&gt;' + i + '&lt;/a&gt;');
}
document.write('&lt;/div&gt;');
document.write('&lt;/div&gt;');
document.write('&lt;/div&gt;');
nextAd();
}
else {
var count = 0;
for (i = 1; i &lt; imgUrl.length; i++) {
if ((imgUrl[i] != &quot;&quot;) &amp;&amp; (imgLink[i] != &quot;&quot;) &amp;&amp; (imgtext[i] != &quot;&quot;) &amp;&amp; (imgAlt[i] != &quot;&quot;)) {
count++;
}
else {
break;
}
}
function playTran(){
if (document.all)
imgInit.filters.revealTrans.play();
}
var key = 0;
function nextAd(){
if (adNum &lt; count)
adNum++;
else
adNum = 1;
if (key == 0) {
key = 1;
}
else
if (document.all) {
imgInit.filters.revealTrans.Transition = 23;
imgInit.filters.revealTrans.apply();
playTran();
}
document.images.imgInit.src = imgUrl[adNum];
document.images.imgInit.alt = imgAlt[adNum];
document.getElementById('link' + adNum).style.background = buttonLineOn;
for (var i = 1; i &lt;= count; i++) {
if (i != adNum) {
document.getElementById('link' + i).style.background = buttonLineOff;
}
}
focustext.innerHTML = imgtext[adNum];
theTimer = setTimeout(&quot;nextAd()&quot;, BlogTimeOut);
}
document.write('&lt;a target=_self href=&quot;javascript:goUrl()&quot;&gt;&lt;img style=&quot;FILTER: revealTrans(duration=1,transition=5);&quot; src=&quot;javascript:nextAd()&quot; width=' + imgWidth + ' height=' + imgHeight + ' border=0 vspace=&quot;0&quot; name=imgInit class=&quot;imgClassBlog&quot;&gt;&lt;/a&gt;&lt;br&gt;');
document.write('&lt;div id=&quot;txtFrom&quot;&gt;&lt;span id=&quot;focustext&quot; class=&quot;' + textStyle + '&quot;&gt;&lt;/span&gt;&lt;/div&gt;');
document.write('&lt;div id=&quot;imgTitle&quot;&gt;');
document.write('&lt;div id=&quot;imgTitle_down&quot;&gt; &lt;a class=&quot;trans&quot;&gt;&lt;/a&gt;');
for (var i = 1; i &lt; imgUrl.length; i++) {
document.write('&lt;a id=&quot;link' + i + '&quot; href=&quot;javascript:changeimg(' + i + ')&quot; class=&quot;button&quot; style=&quot;cursor:hand&quot; title=&quot;' + imgAlt[i] + '&quot; onFocus=&quot;this.blur()&quot;&gt;' + i + '&lt;/a&gt;');
}
document.write('&lt;/div&gt;');
document.write('&lt;/div&gt;');
document.write('&lt;/div&gt;');
nextAd();
}
</script>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>queryCond</name>
<datatype>supersql</datatype>
<default>SELECT TOP 5 * FROM PE_CommonModel WHERE DefaultPicUrl != ''</default>
<intro>查询条件</intro>
</attributes>
<Version officialVersion="" modifiedVersions="2903" compatibleVersion="" />
</root>
@@ -0,0 +1,80 @@
<?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="2910" compatibleVersion="" />
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>
</default>
<intro>打开方式:默认为原窗口打开</intro>
</attributes>
<attributes>
<name>listOrderType</name>
<datatype>int</datatype>
<default>1</default>
<intro>排序方式:1排序ID排序、2按类别ID排序(升序)、3按类别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">
<xsl:param name="listOrderType" />
<xsl:output method="xml" />
<xsl:template match="/">
<root>
<sql>
SELECT TOP @outputQty * FROM PE_BG_Category
<xsl:choose>
<xsl:when test="$listOrderType=1"> ORDER BY OrderID ASC</xsl:when>
<xsl:when test="$listOrderType=2"> ORDER BY CategoryID ASC</xsl:when>
<xsl:when test="$listOrderType=3"> ORDER BY CategoryID DESC</xsl:when>
<xsl:otherwise> ORDER BY OrderID ASC</xsl:otherwise>
</xsl:choose>
</sql>
<sqlpage>
</sqlpage>
<countsql>
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></LabelSqlString>
<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="linkOpenType" />
<xsl:param name="titleLength" />
<xsl:param name="categoryId" />
<xsl:output method="html" />
<xsl:template match="/">
<a href="{pe:InstallDir()}Blog/index.aspx">博客首页</a>
<xsl:for-each select="/NewDataSet/Table">
<a href="{pe:InstallDir()}Blog/Category.aspx?categoryId={CategoryID}" target="{$linkOpenType}">
<xsl:value-of select="pe:CutText(CategoryName,$titleLength,'')"/>
</a>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>outputQty</name>
<datatype>supersql</datatype>
<default>15</default>
<intro>显示栏目数</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>8</default>
<intro>标题长度</intro>
</attributes>
<attributes>
<name>categoryId</name>
<datatype>int</datatype>
<default>0</default>
<intro>栏目ID:默认为博客首页</intro>
</attributes>
</root>
@@ -0,0 +1,356 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2911" compatibleVersion="" />
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>10</default>
<intro>标题长度</intro>
</attributes>
<IsXsltSql>true</IsXsltSql>
<IsXsltCountSql>true</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:param name="isElite" />
<xsl:param name="categoryId"/>
<xsl:param name="listOrderType"/>
<xsl:param name="isIndex"/>
<xsl:param name="isCategory"/>
<xsl:template match="/">
<!--请按提示编辑,保持该模板结构的正确性-->
<root>
<xsl:variable name="filter">
<xsl:choose>
<xsl:when test="$categoryId!=0">
State=1 AND TitlePicUrl &lt;&gt;'''' AND CategoryID=@categoryId
<xsl:if test="$isElite='true'">
AND EliteLevel>0
</xsl:if>
</xsl:when>
<xsl:otherwise>
State=1 AND TitlePicUrl &lt;&gt;''''
<xsl:if test="$isElite='true'">
AND EliteLevel>0
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="order">
<xsl:choose>
<xsl:when test="$listOrderType!=''">
<!--推荐等级降序-->
<xsl:if test="$listOrderType=1">EliteLevel DESC,LogID DESC</xsl:if>
<!--推荐等级升序-->
<xsl:if test="$listOrderType=2">EliteLevel ASC,LogID DESC</xsl:if>
<!--博文ID降序-->
<xsl:if test="$listOrderType=3">LogID DESC</xsl:if>
<!--博文ID升序-->
<xsl:if test="$listOrderType=4">LogID ASC</xsl:if>
<!--更新时间降序-->
<xsl:if test="$listOrderType=5">UpdateTime DESC,LogID DESC</xsl:if>
<!--更新时间升序-->
<xsl:if test="$listOrderType=6">UpdateTime ASC,LogID DESC</xsl:if>
<!--点击数降序-->
<xsl:if test="$listOrderType=7">Hits DESC,LogID DESC</xsl:if>
<!--点击数升序-->
<xsl:if test="$listOrderType=8">Hits ASC,LogID DESC</xsl:if>
<!--月点击数降序-->
<xsl:if test="$listOrderType=9">MonthHits DESC,LogID DESC</xsl:if>
<!--月点击数升序-->
<xsl:if test="$listOrderType=10">MonthHits ASC,LogID DESC</xsl:if>
<!--周点击数降序-->
<xsl:if test="$listOrderType=11">WeekHits DESC,LogID DESC</xsl:if>
<!--周点击数升序-->
<xsl:if test="$listOrderType=12">WeekHits ASC,LogID DESC</xsl:if>
<!--日点击数降序-->
<xsl:if test="$listOrderType=13">DayHits DESC,LogID DESC</xsl:if>
<!--日点击数升序-->
<xsl:if test="$listOrderType=14">DayHits ASC,LogID DESC</xsl:if>
</xsl:when>
<xsl:otherwise>LogID DESC</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<sql>
EXEC [dbo].[PR_Common_PagingLarge] 'PE_BG_Log','LogID','*',@pagesize,@startrow ,'<xsl:value-of select="$filter"/>','','<xsl:value-of select="$order"/>'
</sql>
<sqlpage>
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</sqlpage>
<countsql>
<xsl:choose>
<xsl:when test="$isElite='true'">
<xsl:choose>
<xsl:when test="$categoryId!=0">
SELECT count(LogID) FROM PE_BG_log WHERE State=1 AND TitlePicUrl &lt;&gt;'' AND EliteLevel>0 AND CategoryID=<xsl:value-of select="$categoryId"/>
</xsl:when>
<xsl:otherwise>
SELECT count(LogID) FROM PE_BG_log WHERE State=1 AND TitlePicUrl &lt;&gt;'' AND EliteLevel>0
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$categoryId!=0">
SELECT count(LogID) FROM PE_BG_log WHERE State=1 AND TitlePicUrl &lt;&gt;'' AND CategoryID=<xsl:value-of select="$categoryId"/>
</xsl:when>
<xsl:otherwise>
SELECT count(LogID) FROM PE_BG_log WHERE State=1 AND TitlePicUrl &lt;&gt;''
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></LabelSqlString>
<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="titleLength" />
<xsl:param name="contentLength" />
<xsl:param name="linkOpenType" />
<xsl:param name="listOrderType" />
<xsl:param name="ouputQty" />
<xsl:param name="imageLinkStyle" />
<xsl:param name="displayTitle" />
<xsl:param name="displayContent"/>
<xsl:param name="isLinkTitle"/>
<xsl:param name="isList"/>
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="$isList='true'">
<li>
<a>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:if test="$imageLinkStyle!=''">
<xsl:attribute name="class">pic</xsl:attribute>
</xsl:if>
<img>
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="TitlePicUrl!= ''"><xsl:value-of select="pe:ConvertToAbsolutePath(TitlePicUrl)"/></xsl:when>
<xsl:otherwise><xsl:value-of select="pe:SkinDir()"/>Blog/images/nopic.png</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="Title"/>
</xsl:attribute>
</img>
</a>
<xsl:if test="$displayTitle='true'">
<strong>
<xsl:choose>
<xsl:when test="$isLinkTitle='true'">
<a>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'...')"/>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'...')"/>
</xsl:otherwise>
</xsl:choose>
</strong>
</xsl:if>
<xsl:if test="$displayContent='true'">
<p>
<xsl:value-of select=" pe:CutText(pe:RemoveHtml(Content),$contentLength,'...')"/>
<a class="readDetail">
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
[全文]</a>
</p>
</xsl:if>
</li>
</xsl:when>
<xsl:otherwise>
<a>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:if test="$imageLinkStyle!=''">
<xsl:attribute name="class">pic</xsl:attribute>
</xsl:if>
<img>
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="TitlePicUrl!= ''"><xsl:value-of select="pe:ConvertToAbsolutePath(TitlePicUrl)"/></xsl:when>
<xsl:otherwise><xsl:value-of select="pe:SkinDir()"/>Blog/images/nopic.png</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="Title"/>
</xsl:attribute>
</img>
</a>
<xsl:if test="$displayTitle='true'">
<h4>
<xsl:choose>
<xsl:when test="$isLinkTitle='true'">
<a>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'...')"/>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'...')"/>
</xsl:otherwise>
</xsl:choose>
</h4>
</xsl:if>
<xsl:if test="$displayContent='true'">
<p>
<xsl:value-of select=" pe:CutText(pe:RemoveHtml(Content),$contentLength,'...')"/>
<a class="readDetail">
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
[全文]
</a>
</p>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>contentLength</name>
<datatype>int</datatype>
<default>50</default>
<intro>内容长度</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>_blank</default>
<intro>链接打开方式</intro>
</attributes>
<attributes>
<name>listOrderType</name>
<datatype>int</datatype>
<default>1</default>
<intro>排序类型</intro>
</attributes>
<attributes>
<name>ouputQty</name>
<datatype>sql.int</datatype>
<default>10</default>
<intro>输出数量</intro>
</attributes>
<attributes>
<name>imageLinkStyle</name>
<datatype>string</datatype>
<default>pic</default>
<intro>图片链接样式</intro>
</attributes>
<attributes>
<name>displayTitle</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否显示标题</intro>
</attributes>
<attributes>
<name>displayContent</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否显示内容</intro>
</attributes>
<attributes>
<name>isList</name>
<datatype>bool</datatype>
<default>false</default>
<intro>是否列表形式</intro>
</attributes>
<attributes>
<name>isLinkTitle</name>
<datatype>bool</datatype>
<default>false</default>
<intro>开启标题链接</intro>
</attributes>
<attributes>
<name>categoryId</name>
<datatype>sql.int</datatype>
<default>
</default>
<intro>分类ID</intro>
</attributes>
<attributes>
<name>imageWidth</name>
<datatype>int</datatype>
<default>
</default>
<intro>图片宽度</intro>
</attributes>
<attributes>
<name>imageHeight</name>
<datatype>int</datatype>
<default>
</default>
<intro>图片高度</intro>
</attributes>
<UsePage>True</UsePage>
<LabelSqlCount><![CDATA[请在上面的<countsql></countsql>标记之间写分页SQL查询语句
select count(id) from database]]></LabelSqlCount>
<LabelSqlPage>
</LabelSqlPage>
</root>
@@ -0,0 +1,105 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2903" compatibleVersion="" />
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>_blank</default>
<intro>打开方式:默认为新窗口打开</intro>
</attributes>
<attributes>
<name>outputQty</name>
<datatype>supersql</datatype>
<default>16</default>
<intro>输出数量</intro>
</attributes>
<attributes>
<name>imageQty</name>
<datatype>int</datatype>
<default>4</default>
<intro>显示图片数量</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>10</default>
<intro>标题长度</intro>
</attributes>
<attributes>
<name>imageWidth</name>
<datatype>int</datatype>
<default>70</default>
<intro>图片宽度</intro>
</attributes>
<attributes>
<name>imageHeight</name>
<datatype>int</datatype>
<default>70</default>
<intro>图片高度</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP @outputQty PE_BG_Blog.* FROM PE_BG_Blog WHERE State = 1 ORDER BY EliteLevel DESC</LabelSqlString>
<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="linkOpenType" />
<xsl:param name="outputQty" />
<xsl:param name="imageQty" />
<xsl:param name="titleLength" />
<xsl:param name="imageWidth" />
<xsl:param name="imageHeight" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table)=0">暂无访客信息!</xsl:when>
<xsl:otherwise>
<ul class="thumbList clearFloat">
<xsl:for-each select="/NewDataSet/Table">
<xsl:if test="position()&lt;=$imageQty">
<li>
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BlogID}" target="{$linkOpenType}" title="{BlogName}" class="pic">
<xsl:element name="img"> <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="width"> <xsl:value-of select="$imageWidth"/></xsl:attribute>
<xsl:attribute name="height"><xsl:value-of select="$imageHeight"/></xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="BlogName"/></xsl:attribute><xsl:attribute name="title"><xsl:value-of select="BlogName"/></xsl:attribute> </xsl:element>
</a>
<h4>
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BlogID}" target="{$linkOpenType}" title="{BlogName}">
<xsl:value-of select="pe:CutText(BlogName,$titleLength,'')"/>
</a>
</h4>
</li>
</xsl:if>
</xsl:for-each>
</ul>
<xsl:if test="count(/NewDataSet/Table)&gt;$imageQty">
<ul class="textList clearFloat">
<xsl:for-each select="/NewDataSet/Table">
<xsl:if test="position()&gt;$imageQty">
<li>
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BlogID}" target="{$linkOpenType}" title="{BlogName}">
<xsl:value-of select="pe:CutText(BlogName,$titleLength,'')"/>
</a>
</li>
</xsl:if>
</xsl:for-each>
</ul>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2900" compatibleVersion="" />
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>_blank</default>
<intro>打开方式:默认为新窗口打开</intro>
</attributes>
<attributes>
<name>outputQty</name>
<datatype>supersql</datatype>
<default>16</default>
<intro>输出数量</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>20</default>
<intro>标题长度</intro>
</attributes>
<attributes>
<name>imageWidth</name>
<datatype>int</datatype>
<default>72</default>
<intro>图片宽度</intro>
</attributes>
<attributes>
<name>imageHeight</name>
<datatype>int</datatype>
<default>54</default>
<intro>图片高度</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP @outputQty PE_BG_Blog.* FROM PE_BG_Blog WHERE State = 1 ORDER BY CreateTime DESC</LabelSqlString>
<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="linkOpenType" />
<xsl:param name="outputQty" />
<xsl:param name="titleLength" />
<xsl:param name="imageWidth" />
<xsl:param name="imageHeight" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table)=0">暂无访客信息!</xsl:when>
<xsl:otherwise>
<div class="imgText">
<xsl:for-each select="/NewDataSet/Table">
<xsl:if test="position()=1">
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BlogID}" title="{BlogName}" class="pic">
<img alt="{BlogName}" title="{BlogName}">
<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>
</img>
</a>
</xsl:if>
</xsl:for-each>
<ul>
<xsl:for-each select="/NewDataSet/Table">
<xsl:if test="position()&lt;5">
<li><a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BlogID}" title="{BlogName}"><xsl:value-of select="pe:CutText(BlogName,$titleLength,'')"/></a></li>
</xsl:if>
</xsl:for-each>
</ul>
</div>
<ul class="textList clearFloat">
<xsl:for-each select="/NewDataSet/Table">
<xsl:if test="position()>4">
<li><a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BlogID}" title="{BlogName}"><xsl:value-of select="pe:CutText(BlogName,$titleLength,'')"/></a></li>
</xsl:if>
</xsl:for-each>
</ul>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,121 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2919" compatibleVersion="" />
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>_blank</default>
<intro>打开方式:默认为新窗口打开</intro>
</attributes>
<attributes>
<name>listOrderType</name>
<datatype>int</datatype>
<default>1</default>
<intro>排序方式:1按推荐级降序、2按博客ID升序、3按博客ID降序、4按创建时间升序、5按创建时间降序</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">
<xsl:param name="listOrderType" />
<xsl:output method="xml" />
<xsl:template match="/">
<root>
<xsl:variable name="order"><xsl:choose>
<xsl:when test="$listOrderType!=''">
<xsl:if test="$listOrderType=1">EliteLevel DESC,BlogID DESC</xsl:if>
<xsl:if test="$listOrderType=2">BlogID ASC</xsl:if>
<xsl:if test="$listOrderType=3">BlogID DESC</xsl:if>
<xsl:if test="$listOrderType=4">CreateTime ASC</xsl:if>
<xsl:if test="$listOrderType=5">CreateTime DESC</xsl:if></xsl:when>
<xsl:otherwise>BlogID DESC</xsl:otherwise></xsl:choose></xsl:variable>
<sql>
EXEC [dbo].[PR_Common_PagingLarge] 'PE_BG_Blog','BlogID','*',@pagesize,@startrow ,'State = 1','','<xsl:value-of select="$order"/>'
</sql>
<sqlpage>
</sqlpage>
<countsql>
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></LabelSqlString>
<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="linkOpenType" />
<xsl:param name="blogNameLength" />
<xsl:param name="nickNameLength" />
<xsl:param name="introLength" />
<xsl:param name="imageWidth" />
<xsl:param name="imageHeight" />
<xsl:variable name="countnum" select="count(/NewDataSet/Table)"/>
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose><xsl:when test="$countnum = 0">暂时没有信息!</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<li>
<xsl:if test="(position() = $countnum)and(position() mod 3 !=0)">
<xsl:attribute name="class">lastOne</xsl:attribute>
</xsl:if>
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BlogID}" target="{$linkOpenType}" title="{BlogName}" class="pic">
<img alt="{BlogName}" title="{BlogName}" width="{$imageWidth}" height="{$imageHeight}" target="{$linkOpenType}">
<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>
</img></a>
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BlogID}" target="{$linkOpenType}" title="{BlogName}"><h4><xsl:value-of select="pe:CutText(Nickname,$nickNameLength,'')"/></h4></a>
<p><xsl:value-of select="pe:CutText(Intro,$introLength,'')"/></p>
</li>
</xsl:for-each>
</xsl:otherwise></xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>blogNameLength</name>
<datatype>int</datatype>
<default>10</default>
<intro>博客名称长度</intro>
</attributes>
<attributes>
<name>nickNameLength</name>
<datatype>string</datatype>
<default>18</default>
<intro>昵称名称长度</intro>
</attributes>
<attributes>
<name>imageWidth</name>
<datatype>int</datatype>
<default>54</default>
<intro>图片宽度</intro>
</attributes>
<attributes>
<name>imageHeight</name>
<datatype>int</datatype>
<default>54</default>
<intro>图片高度</intro>
</attributes>
<UsePage>True</UsePage>
<LabelSqlCount>SELECT COUNT(BlogID) FROM PE_BG_Blog WHERE State = 1</LabelSqlCount>
<LabelSqlPage>
</LabelSqlPage>
<attributes>
<name>introLength</name>
<datatype>int</datatype>
<default>60</default>
<intro>自我介绍长度</intro>
</attributes>
</root>
@@ -0,0 +1,159 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>True</EnabelAjax>
<Version officialVersion="" modifiedVersions="2526" compatibleVersion="" />
<attributes>
<name>logID</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>博文ID</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:param name="logID" />
<xsl:param name="userName" />
<xsl:param name="type" />
<xsl:param name="blogId" />
<xsl:param name="recyle" />
<xsl:variable name="IsBlogOwner" select="pe:LoginedUserName()=$userName"/>
<xsl:output method="html" />
<xsl:template match="/">
<xsl:if test="$IsBlogOwner = 'true'">
<xsl:choose>
<xsl:when test="$type=0">
[<a><xsl:attribute name="href">
{PE.SiteConfig.ApplicationPath/}Blog/Log.aspx?id=<xsl:value-of select="$blogId" />&amp;Action=modify&amp;LogId=<xsl:value-of select="$logID" />
</xsl:attribute>编辑</a>]
[<a><xsl:attribute name="href">javascript:DeleteLog('<xsl:value-of select="$logID" />','<xsl:value-of select="$blogId" />');</xsl:attribute>
<xsl:attribute name="onclick">return confirm("删除的博文将被放入回收站,确定要删除此博文吗?");</xsl:attribute>删除</a>]
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$type=1">
[<a><xsl:attribute name="href">
{PE.SiteConfig.ApplicationPath/}Blog/Log.aspx?id=<xsl:value-of select="$blogId" />&amp;Action=modify&amp;LogId=<xsl:value-of select="$logID" />
</xsl:attribute>编辑</a>]
[<a><xsl:attribute name="href">
javascript:Delete('<xsl:value-of select="$logID" />','<xsl:value-of select="$blogId" />');
</xsl:attribute>
<xsl:attribute name="onclick">
return confirm("确实要删除此草稿吗?删除后不可恢复。");
</xsl:attribute>彻底删除</a>]
</xsl:when>
<xsl:otherwise>
<xsl:if test="$type=2">
[<a href="javascript:;">
<xsl:attribute name="onclick">Restore('<xsl:value-of select="$logID" />','<xsl:value-of select="$blogId" />');</xsl:attribute>还原</a>]
[<a href="javascript:;">
<xsl:attribute name="onclick">
if(confirm("确定要彻底删除此博文吗?")){Delete('<xsl:value-of select="$logID" />','<xsl:value-of select="$blogId" />')};
</xsl:attribute>彻底删除</a>]
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
<script language="javascript" type="text/javascript">
function DeleteLog(id,blogID){
var x = new AjaxRequest('XML', '');
x.para = ['logID='+id,'blogID='+blogID];
x.post('deletelog', '{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") {
if(<xsl:value-of select="$recyle" />==false){
window.location.href="{PE.SiteConfig.ApplicationPath/}Blog/UserIndex.aspx?id="+blogID;
}else{
window.location.reload();
}
}
else {
ShowBlogMessage("error","删除博文失败!","");
}
});
}
function Restore(id,blogID){
var x = new AjaxRequest('XML', '');
x.para = ['logID='+id,'blogID='+blogID];
x.post('Restore', '{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") {
if(<xsl:value-of select="$recyle" />==false){
window.location.href="{PE.SiteConfig.ApplicationPath/}Blog/UserIndex.aspx?id="+blogID;
}
else{
window.location.reload();
}
}
else {
ShowBlogMessage("error","还原失败!","");
}
});
}
function Delete(id,blogID){
var x = new AjaxRequest('XML', '');
x.para = ['logID='+id,'blogID='+blogID];
x.post('Delete', '{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") {
if(<xsl:value-of select="$recyle" />==false){
window.location.href="{PE.SiteConfig.ApplicationPath/}Blog/UserIndex.aspx?id="+blogID;
}
else{
window.location.reload();
}
}
else {
ShowBlogMessage("error","删除博文失败!","");
}
});
}
</script>
</xsl:if>
</xsl:template>
</xsl:transform>
]]></LabelTemplate>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>
</LabelSqlString>
<attributes>
<name>userName</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>博文用户名</intro>
</attributes>
<attributes>
<name>type</name>
<datatype>int</datatype>
<default>
</default>
<intro>类型</intro>
</attributes>
<attributes>
<name>blogId</name>
<datatype>int</datatype>
<default>0</default>
<intro>博客ID</intro>
</attributes>
<attributes>
<name>recyle</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否为回收站</intro>
</attributes>
</root>
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2900" compatibleVersion="" />
<attributes>
<name>userName</name>
<datatype>string</datatype>
<default>
</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:param name="userName"/>
<xsl:output method="html" />
<xsl:template match="/">
<xsl:if test="$userName=pe:LoginedUserName()">
<span>
<xsl:attribute name="onclick">ShowEdit('maskEdit','EditSet_box')</xsl:attribute>
<xsl:attribute name="style">cursor: pointer</xsl:attribute>
<a>
<xsl:attribute name="href">
</xsl:attribute>
<xsl:attribute name="title">
</xsl:attribute>
</a>
[<a>
<xsl:attribute name="href">javascript:;</xsl:attribute>编辑</a>]
</span>
</xsl:if>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
</root>
@@ -0,0 +1,121 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>True</EnabelAjax>
<Version officialVersion="" modifiedVersions="2909" compatibleVersion="" />
<attributes>
<name>userName</name>
<datatype>supersql</datatype>
<default>
</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:param name="userName"/>
<xsl:param name="inLabel"/>
<xsl:output method="html" />
<xsl:template match="/">
<xsl:if test="$userName=pe:LoginedUserName()">
<script type="text/javascript">
function ShowEdit(me,eb) {
ShowPopup(me,eb);
document.getElementById("m_title").value=document.getElementById('blogname').innerHTML;
}
function UpdateBlogName(namevalue){
if(namevalue.length&lt;1)
{
ShowBlogMessage("warn","请输入博客名称","");
}
else
{
var x = new AjaxRequest('XML', '');
x.para = ['BlogName='+namevalue];
x.post('updateBlogName', '{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") {
document.getElementById('blogname').innerHTML = document.getElementById("m_title").value;
ClosePopup('maskEdit','EditSet_box');
}
else {
ShowBlogMessage("error","更新博客名称失败!","");
}
});
}
}
function check(value)
{
var len = 0 ;
var maxlen = 0 ;
for(i=0;i&lt;value.length;i++)
{
if(value.charCodeAt(i) > 256)
{
len += 2;
}
else
{
len++;
}
if(len &lt;=50)
{
maxlen = i ;
}
}
if(len>50)
{
document.getElementById("m_title").value = value.substring(0,maxlen+1);
}
}
</script>
<div id="EditSet_box" class="content_box" style="width:450px;left:400px">
<div class="content_title">
<div class="ctLeft" style="width:85%;" onmousedown="MDown('EditSet_box')">
编辑博客名称
</div>
<span class="ctRight" onclick="ClosePopup('maskEdit','EditSet_box')" title="关闭">
</span>
</div>
<div id="Editbox_Content">
<div style="line-height: 25px; margin-top: 30px; margin-left: 25px;">
<p id="m_message">
<span style="color: red;">提示:</span>
25个中文或50个字符以内。
</p>
<div id="input_name" style="position:relative;">
<input id="m_title" onkeyup="check(this.value)" class="input_bor" type="text" size="29"/>
<a id="m_save" class="CP_a_btn2" onclick="UpdateBlogName(document.getElementById('m_title').value)" style="position:absolute;right:70px;top:0px;">
<cite>保存</cite>
</a>
<a id="m_cancel" class="CP_a_btn2" onclick="ClosePopup('maskEdit','EditSet_box')" style="position:absolute;right:10px;">
<cite>取消</cite>
</a>
</div>
</div>
</div>
</div>
<div id="maskEdit" class="mask">
</div>
<xsl:if test="$inLabel= 'false'">
<span onclick="ShowEdit('maskEdit','EditSet_box')" style="cursor: pointer">
[<a href="javascript:;">编辑</a>]
</span>
</xsl:if>
</xsl:if>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>inLabel</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否包含在另一个标签里</intro>
</attributes>
</root>
@@ -0,0 +1,353 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2908" compatibleVersion="" />
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>10</default>
<intro>标题长度</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:param name="isElite" />
<xsl:param name="categoryId"/>
<xsl:param name="listOrderType"/>
<xsl:param name="isIndex"/>
<xsl:param name="isCategory"/>
<xsl:template match="/">
<!--请按提示编辑,保持该模板结构的正确性-->
<root>
<sql>
SELECT TOP @ouputQty PE_BG_log.* FROM PE_BG_log WHERE State=1 AND TitlePicUrl &lt;&gt;''
<xsl:if test="$isIndex='true'">
AND IndexState=2
</xsl:if>
<xsl:if test="$isCategory='true'">
AND ClassState=2
</xsl:if>
<xsl:choose>
<xsl:when test="$isElite='true'">
AND EliteLevel>0
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="$categoryId!=''">
AND CategoryID=<xsl:value-of select="$categoryId"/>
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$listOrderType!=''">
<!--推荐等级降序-->
<xsl:if test="$listOrderType=1">
ORDER BY EliteLevel DESC
</xsl:if>
<!--推荐等级升序-->
<xsl:if test="$listOrderType=2">
ORDER BY EliteLevel ASC
</xsl:if>
<!--博文ID降序-->
<xsl:if test="$listOrderType=3">
ORDER BY LogID DESC
</xsl:if>
<!--博文ID升序-->
<xsl:if test="$listOrderType=4">
ORDER BY LogID ASC
</xsl:if>
<!--更新时间降序-->
<xsl:if test="$listOrderType=5">
ORDER BY UpdateTime DESC
</xsl:if>
<!--更新时间升序-->
<xsl:if test="$listOrderType=6">
ORDER BY UpdateTime ASC
</xsl:if>
<!--点击数降序-->
<xsl:if test="$listOrderType=7">
ORDER BY Hits DESC
</xsl:if>
<!--点击数升序-->
<xsl:if test="$listOrderType=8">
ORDER BY Hits ASC
</xsl:if>
<!--月点击数降序-->
<xsl:if test="$listOrderType=9">
ORDER BY MonthHits DESC
</xsl:if>
<!--月点击数升序-->
<xsl:if test="$listOrderType=10">
ORDER BY MonthHits ASC
</xsl:if>
<!--周点击数降序-->
<xsl:if test="$listOrderType=11">
ORDER BY WeekHits DESC
</xsl:if>
<!--周点击数升序-->
<xsl:if test="$listOrderType=12">
ORDER BY WeekHits ASC
</xsl:if>
<!--日点击数降序-->
<xsl:if test="$listOrderType=13">
ORDER BY DayHits DESC
</xsl:if>
<!--日点击数升序-->
<xsl:if test="$listOrderType=14">
ORDER BY DayHits ASC
</xsl:if>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</sql>
<sqlpage>
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</sqlpage>
<countsql>
<!--请在这里编写你的分页SQL语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></LabelSqlString>
<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="titleLength" />
<xsl:param name="contentLength" />
<xsl:param name="linkOpenType" />
<xsl:param name="listOrderType" />
<xsl:param name="ouputQty" />
<xsl:param name="imageLinkStyle" />
<xsl:param name="displayTitle" />
<xsl:param name="displayContent"/>
<xsl:param name="isLinkTitle"/>
<xsl:param name="isList"/>
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="$isList='true'">
<li>
<a>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:if test="$imageLinkStyle!=''">
<xsl:attribute name="class">pic</xsl:attribute>
</xsl:if>
<img>
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="TitlePicUrl!= ''"><xsl:value-of select="pe:ConvertToAbsolutePath(TitlePicUrl)"/></xsl:when>
<xsl:otherwise><xsl:value-of select="pe:SkinDir()"/>Blog/images/nopic.png</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="Title"/>
</xsl:attribute>
</img>
</a>
<xsl:if test="$displayTitle='true'">
<h4>
<xsl:choose>
<xsl:when test="$isLinkTitle='true'">
<a>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'...')"/>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'...')"/>
</xsl:otherwise>
</xsl:choose>
</h4>
</xsl:if>
<xsl:if test="$displayContent='true'">
<p>
<xsl:value-of select=" pe:CutText(pe:RemoveHtml(Content),$contentLength,'...')"/>
<a class="readDetail">
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
[全文]</a>
</p>
</xsl:if>
</li>
</xsl:when>
<xsl:otherwise>
<a>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:if test="$imageLinkStyle!=''">
<xsl:attribute name="class">pic</xsl:attribute>
</xsl:if>
<img>
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="TitlePicUrl!= ''"><xsl:value-of select="pe:ConvertToAbsolutePath(TitlePicUrl)"/></xsl:when>
<xsl:otherwise><xsl:value-of select="pe:SkinDir()"/>Blog/images/nopic.png</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="Title"/>
</xsl:attribute>
</img>
</a>
<xsl:if test="$displayTitle='true'">
<h4>
<xsl:choose>
<xsl:when test="$isLinkTitle='true'">
<a>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'...')"/>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'...')"/>
</xsl:otherwise>
</xsl:choose>
</h4>
</xsl:if>
<xsl:if test="$displayContent='true'">
<p>
<xsl:value-of select=" pe:CutText(pe:RemoveHtml(Content),$contentLength,'...')"/>
<a class="readDetail">
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
[全文]
</a>
</p>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>contentLength</name>
<datatype>int</datatype>
<default>50</default>
<intro>内容长度</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>_blank</default>
<intro>链接打开方式</intro>
</attributes>
<attributes>
<name>listOrderType</name>
<datatype>int</datatype>
<default>1</default>
<intro>排序类型</intro>
</attributes>
<attributes>
<name>ouputQty</name>
<datatype>sql.int</datatype>
<default>10</default>
<intro>输出数量</intro>
</attributes>
<attributes>
<name>imageLinkStyle</name>
<datatype>string</datatype>
<default>pic</default>
<intro>图片链接样式</intro>
</attributes>
<attributes>
<name>displayTitle</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否显示标题</intro>
</attributes>
<attributes>
<name>displayContent</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否显示内容</intro>
</attributes>
<attributes>
<name>isList</name>
<datatype>bool</datatype>
<default>false</default>
<intro>是否列表形式</intro>
</attributes>
<attributes>
<name>isLinkTitle</name>
<datatype>bool</datatype>
<default>false</default>
<intro>开启标题链接</intro>
</attributes>
<attributes>
<name>categoryId</name>
<datatype>sql.int</datatype>
<default>
</default>
<intro>分类ID</intro>
</attributes>
<attributes>
<name>isIndex</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否只显示推荐首页博文</intro>
</attributes>
<attributes>
<name>isCategory</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否只显示推荐分类博文</intro>
</attributes>
</root>
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2900" compatibleVersion="" />
<LabelTemplate>
<![CDATA[
<div id="blog_box" class="content_box" style="width:400px;">
<div class="content_title">
<div class="ctLeft" onmousedown="MDown('blog_box')" style="width:85%;">
博客开通
</div>
<span class="ctRight" onclick="ClosePopup('maskBlog','blog_box')" title="关闭">
</span>
</div>
<div class="content_content">
<div class="blogRegister">
<div class="blogrowA">
<span>博客名称 </span>
<input id="TxtBlogName" tabIndex="1" type="text" size="25"/>
</div>
<div class="blogrowA">
<span>博客昵称 </span>
<input id="TxtNickName" type="text" tabIndex="2" size="25" maxlength="16"/>
</div>
<div class="blogrowA">
<span class="left_intro">自我介绍 </span><span class="left_desc">100字以内</span>
<textarea id="TxtIntro" type="text" tabIndex="3" class="right_content" maxlength="255"></textarea>
</div>
<div class="blogrowB">
<p style="margin-top: 8px;">
<input type="submit" class="lbutton" value=" 开通 " onclick="RegisterBlog()"/>
</p>
</div>
</div>
</div>
</div>
<script>
function RegisterBlog(id){
var tarBlogName = document.getElementById("TxtBlogName");
var tarNickName = document.getElementById("TxtNickName");
var tarIntro = document.getElementById("TxtIntro");
if (tarBlogName.value == '') {
ShowBlogMessage("warn","请填写博客名称!","");
return;
}
if (tarNickName.value == '') {
ShowBlogMessage("warn","请填写博客昵称!","");
return;
}
if (tarIntro.value.length >= 100) {
ShowBlogMessage("error","自我介绍过长,请填写少于100字的自我介绍!","");
return;
}
var x = new AjaxRequest('XML', '');
x.para = ['blogName='+tarBlogName.value,'nickName='+tarNickName.value,'intro='+tarIntro.value];
x.post('addblog', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=BlogAjaxHandler', function(s){
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
switch (status) {
case "ok":
var result = xml.getElementsByTagName("result")[0].firstChild.data;
if(result=="pass"){
ShowBlogMessage("success","开通成功!","");
}
else{
ShowBlogMessage("success","开通成功,请等待管理审核!","");
}
ClosePopup("maskBlog","blog_box");
CheckBlogIsLogin();
break;
case "-1":
ShowBlogMessage("error","请先登录!","");
ClosePopup("maskBlog","blog_box");
break;
case "-2":
ShowBlogMessage("error","您还没有开通博客的权限!","");
ClosePopup("maskBlog","blog_box");
break;
case "err":
var errorMessage = xml.getElementsByTagName("body")[0].firstChild.data;
ShowBlogMessage("error",errorMessage,"");
break;
}
});
tarBlogName.value="";
tarNickName.value="";
tarIntro.value="";
}
</script>
]]></LabelTemplate>
</root>
@@ -0,0 +1,132 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2901" compatibleVersion="" />
<LabelTemplate>
<![CDATA[<script>
var Obj = '', x, y,pX,pY;
var isIE = document.all; //IE true;
function MDown(id) {
var tarEle = document.getElementById(id);
Obj = id;
var objEvent = getEvent();
if (isIE) {
document.all(Obj).setCapture();
}
x = isIE ? objEvent.x :objEvent.pageX ;
y = isIE ? objEvent.y :objEvent.pageY ;
pX = x - tarEle.offsetLeft;
pY = y - tarEle.offsetTop;
}
function MMove() {
if (Obj != '') {
var objEvent = getEvent();
var objDoc = document.getElementById(Obj);
x = isIE ? objEvent.x : objEvent.pageX;
y = isIE ? objEvent.y : objEvent.pageY;
objDoc.style.left = x - pX + "px";
objDoc.style.top = y - pY + "px";
}
}
function MUp() {
if (Obj != '') {
if (isIE) {
document.all(Obj).releaseCapture();
}
Obj = '';
}
}
function getEvent() { //同时兼容ie和ff的写法
if (isIE) return window.event;
func = getEvent.caller;
while (func != null) {
var arg0 = func.arguments[0];
if (arg0) {
if ((arg0.constructor == Event || arg0.constructor == MouseEvent)
|| (typeof (arg0) == "object" && arg0.preventDefault && arg0.stopPropagation)) {
return arg0;
}
}
func = func.caller;
}
return null;
}
document.onmouseup = MUp;
document.onmousemove = MMove;
//创建遮罩层时要用到
function getPageSize(){
//检测浏览器的渲染模式
var body = (document.compatMode&&document.compatMode.toLowerCase() == "css1compat")?document.documentElement:document.body;
var bodyOffsetWidth = 0;
var bodyOffsetHeight = 0;
var bodyScrollWidth = 0;
var bodyScrollHeight = 0;
var pageDimensions = [0,0];
pageDimensions[0]=body.clientHeight;
pageDimensions[1]=body.clientWidth;
bodyOffsetWidth=body.offsetWidth;
bodyOffsetHeight=body.offsetHeight;
bodyScrollWidth=body.scrollWidth;
bodyScrollHeight=body.scrollHeight;
if(bodyOffsetHeight > pageDimensions[0])
{
pageDimensions[0]=bodyOffsetHeight;
}
if(bodyOffsetWidth > pageDimensions[1])
{
pageDimensions[1]=bodyOffsetWidth;
}
if(bodyScrollHeight > pageDimensions[0])
{
pageDimensions[0]=bodyScrollHeight;
}
if(bodyScrollWidth > pageDimensions[1])
{
pageDimensions[1]=bodyScrollWidth;
}
return pageDimensions;
}
function ShowPopup(maskDiv,popupBox) {
var pageArg = getPageSize();
var tarMP=document.getElementById(maskDiv);
var tarBox=document.getElementById(popupBox);
tarMP.style.height = pageArg[0] + "px";
tarMP.style.width = pageArg[1] + "px";
tarMP.style.visibility = 'visible';
var top = "";
if (document.body.scrollTop) {
top = (document.body.scrollTop+ 100) + "px";
}
else {
top = (document.documentElement.scrollTop + 100) + "px";
}
tarBox.style.top = top;
tarBox.style.visibility = 'visible';
}
function ClosePopup(maskDiv,popupBox){
document.getElementById(maskDiv).style.visibility='hidden';
document.getElementById(popupBox).style.visibility='hidden';
}
</script>]]></LabelTemplate>
</root>
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2901" 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="Keyword" />
<xsl:output method="html" />
<xsl:template match="/">
<div class="radioGroup">
<label><input type="radio" name="SearchGroup" value="1" id="SearchGroup_1" checked="checked" />标题</label>
<label><input type="radio" name="SearchGroup" value="2" id="SearchGroup_2" />作者</label>
<label><input type="radio" name="SearchGroup" value="3" id="SearchGroup_3" />标签</label>
<label><input type="radio" name="SearchGroup" value="4" id="SearchGroup_4" />内容</label>
</div>
<span><input id="keyword" type="text" value="" class="inputText" /> </span>
<input type="button" class="bt" value="搜索" onclick="OnSearchCheckAndSubmit();" />
<script language="javascript" type="text/javascript">
function OnSearchCheckAndSubmit(){
var keyword = document.getElementById("keyword").value;
if (keyword == '' || keyword == null) {
ShowBlogMessage("warn","请填写您想搜索的关键词","");
return;
}
else {
var searchType="";
var radioes = document.getElementsByName("SearchGroup");
for(var i=0;i&lt;radioes.length;i++)
{
if(radioes[i].checked){
searchType = radioes[i].value;
break;
}
}
window.location = "{PE.SiteConfig.applicationpath/}Blog/search.aspx?searchtype="+searchType+"&amp;Keyword=" + escape(keyword);
}
}
function OnSearchCheck(){
var radioes = document.getElementsByName("SearchGroup");
var b=false;
for(var i=0;i&lt;radioes.length;i++)
{
if(radioes[i].value=="@RequestInt_searchtype"){
radioes[i].checked=true;
b=true;
}
else{
radioes[i].checked=false;
}
}
if(!b){
radioes[0].checked=true;
}
document.getElementById("keyword").value="<xsl:value-of select="$Keyword"/>";
}
OnSearchCheck();
</script>
</xsl:template>
</xsl:transform>
]]></LabelTemplate>
<attributes>
<name>Keyword</name>
<datatype>string</datatype>
<default></default>
<intro>搜索的关键字</intro>
</attributes>
</root>
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2900" compatibleVersion="" />
<attributes>
<name>BlogID</name>
<datatype>sql.int</datatype>
<default>0</default>
<intro>{默认值:0,自动传入:@RequestInt_Id}</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 1 PE_BG_Blog.* FROM PE_BG_Blog WHERE BlogID = @BlogID</LabelSqlString>
<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="BlogID" />
<xsl:output method="html" />
<xsl:template match="/">
<Root>
<TemplateID>
<xsl:value-of select="/NewDataSet/Table/TemplateID"/>
</TemplateID>
<BlogName>
<xsl:value-of select="/NewDataSet/Table/BlogName"/>
</BlogName>
<UserName>
<xsl:value-of select="/NewDataSet/Table/UserName"/>
</UserName>
<TemplateID>
<xsl:value-of select="/NewDataSet/Table/TemplateID"/>
</TemplateID>
<CreateTime>
<xsl:value-of select="/NewDataSet/Table/CreateTime"/>
</CreateTime>
</Root>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,96 @@
<?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="2905" compatibleVersion="" />
<attributes>
<name>blogID</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>博客ID</intro>
</attributes>
<attributes>
<name>number</name>
<datatype>supersql</datatype>
<default>10</default>
<intro>显示数量</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString><![CDATA[SELECT TOP @number V.*,B.BlogID BID,B.Nickname,B.Face FROM PE_BG_Visitor V INNER JOIN PE_BG_Blog B ON V.VisitorName = B.UserName WHERE V.BlogID= '@blogID' ORDER BY VisitTime DESC]]></LabelSqlString>
<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="imageWidth"/>
<xsl:param name="imageHeight"/>
<xsl:param name="linkOpenType"/>
<xsl:param name="titleLength"/>
<xsl:output method="html" />
<xsl:template match="/NewDataSet">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<li class="nolistdata" >暂无访客信息!</li>
</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="vistierPic">
<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>
<strong>
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BID}" target="{$linkOpenType}" title="{Nickname}" >
<xsl:value-of select="pe:CutText(Nickname,$titleLength,'')" />
</a>
</strong>
<span>
<xsl:value-of select="pe:FormatDate(VisitTime,'yyyy-mm-dd hh:ff')"/>
</span>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<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>linkOpenType</name>
<datatype>string</datatype>
<default>_blank</default>
<intro>默认为新窗口打开</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>16</default>
<intro>显示昵称长度</intro>
</attributes>
</root>
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2903" compatibleVersion="" />
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>_blank</default>
<intro>打开方式:默认为新窗口打开</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP @outputQty PE_BG_Tag.* FROM PE_BG_Tag ORDER BY QuoteTimes DESC</LabelSqlString>
<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="linkOpenType" />
<xsl:param name="tagLength" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<a><xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/search.aspx?searchtype=3&amp;Keyword=<xsl:value-of select="TagName"/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(TagName,$tagLength,'')"/>
</a>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>outputQty</name>
<datatype>supersql</datatype>
<default>30</default>
<intro>显示标签数</intro>
</attributes>
<attributes>
<name>tagLength</name>
<datatype>string</datatype>
<default>15</default>
<intro>标签长度</intro>
</attributes>
</root>
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2511" compatibleVersion="" />
<attributes>
<name>BlogId</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>博客ID</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString><![CDATA[SELECT TOP 1 BlogName FROM PE_BG_Blog WHERE BlogID='@BlogId']]></LabelSqlString>
<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="username" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:value-of select="BlogName" />
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2901" compatibleVersion="" />
<attributes>
<name>ouputQty</name>
<datatype>sql.int</datatype>
<default>12</default>
<intro>输出数量</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP @ouputQty PE_BG_Category.* FROM PE_BG_Category Order BY OrderID </LabelSqlString>
<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="ouputQty" />
<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">
<div class="channelBox">
<div class="hd">
<h3>
<xsl:value-of select="CategoryName"/>
</h3>
<a class="more">
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/Category.aspx?categoryId=<xsl:value-of select="CategoryID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="CategoryName"/>
</xsl:attribute>
更多>></a>
</div>
<div class="bd">
<div class="imgText clearFloat">
{PE.Label id="博客图片列表" isLinkTitle="true" categoryId="<xsl:value-of select="CategoryID"/>" titleLength="20" contentLength="50" linkOpenType="_blank" listOrderType="1" ouputQty="1" imageLinkStyle="pic" displayTitle="true" displayContent="true" /}
</div>
<ul>
{PE.Label id="文字博文列表" isShowNum="false" ouputQty="8" categoryId="<xsl:value-of select="CategoryID"/>" titleLength="35" linkOpenType="_blank" listOrderType="1" displayInputer="true" displayHits="false" inputerStyle="blogger" isElite="false" partitionNums="0" /}
</ul>
</div>
</div>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2900" compatibleVersion="" />
<LabelTemplate>
<![CDATA[ <div id="mask" class="mask"></div>
<div id="category_box" class="content_box">
<div class="content_title">
<div class="ctLeft" onmousedown="MDown('category_box')">
分类管理
</div>
<span class="ctRight" onclick="Close()" title="关闭">
</span>
</div>
<div class="content_content">
<div class="c_create">
<input type="text" id="categoryName" value="" maxlength="28" />
<input type="button" id="categoryCreate" value="创建分类" onclick="Create()" />
请用中文、英文或数字。(15个字以内)
</div>
<div id="categoryBody">
<div id="categoryList">
</div>
<div class="cb_bottom">
<input type="button" id="categorySave" class="lbutton" value="保存" onclick="Save('@RequestInt_id')" />
</div>
</div>
</div>
</div>]]></LabelTemplate>
</root>
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2900" compatibleVersion="" />
<LabelTemplate>
<![CDATA[
<div id="BlogConfirm_box" class="content_box" style="z-index:202">
<div class="content_title">
<div class="ctLeft" style="width:85%;" onmousedown="MDown('BlogConfirm_box')">
<span id="bc_title">警告信息</span>
</div>
<span class="ctRight" onclick="CloseBlogConfirm()" title="关闭">
</span>
</div>
<div id="BlogConfirm_Content">
<div id="bc_content">
<span id="bc_icon" class="bm_warn"></span><span id="bc_message">警告内容</span>
</div>
<div class="bc_bottom"><a id="bc_submit" class="CP_a_btn2"><cite>确定</cite></a> <a id="bc_cancel" class="CP_a_btn2" onclick="CloseBlogConfirm()"><cite>取消</cite></a></div>
</div>
</div>
<div id="BlogConfirm_mask" class="mask" style="z-index:200"></div>
<script type="text/javascript">
function BlogConfirm(operate,message,eventTarget,eventArgument) {
var tarTitle=document.getElementById("bc_title");
var tarMessage=document.getElementById("bc_message");
var tarIcon=document.getElementById("bc_icon");
var tarSubmit=document.getElementById("bc_submit");
switch(operate){
case "error":
tarTitle.innerHTML="错误信息";
tarIcon.className="bm_fail";
break;
case "warn":
tarTitle.innerHTML="警告信息";
tarIcon.className="bm_warn";
break;
default:
break;
}
tarMessage.innerHTML=message;
tarSubmit.onclick=function() {
__doPostBack(eventTarget,eventArgument);
};
ShowPopup("BlogConfirm_mask", "BlogConfirm_box");
return false;
}
function CloseBlogConfirm(){
document.getElementById("BlogConfirm_mask").style.visibility='hidden';
document.getElementById("BlogConfirm_box").style.visibility='hidden';
}
</script>
]]>
</LabelTemplate>
</root>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2900" compatibleVersion="" />
<LabelTemplate>
<![CDATA[<div id="footer">
<div id="siteDom">
<a href="mailto:{PE.SiteConfig.WebmasterEmail /}">联系我们</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath/}category_7/index.aspx">网站留言</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath /}category_6/index.aspx">友情链接</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath /}Category_8/index.aspx">版权声明</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath /}{PE.SiteConfig.ManageDir /}/Index.aspx" target="_blank">管理登录</a>
</div>
<p class="siteInfo">{PE.SiteConfig.CopyRight /}</p>
</div>]]></LabelTemplate>
</root>
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2900" compatibleVersion="" />
<LabelTemplate>
<![CDATA[<!--=S 博客开通-->
<div id="maskBlog" class="mask"> </div>
{PE.Label id="博客开通"/}
{PE.Label id="博客信息提示"/}
{PE.Label id="博客弹出层初始化JS"/}
<!--=E 博客开通-->
<div id="header">
<!--=S 站点logo 及 说明-->
<div id="siteLogo">
<h1><a href="#" title="动易博客">动易博客</a></h1>
</div>
<div id="topSetting"><a href="{PE.SiteConfig.ApplicationPath/}Blog/Rank.aspx?categoryId=0&hitsType=7" title="博文排行">博文排行</a> | <a onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('{PE.SiteConfig.SitePath /}');" href="#">设为首页</a> | <a href="javascript:if(document.all){window.external.addFavorite('{PE.SiteConfig.SitePath /}','{PE.SiteConfig.SiteName /}');}else if(window.sidebar){window.sidebar.addPanel('{PE.SiteConfig.SiteName /}', '{PE.SiteConfig.SitePath /}','');}">加入收藏</a> </div>
<!--=S 顶部导航栏 -->
<ul id="nav">
{PE.Label id="博客顶部_栏目分类" categoryId="@Request_categoryId"/}
</ul>
<!--=E 顶部导航栏 -->
<!--=S 顶部工具栏 -->
<div id="topBar">
{PE.Label id="博客顶部_首页登录"/}
</div>
<!--=E 顶部工具栏 -->
</div>]]></LabelTemplate>
</root>
@@ -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>
@@ -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>
@@ -0,0 +1,237 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>True</EnabelAjax>
<Version officialVersion="" modifiedVersions="2524" compatibleVersion="" />
<attributes>
<name>LogId</name>
<datatype>int</datatype>
<default>0</default>
<intro>@RequestInt_Id</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="LogId" />
<xsl:param name="blogId" />
<xsl:param name="Nickname"/>
<xsl:param name="IsComment"/>
<xsl:variable name="loginedusername" select="pe:LoginedUserName()"/>
<xsl:template match="/">
<input id="comment_username" type="hidden" value="{$loginedusername}" />
<xsl:text disable-output-escaping="yes">&lt;</xsl:text>input id="comment_nickname" type="hidden" value="{PE.Label id="根据用户名查询昵称" username="<xsl:value-of select="$loginedusername" />" /}"/ <xsl:text disable-output-escaping="yes">&gt;</xsl:text>
<input id="comment_logid" type="hidden" value="{$LogId}" />
<script language="javascript" type="text/javascript">
function AddComment() {
if (document.getElementById("comment_logid").value == '0') {
ShowBlogMessage("error","评论不属于任何博文,请指定博文!","");
return false;
}
<xsl:choose>
<xsl:when test="$loginedusername = ''">
if (document.getElementById("comment_inickname").value == '') {
ShowBlogMessage("error","请输入昵称","");
document.getElementById("comment_inickname").focus();
return false;
}
else {
document.getElementById("comment_nickname").value = document.getElementById("comment_inickname").value;
}
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
if (document.getElementById("comment_content").value == '') {
ShowBlogMessage("error","请输入博客评论内容","");
document.getElementById("comment_content").focus();
return false;
}
var txtValidCode = document.getElementById("comment_txtValidCode");
if (txtValidCode == null || txtValidCode.value == '') {
ShowBlogMessage("error","请输入验证码!","");
if (txtValidCode != null) {
document.getElementById("comment_txtValidCode").focus();
}
return false;
}
var checkValidCode = "true";
var x = new AjaxRequest('XML', 'status');
x.para = ['username=' + document.getElementById("comment_username").value,'nickname='+ document.getElementById("comment_nickname").value, 'content=' + document.getElementById("comment_content").value,'logid=' + document.getElementById("comment_logid").value,'TxtValidCode=' + txtValidCode.value ];
x.paratype = ['nohtml', 'nohtml', 'nohtml']
x.post('addcomment', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=BlogAjaxHandler', function(s) {
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
//document.getElementById("comment_status").style.display = "none";
switch (status) {
case "ok":
ShowBlogMessage("success","发表博客评论成功!","");
CommentInit();
break;
case "check":
ShowBlogMessage("success","发表博客评论成功,请等待管理员审核。","");
break;
case "noComment":
ShowBlogMessage("error","当前博文禁用了发表评论!","");
break;
case "err":
ShowBlogMessage("error","发表博客评论失败!","");
break;
case "checkCodeError":
checkValidCode = "false";
ShowBlogMessage("error","您输入的验证码有误,请重新输入!","");
break;
default:
ShowBlogMessage("error","发表博客评论失败!","");
break;
}
if (checkValidCode == "true") {
if(status != "ok")
{
document.getElementById("comment_content").value = '';
}
var ValidCode = document.getElementById("comment_txtValidCode");
if (ValidCode != null) {
ValidCode.value = '';
}
}
var VcodeLogOn = document.getElementById("comment_vcodeLogOn");
if (VcodeLogOn != null) {
RefreshValidateCodeImage(VcodeLogOn);
}
});
}
function redirecturl(url, tarid) {
location = url.replace(/{\$pageid\/}/g, tarid);
}
//评论相关代码
function CommentInit() {
var x = new AjaxRequest('XML', 'commentform');
x.labelname = "博客评论";
x.currentpage = 1;
x.para = ['isComment=<xsl:value-of select="$IsComment" />','logId=<xsl:value-of select="$LogId" />'];
x.post('updatelabel', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=BlogAjaxHandler', function(s) {
var xml = x.createXmlDom(s);
document.getElementById("commentform").innerHTML = xml.getElementsByTagName("body")[0].firstChild.data;
changepage(1, '博客评论信息列表', 'JS_基本风格');
});
}
function changepage(pagenum, sourcename, spanname) {
var x = new AjaxRequest('XML', 'pe100_' + sourcename);
x.labelname = sourcename;
x.currentpage = pagenum;
x.para = ['logId=<xsl:value-of select="$LogId" />','username={PE.Label id="获取博主用户名" blogId="<xsl:value-of select="$blogId"/>" cachetime="17280" cacheid="<xsl:value-of select="$blogId"/>"/}','outputQty=10', 'page=true', 'pagesize=10', 'currentPage=' + pagenum];
x.post('updatelabel', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=BlogAjaxHandler', function(s) {
var xml = x.createXmlDom(s);
var plstr = "";
for (var i = 0; i &lt; xml.getElementsByTagName("body")[0].childNodes.length; i++) {
plstr += xml.getElementsByTagName("body")[0].childNodes[i].nodeValue;
}
document.getElementById("pe100_" + sourcename).innerHTML = plstr;
<xsl:if test="$IsComment = 'true'">
if (document.getElementById("comment_nickname").value != ''){
document.getElementById("comment_inickname").style.display = "none";
document.getElementById("comment_inickname2").innerText = document.getElementById("comment_nickname").value;
document.getElementById("comment_inickname2").style.display = "";
}
</xsl:if>
UpdatePage(spanname, sourcename, xml);
});
}
function UpdatePage(spanname, sourcename, xml) {
if (parseInt(xml.getElementsByTagName("total")[0].firstChild.data) > 0) {
var x = new AjaxRequest('XML', 'pe100_page_' + sourcename);
x.labelname = spanname;
x.sourcename = sourcename;
x.total = xml.getElementsByTagName("total")[0].firstChild.data;
x.currentpage = xml.getElementsByTagName("currentpage")[0].firstChild.data;
x.pagesize = xml.getElementsByTagName("pagesize")[0].firstChild.data;
x.post('updatepage', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=BlogAjaxHandler', function(s) {
var xml = x.createXmlDom(s);
if (document.getElementById("pe100_page_" + sourcename) != null) {
var plstr = "";
for (var i = 0; i &lt; xml.getElementsByTagName("body")[0].childNodes.length; i++) {
plstr += xml.getElementsByTagName("body")[0].childNodes[i].nodeValue;
}
document.getElementById("pe100_page_" + sourcename).innerHTML = plstr;
}
});
}
}
function RefreshValidateCodeImage(ValidateCodeImageControl) {
ValidateCodeImageControl.src = ValidateCodeImageControl.src + '?code=' + RandomNum(10);
}
function RandomNum(n) {
var rnd = '';
for (var i = 0; i &lt; n; i++)
rnd += Math.floor(Math.random() * 10);
return rnd;
}
function DelComment(id,blogId){
var x = new AjaxRequest('XML','commentform');
x.para = ['id=' + id,'blogId=' + blogId];
x.post('delBlogComment', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=BlogAjaxHandler', function(s) {
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
switch (status)
{
case "nologin":
ShowBlogMessage("error","没有登录!","");
break;
case "nodel":
ShowBlogMessage("error","您没有权限删除其他人的博客评论!","");
break;
case "true":
CommentInit();
break;
default:
ShowBlogMessage("error","删除博客评论失败!","");
break;
}
});
}
CommentInit();
</script>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>Nickname</name>
<datatype>string</datatype>
<default>
</default>
<intro>昵称</intro>
</attributes>
<attributes>
<name>IsComment</name>
<datatype>bool</datatype>
<default>0</default>
<intro>是否评论</intro>
</attributes>
<attributes>
<name>blogId</name>
<datatype>string</datatype>
<default>
</default>
<intro>博客ID</intro>
</attributes>
</root>
@@ -0,0 +1,119 @@
<?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="2527" compatibleVersion="" />
<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_COMMENT.LogID = @logId AND PE_BG_COMMENT.Status = 1
</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_log.BlogID,PE_BG_Blog.BlogID AS VisitorBlogID ,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>
<!--请在这里编写你的分页SQL语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</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 C.LogID = @logId AND C.Status = 1</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:param name="username" />
<xsl:template match="/NewDataSet">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<li>
<xsl:choose>
<xsl:when test="VisitorBlogID != ''">
<a href="{pe:InstallDir()}Blog/UserIndex.aspx?id={VisitorBlogID}" 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>
</xsl:when>
<xsl:otherwise>
<span class="pic">
<img src="{pe:SkinDir()}Blog/images/nopic.png" alt="个人图片" />
</span>
</xsl:otherwise>
</xsl:choose>
<strong>
<xsl:value-of select="Nickname"/>
</strong>
<span class="dateTime">
<xsl:value-of select="pe:FormatDate(CreateTime,'yyyy-mm-dd hh:ff:ss')" />
<xsl:choose>
<xsl:when test="string($username)=pe:LoginedUserName()">
[<a href="javascript:DelComment({CommentID},{BlogID});" onclick="return confirm('确定要删除此评论吗?');">删除</a>]
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</span>
<p >
<div id="wrap" class="commentwrap" >
<xsl:value-of select="Content"/>
</div>
</p>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<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>logId</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>博文ID</intro>
</attributes>
<attributes>
<name>username</name>
<datatype>string</datatype>
<default>
</default>
<intro>博客用户名</intro>
</attributes>
</root>
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>True</EnabelAjax>
<Version officialVersion="" modifiedVersions="2900" compatibleVersion="" />
<LabelTemplate><![CDATA[ <div class="hd">
<h3>博客评论</h3>
<div class="sysMenu"></div>
</div>
<div class="bd">
<div id="pe100_博客评论管理信息列表">
</div>
<div class="paginator">
<span id="pe100_page_博客评论管理信息列表">
</span>
</div>
</div>]]></LabelTemplate>
</root>
@@ -0,0 +1,168 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>True</EnabelAjax>
<Version officialVersion="" modifiedVersions="2519" 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:output method="html" />
<xsl:param name="blogId" />
<xsl:param name="commentLabel" />
<xsl:param name="commentList" />
<xsl:param name="commentPage" />
<xsl:variable name="loginedusername" select="pe:LoginedUserName()"/>
<xsl:template match="/">
<script language="javascript" type="text/javascript">
function redirecturl(url, tarid) {
location = url.replace(/{\$pageid\/}/g, tarid);
}
//评论相关代码
function CommentInit() {
var x = new AjaxRequest('XML', 'commentform');
x.labelname = "<xsl:value-of select="$commentLabel" />";
x.currentpage = 1;
x.post('updatelabel', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=BlogAjaxHandler', function(s) {
var xml = x.createXmlDom(s);
document.getElementById("commentform").innerHTML = xml.getElementsByTagName("body")[0].firstChild.data;
changepage(1, '<xsl:value-of select="$commentList" />', '<xsl:value-of select="$commentPage" />');
});
}
function DelComment(id,blogId){
var x = new AjaxRequest('XML','commentform');
x.para = ['id=' + id,'blogId=' + blogId];
x.post('delBlogComment', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=BlogAjaxHandler', function(s) {
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
switch (status)
{
case "nologin":
ShowBlogMessage("error","没有登录!","");
break;
case "nodel":
ShowBlogMessage("error","您没有权限删除其他人的博客评论!","");
break;
case "true":
CommentInit();
break;
default:
ShowBlogMessage("error","删除博客评论失败!","");
break;
}
});
}
function changepage(pagenum, sourcename, spanname) {
var x = new AjaxRequest('XML', 'pe100_' + sourcename);
x.labelname = sourcename;
x.currentpage = pagenum;
x.para = ['blogId=<xsl:value-of select="$blogId" />', 'outputQty=10', 'page=true', 'pagesize=10', 'currentPage=' + pagenum];
x.post('updatelabel', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=BlogAjaxHandler', function(s) {
var xml = x.createXmlDom(s);
var plstr = "";
for (var i = 0; i &lt; xml.getElementsByTagName("body")[0].childNodes.length; i++) {
plstr += xml.getElementsByTagName("body")[0].childNodes[i].nodeValue;
}
document.getElementById("pe100_" + sourcename).innerHTML = plstr;
UpdatePage(spanname, sourcename, xml);
});
}
function UpdatePage(spanname, sourcename, xml) {
if (parseInt(xml.getElementsByTagName("total")[0].firstChild.data) > 0) {
var x = new AjaxRequest('XML', 'pe100_page_' + sourcename);
x.labelname = spanname;
x.sourcename = sourcename;
x.total = xml.getElementsByTagName("total")[0].firstChild.data;
x.currentpage = xml.getElementsByTagName("currentpage")[0].firstChild.data;
x.pagesize = xml.getElementsByTagName("pagesize")[0].firstChild.data;
x.post('updatepage', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=BlogAjaxHandler', function(s) {
var xml = x.createXmlDom(s);
if (document.getElementById("pe100_page_" + sourcename) != null) {
var plstr = "";
for (var i = 0; i &lt; xml.getElementsByTagName("body")[0].childNodes.length; i++) {
plstr += xml.getElementsByTagName("body")[0].childNodes[i].nodeValue;
}
document.getElementById("pe100_page_" + sourcename).innerHTML = plstr;
}
});
}
}
function CheckJob(form){
for (var i=0;i&lt;form.elements.length;i++){
var e = form.elements[i];
if (e.name){
if (e.name.substr(0,2) == 'J_' &amp;&amp; e.disabled==false)
e.checked = form.checkAll.checked;
}
}
}
function batchconfirm(prompt, nocheckprompt)
{
var prompt = (arguments.length &gt; 0) ? arguments[0] : "确定要进行此批量操作?";
var nocheckprompt = (arguments.length &gt; 1) ? arguments[1] : "请选择所要操作的记录!";
var commentIds = '';
for (var i=0; i&lt;document.forms[0].length; i++)
{
var o = document.forms[0][i];
if (o.type == "checkbox" &amp;&amp; o.name.substr(0,2) == 'J_' &amp;&amp; o.checked == true)
{
haschecked = true;
if (commentIds == ''){
commentIds = o.value;
}else{
commentIds += "," + o.value;
}
}
}
if (commentIds == '')
{
ShowBlogMessage("error",nocheckprompt,"");
return false;
}
else
{
if (!confirm(prompt))
{
return false;
}
}
DelComment(commentIds,@RequestInt_Id);
}
CommentInit();
</script>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>blogId</name>
<datatype>int</datatype>
<default>0</default>
<intro>@RequestInt_Id</intro>
</attributes>
<attributes>
<name>commentLabel</name>
<datatype>string</datatype>
<default>
</default>
<intro>评论标签</intro>
</attributes>
<attributes>
<name>commentList</name>
<datatype>string</datatype>
<default>
</default>
<intro>评论列表</intro>
</attributes>
<attributes>
<name>commentPage</name>
<datatype>string</datatype>
<default>
</default>
<intro>评论分页</intro>
</attributes>
</root>
@@ -0,0 +1,120 @@
<?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}&amp;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>
@@ -0,0 +1,122 @@
<?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="2908" compatibleVersion="" />
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>
</default>
<intro>默认为原窗口打开,新窗口打开:_blank</intro>
</attributes>
<attributes>
<name>listOrderType</name>
<datatype>int</datatype>
<default>1</default>
<intro>排序方式:1排序ID排序、2按类别ID排序(升序)、3按类别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">
<xsl:param name="listOrderType" />
<xsl:output method="xml" />
<xsl:template match="/">
<root>
<sql>
SELECT TOP @outputQty * FROM PE_BG_Category
<xsl:choose>
<xsl:when test="$listOrderType=1"> ORDER BY OrderID ASC</xsl:when>
<xsl:when test="$listOrderType=2"> ORDER BY CategoryID ASC</xsl:when>
<xsl:when test="$listOrderType=3"> ORDER BY CategoryID DESC</xsl:when>
<xsl:otherwise> ORDER BY OrderID ASC</xsl:otherwise>
</xsl:choose>
</sql>
<sqlpage>
</sqlpage>
<countsql>
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></LabelSqlString>
<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="linkOpenType" />
<xsl:param name="titleLength" />
<xsl:param name="categoryId" />
<xsl:output method="html" />
<xsl:variable name="CategoryCount" select="count(/NewDataSet/Table)"/>
<xsl:template match="/">
<li id="Category_0">
<a href="{pe:InstallDir()}Blog/index.aspx" onclick="guide('0')">博客首页</a>
</li>
<xsl:for-each select="/NewDataSet/Table">
<li id="Category_{CategoryID}">
<xsl:if test="position()=1">
<xsl:attribute name="class">current</xsl:attribute>
</xsl:if>
<xsl:if test="$CategoryCount = position()">
<xsl:attribute name="class">lastOne</xsl:attribute>
</xsl:if>
<a href="{pe:InstallDir()}Blog/Category.aspx?categoryId={CategoryID}" target="{$linkOpenType}">
<xsl:value-of select="pe:CutText(CategoryName,$titleLength,'')"/>
</a>
</li>
</xsl:for-each>
<script type="text/javascript" language="JavaScript">
function guide(num)
{
var arr=new Array;
arr[0]=0;
<xsl:for-each select="/NewDataSet/Table">
arr[<xsl:value-of select="position()"/>]=<xsl:value-of select="CategoryID"/>;
</xsl:for-each>
for(var i=0;i&lt;arr.length;i++)
{
if(arr[i]==num)
{
document.getElementById("Category_"+arr[i]).className="current";
}
else
{
if(i==arr.length-1)
{
document.getElementById("Category_"+arr[i]).className="lastOne";
}
else
{
document.getElementById("Category_"+arr[i]).className="";
}
}
}
}
guide('<xsl:value-of select="$categoryId" />')
</script>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>outputQty</name>
<datatype>supersql</datatype>
<default>15</default>
<intro>显示栏目数</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>8</default>
<intro>标题长度</intro>
</attributes>
<attributes>
<name>categoryId</name>
<datatype>int</datatype>
<default>0</default>
<intro>栏目ID:默认为博客首页</intro>
</attributes>
</root>
@@ -0,0 +1,215 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2900" compatibleVersion="" />
<LabelTemplate>
<![CDATA[
<div id="topUserLogin">
<label id="topUserName">登录名:<input type="text" class="inputText" id="TxtUserName"/></label>
<label id="topPassword">密 码:<input type="password" class="inputText" id="TxtPassword"/></label>
<label id="checkcode" style="display: none">
<span>验证码 </span>
<input name="TxtValdisplayDateCode" type="text" maxlength="6" value="no" id="TxtValdisplayDateCode" onfocus="this.select();" style="width: 50px;" />
<img id="VcodeLogOn" title="看不清楚,换一个" onclick="RefreshValdisplayDateCodeImage(this);" src="{PE.SiteConfig.ajaxsitepath/}Controls/ValidateCodeImage.aspx" align="absmiddle" style="border-width: 0px; cursor: pointer;margin-left:5px;">
</img>
</label>
<input type="submit" class="bt" value="登录" onclick="Login()"/>
<a href="{PE.SiteConfig.ajaxsitepath/}User/Register.aspx" title="注册">注册</a>
<a href="{PE.SiteConfig.ajaxsitepath/}User/GetPassword.aspx" title="找回密码">找回密码</a>
</div>
<div id="logindiv" style="display:none">
<span id="spanUserName"></span>
<a id="enterBlog" class="creatNewBlog"></a>
<span><a id="wirteArt" target="_blank" href="javascript:;">发表博文</a></span>
<span><a id="manageBlog" target="_blank" href="javascript:;">管理博客</a></span>
<span><a href="javascript:Logout();"> 退出</a></span>
</span>
</div>
<div id="topSearch">
<span><input id="titleSearch" type="text" value="" class="inputText" /> </span>
<input type="button" class="bt" value="搜索" onclick="Search()" />
</div>
<script type="text/javascript" language="JavaScript">
var userName = "";
CheckBlogIsLogin();
function Login(){
var tarUserName=document.getElementById("TxtUserName");
var tarPassword=document.getElementById("TxtPassword");
var tarCheckCode=document.getElementById("TxtValdisplayDateCode");
if (tarUserName.value == '') {
ShowBlogMessage("warn","请填写用户名!","");
tarUserName.focus();
return;
}
if (tarPassword.value == '') {
ShowBlogMessage("warn","请填写密码!","");
return;
}
if(tarCheckCode.style.display=="")
{
var tarDateCode=document.getElementById("TxtValdisplayDateCode");
if (tarDateCode.value == '') {
ShowBlogMessage("warn","请填写验证码!","");
tarDateCode.focus();
return;
}
}
var x = new AjaxRequest('XML', 'status');
x.para = ['username=' + tarUserName.value, 'password=' + tarPassword.value, 'checkcode=' + tarCheckCode.value];
x.post('userlogin', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s){
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
switch (status) {
case "ok":
userName = xml.getElementsByTagName("username")[0].firstChild.data;
ChangeState(true);
break;
case "err":
var errorMessage = xml.getElementsByTagName("body")[0].firstChild.data;
ShowBlogMessage("error",errorMessage,"");
break;
}
});
}
function CheckBlogIsLogin(){
var x = new AjaxRequest('XML', 'status');
x.para = [];
x.post('logincheck', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s){
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
if (status == 'ok') {
userName = xml.getElementsByTagName("username")[0].firstChild.data;
ChangeState(true);
}
else {
ChangeState(false);
CheckEnableValidCode();
}
});
}
function ChangeState(flag)
{
var logindiv = document.getElementById("logindiv");
var logoutdiv = document.getElementById("topUserLogin");
if(flag == true)
{
logindiv.style.display = "";
logoutdiv.style.display = "none";
document.getElementById("spanUserName").innerHTML = userName + ",欢迎您!";
GetBlogID();
}
else
{
logindiv.style.display="none";
logoutdiv.style.display="";
SetLoginState(flag,"");
}
}
function SetLoginState(flag,id)
{
var tarEle=document.getElementById("enterBlog");
var tarWrite=document.getElementById("wirteArt");
var tarMana=document.getElementById("manageBlog");
if(flag == true)
{
tarEle.innerHTML="我的博客";
tarEle.onclick="javascript:;";
tarEle.target="_blank";
tarEle.href="{PE.SiteConfig.ApplicationPath/}Blog/UserIndex.aspx?id="+id;
tarWrite.innerHTML="发表博文";
tarMana.innerHTML="管理博客";
tarWrite.href="{PE.SiteConfig.ApplicationPath/}Blog/Log.aspx?id="+id;
tarMana.href="{PE.SiteConfig.ApplicationPath/}Blog/UserIndex.aspx?id="+id;
}
else
{
tarEle.innerHTML="开通博客";
tarEle.href="javascript:;";
tarEle.target="";
tarEle.onclick=function(){
ShowPopup('maskBlog','blog_box');
};
tarWrite.innerHTML="";
tarMana.innerHTML="";
}
}
function GetBlogID()
{
var x = new AjaxRequest('XML','');
x.para = [];
x.post('getblogid', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=BlogAjaxHandler', function(s) {
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
var tarWrite=document.getElementById("writeArt");
var tarManage=document.getElementById("manageBlog");
if (status == "ok") {
SetLoginState(true,xml.getElementsByTagName("BlogID")[0].firstChild.data);
}
else{
SetLoginState(false,"");
}
});
}
function Logout(){
var x = new AjaxRequest('XML','');
x.post('userlogout', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s) {
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
if (status == "ok") {
ChangeState(false);
}
document.getElementById("TxtUserName").value = '';
document.getElementById("TxtPassword").value = '';
SetLoginState(false,"");
CheckEnableValidCode();
var VcodeLogOn = document.getElementById("VcodeLogOn");
if(VcodeLogOn != null)
{
RefreshValdisplayDateCodeImage(VcodeLogOn);
}
});
}
function CheckEnableValidCode(){
var x = new AjaxRequest('XML', 'status');
x.para = [];
x.post('EnableValidCode', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s){
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
if (status == "yes") {
document.getElementById("checkcode").style.display = '';
document.getElementById("TxtValdisplayDateCode").value = '';
}
});
}
function RefreshValdisplayDateCodeImage(ValdisplayDateCodeImageControl){
ValdisplayDateCodeImageControl.src = ValdisplayDateCodeImageControl.src + '?code=' + RandomNum(10);
}
function RandomNum(n){
var rnd = '';
for (var i = 0; i < n; i++) {
rnd += Math.floor(Math.random() * 10);
}
return rnd;
}
function Search(){
var tarEle=document.getElementById("titleSearch");
if(tarEle.value==""){
ShowBlogMessage("warn","请填写您想搜索的关键词","");
}
else{
window.location = "{PE.SiteConfig.applicationpath/}Blog/search.aspx?searchtype=1&Keyword=" + escape(tarEle.value);
}
}
</script>]]></LabelTemplate>
</root>
@@ -0,0 +1,196 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2902" compatibleVersion="" />
<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="inLabel"/>
<xsl:output method="html" />
<xsl:template match="/">
<div id="login_box" class="content_box" style="width:400px">
<div class="content_title">
<div class="ctLeft" onmousedown="MDown('login_box')" style="width:85%;">
用户登录
</div>
<span class="ctRight" onclick="ClosePopup('maskLogin','login_box')" title="关闭">
</span>
</div>
<div class="content_content">
<div class="blogLogin" style="margin-left:50px;">
<div class="rowA">
<span>登录名 </span>
<input id="TxtUserName" tabIndex="1" type="text" size="25"/>
<a style="font-size: 12px;margin-left: 8px;" href="{pe:InstallDir()}User/Register.aspx" target="_blank">立即注册</a>
</div>
<div class="rowA">
<span>密 码 </span>
<input id="TxtPassword" type="password" tabIndex="2" size="25" maxlength="16"/>
<a style="font-size: 12px;margin-left: 8px;" href="{pe:InstallDir()}User/GetPassword.aspx" target="_blank">找回密码</a>
</div>
<div id="checkcode" class="rowA" style="display: none">
<span>验证码 </span>
<input name="TxtValdisplayDateCode" type="text" maxlength="6" value="no" id="TxtValdisplayDateCode" onfocus="this.select();" style="width: 50px;" />
<img id="VcodeLogOn" title="看不清楚,换一个" onclick="RefreshValdisplayDateCodeImage(this);" align="absmiddle" style="border-width: 0px; cursor: pointer;margin-left:5px;">
<xsl:attribute name="src">
<xsl:value-of select="pe:InstallDir()" />Controls/ValidateCodeImage.aspx</xsl:attribute>
</img>
</div>
<div class="rowA">
<span> Cookie </span>
<select name="DropExpiration" id="DropExpiration">
<option value="None">不保存</option>
<option value="Day">保存一天</option>
<option value="Month">保存一月</option>
<option value="Year">保存一年</option>
</select>
</div>
<div class="rowB">
<p style="margin-top: 8px;">
<input type="submit" class="lbutton" value=" 登录 " onclick="Login()"/>
</p>
</div>
</div>
</div>
</div>
<div id="maskLogin" class="mask"> </div>
<xsl:if test="$inLabel = 'false'">
<span onclick="ShowPopup('maskLogin','login_box')" style="cursor: pointer">
<a href="javascript:;">登录</a>
</span>
</xsl:if>
<script>
function Login(){
if (document.getElementById("TxtUserName").value == '') {
ShowBlogMessage("error","请填写用户名!","");
document.getElementById("TxtUserName").focus();
return;
}
if (document.getElementById("TxtPassword").value == '') {
ShowBlogMessage("error","请填写密码!","");
return;
}
if(document.getElementById("checkcode").style.display=="")
{
if (document.getElementById("TxtValdisplayDateCode").value == '') {
ShowBlogMessage("error","请填写验证码!","");
document.getElementById("TxtValdisplayDateCode").focus();
return;
}
}
var x = new AjaxRequest('XML', 'status');
x.para = ['username=' + document.getElementById("TxtUserName").value, 'password=' + document.getElementById("TxtPassword").value, 'checkcode=' + document.getElementById("TxtValdisplayDateCode").value, 'expiration=' + document.getElementById("DropExpiration").value];
x.post('userlogin', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s){
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
switch (status) {
case "ok":
window.location.reload();
BlogOperate();
break;
case "err":
var errorMessage = xml.getElementsByTagName("body")[0].firstChild.data;
ShowBlogMessage("error",errorMessage,"");
break;
}
});
}
function RefreshValdisplayDateCodeImage(ValdisplayDateCodeImageControl){
ValdisplayDateCodeImageControl.src = ValdisplayDateCodeImageControl.src + '?code=' + RandomNum(10);
}
function RandomNum(n){
var rnd = '';
for (var i = 0; i &lt; n; i++)
rnd += Math.floor(Math.random() * 10);
return rnd;
}
function CheckBlogIsLogin(){
var x = new AjaxRequest('XML', 'status');
x.para = [];
x.post('logincheck', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s){
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
if (status == 'ok') {
document.getElementById("loginBar").innerHTML = GetBlogInfo(xml);
BlogOperate();
}
else {
document.getElementById("user_Blog").innerHTML="";
CheckEnableValidCode();
}
});
}
function CheckEnableValidCode(){
var x = new AjaxRequest('XML', 'status');
x.para = [];
x.post('EnableValidCode', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s){
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
if (status == "yes") {
document.getElementById("checkcode").style.display = '';
document.getElementById("TxtValdisplayDateCode").value = '';
}
});
}
function GetBlogInfo(xml){
var blogInfo ='<span>'+ xml.getElementsByTagName("username")[0].firstChild.data + ",您好!</span>" ;
blogInfo+='<a href="javascript:;" onclick="loginout()" style="margin:0 5 0 5;">退出</a>';
return blogInfo;
}
function BlogOperate()
{
var x = new AjaxRequest('XML','');
x.para = [];
x.post('getblogid', '{PE.SiteConfig.AjaxSitepath/}Ajax.aspx?HandlerName=BlogAjaxHandler', function(s) {
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
var tarEle= document.getElementById("user_Blog");
if (status == "ok") {
tarEle.innerHTML="我的博客";
tarEle.onclick="";
tarEle.href = "{PE.SiteConfig.applicationpath/}Blog/UserIndex.aspx?id="+xml.getElementsByTagName("BlogID")[0].firstChild.data;
}
else{
tarEle.innerHTML="博客开通";
tarEle.onclick=function(){
ShowPopup('maskBlog','blog_box');
};
}
});
}
function loginout(){
var x = new AjaxRequest('XML','');
x.post('userlogout', '{PE.SiteConfig.ajaxsitepath/}ajax.aspx', function(s) {
var xml = x.createXmlDom(s);
var status = xml.getElementsByTagName("status")[0].firstChild.data;
if (status == "ok") {
window.location.reload();
}
document.getElementById("TxtUserName").value = '';
document.getElementById("TxtPassword").value = '';
CheckEnableValidCode();
var VcodeLogOn = document.getElementById("VcodeLogOn");
if(VcodeLogOn != null)
{
RefreshValdisplayDateCodeImage(VcodeLogOn);
}
document.getElementById("DropExpiration").value = 'None';
});
}
</script>
</xsl:template>
</xsl:stylesheet>
]]></LabelTemplate>
<attributes>
<name>inLabel</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否包含在另一个标签里</intro>
</attributes>
</root>
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>数据源</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2523" compatibleVersion="" />
<attributes>
<name>LogId</name>
<datatype>supersql</datatype>
<default>1</default>
<intro>博客ID{默认值:1,传入值:@RequestInt_Id}</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 1 L.*,UC.CategoryName FROM PE_BG_log L LEFT JOIN PE_BG_UserCategory UC ON (L.UserCategoryID = UC.UserCategoryID) WHERE L.LogID=@LogId</LabelSqlString>
<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:template match="/">
<Root>
<LogID>
<xsl:value-of select="/NewDataSet/Table/LogID"/>
</LogID>
<CategoryID>
<xsl:value-of select="/NewDataSet/Table/CategoryID"/>
</CategoryID>
<UserCategoryID>
<xsl:value-of select="/NewDataSet/Table/UserCategoryID"/>
</UserCategoryID>
<Title>
<xsl:value-of select="/NewDataSet/Table/Title"/>
</Title>
<BlogID>
<xsl:value-of select="/NewDataSet/Table/BlogID"/>
</BlogID>
<Content>
<xsl:value-of select="/NewDataSet/Table/Content" disable-output-escaping="yes"/>
</Content>
<Tags>
<xsl:if test="/NewDataSet/Table/Tags != ''">
<strong>标签:</strong>
{PE.Label id="处理博文Tags" tags="<xsl:value-of select="/NewDataSet/Table/Tags"/>"/}
</xsl:if>
</Tags>
<State>
<xsl:value-of select="/NewDataSet/Table/State"/>
</State>
<IsComment>
<xsl:value-of select="/NewDataSet/Table/IsComment"/>
</IsComment>
<IndexState>
<xsl:value-of select="/NewDataSet/Table/IndexState"/>
</IndexState>
<ClassState>
<xsl:value-of select="/NewDataSet/Table/ClassState"/>
</ClassState>
<Hits>
&lt;script language="JavaScript" type="text/JavaScript" src="<xsl:value-of select="pe:InstallDir()" />Blog/GetHits.aspx?id=<xsl:value-of select="/NewDataSet/Table/LogID"/>"&gt;&lt;/script&gt;
</Hits>
<CreateTime>
<xsl:value-of select="pe:FormatDate(/NewDataSet/Table/CreateTime,'yyyy-mm-dd hh:mm:ss')" />
</CreateTime>
<UpdateTime>
<xsl:value-of select="/NewDataSet/Table/UpdateTime"/>
</UpdateTime>
<CategoryName>
<xsl:value-of select="/NewDataSet/Table/CategoryName"/>
</CategoryName>
</Root>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2517" compatibleVersion="" />
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>60</default>
<intro> 内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>内容链接的打开方式{新窗口:1,原窗口:0}</intro>
</attributes>
<attributes>
<name>logId</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>内容ID{默认值:0,传入值:@RequestInt_Id}</intro>
</attributes>
<attributes>
<name>userCategoryId</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>节点ID{默认值:0,传入值:@RequestInt_Id}</intro>
</attributes>
<attributes>
<name>displayCategoryName</name>
<datatype>string</datatype>
<default>false</default>
<intro>是否显示所属栏目名称</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString><![CDATA[SELECT TOP 1 L.*,UC.CategoryName FROM PE_BG_log L INNER JOIN PE_BG_UserCategory UC ON (L.UserCategoryID = UC.UserCategoryID) WHERE L.LogID < @logId AND L.State = 1 AND L.BlogID =@blogId ORDER BY L.LogID DESC]]></LabelSqlString>
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="titleLength" />
<xsl:param name="linkOpenType" />
<xsl:param name="displayCategoryName" />
<xsl:param name="unit" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<span class="nodataitem">没有了!</span>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<xsl:if test="$displayCategoryName = 'true'">
[ <a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()" />Blog/Category.aspx?CategoryID=<xsl:value-of select="CategoryID"/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:choose>
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$linkOpenType"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="CategoryName" />
</a> ]
</xsl:if>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()" />Blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:choose>
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$linkOpenType"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
</a>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>blogId</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>博客ID</intro>
</attributes>
</root>
@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2519" compatibleVersion="" />
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>60</default>
<intro> 内容标题长度,一个汉字占两个字节,如填写"20"则显示10个汉字</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>内容链接的打开方式{新窗口:1,原窗口:0}</intro>
</attributes>
<attributes>
<name>logId</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>内容ID{默认值:0,传入值:@RequestInt_Id}</intro>
</attributes>
<attributes>
<name>userCategoryId</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>节点ID{默认值:0,传入值:@RequestInt_Id}</intro>
</attributes>
<attributes>
<name>displayCategoryName</name>
<datatype>string</datatype>
<default>false</default>
<intro>是否显示所属栏目名称</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString><![CDATA[SELECT TOP 1 L.*,UC.CategoryName FROM PE_BG_log L INNER JOIN PE_BG_UserCategory UC ON (L.UserCategoryID = UC.UserCategoryID) WHERE L.LogID > @logId AND L.State = 1 AND L.BlogID = @blogId ORDER BY L.LogID ASC]]></LabelSqlString>
<LabelTemplate><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:lewi="http://www.powereasy.net" xmlns:pe="labelproc" exclude-result-prefixes="pe ms lewi">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="titleLength" />
<xsl:param name="linkOpenType" />
<xsl:param name="displayCategoryName" />
<xsl:param name="unit" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<span class="nodataitem">没有了!</span>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<xsl:if test="$displayCategoryName = 'true'">
[ <a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()" />Blog/Category.aspx?CategoryID=<xsl:value-of select="CategoryID"/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:choose>
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$linkOpenType"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="CategoryName" />
</a> ]
</xsl:if>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()" />Blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:choose>
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$linkOpenType"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
</a>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>blogId</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>博客ID</intro>
</attributes>
</root>
@@ -0,0 +1,279 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2907" compatibleVersion="" />
<attributes>
<name>blogId</name>
<datatype>sql.int</datatype>
<default>0</default>
<intro>博客ID</intro>
</attributes>
<attributes>
<name>outputQty</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>输出数量,大于0时不支持分页</intro>
</attributes>
<attributes>
<name>openType</name>
<datatype>int</datatype>
<default>0</default>
<intro>打开方式{新窗口:1,原窗口:0}</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>0</default>
<intro>标题长度</intro>
</attributes>
<attributes>
<name>contentLength</name>
<datatype>int</datatype>
<default>0</default>
<intro>项目内容长度</intro>
</attributes>
<attributes>
<name>orderType</name>
<datatype>int</datatype>
<default>0</default>
<intro>排序方式</intro>
</attributes>
<attributes>
<name>displayCategory</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否显示分类名称</intro>
</attributes>
<attributes>
<name>displayTags</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否显示标签</intro>
</attributes>
<attributes>
<name>displayHit</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否显示阅读数</intro>
</attributes>
<attributes>
<name>displayComment</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否显示评论数</intro>
</attributes>
<UsePage>True</UsePage>
<IsXsltSql>true</IsXsltSql>
<IsXsltCountSql>true</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:param name="orderType" />
<xsl:param name="outputQty"/>
<xsl:output method="xml" />
<xsl:template match="/">
<!--请按提示编辑,保持该模板结构的正确性-->
<root>
<sql>
<xsl:variable name="orderTypeValue">
<xsl:choose>
<xsl:when test="$orderType=0">L.LogID DESC</xsl:when>
<xsl:when test="$orderType=2">L.Hits DESC,L.LogID DESC</xsl:when>
<xsl:when test="$orderType=3">L.UpdateTime DESC,L.LogID DESC</xsl:when>
<xsl:otherwise>L.LogID DESC</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="$outputQty>0">
SELECT TOP <xsl:value-of select="$outputQty"/> L.LogID,L.BlogID,L.UserCategoryID,L.Title,L.Content,L.Tags,L.Hits,L.UpdateTime,B.UserName FROM PE_BG_Log L INNER JOIN PE_BG_Blog B ON L.BlogID = B.BlogID WHERE L.BlogID=1 AND L.State>0
</xsl:when>
<xsl:otherwise>
EXEC [dbo].[PR_Common_PagingLarge] 'PE_BG_Log L INNER JOIN PE_BG_Blog B ON L.BlogID = B.BlogID','L.LogID','L.LogID,L.BlogID,L.UserCategoryID,L.Title,L.Content,L.Tags,L.Hits,L.UpdateTime,B.UserName',@pagesize, @startrow,'L.BlogID=@blogId AND L.State>0','','<xsl:value-of select="$orderTypeValue"/>'
</xsl:otherwise>
</xsl:choose>
</sql>
<sqlpage>
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</sqlpage>
<countsql>
<!--请在这里编写你的分页SQL语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
<xsl:if test="$outputQty=0">
SELECT COUNT(L.LogID) FROM PE_BG_Log L INNER JOIN PE_BG_Blog B ON L.BlogID = B.BlogID WHERE L.BlogID=@blogId AND L.State>0
</xsl:if>
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></LabelSqlString>
<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="blogId" />
<xsl:param name="openType" />
<xsl:param name="titleLength" />
<xsl:param name="contentLength" />
<xsl:param name="OrderType" />
<xsl:param name="displayCategory" />
<xsl:param name="displayTags" />
<xsl:param name="displayHit" />
<xsl:param name="displayComment" />
<xsl:param name="displayContent" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(NewDataSet/Table)=0">
暂时没有信息!
</xsl:when>
<xsl:otherwise>
<xsl:variable name="LoginName" select="pe:LoginedUserName()"/>
<xsl:for-each select="NewDataSet/Table">
<div class="blogItem">
<div class="itemTitle">
<h4>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/Item.aspx?id=<xsl:value-of select="BlogID"/>&amp;logId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="$titleLength>0">
<xsl:value-of select="pe:CutText(Title,$titleLength,'...')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="Title"/>
</xsl:otherwise>
</xsl:choose>
</a>
</h4>
<span>
<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd hh:ff')"/>
</span>
<xsl:if test="$LoginName=UserName">
<span class="artmanage">
[<a href="{pe:InstallDir()}Blog/Log.aspx?id={BlogID}&amp;Action=modify&amp;LogId={LogID}">编辑</a>]
[<a href="javascript:DeleteLog('{LogID}','{$blogId}');" onclick='return confirm("删除的博文将被放入回收站,确定要删除此博文吗?");'>删除</a>]
</span>
</xsl:if>
</div>
<div class="itemSort clearFloat">
<xsl:if test="$displayTags='true'">
<div class="tags">
<strong>标签:</strong>
{PE.Label id="处理博文Tags" tags="<xsl:value-of select="Tags"/>" /}
</div>
</xsl:if>
<xsl:if test="$displayCategory='true'">
<div class="sort">
<strong>分类:</strong>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/UserCategory.aspx?id=<xsl:value-of select="BlogID"/>&amp;categoryId=<xsl:value-of select="UserCategoryID"/>
</xsl:attribute>{PE.Label id="获取用户博文分类名称" userCategoryId="<xsl:value-of select="UserCategoryID"/>" /}
</a>
</div>
</xsl:if>
</div>
<xsl:if test="$displayContent='true'">
<div class="itemContent">
<xsl:choose>
<xsl:when test="$contentLength>0">
<xsl:value-of disable-output-escaping="yes" select="pe:CutContent(Content,$contentLength)"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="yes" select="Content"/>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:if>
<div class="itemInfo clearFloat">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/Item.aspx?id=<xsl:value-of select="BlogID"/>&amp;logId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="title">阅读全文</xsl:attribute>
<xsl:attribute name="class">details</xsl:attribute>阅读全文
</a>
<div class="itemStati">
<xsl:if test="$displayHit='true'">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/Item.aspx?id=<xsl:value-of select="BlogID"/>&amp;logId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="阅读"/>
</xsl:attribute>阅读
</a>
<span>
(<xsl:value-of select="Hits"/>)
</span>
</xsl:if>
<xsl:if test="$displayHit='true' and $displayComment='true'">
|
</xsl:if>
<xsl:if test="$displayComment='true'">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/Item.aspx?id=<xsl:value-of select="BlogID"/>&amp;logId=<xsl:value-of select="LogID"/>#commentform
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="评论"/>
</xsl:attribute>评论
</a>
<span>
({PE.Label id="博文评论数" logId="<xsl:value-of select="LogID"/>" /})
</span>
</xsl:if>
</div>
</div>
</div>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
<script language="javascript" type="text/javascript">
function DeleteLog(id,blogID){
var x = new AjaxRequest('XML', '');
x.para = ['logID='+id,'blogID='+blogID];
x.post('deletelog', '{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","删除失败!","");
}
});
}
jQuery(function($) {
$(".itemContent img").each(function(i,ele){
if($(ele).width()>600){
$(ele).width(600);
$(ele).height("auto");
$(ele).css("cursor","pointer");
$(ele).click(function(){
window.open($(ele).attr('src'), "_blank");
});
}
});
});
</script>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>displayContent</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否显示内容</intro>
</attributes>
<LabelSqlCount><![CDATA[请在上面的<countsql></countsql>标记之间写分页SQL查询语句
SELECT COUNT(L.LogID) FROM PE_BG_Log L INNER JOIN PE_BG_Blog B ON L.BlogID = B.BlogID WHERE L.BlogID=@blogId AND L.State>0]]></LabelSqlCount>
</root>
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>True</EnabelAjax>
<Version officialVersion="" modifiedVersions="2514" 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:output method="html" />
<xsl:template match="/">
<div id="addcomment">
<ul class = "inputerInfoBox" >
<li>
<label for="comment_inickname">昵称:</label>
<input type="text" id="comment_inickname" style="width:120px;" />
<span id ="comment_inickname2" style="display:none;">
</span>
</li>
</ul>
<div class="inputContetntBox clearFloat">
<textarea wrap="on" id="comment_content">
</textarea>
<div class="vcodeLogOn"><label for="comment_txtValidCode">验证码:</label> <input type="text" maxlength="6" value="" id="comment_txtValidCode" size="12" onfocus="this.select();" />
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
<img id="comment_vcodeLogOn" title="看不清楚,换一个" onclick="RefreshValidateCodeImage(this);" src="{pe:InstallDir()}Controls/validateCodeImage.aspx" align="absmiddle" style="border:none;cursor:pointer;" />
</div>
<input type="submit" onclick="AddComment()" value="发表评论" name="BtnLogin" class="bt"/>
</div>
</div>
</xsl:template>
</xsl:transform>
]]></LabelTemplate>
</root>
@@ -0,0 +1,353 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>
</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2907" compatibleVersion="" />
<attributes>
<name>searchType</name>
<datatype>sql.int</datatype>
<default>1</default>
<intro>搜索类型 1.标题 2.作者 3.标签 4.内容</intro>
</attributes>
<attributes>
<name>keyword</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>关键字</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>50</default>
<intro>标题长度</intro>
</attributes>
<attributes>
<name>contentLength</name>
<datatype>int</datatype>
<default>200</default>
<intro>内容长度</intro>
</attributes>
<attributes>
<name>displayUpdateTime</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否显示时间</intro>
</attributes>
<attributes>
<name>displayBlogName</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否显示来源</intro>
</attributes>
<attributes>
<name>displayTag</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否显示标签</intro>
</attributes>
<attributes>
<name>ouputQty</name>
<datatype>sql.int</datatype>
<default>10</default>
<intro>输出数量</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>
</default>
<intro>链接打开方式</intro>
</attributes>
<attributes>
<name>listOrderType</name>
<datatype>sql.int</datatype>
<default>5</default>
<intro>排序方式</intro>
</attributes>
<UsePage>True</UsePage>
<IsXsltSql>true</IsXsltSql>
<IsXsltCountSql>true</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:param name="listOrderType" />
<xsl:param name="searchType" />
<xsl:param name="keyword" />
<xsl:output method="xml" />
<xsl:template match="/">
<!--请按提示编辑,保持该模板结构的正确性-->
<root>
<sql>
<!--请在这里编写你的SQL语句-->
SELECT TOP @pagesize PE_BG_log.*,PE_BG_Blog.BlogName FROM PE_BG_log INNER JOIN PE_BG_Blog ON PE_BG_log.BlogID = PE_BG_Blog.BlogID WHERE PE_BG_log.LogID Not In (SELECT TOP @startrow PE_BG_log.LogID FROM PE_BG_log INNER JOIN PE_BG_Blog ON PE_BG_log.BlogID = PE_BG_Blog.BlogID Where PE_BG_log.State=1 <xsl:if test="$keyword!=''">
<xsl:choose>
<!--标题关键字搜索-->
<xsl:when test="$searchType=1">
AND PE_BG_log.Title like '%<xsl:value-of select="$keyword" />%'
</xsl:when>
<!--作者关键字搜索-->
<xsl:when test="$searchType=2">
AND PE_BG_Blog.Nickname like '%<xsl:value-of select="$keyword" />%'
</xsl:when>
<!--标签关键字搜索-->
<xsl:when test="$searchType=3">
AND PE_BG_log.Tags like '%<xsl:value-of select="$keyword" />%'
</xsl:when>
<!--内容关键字搜索-->
<xsl:when test="$searchType=4">
AND PE_BG_log.Content like '%<xsl:value-of select="$keyword" />%'
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:choose>
<xsl:when test="$listOrderType!=''">
<!--推荐等级降序-->
<xsl:if test="$listOrderType=1">
ORDER BY PE_BG_log.EliteLevel DESC
</xsl:if>
<!--推荐等级升序-->
<xsl:if test="$listOrderType=2">
ORDER BY PE_BG_log.EliteLevel ASC
</xsl:if>
<!--博文ID降序-->
<xsl:if test="$listOrderType=3">
ORDER BY PE_BG_log.LogID DESC
</xsl:if>
<!--博文ID升序-->
<xsl:if test="$listOrderType=4">
ORDER BY PE_BG_log.LogID ASC
</xsl:if>
<!--更新时间降序-->
<xsl:if test="$listOrderType=5">
ORDER BY PE_BG_log.UpdateTime DESC
</xsl:if>
<!--更新时间升序-->
<xsl:if test="$listOrderType=6">
ORDER BY PE_BG_log.UpdateTime ASC
</xsl:if>
<!--点击数降序-->
<xsl:if test="$listOrderType=7">
ORDER BY PE_BG_log.Hits DESC
</xsl:if>
<!--点击数升序-->
<xsl:if test="$listOrderType=8">
ORDER BY PE_BG_log.Hits ASC
</xsl:if>
<!--月点击数降序-->
<xsl:if test="$listOrderType=9">
ORDER BY PE_BG_log.MonthHits DESC
</xsl:if>
<!--月点击数升序-->
<xsl:if test="$listOrderType=10">
ORDER BY PE_BG_log.MonthHits ASC
</xsl:if>
<!--周点击数降序-->
<xsl:if test="$listOrderType=11">
ORDER BY PE_BG_log.WeekHits DESC
</xsl:if>
<!--周点击数升序-->
<xsl:if test="$listOrderType=12">
ORDER BY PE_BG_log.WeekHits ASC
</xsl:if>
<!--日点击数降序-->
<xsl:if test="$listOrderType=13">
ORDER BY PE_BG_log.DayHits DESC
</xsl:if>
<!--日点击数升序-->
<xsl:if test="$listOrderType=14">
ORDER BY PE_BG_log.DayHits ASC
</xsl:if>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose> ) And PE_BG_log.State=1
<xsl:if test="$keyword!=''">
<xsl:choose>
<!--标题关键字搜索-->
<xsl:when test="$searchType=1">
AND PE_BG_log.Title like '%<xsl:value-of select="$keyword" />%'
</xsl:when>
<!--作者关键字搜索-->
<xsl:when test="$searchType=2">
AND PE_BG_Blog.Nickname like '%<xsl:value-of select="$keyword" />%'
</xsl:when>
<!--标签关键字搜索-->
<xsl:when test="$searchType=3">
AND PE_BG_log.Tags like '%<xsl:value-of select="$keyword" />%'
</xsl:when>
<!--内容关键字搜索-->
<xsl:when test="$searchType=4">
AND PE_BG_log.Content like '%<xsl:value-of select="$keyword" />%'
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:choose>
<xsl:when test="$listOrderType!=''">
<!--推荐等级降序-->
<xsl:if test="$listOrderType=1">
ORDER BY PE_BG_log.EliteLevel DESC
</xsl:if>
<!--推荐等级升序-->
<xsl:if test="$listOrderType=2">
ORDER BY PE_BG_log.EliteLevel ASC
</xsl:if>
<!--博文ID降序-->
<xsl:if test="$listOrderType=3">
ORDER BY PE_BG_log.LogID DESC
</xsl:if>
<!--博文ID升序-->
<xsl:if test="$listOrderType=4">
ORDER BY PE_BG_log.LogID ASC
</xsl:if>
<!--更新时间降序-->
<xsl:if test="$listOrderType=5">
ORDER BY PE_BG_log.UpdateTime DESC
</xsl:if>
<!--更新时间升序-->
<xsl:if test="$listOrderType=6">
ORDER BY PE_BG_log.UpdateTime ASC
</xsl:if>
<!--点击数降序-->
<xsl:if test="$listOrderType=7">
ORDER BY PE_BG_log.Hits DESC
</xsl:if>
<!--点击数升序-->
<xsl:if test="$listOrderType=8">
ORDER BY PE_BG_log.Hits ASC
</xsl:if>
<!--月点击数降序-->
<xsl:if test="$listOrderType=9">
ORDER BY PE_BG_log.MonthHits DESC
</xsl:if>
<!--月点击数升序-->
<xsl:if test="$listOrderType=10">
ORDER BY PE_BG_log.MonthHits ASC
</xsl:if>
<!--周点击数降序-->
<xsl:if test="$listOrderType=11">
ORDER BY PE_BG_log.WeekHits DESC
</xsl:if>
<!--周点击数升序-->
<xsl:if test="$listOrderType=12">
ORDER BY PE_BG_log.WeekHits ASC
</xsl:if>
<!--日点击数降序-->
<xsl:if test="$listOrderType=13">
ORDER BY PE_BG_log.DayHits DESC
</xsl:if>
<!--日点击数升序-->
<xsl:if test="$listOrderType=14">
ORDER BY PE_BG_log.DayHits ASC
</xsl:if>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</sql>
<sqlpage>
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</sqlpage>
<countsql>
<!--请在这里编写你的分页SQL语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
SELECT Count(PE_BG_log.LogID) FROM PE_BG_log INNER JOIN PE_BG_Blog ON PE_BG_log.BlogID = PE_BG_Blog.BlogID WHERE PE_BG_log.State=1
<xsl:if test="$keyword!=''">
<xsl:choose>
<!--标题关键字搜索-->
<xsl:when test="$searchType=1">
AND PE_BG_log.Title like '%<xsl:value-of select="$keyword" />%'
</xsl:when>
<!--作者关键字搜索-->
<xsl:when test="$searchType=2">
AND PE_BG_Blog.Nickname like '%<xsl:value-of select="$keyword" />%'
</xsl:when>
<!--标签关键字搜索-->
<xsl:when test="$searchType=3">
AND PE_BG_log.Tags like '%<xsl:value-of select="$keyword" />%'
</xsl:when>
<!--内容关键字搜索-->
<xsl:when test="$searchType=4">
AND PE_BG_log.Content like '%<xsl:value-of select="$keyword" />%'
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:if>
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></LabelSqlString>
<LabelSqlCount><![CDATA[请在上面的<countsql></countsql>标记之间写分页SQL查询语句
select count(id) from database]]></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:param name="ouputQty" />
<xsl:param name="titleLength" />
<xsl:param name="contentLength" />
<xsl:param name="linkOpenType" />
<xsl:param name="displayUpdateTime" />
<xsl:param name="displayBlogName" />
<xsl:param name="displayTag" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(NewDataSet/Table)=0">
<li>暂时没有信息!
</li>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="NewDataSet/Table">
<li>
<h3>
<a>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'...')"/>
</a>
</h3>
<span class="date">
<xsl:if test="$displayUpdateTime='true'">
<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd')"/>
</xsl:if>
</span>
<p> <xsl:value-of select="pe:CutText(pe:RemoveHtml(Content),$contentLength,'...')"/>
</p>
<div class="info">
<xsl:if test="$displayBlogName='true'">
来源:<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/UserIndex.aspx?Id=<xsl:value-of select="BlogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="BlogName"/>
</xsl:attribute>
<xsl:value-of select="BlogName"/>
</a>
</xsl:if>
<xsl:if test="$displayTag='true'">
 标签 {PE.Label id="自定义Tag显示" filed="<xsl:value-of select="Tags"/>" linkOpenType="1" /}
</xsl:if>
</div>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>未审核博文和草稿、回收站</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="3000" compatibleVersion="" />
<attributes>
<name>LogId</name>
<datatype>sql.int</datatype>
<default>1</default>
<intro>博文ID</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 10 LogID,State FROM PE_BG_log WHERE LogId=@LogId</LabelSqlString>
<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="LogId" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:if test="State='-1'">
(草稿)
</xsl:if>
<xsl:if test="State='-2'">
(回收站)
</xsl:if>
<xsl:if test="State='0'">
(待审核)
</xsl:if>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2902" compatibleVersion="" />
<attributes>
<name>blogId</name>
<datatype>sql.int</datatype>
<default>0</default>
<intro>博客ID</intro>
</attributes>
<attributes>
<name>outputQty</name>
<datatype>supersql</datatype>
<default>7</default>
<intro>输出评论数</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>
SELECT TOP @outputQty C.LogID,C.UserName CUN,C.Content,C.CreateTime,C.Nickname,L.BlogID,L.UpdateTime,B.BlogID BID FROM PE_BG_Comment C INNER JOIN PE_BG_log L ON C.LogID = L.LogID LEFT JOIN PE_BG_Blog B ON C.UserName=B.UserName WHERE L.BlogID=@blogId AND C.Status = 1 AND L.State = 1 ORDER BY C.CommentID DESC
</LabelSqlString>
<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="blogId" />
<xsl:param name="outputQty" />
<xsl:param name="contentLength" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table)=0">
<li class="nolistdata" >暂无评论信息!</li>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<li>
<strong>
<xsl:choose>
<xsl:when test="CUN=''">
<xsl:value-of select="Nickname"/>
</xsl:when>
<xsl:otherwise>
<a title="{Nickname}" href="{pe:InstallDir()}Blog/UserIndex.aspx?id={BID}">
<xsl:value-of select="Nickname"/>
</a>
</xsl:otherwise>
</xsl:choose>
</strong>
<span>
<xsl:value-of select="pe:FormatDate(CreateTime,'yyyy-mm-dd hh:ff')"/>
</span>
<p>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/Item.aspx?id=<xsl:value-of select="BlogID"/>&amp;logId=<xsl:value-of select="LogID"/>#commentform
</xsl:attribute>
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Content),$contentLength,'...')"/>
</a>
</p>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>contentLength</name>
<datatype>int</datatype>
<default>30</default>
<intro>输出评论内容长度</intro>
</attributes>
</root>
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2510" compatibleVersion="" />
<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_log L INNER JOIN PE_BG_COMMENT C ON L.LogID =C.LogID WHERE C.LogID = @logId</LabelSqlString>
<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="logId" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:value-of select="Column1"/>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2515" compatibleVersion="" />
<attributes>
<name>blogID</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>博客ID</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="titleLength" />
<xsl:template match="/NewDataSet">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<li class="nolistdata" >还没有博文!</li>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<li>
<span>
<a href="{pe:InstallDir()}Blog/Item.aspx?id={BlogID}&amp;logId={LogID}" title="{Title}" target="_blank">
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
</a>
</span>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>number</name>
<datatype>supersql</datatype>
<default>10</default>
<intro>显示数量</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString><![CDATA[SELECT TOP @number * FROM PE_BG_log WHERE BlogID = '@blogID' AND State=1 ORDER BY Hits DESC]]></LabelSqlString>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>50</default>
<intro>标题长度</intro>
</attributes>
</root>
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2510" compatibleVersion="" />
<LabelTemplate>
<![CDATA[
<div id="footer">
<div id="siteDom"><a href="mailto:{PE.SiteConfig.WebmasterEmail /}">联系我们</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath/}category_7/index.aspx">网站留言</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath /}category_6/index.aspx">友情链接</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath /}Category_8/index.aspx">版权声明</a> </div>
<div id="siteInfo">
{PE.SiteConfig.CopyRight /}
</div>
</div>]]></LabelTemplate>
</root>
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2901" compatibleVersion="" />
<LabelTemplate>
<![CDATA[{PE.DataSource datasource="博客数据源标签" id="博客数据源标签" BlogID="@RequestInt_Id" xslt="true" /}
<div id="maskBlog" class="mask"> </div>
{PE.Label id="博客弹出层初始化JS" /}
{PE.Label id="博客开通"/}
{PE.Label id="博客信息提示"/}
{PE.Label id="博客顶部登录" inLabel="true"/}
{PE.Label id="博客名称编辑弹出层" inLabel="true" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}
{PE.Label id="页面设置" inLabel="true" src="{PE.SiteConfig.ApplicationPath/}Blog/SkinSet.aspx" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}
<div id="header">
<div id="topBar">
<h2><a href="{PE.SiteConfig.ApplicationPath/}Blog/Index.aspx" title="动易博客">{PE.SiteConfig.SiteName /}博客</a></h2>
<div id="toolBar">
<span id="loginBar"><a href="javascript:;" onclick='ShowPopup("maskLogin","login_box")'>登录</a> | <a href="{PE.SiteConfig.ApplicationPath/}User/Register.aspx">注册</a></span><a id="user_Blog"></a> <input id="searchValue" class="inText" type="text"/> <input id="search" class="bt" type="button" value="搜索" onclick="OnUserSearch()"/>
</div>
</div>
<div id="siteTitle">
<h1><a href="{PE.SiteConfig.ApplicationPath/}Blog/UserIndex.aspx?id=@RequestInt_Id"><span id="blogname">{PE.Field id="博客数据源标签" fieldname="BlogName"/}</span></a> </h1> {PE.Label id="博客名称编辑" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}
</div>
<ul id="nav">
{PE.Label id="用户博客顶部导航" blogId="@RequestInt_Id" categoryId="@RequestInt_categoryid" oupputQty="7" openType="0" /}
</ul>
<div id="topManager">
{PE.Label id="顶部博客管理" blogId="@RequestInt_Id" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}
</div>
</div>
<script>
function OnUserSearch(){
var tarEle=document.getElementById("searchValue");
if(tarEle.value==""){
ShowBlogMessage("warn","请填写您想搜索的关键词!","");
}
else{
window.location = "{PE.SiteConfig.applicationpath/}Blog/search.aspx?searchtype=1&Keyword=" + escape(tarEle.value);
}
}
CheckBlogIsLogin();
</script>
]]>
</LabelTemplate>
</root>
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2517" compatibleVersion="" />
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT COUNT(*) FROM PE_BG_log WHERE BlogID=@blogId AND State=-2</LabelSqlString>
<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="blogId" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/UserCategory.aspx?id=<xsl:value-of select="$blogId" />&amp;type=2</xsl:attribute>
<xsl:attribute name="title">
</xsl:attribute>
回收站</a>(<xsl:value-of select="Column1"/>)
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>blogId</name>
<datatype>sql.int</datatype>
<default>
</default>
<intro>博客ID</intro>
</attributes>
</root>
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2900" compatibleVersion="" />
<attributes>
<name>tags</name>
<datatype>string</datatype>
<default>
</default>
<intro>博文Tags</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:param name="tags"/>
<xsl:output method="html" />
<xsl:template match="/">
<xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="$tags"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="splitStr">
<xsl:param name="srcStr"/>
<xsl:choose>
<xsl:when test="contains($srcStr,' ')">
<xsl:call-template name="TagUrl">
<xsl:with-param name="tag" select="substring-before($srcStr,' ')" />
</xsl:call-template>
<xsl:variable name="dstStr" select="pe:Trim(substring-after($srcStr,' '),' ')" />
<xsl:choose>
<xsl:when test="contains($dstStr,' ')">
<xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="$dstStr"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="TagUrl">
<xsl:with-param name="tag" select="$dstStr"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="TagUrl">
<xsl:with-param name="tag" select="$srcStr"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="TagUrl">
<xsl:param name="tag"/>
<a>
<xsl:attribute name="href"><xsl:value-of select="pe:InstallDir()"/>Blog/search.aspx?searchtype=3&amp;Keyword=<xsl:value-of select="$tag"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="$tag"/>
</xsl:attribute>
<xsl:value-of select="$tag"/>
</a>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
</root>
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2511" compatibleVersion="" />
<attributes>
<name>blogID</name>
<datatype>supersql</datatype>
<default>0</default>
<intro>博客ID</intro>
</attributes>
<attributes>
<name>number</name>
<datatype>supersql</datatype>
<default>10</default>
<intro>显示数量</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>50</default>
<intro>标题长度</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString><![CDATA[SELECT TOP @number * FROM PE_BG_log WHERE EliteLevel > 0 ORDER BY EliteLevel DESC]]></LabelSqlString>
<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="titleLength" />
<xsl:template match="/NewDataSet">
<xsl:choose>
<xsl:when test="count(/NewDataSet/Table) = 0">
<li class="nolistdata" >还没有推荐博文!</li>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="/NewDataSet/Table">
<li>
<span>
<a href="{pe:InstallDir()}Blog/Item.aspx?Id={LogID}" title="{Title}" target="_blank">
<xsl:value-of select="pe:CutText(Title,$titleLength,'…')" />
</a>
</span>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
</root>
@@ -0,0 +1,344 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2914" compatibleVersion="" />
<attributes>
<name>ouputQty</name>
<datatype>sql.int</datatype>
<default>10</default>
<intro>输出数量</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:param name="isElite"/>
<xsl:param name="categoryId"/>
<xsl:param name="listOrderType"/>
<xsl:param name="isIndex"/>
<xsl:param name="isCategory"/>
<xsl:template match="/">
<!--请按提示编辑,保持该模板结构的正确性-->
<root>
<sql>
SELECT TOP @ouputQty L.*,B.Nickname FROM PE_BG_log L INNER JOIN PE_BG_Blog B ON L.BlogID= B.BlogID WHERE L.State=1
<xsl:if test="$isIndex='true'">
AND L.IndexState=2
</xsl:if>
<xsl:if test="$isCategory='true'">
AND L.ClassState=2
</xsl:if>
<xsl:choose>
<xsl:when test="$isElite='true'">
AND L.EliteLevel>0
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$categoryId!=''">
AND L.CategoryID=<xsl:value-of select="$categoryId"/>
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="$listOrderType!=''">
<!--推荐等级降序-->
<xsl:if test="$listOrderType=1">
ORDER BY L.EliteLevel DESC
</xsl:if>
<!--推荐等级升序-->
<xsl:if test="$listOrderType=2">
ORDER BY L.EliteLevel ASC
</xsl:if>
<!--博文ID降序-->
<xsl:if test="$listOrderType=3">
ORDER BY L.LogID DESC
</xsl:if>
<!--博文ID升序-->
<xsl:if test="$listOrderType=4">
ORDER BY L.LogID ASC
</xsl:if>
<!--更新时间降序-->
<xsl:if test="$listOrderType=5">
ORDER BY L.UpdateTime DESC
</xsl:if>
<!--更新时间升序-->
<xsl:if test="$listOrderType=6">
ORDER BY L.UpdateTime ASC
</xsl:if>
<!--点击数降序-->
<xsl:if test="$listOrderType=7">
ORDER BY L.Hits DESC
</xsl:if>
<!--点击数升序-->
<xsl:if test="$listOrderType=8">
ORDER BY L.Hits ASC
</xsl:if>
<!--月点击数降序-->
<xsl:if test="$listOrderType=9">
ORDER BY L.MonthHits DESC
</xsl:if>
<!--月点击数升序-->
<xsl:if test="$listOrderType=10">
ORDER BY L.MonthHits ASC
</xsl:if>
<!--周点击数降序-->
<xsl:if test="$listOrderType=11">
ORDER BY L.WeekHits DESC
</xsl:if>
<!--周点击数升序-->
<xsl:if test="$listOrderType=12">
ORDER BY L.WeekHits ASC
</xsl:if>
<!--日点击数降序-->
<xsl:if test="$listOrderType=13">
ORDER BY L.DayHits DESC
</xsl:if>
<!--日点击数升序-->
<xsl:if test="$listOrderType=14">
ORDER BY L.DayHits ASC
</xsl:if>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</sql>
<sqlpage>
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</sqlpage>
<countsql>
<!--请在这里编写你的分页SQL语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></LabelSqlString>
<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="ouputQty" />
<xsl:param name="titleLength" />
<xsl:param name="linkOpenType" />
<xsl:param name="isShowNum" />
<xsl:param name="titleStyle"/>
<xsl:param name="displayInputer"/>
<xsl:param name="inputerStyle"/>
<xsl:param name="partitionNums"/>
<xsl:param name="categoryId"/>
<xsl:param name="numStyle"/>
<xsl:param name="displayHits"/>
<xsl:param name="hitsSytle"/>
<xsl:param name="hitsType"/>
<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>
<xsl:if test="position() mod $partitionNums = 0">
<xsl:attribute name="class">separator</xsl:attribute>
</xsl:if>
<xsl:if test="$isShowNum='true'">
<em>
<xsl:if test="$numStyle!=''">
<xsl:attribute name="class">
<xsl:value-of select="$numStyle"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="position()"/>
</em>
</xsl:if>
<a>
<xsl:if test="$titleStyle!=''">
<xsl:attribute name="class">
<xsl:value-of select="$titleStyle" />
</xsl:attribute>
</xsl:if>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'...')"/>
</a>
<xsl:if test="$displayInputer='true'">
<span>
<xsl:if test="$inputerStyle!=''">
<xsl:attribute name="class">
<xsl:value-of select="$inputerStyle" />
</xsl:attribute>
</xsl:if>
<a>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/UserIndex.aspx?Id=<xsl:value-of select="BlogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
</a>
<span title='{Nickname}'><xsl:value-of select="pe:CutText(Nickname,12,'…')"/></span>
</span>
</xsl:if>
<xsl:if test="$displayHits='true'">
<span>
<xsl:if test="$hitsSytle!=''">
<xsl:attribute name="class">
<xsl:value-of select="$hitsSytle"/>
</xsl:attribute>
</xsl:if>
<!--总点击数-->
<xsl:choose>
<xsl:when test="$hitsType!=0">
<xsl:if test="$hitsType=7">
<xsl:value-of select="Hits"/>
</xsl:if>
<!--月点击数-->
<xsl:if test="$hitsType=9">
<xsl:value-of select="MonthHits"/>
</xsl:if>
<!--周点击数-->
<xsl:if test="$hitsType=11">
<xsl:value-of select="WeekHits"/>
</xsl:if>
<!--日点击数-->
<xsl:if test="$hitsType=13">
<xsl:value-of select="DayHits"/>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="Hits"/>
</xsl:otherwise>
</xsl:choose>
</span>
</xsl:if>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>30</default>
<intro>标题截取长度</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>_blank</default>
<intro>链接打开方式</intro>
</attributes>
<attributes>
<name>listOrderType</name>
<datatype>int</datatype>
<default>1</default>
<intro>排序类型</intro>
</attributes>
<attributes>
<name>displayInputer</name>
<datatype>bool</datatype>
<default>false</default>
<intro>是否显示作者</intro>
</attributes>
<attributes>
<name>displayHits</name>
<datatype>bool</datatype>
<default>false</default>
<intro>是否点击数</intro>
</attributes>
<attributes>
<name>titleStyle</name>
<datatype>string</datatype>
<default>
</default>
<intro>标题样式</intro>
</attributes>
<attributes>
<name>inputerStyle</name>
<datatype>string</datatype>
<default>
</default>
<intro>作者样式</intro>
</attributes>
<attributes>
<name>isShowNum</name>
<datatype>bool</datatype>
<default>false</default>
<intro>是否显示数字</intro>
</attributes>
<attributes>
<name>categoryId</name>
<datatype>sql.int</datatype>
<default>
</default>
<intro>分类ID</intro>
</attributes>
<attributes>
<name>isElite</name>
<datatype>bool</datatype>
<default>false</default>
<intro>是否推荐</intro>
</attributes>
<attributes>
<name>partitionNums</name>
<datatype>int</datatype>
<default>0</default>
<intro>每多少行分隔</intro>
</attributes>
<attributes>
<name>numStyle</name>
<datatype>string</datatype>
<default>
</default>
<intro>数字样式</intro>
</attributes>
<attributes>
<name>hitsSytle</name>
<datatype>string</datatype>
<default>
</default>
<intro>点击数样式</intro>
</attributes>
<attributes>
<name>hitsType</name>
<datatype>int</datatype>
<default>
</default>
<intro>点击数类型</intro>
</attributes>
<attributes>
<name>isIndex</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否只显示推荐首页博文</intro>
</attributes>
<attributes>
<name>isCategory</name>
<datatype>bool</datatype>
<default>true</default>
<intro>是否只显示推荐分类博文</intro>
</attributes>
</root>
@@ -0,0 +1,315 @@
<?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="2922" compatibleVersion="" />
<attributes>
<name>ouputQty</name>
<datatype>sql.int</datatype>
<default>10</default>
<intro>输出数量</intro>
</attributes>
<IsXsltSql>true</IsXsltSql>
<IsXsltCountSql>true</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:param name="isElite"/>
<xsl:param name="categoryId"/>
<xsl:param name="listOrderType"/>
<xsl:template match="/">
<!--请按提示编辑,保持该模板结构的正确性-->
<xsl:variable name="filter">
<xsl:choose>
<xsl:when test="$categoryId!=0">
L.State=1 AND L.ClassState=2 AND L.CategoryID=@categoryId
<xsl:choose>
<xsl:when test="$isElite='true'">
AND L.EliteLevel>0
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
L.State=1 AND (L.ClassState=2 OR L.IndexState=2)
<xsl:choose>
<xsl:when test="$isElite='true'">
AND L.EliteLevel>0
</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="order"><xsl:choose>
<xsl:when test="$listOrderType!=''">
<!--推荐等级降序-->
<xsl:if test="$listOrderType=1">L.EliteLevel DESC,L.LogID DESC</xsl:if>
<!--推荐等级升序-->
<xsl:if test="$listOrderType=2">L.EliteLevel ASC,L.LogID DESC</xsl:if>
<!--博文ID降序-->
<xsl:if test="$listOrderType=3">L.LogID DESC</xsl:if>
<!--博文ID升序-->
<xsl:if test="$listOrderType=4">L.LogID ASC</xsl:if>
<!--更新时间降序-->
<xsl:if test="$listOrderType=5">L.UpdateTime DESC,L.LogID DESC</xsl:if>
<!--更新时间升序-->
<xsl:if test="$listOrderType=6">L.UpdateTime ASC,L.LogID DESC</xsl:if>
<!--点击数降序-->
<xsl:if test="$listOrderType=7">L.Hits DESC,L.LogID DESC</xsl:if>
<!--点击数升序-->
<xsl:if test="$listOrderType=8">L.Hits ASC,L.LogID DESC</xsl:if>
<!--月点击数降序-->
<xsl:if test="$listOrderType=9">L.MonthHits DESC,L.LogID DESC</xsl:if>
<!--月点击数升序-->
<xsl:if test="$listOrderType=10">L.MonthHits ASC,L.LogID DESC</xsl:if>
<!--周点击数降序-->
<xsl:if test="$listOrderType=11">L.WeekHits DESC,L.LogID DESC</xsl:if>
<!--周点击数升序-->
<xsl:if test="$listOrderType=12">L.WeekHits ASC,L.LogID DESC</xsl:if>
<!--日点击数降序-->
<xsl:if test="$listOrderType=13">L.DayHits DESC,L.LogID DESC</xsl:if>
<!--日点击数升序-->
<xsl:if test="$listOrderType=14">L.DayHits ASC,L.LogID DESC</xsl:if>
</xsl:when>
<xsl:otherwise>L.LogID DESC</xsl:otherwise></xsl:choose></xsl:variable>
<root>
<sql>EXEC [dbo].[PR_Common_PagingLarge] 'PE_BG_Log L INNER JOIN PE_BG_Blog B ON L.BlogID=B.BlogID','L.LogID','L.*,B.Nickname',@pagesize,@startrow ,'<xsl:value-of select="$filter"/>','','<xsl:value-of select="$order"/>'</sql>
<sqlpage>
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</sqlpage>
<countsql>SELECT COUNT(LogID) FROM PE_BG_log L INNER JOIN PE_BG_Blog B ON L.BlogID=B.BlogID WHERE <xsl:value-of select="$filter"/></countsql>
</root>
</xsl:template>
</xsl:transform>]]></LabelSqlString>
<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="ouputQty" />
<xsl:param name="titleLength" />
<xsl:param name="linkOpenType" />
<xsl:param name="isShowNum" />
<xsl:param name="titleStyle"/>
<xsl:param name="displayInputer"/>
<xsl:param name="inputerStyle"/>
<xsl:param name="partitionNums"/>
<xsl:param name="categoryId"/>
<xsl:param name="numStyle"/>
<xsl:param name="displayHits"/>
<xsl:param name="hitsSytle"/>
<xsl:param name="hitsType"/>
<xsl:param name="displayTime"/>
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(NewDataSet/Table)=0">
<li>暂时没有信息!
</li>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="NewDataSet/Table">
<li>
<xsl:if test="position() mod $partitionNums=0">
<xsl:attribute name="class">separator</xsl:attribute>
</xsl:if>
<xsl:if test="$isShowNum='true'">
<em>
<xsl:if test="$numStyle!=''">
<xsl:attribute name="class">
<xsl:value-of select="$numStyle"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="position()"/>
</em>
</xsl:if>
<a>
<xsl:if test="$titleStyle!=''">
<xsl:attribute name="class">
<xsl:value-of select="$titleStyle" />
</xsl:attribute>
</xsl:if>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/Item.aspx?Id=<xsl:value-of select="BlogID"/>&amp;LogId=<xsl:value-of select="LogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'...')"/>
</a>
<span class="date">
<xsl:if test="$displayTime='true'">
<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd') "/>
</xsl:if>
</span>
<xsl:if test="$displayInputer='true'">
<span>
<xsl:if test="$inputerStyle!=''">
<xsl:attribute name="class">
<xsl:value-of select="$inputerStyle" />
</xsl:attribute>
</xsl:if>
<a>
<xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/UserIndex.aspx?Id=<xsl:value-of select="BlogID"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:value-of select="Nickname"/>
</a>
</span>
</xsl:if>
<xsl:if test="$displayHits='true'">
<span>
<xsl:if test="$hitsSytle!=''">
<xsl:attribute name="class">
<xsl:value-of select="$hitsSytle"/>
</xsl:attribute>
</xsl:if>
<!--总点击数-->
<xsl:choose>
<xsl:when test="$hitsType!=0">
<xsl:if test="$hitsType=7">
<xsl:value-of select="Hits"/>
</xsl:if>
<!--月点击数-->
<xsl:if test="$hitsType=9">
<xsl:value-of select="MonthHits"/>
</xsl:if>
<!--周点击数-->
<xsl:if test="$hitsType=11">
<xsl:value-of select="WeekHits"/>
</xsl:if>
<!--日点击数-->
<xsl:if test="$hitsType=13">
<xsl:value-of select="DayHits"/>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="Hits"/>
</xsl:otherwise>
</xsl:choose>
</span>
</xsl:if>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>displayTime</name>
<datatype>bool</datatype>
<default>false</default>
<intro>是否显示时间</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>10</default>
<intro>标题截取长度</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>_blank</default>
<intro>链接打开方式</intro>
</attributes>
<attributes>
<name>listOrderType</name>
<datatype>int</datatype>
<default>1</default>
<intro>排序类型</intro>
</attributes>
<attributes>
<name>displayInputer</name>
<datatype>bool</datatype>
<default>false</default>
<intro>是否显示作者</intro>
</attributes>
<attributes>
<name>displayHits</name>
<datatype>bool</datatype>
<default>false</default>
<intro>是否点击数</intro>
</attributes>
<attributes>
<name>titleStyle</name>
<datatype>string</datatype>
<default>
</default>
<intro>标题样式</intro>
</attributes>
<attributes>
<name>inputerStyle</name>
<datatype>string</datatype>
<default>
</default>
<intro>作者样式</intro>
</attributes>
<attributes>
<name>isShowNum</name>
<datatype>bool</datatype>
<default>false</default>
<intro>是否显示数字</intro>
</attributes>
<attributes>
<name>categoryId</name>
<datatype>sql.int</datatype>
<default>0</default>
<intro>分类ID</intro>
</attributes>
<attributes>
<name>isElite</name>
<datatype>bool</datatype>
<default>false</default>
<intro>是否推荐</intro>
</attributes>
<attributes>
<name>partitionNums</name>
<datatype>int</datatype>
<default>0</default>
<intro>每多少行分隔</intro>
</attributes>
<attributes>
<name>numStyle</name>
<datatype>string</datatype>
<default>
</default>
<intro>数字样式</intro>
</attributes>
<attributes>
<name>hitsSytle</name>
<datatype>string</datatype>
<default>
</default>
<intro>点击数样式</intro>
</attributes>
<attributes>
<name>hitsType</name>
<datatype>int</datatype>
<default>
</default>
<intro>点击数类型</intro>
</attributes>
<UsePage>True</UsePage>
<LabelSqlCount>
SELECT count(LogID) FROM PE_BG_log WHERE State=1 AND (ClassState=2 OR IndexState=2)
</LabelSqlCount>
<LabelSqlPage>
</LabelSqlPage>
</root>
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2519" compatibleVersion="" />
<attributes>
<name>username</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>用户名</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString><![CDATA[SELECT COUNT(BlogName) FROM PE_BG_Blog WHERE UserName='@username'AND BlogID='@blogid']]></LabelSqlString>
<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="blogid" />
<xsl:param name="type"/>
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="Column1=0">
</xsl:when>
<xsl:otherwise>
<li>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="$type=1">current</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
{PE.Label id="草稿箱" blogId="<xsl:value-of select="$blogid" />" /}
</li>
<li>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="$type=2">current</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
{PE.Label id="回收站" blogId="<xsl:value-of select="$blogid" />" /}
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>blogid</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>博客ID</intro>
</attributes>
<attributes>
<name>type</name>
<datatype>int</datatype>
<default>
</default>
<intro>类型</intro>
</attributes>
</root>
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="3500" compatibleVersion="" />
<attributes>
<name>BlogID</name>
<datatype>sql.int</datatype>
<default>0</default>
<intro>{默认值:0,自动传入:@RequestInt_Id}</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 1 BlogName FROM PE_BG_Blog WHERE BlogID = @BlogID</LabelSqlString>
<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="BlogID" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:value-of select="/NewDataSet/Table/BlogName"/>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2901" compatibleVersion="" />
<attributes>
<name>username</name>
<datatype>sql.string</datatype>
<default>
</default>
<intro>用户名</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 1 Nickname FROM PE_BG_Blog WHERE UserName=@username</LabelSqlString>
<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="username" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:value-of select="Nickname" />
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2511" compatibleVersion="" />
<LabelTemplate><![CDATA[<div class="foot"><div class="content"><div id="siteDom"><a href="mailto:{PE.SiteConfig.WebmasterEmail /}">联系我们</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath/}category_7/index.aspx">网站留言</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath /}category_6/index.aspx">友情链接</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath /}Category_8/index.aspx">版权声明</a></div>
<div id="siteInfo">
{PE.SiteConfig.CopyRight /}
</div>
</div></div>]]></LabelTemplate>
</root>
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2901" compatibleVersion="" />
<LabelTemplate>
<![CDATA[{PE.DataSource datasource="博客数据源标签" id="博客数据源标签" BlogID="@RequestInt_Id" xslt="true" /}
<div id="maskBlog" class="mask"> </div>
{PE.Label id="博客弹出层初始化JS" /}
{PE.Label id="博客开通"/}
{PE.Label id="博客信息提示"/}
{PE.Label id="博客顶部登录" inLabel="true"/}
{PE.Label id="博客名称编辑弹出层" inLabel="true" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}
{PE.Label id="页面设置" inLabel="true" src="{PE.SiteConfig.ApplicationPath/}Blog/SkinSet.aspx" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}
<div id="header">
<div id="topBar">
<h2><a href="{PE.SiteConfig.ApplicationPath/}Blog/Index.aspx" title="动易博客">{PE.SiteConfig.SiteName /}博客</a></h2>
<div id="toolBar">
<span id="loginBar"><a href="javascript:;" onclick='ShowPopup("maskLogin","login_box")'>登录</a> | <a href="{PE.SiteConfig.ApplicationPath/}User/Register.aspx">注册</a></span><a id="user_Blog"></a> <input id="searchValue" class="inText" type="text"/> <input id="search" class="bt" type="button" value="搜索" onclick="OnUserSearch()"/>
</div>
</div>
<div class="name">
<div id="siteTitle">
<h1><a href="{PE.SiteConfig.ApplicationPath/}Blog/UserIndex.aspx?id=@RequestInt_Id"><span id="blogname">{PE.Field id="博客数据源标签" fieldname="BlogName"/}</span></a> </h1> {PE.Label id="博客名称编辑" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}
</div>
<div id="topManager">
{PE.Label id="顶部博客管理" blogId="@RequestInt_Id" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}
</div>
</div>
<div class="M001MN1101">
<ul>
{PE.Label id="用户博客顶部导航" blogId="@RequestInt_Id" categoryId="@RequestInt_categoryid" oupputQty="7" openType="0" /}
</ul>
</div>
</div>
<script>
function OnUserSearch(){
var tarEle=document.getElementById("searchValue");
if(tarEle.value==""){
ShowBlogMessage("warn","请填写您想搜索的关键词!","");
}
else{
window.location = "{PE.SiteConfig.applicationpath/}Blog/search.aspx?searchtype=1&Keyword=" + escape(tarEle.value);
}
}
CheckBlogIsLogin();
</script>
]]>
</LabelTemplate>
</root>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2510" compatibleVersion="" />
<LabelTemplate>
<![CDATA[<div id="footer">
<div id="siteDom"><a href="mailto:{PE.SiteConfig.WebmasterEmail /}">联系我们</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath/}category_7/index.aspx">网站留言</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath /}category_6/index.aspx">友情链接</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="{PE.SiteConfig.ApplicationPath /}Category_8/index.aspx">版权声明</a> </div>
<div id="siteInfo">
{PE.SiteConfig.CopyRight /}
</div>
</div>]]></LabelTemplate>
</root>
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>txt</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2901" compatibleVersion="" />
<LabelTemplate>
<![CDATA[{PE.DataSource datasource="博客数据源标签" id="博客数据源标签" BlogID="@RequestInt_Id" xslt="true" /}
<div id="maskBlog" class="mask"> </div>
{PE.Label id="博客弹出层初始化JS" /}
{PE.Label id="博客开通"/}
{PE.Label id="博客信息提示"/}
{PE.Label id="博客顶部登录" inLabel="true"/}
{PE.Label id="博客名称编辑弹出层" inLabel="true" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}
{PE.Label id="页面设置" inLabel="true" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}
<div id="header">
<div class="topnav">
<div id="topbar" class="bar_01">
<div class="rightbar"><span id="loginBar"><a href="javascript:;" onclick='ShowPopup("maskLogin","login_box")'>登录</a> | <a href="{PE.SiteConfig.ApplicationPath/}User/Register.aspx">注册</a></span><a id="user_Blog"></a> {PE.Label id="顶部博客管理" blogId="@RequestInt_Id" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}<input id="searchValue" class="inText" type="text"/> <input id="search" class="bt" type="button" value="搜索" onclick="OnUserSearch()"/></div>
<div class="leftbar"><span class="blog_index"><a href="{PE.SiteConfig.ApplicationPath/}Blog/Index.aspx">动易博客</a></span></div>
</div>
</div>
<div class="topbanner">
<div class="blogname">
<div class="talk"> <span class="pc_01" id="blogname">{PE.Field id="博客数据源标签" fieldname="BlogName"/}</span><span class="pc_02">{PE.Label id="博客名称编辑" userName="{PE.Field id="博客数据源标签" fieldname="UserName"/}"/}</span></div>
</div>
<div class="mainnav">
<ul class="nav">
{PE.Label id="用户博客顶部导航" blogId="@RequestInt_Id" categoryId="@RequestInt_categoryid" oupputQty="7" openType="0" /}
</ul>
</div>
</div>
</div>
<script>
function OnUserSearch(){
var tarEle=document.getElementById("searchValue");
if(tarEle.value==""){
ShowBlogMessage("warn","请填写您想搜索的关键词!","");
}
else{
window.location = "{PE.SiteConfig.applicationpath/}Blog/search.aspx?searchtype=1&Keyword=" + escape(tarEle.value);
}
}
CheckBlogIsLogin();
</script>
]]>
</LabelTemplate>
</root>
@@ -0,0 +1,121 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2915" compatibleVersion="" />
<attributes>
<name>ouputQty</name>
<datatype>sql.int</datatype>
<default>10</default>
<intro>输出数量</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:param name="listOrderType"/>
<xsl:template match="/">
<!--请按提示编辑,保持该模板结构的正确性-->
<root>
<sql>
SELECT TOP @ouputQty PE_BG_log.* FROM PE_BG_log WHERE State=1 AND IndexState=2
<xsl:choose>
<xsl:when test="$listOrderType!=''">
<!--点击数升序-->
<xsl:if test="$listOrderType=1">
ORDER BY Hits ASC
</xsl:if>
<!--月点击数降序-->
<xsl:if test="$listOrderType=2">
ORDER BY MonthHits DESC
</xsl:if>
<!--周点击数降序-->
<xsl:if test="$listOrderType=3">
ORDER BY WeekHits DESC
</xsl:if>
<!--日点击数降序-->
<xsl:if test="$listOrderType=4">
ORDER BY DayHits DESC
</xsl:if>
<!--推荐等级降序-->
<xsl:if test="$listOrderType=5">
ORDER BY EliteLevel DESC
</xsl:if>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</sql>
<sqlpage>
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</sqlpage>
<countsql>
<!--请在这里编写你的分页SQL语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></LabelSqlString>
<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="ouputQty" />
<xsl:param name="titleLength" />
<xsl:param name="linkOpenType" />
<xsl:param name="contentLength" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(NewDataSet/Table)=0">
<li>暂时没有信息!</li>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="NewDataSet/Table">
<h4>
<a> <xsl:attribute name="target">
<xsl:value-of select="$linkOpenType" />
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/Item.aspx?LogId=<xsl:value-of select="LogID" />&amp;ID=<xsl:value-of select="BlogID" />
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:value-of select="pe:CutText(pe:RemoveHtml(Title),$titleLength,'...')"/>
</a>
</h4>
<p> <xsl:value-of select="pe:CutText(pe:RemoveHtml(Content),$contentLength,'...')"/> </p>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>10</default>
<intro>标题截取长度</intro>
</attributes>
<attributes>
<name>linkOpenType</name>
<datatype>string</datatype>
<default>_blank</default>
<intro>链接打开方式</intro>
</attributes>
<attributes>
<name>listOrderType</name>
<datatype>int</datatype>
<default>1</default>
<intro>排序类型 1 点击数 2 月点击数 3 周点击数 4 日点击数 5 推荐级别</intro>
</attributes>
<attributes>
<name>contentLength</name>
<datatype>int</datatype>
<default>200</default>
<intro>内容长度</intro>
</attributes>
</root>
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2902" compatibleVersion="" />
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP @oupputQty UserCategoryID,CategoryName FROM PE_BG_UserCategory WHERE BlogID= @blogId ORDER BY OrderID ASC</LabelSqlString>
<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="categoryId"/>
<xsl:param name="blogId" />
<xsl:param name="linkOpenType"/>
<xsl:param name="titleLength"/>
<xsl:output method="html"/>
<xsl:template match="/">
<li>
<xsl:if test="$categoryId=0">
<xsl:attribute name="class">current</xsl:attribute>
</xsl:if>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/UserIndex.aspx?id=<xsl:value-of select="$blogId" />
</xsl:attribute>
<xsl:attribute name="title">首页</xsl:attribute>
<xsl:attribute name="target">
<xsl:choose>
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$linkOpenType"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<span>首页</span>
</a>
</li>
<xsl:for-each select="/NewDataSet/Table">
<li>
<xsl:choose>
<xsl:when test="$categoryId=UserCategoryID">
<xsl:attribute name="class">current</xsl:attribute>
<xsl:if test="position() = last()">
<xsl:attribute name="class">lastOne current</xsl:attribute>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:if test="position() = last()">
<xsl:attribute name="class">lastOne</xsl:attribute>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/UserCategory.aspx?id=<xsl:value-of select="$blogId" />&amp;categoryId=<xsl:value-of select="UserCategoryID" />
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="CategoryName"/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:choose>
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$linkOpenType"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<span>
<xsl:value-of select="pe:CutText(CategoryName,$titleLength,'')"/>
</span>
</a>
</li>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>blogId</name>
<datatype>sql.int</datatype>
<default>0</default>
<intro>博客ID{默认值:0,自动传入:@RequestInt_Id}</intro>
</attributes>
<attributes>
<name>categoryId</name>
<datatype>sql.int</datatype>
<default>0</default>
<intro>当前类别ID{默认值:0,自动传入:@RequestInt_categoryid}</intro>
</attributes>
<attributes>
<name>oupputQty</name>
<datatype>sql.int</datatype>
<default>7</default>
<intro>输出数量</intro>
</attributes>
<attributes>
<name>openType</name>
<datatype>int</datatype>
<default>0</default>
<intro>打开方式{默认值:0,原窗口打开,1:新窗口打开}</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>14</default>
<intro>标题长度</intro>
</attributes>
</root>
@@ -0,0 +1,116 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2523" compatibleVersion="" />
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP @outputQty * FROM PE_BG_UserCategory WHERE BlogID=@blogId ORDER BY OrderID ASC</LabelSqlString>
<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="blogId" />
<xsl:param name="categoryId" />
<xsl:param name="type" />
<xsl:param name="titleLength"/>
<xsl:output method="html" />
<xsl:variable name="categoryCount" select="count(/NewDataSet/Table)"/>
<xsl:template match="/">
<li>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="$type=0">
<xsl:choose>
<xsl:when test="$categoryId=0">
current
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/UserCategory.aspx?id=<xsl:value-of select="$blogId" />
</xsl:attribute>
<xsl:attribute name="title">
</xsl:attribute>
全部博文
</a>
<span>
({PE.Label id="获取所有栏目博文数" username="{PE.Label id="获取博主用户名" blogId="<xsl:value-of select="$blogId"/>" cachetime="17280" cacheid="<xsl:value-of select="$blogId"/>"/}" BlogID="<xsl:value-of select="$blogId" />" /})
</span>
</li>
<xsl:for-each select="NewDataSet/Table">
<li>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="$categoryId=UserCategoryID">
current
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="$categoryCount = position()">
<xsl:attribute name="style">border-bottom:1px dashed #CCCCCC;</xsl:attribute>
</xsl:if>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/UserCategory.aspx?id=<xsl:value-of select="$blogId" />&amp;categoryId=<xsl:value-of select="UserCategoryID"/>
</xsl:attribute>
<xsl:attribute name="title">
</xsl:attribute>
<xsl:value-of select="pe:CutText(CategoryName,$titleLength,'')"/>
</a>
<span>
({PE.Label id="获取栏目博文数" username="{PE.Label id="获取博主用户名" blogId="<xsl:value-of select="$blogId" />" cachetime="17280" cacheid="<xsl:value-of select="$blogId" />"/}" blogId="<xsl:value-of select="$blogId" />" categoryId="<xsl:value-of select="UserCategoryID"/>" /})
</span>
</li>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>blogId</name>
<datatype>sql.int</datatype>
<default>
</default>
<intro>博客ID</intro>
</attributes>
<attributes>
<name>categoryId</name>
<datatype>string</datatype>
<default>
</default>
<intro>分类ID</intro>
</attributes>
<attributes>
<name>outputQty</name>
<datatype>supersql</datatype>
<default>10</default>
<intro>输出数量</intro>
</attributes>
<attributes>
<name>type</name>
<datatype>int</datatype>
<default>
</default>
<intro>类型</intro>
</attributes>
<attributes>
<name>titleLength</name>
<datatype>int</datatype>
<default>24</default>
<intro>标题长度</intro>
</attributes>
</root>
@@ -0,0 +1,127 @@
<?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="2540" compatibleVersion="" />
<attributes>
<name>blogId</name>
<datatype>sql.int</datatype>
<default>0</default>
<intro>博客ID</intro>
</attributes>
<IsXsltSql>true</IsXsltSql>
<IsXsltCountSql>true</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:param name="type" />
<xsl:param name="username" />
<xsl:param name="userCategoryID" />
<xsl:output method="xml" />
<xsl:template match="/">
<!--请按提示编辑,保持该模板结构的正确性-->
<root>
<xsl:variable name="filterState">
<xsl:choose>
<xsl:when test="$type=0">
<xsl:choose>
<xsl:when test="pe:LoginedUserName()=$username">State>-1</xsl:when>
<xsl:otherwise>State>0</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:if test="$type=1">
<xsl:choose>
<xsl:when test="pe:LoginedUserName()=$username">State=-1</xsl:when>
<xsl:otherwise>State>0</xsl:otherwise>
</xsl:choose>
</xsl:if>
<xsl:if test="$type=2">
<xsl:choose>
<xsl:when test="pe:LoginedUserName()=$username">State=-2</xsl:when>
<xsl:otherwise>State>0</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="filterCategory">
<xsl:if test="$userCategoryID>0">
AND UserCategoryID=<xsl:value-of select="$userCategoryID" />
</xsl:if>
</xsl:variable>
<sql> EXEC [dbo].[PR_Common_PagingLarge] 'PE_BG_log','LogID','*',@pagesize,@startrow,'<xsl:value-of select="$filterState"/><xsl:value-of select="$filterCategory"/> AND BlogID = @blogId','','LogId DESC'</sql>
<sqlpage>
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</sqlpage>
<countsql>select count(LogID) from PE_BG_log WHERE BlogId=@blogId AND <xsl:value-of select="$filterState"/><xsl:value-of select="$filterCategory"/></countsql>
</root>
</xsl:template>
</xsl:transform>]]>
</LabelSqlString>
<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="username" />
<xsl:param name="type" />
<xsl:param name="blogId" />
<xsl:output method="html" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="count(NewDataSet/Table)=0">
<li>暂时没有任何信息!</li>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="NewDataSet/Table">
<li>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/Item.aspx?Id=<xsl:value-of select="$blogId"/>&amp;LogId=<xsl:value-of select="LogID"/>&amp;type=<xsl:value-of select="$type"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title"/>
</xsl:attribute>
<xsl:value-of select="Title"/>
<xsl:if test="State=0">
(待审核)
</xsl:if>
</a> <span class="dateTime">
<xsl:value-of select="pe:FormatDate(UpdateTime,'yyyy-mm-dd')"/>
</span>
<span class="sysMenu">{PE.Label id="博客博文管理操作" blogId="<xsl:value-of select="$blogId"/>" type="<xsl:value-of select="$type"/>" logID="<xsl:value-of select="LogID"/>" userName="<xsl:value-of select="$username" />" /}</span>
</li>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]>
</LabelTemplate>
<UsePage>True</UsePage>
<LabelSqlCount>select count(LogID) from PE_BG_log WHERE BlogId=@blogId</LabelSqlCount>
<LabelSqlPage>
</LabelSqlPage>
<attributes>
<name>username</name>
<datatype>sql.string</datatype>
<default>
</default>
<intro>用户名</intro>
</attributes>
<attributes>
<name>type</name>
<datatype>int</datatype>
<default>
</default>
<intro>类型</intro>
</attributes>
<attributes>
<name>userCategoryID</name>
<datatype>int</datatype>
<default>0</default>
<intro>分类ID</intro>
</attributes>
</root>
@@ -0,0 +1,121 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<attributes>
<name>filed</name>
<datatype>string</datatype>
<default>
</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="filed" />
<xsl:param name="linkOpenType" />
<xsl:template match="/">
<xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="$filed" />
</xsl:call-template>
</xsl:template>
<xsl:template name="splitStr">
<xsl:param name="srcStr" />
<xsl:choose>
<xsl:when test="contains($srcStr,' ')">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>blog/search.aspx?searchtype=3&amp;Keyword=<xsl:value-of select="substring-before($srcStr,' ')" />
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title" />
</xsl:attribute>
<xsl:attribute name="target">
<xsl:choose>
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$linkOpenType" />
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/search.aspx?searchtype=3&amp;Keyword=<xsl:value-of select="substring-before($srcStr,' ')" />
</xsl:attribute>
<xsl:value-of select="substring-before($srcStr,' ')" />
</a>
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
<xsl:variable name="dstStr" select="substring-after($srcStr,' ')" />
<xsl:choose>
<xsl:when test="contains($dstStr,' ')">
<xsl:call-template name="splitStr">
<xsl:with-param name="srcStr" select="$dstStr" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/search.aspx?searchtype=3&amp;Keyword=<xsl:value-of select="substring-before($srcStr,' ')" />
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title" />
</xsl:attribute>
<xsl:attribute name="target">
<xsl:choose>
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$linkOpenType" />
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/search.aspx?searchtype=3&amp;Keyword=<xsl:value-of select="$dstStr" />
</xsl:attribute>
<xsl:value-of select="$dstStr" />
</a>
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/search.aspx?searchtype=3&amp;Keyword=<xsl:value-of select="substring-before($srcStr,' ')" />
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Title" />
</xsl:attribute>
<xsl:attribute name="target">
<xsl:choose>
<xsl:when test="$linkOpenType = 1">_blank</xsl:when>
<xsl:when test="$linkOpenType = 0">_self</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$linkOpenType" />
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/search.aspx?searchtype=3&amp;Keyword=<xsl:value-of select="$filed"/>
</xsl:attribute>
<xsl:value-of select="$srcStr" />
</a>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>linkOpenType</name>
<datatype>int</datatype>
<default>2</default>
<intro>打开方式{新窗口:1,原窗口:0}</intro>
</attributes>
<Version officialVersion="" modifiedVersions="2901" compatibleVersion="" />
</root>
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2517" compatibleVersion="" />
<attributes>
<name>blogId</name>
<datatype>sql.int</datatype>
<default>0</default>
<intro>博客ID</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT COUNT(*) FROM PE_BG_log WHERE BlogID=@blogId AND State=-1</LabelSqlString>
<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="blogId" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<a>
<xsl:attribute name="href">
<xsl:value-of select="pe:InstallDir()"/>Blog/UserCategory.aspx?id=<xsl:value-of select="$blogId" />&amp;type=1
</xsl:attribute>
<xsl:attribute name="title">
</xsl:attribute>
草稿箱</a>(<xsl:value-of select="Column1"/>)
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2514" compatibleVersion="" />
<attributes>
<name>blogId</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>博客ID</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString><![CDATA[SELECT UserName FROM PE_BG_Blog WHERE BlogId=@blogId ]]></LabelSqlString>
<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="blogId" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table"><xsl:value-of select="UserName" /></xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2904" compatibleVersion="" />
<attributes>
<name>categoryId</name>
<datatype>sql.int</datatype>
<default>1</default>
<intro>分类ID</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 1 CategoryName FROM PE_BG_Category WHERE CategoryID=@categoryId</LabelSqlString>
<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="userCategoryId" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:value-of select="CategoryName"/>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2529" compatibleVersion="" />
<attributes>
<name>blogId</name>
<datatype>sql.int</datatype>
<default>0</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:param name="username" />
<xsl:variable name="IsBlogOwner" select="pe:LoginedUserName()=$username"/>
<xsl:output method="html" />
<xsl:template match="/">
<!--请按提示编辑,保持该模板结构的正确性-->
<root>
<sql>
<xsl:choose>
<xsl:when test="$IsBlogOwner='true'">
SELECT COUNT(UserCategoryID) FROM PE_BG_log WHERE BlogID=@blogId AND State>-1
</xsl:when>
<xsl:otherwise>
SELECT COUNT(UserCategoryID) FROM PE_BG_log WHERE BlogID=@blogId AND State>0
</xsl:otherwise>
</xsl:choose>
</sql>
<sqlpage>
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</sqlpage>
<countsql>
<!--请在这里编写你的分页SQL语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></LabelSqlString>
<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="UserName" />
<xsl:param name="CategoryID" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:value-of select="Column1"/>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>username</name>
<datatype>string</datatype>
<default>
</default>
<intro>用户名</intro>
</attributes>
</root>
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2525" compatibleVersion="" />
<attributes>
<name>blogId</name>
<datatype>sql.int</datatype>
<default>0</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:param name="username" />
<xsl:variable name="IsBlogOwner" select="pe:LoginedUserName()=$username"/>
<xsl:output method="xml" />
<xsl:template match="/">
<!--请按提示编辑,保持该模板结构的正确性-->
<root>
<sql>
<xsl:choose>
<xsl:when test="$IsBlogOwner">
SELECT COUNT(UserCategoryID) FROM PE_BG_log WHERE UserCategoryID=@categoryId AND BlogID=@blogId AND State>-1
</xsl:when>
<xsl:otherwise>
SELECT COUNT(UserCategoryID) FROM PE_BG_log WHERE UserCategoryID=@categoryId AND BlogID=@blogId AND State>0
</xsl:otherwise>
</xsl:choose>
</sql>
<sqlpage>
<!--请在这里编写你的SQL分页查询语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</sqlpage>
<countsql>
<!--请在这里编写你的分页SQL语句,只有下面启用了分页SQL的XSLT编程支持这里才有效-->
</countsql>
</root>
</xsl:template>
</xsl:transform>]]></LabelSqlString>
<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="blogId" />
<xsl:param name="categoryId" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:value-of select="Column1"/>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
<attributes>
<name>categoryId</name>
<datatype>sql.int</datatype>
<default>0</default>
<intro>类别ID</intro>
</attributes>
<attributes>
<name>username</name>
<datatype>string</datatype>
<default>
</default>
<intro>用户名</intro>
</attributes>
</root>
@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2902" compatibleVersion="" />
<attributes>
<name>categoryId</name>
<datatype>sql.int</datatype>
<default>
</default>
<intro>栏目ID</intro>
</attributes>
<attributes>
<name>username</name>
<datatype>sql.string</datatype>
<default>
</default>
<intro>用户名</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 1 CategoryName FROM PE_BG_UserCategory WHERE UserCategoryID=@categoryId</LabelSqlString>
<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="categoryId" />
<xsl:param name="type" />
<xsl:param name="username" />
<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:choose>
<xsl:when test="$type=0">
全部博文
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$IsBlogOwner='true'">
<xsl:if test="$type=1">草稿箱</xsl:if>
<xsl:if test="$type=2">回收站</xsl:if>
</xsl:when>
<xsl:otherwise>
全部博文
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="NewDataSet/Table">
<xsl:value-of select="CategoryName" />
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]>
</LabelTemplate>
<attributes>
<name>type</name>
<datatype>int</datatype>
<default>0</default>
<intro>类型,默认O</intro>
</attributes>
</root>
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2902" compatibleVersion="" />
<attributes>
<name>userCategoryId</name>
<datatype>sql.int</datatype>
<default>0</default>
<intro>分类ID</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString>SELECT TOP 1 CategoryName FROM PE_BG_UserCategory WHERE UserCategoryID=@userCategoryId</LabelSqlString>
<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="userCategoryId" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:value-of select="CategoryName"/>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>True</EnabelAjax>
<Version officialVersion="" modifiedVersions="2904" compatibleVersion="" />
<attributes>
<name>userName</name>
<datatype>supersql</datatype>
<default>
</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:param name="userName"/>
<xsl:param name="width"/>
<xsl:param name="height"/>
<xsl:param name="inLabel"/>
<xsl:output method="html" />
<xsl:template match="/">
<script type="text/javascript">
function ShowPageSet(mp,ps) {
var pageArg = getPageSize();
ShowPopup(mp,ps);
var _Frame;
if(!document.all){ //火狐中得到IFRAME的对象
_Frame=document.getElementById("skinSetPage").contentWindow;
}else{
_Frame=document.frames["skinSetPage"];}
_Frame.location.href="{PE.SiteConfig.ApplicationPath/}Blog/SkinSet.aspx";
}
</script>
<div id="pageSet_box" class="content_box">
<div class="content_title">
<div class="ctLeft" onmousedown="MDown('pageSet_box')">
页面设置
</div>
<span class="ctRight" onclick="ClosePopup('maskPage','pageSet_box')" title="关闭">
</span>
</div>
<div class="content_content">
<iframe id="skinSetPage" marginwidth="0" marginheight="0" frameborder="0">
<xsl:attribute name="width">
<xsl:value-of select="$width" />
</xsl:attribute>
<xsl:attribute name="height">
<xsl:value-of select="$height" />
</xsl:attribute>
</iframe>
</div>
</div>
<div id="maskPage" class="mask">
</div>
<xsl:if test="$inLabel= 'false'">
<span onclick="ShowPageSet('maskPage','pageSet_box')" style="cursor: pointer">
<a href="javascript:;">[页面设置]</a>
</span>
</xsl:if>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>width</name>
<datatype>supersql</datatype>
<default>600</default>
<intro>宽度</intro>
</attributes>
<attributes>
<name>height</name>
<datatype>supersql</datatype>
<default>400</default>
<intro>高度</intro>
</attributes>
<attributes>
<name>inLabel</name>
<datatype>supersql</datatype>
<default>false</default>
<intro>是否包含在另一个标签里</intro>
</attributes>
</root>
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>static</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2904" compatibleVersion="" />
<attributes>
<name>userName</name>
<datatype>string</datatype>
<default>
</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:param name="userName"/>
<xsl:param name="blogId"/>
<xsl:output method="html" />
<xsl:template match="/">
<xsl:if test="$userName=pe:GetLoginedUserInfo('UserName')">
<a>
<xsl:attribute name="href"><xsl:value-of select="pe:InstallDir()"/>Blog/Log.aspx?id=<xsl:value-of select="$blogId"/></xsl:attribute>
<xsl:attribute name="id">publishLog</xsl:attribute>
<xsl:attribute name="title">发博文</xsl:attribute>发博文</a>
[<a><xsl:attribute name="href"><xsl:value-of select="pe:InstallDir()"/>Blog/CommentList.aspx?id=<xsl:value-of select="$blogId"/>
</xsl:attribute><xsl:attribute name="title">评论管理</xsl:attribute>评论管理</a>]
[<span>
<xsl:attribute name="onclick">ShowPageSet('maskPage','pageSet_box')</xsl:attribute>
<xsl:attribute name="style">cursor: pointer</xsl:attribute>
<a>
<xsl:attribute name="href">javascript:;</xsl:attribute>
<xsl:attribute name="title">页面设置</xsl:attribute>页面设置</a>
</span>]
</xsl:if>
</xsl:template>
</xsl:transform>]]></LabelTemplate>
<attributes>
<name>blogId</name>
<datatype>int</datatype>
<default>0</default>
<intro>博客ID</intro>
</attributes>
</root>
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<LabelType>博客类</LabelType>
<LabelIntro>
</LabelIntro>
<OutType>sin</OutType>
<LabelDataType>sql_sysquery</LabelDataType>
<EnabelAjax>False</EnabelAjax>
<Version officialVersion="" modifiedVersions="2511" compatibleVersion="" />
<attributes>
<name>username</name>
<datatype>supersql</datatype>
<default>
</default>
<intro>用户名</intro>
</attributes>
<IsXsltSql>false</IsXsltSql>
<IsXsltCountSql>false</IsXsltCountSql>
<LabelSqlString><![CDATA[SELECT COUNT(BlogName) FROM PE_BG_Blog WHERE UserName='@username']]></LabelSqlString>
<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="username" />
<xsl:output method="html" />
<xsl:template match="/NewDataSet/Table">
<xsl:choose>
<xsl:when test="Column1=0">
false
</xsl:when>
<xsl:otherwise>
true
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>]]></LabelTemplate>
</root>