<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[静怡家园]]></title> 
<link>http://www.zhanghaijun.com/index.php</link> 
<description><![CDATA[书山有路勤为径，学海无涯苦作舟！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[静怡家园]]></copyright>
<item>
<link>http://www.zhanghaijun.com/post//</link>
<title><![CDATA[给PJ博客加评论回复的简单方法]]></title> 
<author>碟舞飞扬 &lt;webmaster@zhanghaijun.com&gt;</author>
<category><![CDATA[Web开发]]></category>
<pubDate>Wed, 13 Feb 2008 06:03:04 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//</guid> 
<description>
<![CDATA[ 
	所谓给PJ博客加评论回复功能的简单方法就是直接替换需要替换的文件即可，现在把所需修改的文件修改后的源码发布：<br/>一、class目录里的cls_article.asp文件<br/>修改后的源码：<br/>&lt;%<br/>&#039;==================================<br/>&#039;&nbsp;&nbsp;日志类文件<br/>&#039;&nbsp;&nbsp;&nbsp;&nbsp;更新时间: 2006-1-22<br/>&#039;==================================<br/><br/>&#039;SQL=&quot;Select top 1 log_ID,log_CateID,log_title,Log_IsShow,log_ViewNums,log_Author,log_comorder,log_DisComment,log_Content,log_PostTime,log_edittype,log_ubbFlags,log_CommNums,log_QuoteNums,log_weather,log_level,log_Modify,log_FromUrl,log_From,log_tag FROM blog_Content Where log_ID=&quot;&amp;id&amp;&quot; and log_IsDraft=false&quot;<br/>&#039;row序号:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0&nbsp;&nbsp;&nbsp;&nbsp; ,1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;,4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;,9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;,11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;,12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,14&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,15&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;,17&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,18&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ,19<br/><br/>&#039;*******************************************<br/>&#039;&nbsp;&nbsp;显示日志内容<br/>&#039;*******************************************<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;sub updateViewNums(logID,vNums)<br/>&nbsp;&nbsp;&nbsp;&nbsp; if not blog_postFile then exit sub<br/>&nbsp;&nbsp;&nbsp;&nbsp; dim LoadArticle,splitStr,getA,i,tempStr<br/>&nbsp;&nbsp;&nbsp;&nbsp; splitStr=&quot;&lt;&quot;&amp;&quot;%ST(A)%&quot;&amp;&quot;&gt;&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp; tempStr=&quot;&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp; LoadArticle=LoadFromFile(&quot;cache/&quot;&amp;LogID&amp;&quot;.asp&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp; if LoadArticle(0)=0 then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getA=split(LoadArticle(1),splitStr)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getA(2)=vNums<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for i=1 to ubound(getA)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tempStr=tempStr&amp;splitStr&amp;getA(i)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; call SaveToFile (tempStr,&quot;cache/&quot; &amp; LogID &amp; &quot;.asp&quot;)&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br/>&nbsp;&nbsp;&nbsp;&nbsp;end sub<br/><br/><br/> sub ShowArticle(LogID)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If (log_ViewArr(5,0)=memName And log_ViewArr(3,0)=False) or stat_Admin or log_ViewArr(3,0)=true then <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; showmsg &quot;错误信息&quot;,&quot;该日志为隐藏日志，没有权限查看该日志！&lt;br/&gt;&lt;a href=&quot;&quot;default.asp&quot;&quot;&gt;单击返回&lt;/a&gt;&quot;,&quot;ErrorIcon&quot;,&quot;&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End if<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If (Not getCate.cate_Secret) or (log_ViewArr(5,0)=memName And getCate.cate_Secret) or stat_Admin or (getCate.cate_Secret and stat_ShowHiddenCate) Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; showmsg &quot;错误信息&quot;,&quot;该日志分类为保密类型，无法查看该日志！&lt;br/&gt;&lt;a href=&quot;&quot;default.asp&quot;&quot;&gt;单击返回&lt;/a&gt;&quot;,&quot;ErrorIcon&quot;,&quot;&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp; if log_ViewArr(6,0) then comDesc=&quot;Desc&quot; else comDesc=&quot;Asc&quot; end If<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#039;从文件读取日志<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if blog_postFile then <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dim LoadArticle,TempStr,TempArticle<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LoadArticle=LoadFromFile(&quot;post/&quot;&amp;LogID&amp;&quot;.asp&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if LoadArticle(0)=0 then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TempArticle=LoadArticle(1)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TempStr=&quot;&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if stat_EditAll or (stat_Edit and memName=log_ViewArr(5,0)) then <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TempStr=TempStr&amp;&quot;&lt;a href=&quot;&quot;blogedit.asp?id=&quot;&amp;LogID&amp;&quot;&quot;&quot; title=&quot;&quot;编辑该日志&quot;&quot; accesskey=&quot;&quot;E&quot;&quot;&gt;&lt;img src=&quot;&quot;images/icon_edit.gif&quot;&quot; alt=&quot;&quot;&quot;&quot; border=&quot;&quot;0&quot;&quot; style=&quot;&quot;margin-bottom:-2px&quot;&quot;/&gt;&lt;/a&gt; &quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if stat_DelAll or (stat_Del and memName=log_ViewArr(5,0)) then <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TempStr=TempStr&amp;&quot;&lt;a href=&quot;&quot;blogedit.asp?action=del&amp;amp;id=&quot;&amp;LogID&amp;&quot;&quot;&quot; onclick=&quot;&quot;if (!window.confirm(&#039;是否要删除该日志&#039;)) return false&quot;&quot; title=&quot;&quot;删除该日志&quot;&quot; accesskey=&quot;&quot;K&quot;&quot;&gt;&lt;img src=&quot;&quot;images/icon_del.gif&quot;&quot; alt=&quot;&quot;&quot;&quot; border=&quot;&quot;0&quot;&quot; style=&quot;&quot;margin-bottom:-2px&quot;&quot;/&gt;&lt;/a&gt;&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TempArticle=Replace(TempArticle,&quot;&lt;&quot;&amp;&quot;%ST(A)%&quot;&amp;&quot;&gt;&quot;,&quot;&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TempArticle=Replace(TempArticle,&quot;&lt;$EditAndDel$&gt;&quot;,TempStr)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TempArticle=Replace(TempArticle,&quot;&lt;$log_ViewNums$&gt;&quot;,log_ViewArr(4,0))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write TempArticle<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ShowComm LogID,comDesc,log_ViewArr(7,0)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call updateViewNums(id,log_ViewArr(4,0))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write &quot;读取日志出错.&lt;br/&gt;&quot; &amp; LoadArticle(0) &amp; &quot; : &quot; &amp;&nbsp;&nbsp;LoadArticle(1)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit sub<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end If<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#039;从数据库读取日志<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#039;on error resume Next<br/>&nbsp;&nbsp;&nbsp;&nbsp;set preLog=Conn.Execute(&quot;Select TOP 1 log_Title,log_ID FROM blog_Content Where log_PostTime&lt;#&quot;&amp;DateToStr(log_ViewArr(9,0),&quot;Y-m-d H:I:S&quot;)&amp;&quot;# and log_IsShow=true and log_IsDraft=false orDER BY log_PostTime DESC&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;set nextLog=Conn.Execute(&quot;Select TOP 1 log_Title,log_ID FROM blog_Content Where log_PostTime&gt;#&quot;&amp;DateToStr(log_ViewArr(9,0),&quot;Y-m-d H:I:S&quot;)&amp;&quot;# and log_IsShow=true and log_IsDraft=false orDER BY log_PostTime ASC&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;SQLQueryNums=SQLQueryNums+2<br/><br/> %&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div id=&quot;Content_ContentList&quot; class=&quot;content-width&quot;&gt;&lt;a name=&quot;body&quot; accesskey=&quot;B&quot; href=&quot;#body&quot;&gt;&lt;/a&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&quot;pageContent&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div style=&quot;float:right;width:180px !important;width:auto&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if not preLog.eof then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; response.write (&quot;&lt;a href=&quot;&quot;?id=&quot;&amp;preLog(&quot;log_ID&quot;)&amp;&quot;&quot;&quot; title=&quot;&quot;上一篇日志: &quot;&amp;preLog(&quot;log_Title&quot;)&amp;&quot;&quot;&quot; accesskey=&quot;&quot;,&quot;&quot;&gt;&lt;img border=&quot;&quot;0&quot;&quot; src=&quot;&quot;images/Cprevious.gif&quot;&quot; alt=&quot;&quot;&quot;&quot;/&gt; 上一篇&lt;/a&gt;&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; response.write (&quot;&lt;img border=&quot;&quot;0&quot;&quot; src=&quot;&quot;images/Cprevious1.gif&quot;&quot; alt=&quot;&quot;这是最新一篇日志&quot;&quot;/&gt;上一篇&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if not nextLog.eof then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; response.write (&quot; &#124; &lt;a href=&quot;&quot;?id=&quot;&amp;nextLog(&quot;log_ID&quot;)&amp;&quot;&quot;&quot; title=&quot;&quot;下一篇日志: &quot;&amp;nextLog(&quot;log_Title&quot;)&amp;&quot;&quot;&quot; accesskey=&quot;&quot;.&quot;&quot;&gt;&lt;img border=&quot;&quot;0&quot;&quot; src=&quot;&quot;images/Cnext.gif&quot;&quot; alt=&quot;&quot;&quot;&quot;/&gt; 下一篇&lt;/a&gt;&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; response.write (&quot; &#124; &lt;img border=&quot;&quot;0&quot;&quot; src=&quot;&quot;images/Cnext1.gif&quot;&quot; alt=&quot;&quot;这是最后一篇日志&quot;&quot;/&gt;下一篇&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;preLog.close<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nextLog.close<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set preLog=nothing<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set nextLog=nothing<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img src=&quot;&lt;%=getCate.cate_icon%&gt;&quot; style=&quot;margin:0px 2px -4px 0px&quot; alt=&quot;&quot;/&gt; &lt;strong&gt;&lt;a href=&quot;default.asp?cateID=&lt;%=log_ViewArr(1,0)%&gt;&quot; title=&quot;查看所有&lt;%=getCate.cate_Name%&gt;的日志&quot;&gt;&lt;%=getCate.cate_Name%&gt;&lt;/a&gt;&lt;/strong&gt; &lt;a href=&quot;feed.asp?cateID=&lt;%=log_ViewArr(1,0)%&gt;&quot; target=&quot;_blank&quot; title=&quot;订阅所有&lt;%=getCate.cate_Name%&gt;的日志&quot; accesskey=&quot;O&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;images/rss.png&quot; alt=&quot;订阅所有&lt;%=getCate.cate_Name%&gt;的日志&quot; style=&quot;margin-bottom:-1px&quot;/&gt;&lt;/a&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&quot;Content&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&quot;Content-top&quot;&gt;&lt;div class=&quot;ContentLeft&quot;&gt;&lt;/div&gt;&lt;div class=&quot;ContentRight&quot;&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;h1 class=&quot;ContentTitle&quot;&gt;&lt;strong&gt;&lt;%=HtmlEncode(log_ViewArr(2,0))%&gt;&lt;/strong&gt;&lt;/h1&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;h2 class=&quot;ContentAuthor&quot;&gt;作者:&lt;%=log_ViewArr(5,0)%&gt; 日期:&lt;%=DateToStr(log_ViewArr(9,0),&quot;Y-m-d&quot;)%&gt;&lt;/h2&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;Content-Info&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;InfoOther&quot;&gt;字体大小: &lt;a href=&quot;javascript:SetFont(&#039;12px&#039;)&quot; accesskey=&quot;1&quot;&gt;小&lt;/a&gt; &lt;a href=&quot;javascript:SetFont(&#039;14px&#039;)&quot; accesskey=&quot;2&quot;&gt;中&lt;/a&gt; &lt;a href=&quot;javascript:SetFont(&#039;16px&#039;)&quot; accesskey=&quot;3&quot;&gt;大&lt;/a&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;InfoAuthor&quot;&gt;&lt;img src=&quot;images/weather/hn2_&lt;%=log_ViewArr(14,0)%&gt;.gif&quot; style=&quot;margin:0px 2px -6px 0px&quot; alt=&quot;&quot;/&gt;&lt;img src=&quot;images/weather/hn2_t_&lt;%=log_ViewArr(14,0)%&gt;.gif&quot; alt=&quot;&quot;/&gt; &lt;img src=&quot;images/&lt;%=log_ViewArr(15,0)%&gt;.gif&quot; style=&quot;margin:0px 2px -1px 0px&quot; alt=&quot;&quot;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%if stat_EditAll or (stat_Edit and log_ViewArr(5,0)=memName) then %&gt;　&lt;a href=&quot;blogedit.asp?id=&lt;%=log_ViewArr(0,0)%&gt;&quot; title=&quot;编辑该日志&quot; accesskey=&quot;E&quot;&gt;&lt;img src=&quot;images/icon_edit.gif&quot; alt=&quot;&quot; border=&quot;0&quot; style=&quot;margin-bottom:-2px&quot;/&gt;&lt;/a&gt;&lt;%end if%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%if stat_DelAll or (stat_Del and log_ViewArr(5,0)=memName)&nbsp;&nbsp;then %&gt;　&lt;a href=&quot;blogedit.asp?action=del&amp;id=&lt;%=log_ViewArr(0,0)%&gt;&quot; onclick=&quot;if (!window.confirm(&#039;是否要删除该日志&#039;)) return false&quot; accesskey=&quot;K&quot;&gt;&lt;img src=&quot;images/icon_del.gif&quot; alt=&quot;&quot; border=&quot;0&quot; style=&quot;margin-bottom:-2px&quot;/&gt;&lt;/a&gt;&lt;%end if%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;logPanel&quot; class=&quot;Content-body&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;keyword=CheckStr(Request.QueryString(&quot;keyword&quot;))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if log_ViewArr(10,0)=1 then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; response.write (highlight(UnCheckStr(UBBCode(HtmlEncode(log_ViewArr(8,0)),mid(log_ViewArr(11,0),1,1),mid(log_ViewArr(11,0),2,1),mid(log_ViewArr(11,0),3,1),mid(log_ViewArr(11,0),4,1),mid(log_ViewArr(11,0),5,1))),keyword))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; response.write (highlight(UnCheckStr(log_ViewArr(8,0)),keyword))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if&nbsp;&nbsp;%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br/&gt;&lt;br/&gt;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&quot;Content-body&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%if len(log_ViewArr(16,0))&gt;0 then response.write (log_ViewArr(16,0)&amp;&quot;&lt;br/&gt;&quot;)%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img src=&quot;images/From.gif&quot; style=&quot;margin:4px 2px -4px 0px&quot; alt=&quot;&quot;/&gt;&lt;strong&gt;文章来自:&lt;/strong&gt; &lt;a href=&quot;&lt;%=log_ViewArr(17,0)%&gt;&quot; target=&quot;_blank&quot;&gt;&lt;%=log_ViewArr(18,0)%&gt;&lt;/a&gt;&lt;br/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img src=&quot;images/icon_trackback.gif&quot; style=&quot;margin:4px 2px -4px 0px&quot; alt=&quot;&quot;/&gt;&lt;strong&gt;引用通告:&lt;/strong&gt; &lt;a href=&quot;&lt;%=&quot;trackback.asp?tbID=&quot;&amp;id&amp;&quot;&amp;amp;action=view&quot;%&gt;&quot; target=&quot;_blank&quot;&gt;查看所有引用&lt;/a&gt; &#124; &lt;a href=&quot;javascript:;&quot; title=&quot;获得引用文章的链接&quot; onclick=&quot;getTrackbackURL(&lt;%=id%&gt;)&quot;&gt;我要引用此文章&lt;/a&gt;&lt;br/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;%dim getTag<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set getTag=new tag<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;img src=&quot;images/tag.gif&quot; style=&quot;margin:4px 2px -4px 0px&quot; alt=&quot;&quot;/&gt;&lt;strong&gt;Tags:&lt;/strong&gt; &lt;%=getTag.filterHTML(log_ViewArr(19,0))%&gt;&lt;br/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&quot;Content-bottom&quot;&gt;&lt;div class=&quot;ContentBLeft&quot;&gt;&lt;/div&gt;&lt;div class=&quot;ContentBRight&quot;&gt;&lt;/div&gt;评论: &lt;%=log_ViewArr(12,0)%&gt; &#124; 引用: &lt;%=log_ViewArr(13,0)%&gt; &#124; 查看次数: &lt;%=log_ViewArr(4,0)%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br/>&lt;%&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set getTag=nothing<br/>&nbsp;&nbsp;&nbsp;&nbsp; ShowComm LogID,comDesc,log_ViewArr(7,0) &#039;显示评论内容<br/>end sub<br/><br/><br/>&#039;*******************************************<br/>&#039;&nbsp;&nbsp;显示日志评论内容<br/>&#039;*******************************************<br/>Sub ShowComm(LogID,comDesc,DisComment)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dim action,commID,CommReplyContent<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;action = trim(Request.QueryString(&quot;action&quot;))<br/>&nbsp;&nbsp;&nbsp;&nbsp; response.write (&quot;&lt;a name=&quot;&quot;comm_top&quot;&quot; href=&quot;&quot;#comm_top&quot;&quot; accesskey=&quot;&quot;C&quot;&quot;&gt;&lt;/a&gt;&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp; dim blog_Comment,Pcount,comm_Num,blog_CommID,blog_CommAuthor,blog_CommContent,Url_Add,commArr,commArrLen<br/>&nbsp;&nbsp;&nbsp;&nbsp; Set blog_Comment=Server.CreateObject(&quot;Adodb.RecordSet&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp; Pcount=0<br/>&nbsp;&nbsp;&nbsp;&nbsp; if action=&quot;Reply&quot; then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;commID=request(&quot;commID&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SQL=&quot;Select comm_ID,comm_Content,comm_Author,comm_PostTime,comm_DisSM,comm_DisUBB,comm_DisIMG,comm_AutoURL,comm_PostIP,comm_AutoKEY,comm_Reply,comm_Replytime FROM blog_Comment Where comm_ID=&quot;&amp;commID&amp;&quot; UNION ALL Select 0,tb_Intro,tb_Title,tb_PostTime,tb_URL,tb_Site,tb_ID,0,&#039;127.0.0.1&#039;,0,0,0 FROM blog_Trackback Where blog_ID=&quot;&amp;LogID&amp;&quot; orDER BY comm_PostTime &quot;&amp;comDesc<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SQL=&quot;Select comm_ID,comm_Content,comm_Author,comm_PostTime,comm_DisSM,comm_DisUBB,comm_DisIMG,comm_AutoURL,comm_PostIP,comm_AutoKEY,comm_Reply,comm_Replytime FROM blog_Comment Where blog_ID=&quot;&amp;LogID&amp;&quot; UNION ALL Select 0,tb_Intro,tb_Title,tb_PostTime,tb_URL,tb_Site,tb_ID,0,&#039;127.0.0.1&#039;,0,0,0 FROM blog_Trackback Where blog_ID=&quot;&amp;LogID&amp;&quot; orDER BY comm_PostTime &quot;&amp;comDesc<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br/>&nbsp;&nbsp;&nbsp;&nbsp; blog_Comment.Open SQL,Conn,1,1<br/>&nbsp;&nbsp;&nbsp;&nbsp; SQLQueryNums=SQLQueryNums+1<br/>&nbsp;&nbsp;&nbsp;&nbsp;IF blog_Comment.EOF AND blog_Comment.BOF Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br/>&nbsp;&nbsp;&nbsp;&nbsp; blog_Comment.PageSize=blogcommpage<br/>&nbsp;&nbsp;&nbsp;&nbsp; blog_Comment.AbsolutePage=CurPage<br/>&nbsp;&nbsp;&nbsp;&nbsp; comm_Num=blog_Comment.RecordCount<br/>&nbsp;&nbsp;&nbsp;&nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp; commArr=blog_Comment.GetRows(comm_Num)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; blog_Comment.close<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set blog_Comment = nothing<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; commArrLen=Ubound(commArr,2)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br/>&nbsp;&nbsp;&nbsp;&nbsp; Url_Add=&quot;?id=&quot;&amp;LogID&amp;&quot;&amp;&quot;%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&quot;pageContent&quot;&gt;&lt;%=MultiPage(comm_Num,blogcommpage,CurPage,Url_Add,&quot;#comm_top&quot;,&quot;float:right&quot;)%&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp; Do Until Pcount = commArrLen + 1 or Pcount=blogcommpage<br/>&nbsp;&nbsp;&nbsp;&nbsp; blog_CommID=commArr(0,Pcount)<br/>&nbsp;&nbsp;&nbsp;&nbsp; blog_CommAuthor=commArr(2,Pcount)<br/>&nbsp;&nbsp;&nbsp;&nbsp; blog_CommContent=commArr(1,Pcount)<br/>&nbsp;&nbsp;&nbsp;&nbsp; dim CommReplyConten<br/>CommReplyContent=commArr(10,Pcount)<br/>&nbsp;&nbsp;&nbsp;&nbsp; %&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;comment&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;%IF blog_CommID=0 Then%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;commenttop&quot;&gt;&lt;img src=&quot;images/icon_trackback.gif&quot; alt=&quot;&quot; style=&quot;margin:0px 4px -3px 0px&quot;/&gt;&lt;strong&gt;&lt;%=(&quot;&lt;a href=&quot;&quot;&quot;&amp;commArr(4,Pcount)&amp;&quot;&quot;&quot;&gt;&quot;&amp;commArr(5,Pcount)&amp;&quot;&lt;/a&gt;&quot;)%&gt;&lt;/strong&gt; &lt;span class=&quot;commentinfo&quot;&gt;[&lt;%=DateToStr(commArr(3,Pcount),&quot;Y-m-d H:I A&quot;)%&gt;&lt;%if stat_Admin=true then response.write (&quot; &#124; &lt;a href=&quot;&quot;trackback.asp?action=deltb&amp;amp;tbID=&quot;&amp;commArr(6,Pcount)&amp;&quot;&amp;amp;logID=&quot;&amp;LogID&amp;&quot;&quot;&quot; onclick=&quot;&quot;if (!window.confirm(&#039;是否删除该引用?&#039;)) {return false}&quot;&quot;&gt;&lt;img src=&quot;&quot;images/del1.gif&quot;&quot; alt=&quot;&quot;删除该引用&quot;&quot; border=&quot;&quot;0&quot;&quot;/&gt;&lt;/a&gt;&quot;) end if%&gt;]&lt;/span&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;commentcontent&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;b&gt;标题:&lt;/b&gt; &lt;%=blog_CommAuthor%&gt;&lt;br/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;b&gt;链接:&lt;/b&gt; &lt;%=(&quot;&lt;a href=&quot;&quot;&quot;&amp;commArr(4,Pcount)&amp;&quot;&quot;&quot; target=&quot;&quot;_blank&quot;&quot;&gt;&quot;&amp;commArr(4,Pcount)&amp;&quot;&lt;/a&gt;&quot;)%&gt;&lt;br/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;b&gt;摘要:&lt;/b&gt; &lt;%=checkURL(HTMLDecode(blog_CommContent))%&gt;&lt;br/&gt;<br/>&lt;br/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;%else%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;commenttop&quot;&gt;&lt;a name=&quot;comm_&lt;%=blog_CommID%&gt;&quot; href=&quot;javascript:addQuote(&#039;&lt;%=blog_CommAuthor%&gt;&#039;,&#039;commcontent_&lt;%=blog_CommID%&gt;&#039;)&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;images/&lt;%if memName=blog_CommAuthor then response.write (&quot;icon_quote_author.gif&quot;) else response.write (&quot;icon_quote.gif&quot;) end if%&gt;&quot; alt=&quot;&quot; style=&quot;margin:0px 4px -3px 0px&quot;/&gt;&lt;/a&gt;&lt;a href=&quot;member.asp?action=view&amp;memName=&lt;%=Server.URLEncode(blog_CommAuthor)%&gt;&quot;&gt;&lt;strong&gt;&lt;%=blog_CommAuthor%&gt;&lt;/strong&gt;&lt;/a&gt; &lt;span class=&quot;commentinfo&quot;&gt;[&lt;%=DateToStr(commArr(3,Pcount),&quot;Y-m-d H:I A&quot;)%&gt; &lt;%if stat_Admin then response.write (&quot; &#124; &quot;&amp;commArr(8,Pcount)) end if%&gt;&lt;%if stat_Admin=true or (stat_CommentDel=true and memName=blog_CommAuthor) then response.write (&quot; &#124; &lt;a href=&quot;&quot;article.asp?action=Reply&amp;commID=&quot;&amp;blog_CommID&amp;&quot;&amp;ID=&quot;&amp;LogID&amp;&quot;#comm_&quot;&amp;blog_CommID&amp;&quot;&quot;&quot;&gt;&lt;img src=&quot;&quot;Plugins/guestbook/reply.gif&quot;&quot; alt=&quot;&quot;回复&quot;&quot; border=&quot;&quot;0&quot;&quot; style=&quot;&quot;margin-bottom:-3px&quot;&quot;/&gt;&lt;/a&gt;&lt;a href=&quot;&quot;blogcomm.asp?action=del&amp;amp;commID=&quot;&amp;blog_CommID&amp;&quot;&quot;&quot; onclick=&quot;&quot;if (!window.confirm(&#039;是否删除该评论?&#039;)) {return false}&quot;&quot;&gt;&lt;img src=&quot;&quot;images/del1.gif&quot;&quot; alt=&quot;&quot;删除该评论&quot;&quot; border=&quot;&quot;0&quot;&quot;/&gt;&lt;/a&gt;&quot;) end if%&gt;]&lt;/span&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;commentcontent&quot; id=&quot;commcontent_&lt;%=blog_CommID%&gt;&quot;&gt;&lt;%=UBBCode(HtmlEncode(blog_CommContent),commArr(4,Pcount),blog_commUBB,blog_commIMG,commArr(7,Pcount),commArr(9,Pcount))%&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;%if len(commArr(10,Pcount))&gt;0 then %&gt;<br/>&lt;div class=&quot;commenttop&quot;&gt;&lt;img src=&quot;images/reply.gif&quot; alt=&quot;&quot; border=&quot;0&quot; style=&quot;margin:0px 3px -3px 0px&quot;/&gt;&lt;b&gt;&lt;%=blog_master%&gt;回复&lt;/b&gt;&nbsp;&nbsp;&lt;span class=&quot;commentinfo&quot;&gt;[&lt;%=DateToStr(commArr(11,Pcount),&quot;Y-m-d H:I A&quot;)%&gt;]&lt;/span&gt;&lt;/div&gt;<br/>&lt;div class=&quot;commentcontent&quot;&gt;&lt;%=UBBCode(HtmlEncode(commArr(10,Pcount)),0,0,0,1,1)%&gt;&lt;/div&gt;<br/>&lt;%end if%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;%end if%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp; Pcount=Pcount+1<br/>&nbsp;&nbsp;&nbsp;&nbsp; loop<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&quot;pageContent&quot;&gt;&lt;%=MultiPage(comm_Num,blogcommpage,CurPage,Url_Add,&quot;#comm_top&quot;,&quot;float:right&quot;)%&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br/>&nbsp;&nbsp;&nbsp;&nbsp; if not DisComment then<br/>&nbsp;&nbsp;&nbsp;&nbsp;%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;MsgContent&quot; style=&quot;width:94%;&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;MsgHead&quot;&gt;&lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if action=&quot;Reply&quot; then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write &quot;回复评论&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write &quot;发表评论&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br/>%&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&quot;MsgBody&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if not stat_CommentAdd then <br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write (&quot;你没有权限发表留言！&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;response.write (&quot;&lt;/div&gt;&lt;/div&gt;&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit sub<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;script type=&quot;text/javascript&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function checkCommentPost(){<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (!CheckPost) return false<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// 备用方法<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return true<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/script&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;form name=&quot;frm&quot; action=&quot;blogcomm.asp&quot; method=&quot;post&quot; onsubmit=&quot;return checkCommentPost()&quot; style=&quot;margin:0px;&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;table width=&quot;100%&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;&lt;td align=&quot;right&quot; width=&quot;70&quot;&gt;&lt;strong&gt;昵　称:&lt;/strong&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;padding:3px;&quot;&gt;&lt;input name=&quot;username&quot; type=&quot;text&quot; size=&quot;18&quot; class=&quot;userpass&quot; maxlength=&quot;24&quot; &lt;%if not memName=empty then response.write (&quot;value=&quot;&quot;&quot;&amp;memName&amp;&quot;&quot;&quot; readonly=&quot;&quot;readonly&quot;&quot;&quot;)%&gt;/&gt;&lt;/td&gt;&lt;/tr&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%if memName=empty then%&gt;&lt;tr&gt;&lt;td align=&quot;right&quot; width=&quot;70&quot;&gt;&lt;strong&gt;密　码:&lt;/strong&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;padding:3px;&quot;&gt;&lt;input name=&quot;password&quot; type=&quot;password&quot; size=&quot;18&quot; class=&quot;userpass&quot; maxlength=&quot;24&quot;/&gt; 游客发言不需要密码.&lt;/td&gt;&lt;/tr&gt;&lt;%end if%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;%if memName=empty or blog_validate=true then%&gt;&lt;tr&gt;&lt;td align=&quot;right&quot; width=&quot;70&quot;&gt;&lt;strong&gt;验证码:&lt;/strong&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;padding:3px;&quot;&gt;&lt;input name=&quot;validate&quot; type=&quot;text&quot; size=&quot;4&quot; class=&quot;userpass&quot; maxlength=&quot;4&quot;/&gt; &lt;%=getcode()%&gt;&lt;/td&gt;&lt;/tr&gt;&lt;%end if%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;&lt;td align=&quot;right&quot; width=&quot;70&quot; valign=&quot;top&quot;&gt;&lt;strong&gt;内　容:&lt;/strong&gt;&lt;br/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;&lt;td style=&quot;padding:2px;&quot;&gt;&lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp; UBB_TextArea_Height=&quot;150px;&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp; UBB_Tools_Items=&quot;bold,italic,underline&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp; UBB_Tools_Items=UBB_Tools_Items&amp;&quot;&#124;&#124;image,link,mail,quote,smiley&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp; if action=&quot;Reply&quot; then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UBB_Msg_Value=UBBFilter(UnCheckStr(CommReplyContent))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br/>&nbsp;&nbsp;&nbsp;&nbsp; UBBeditor(&quot;Message&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;%&gt;&lt;/td&gt;&lt;/tr&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;&lt;td align=&quot;right&quot; width=&quot;70&quot; valign=&quot;top&quot;&gt;&lt;strong&gt;选　项:&lt;/strong&gt;&lt;/td&gt;&lt;td align=&quot;left&quot; style=&quot;padding:3px;&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;label for=&quot;label5&quot;&gt;&lt;input name=&quot;log_DisSM&quot; type=&quot;checkbox&quot; id=&quot;label5&quot; value=&quot;1&quot; /&gt;禁止表情转换&lt;/label&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;label for=&quot;label6&quot;&gt;&lt;input name=&quot;log_DisURL&quot; type=&quot;checkbox&quot; id=&quot;label6&quot; value=&quot;1&quot; /&gt;禁止自动转换链接&lt;/label&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;label for=&quot;label7&quot;&gt;&lt;input name=&quot;log_DisKey&quot; type=&quot;checkbox&quot; id=&quot;label7&quot; value=&quot;1&quot; /&gt;禁止自动转换关键字&lt;/label&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;&lt;/tr&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td colspan=&quot;2&quot; align=&quot;center&quot; style=&quot;padding:3px;&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input name=&quot;logID&quot; type=&quot;hidden&quot; value=&quot;&lt;%=LogID%&gt;&quot;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if action=&quot;Reply&quot; then<br/>%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input name=&quot;action&quot; type=&quot;hidden&quot; value=&quot;Reply&quot;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input name=&quot;commID&quot; type=&quot;hidden&quot; value=&quot;&lt;%=blog_CommID%&gt;&quot;/&gt;<br/>&lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br/>%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input name=&quot;action&quot; type=&quot;hidden&quot; value=&quot;post&quot;/&gt;<br/>&lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end if<br/>%&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input name=&quot;submit2&quot; type=&quot;submit&quot; class=&quot;userbutton&quot; value=&quot;发表评论&quot; accesskey=&quot;S&quot;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;input name=&quot;button&quot; type=&quot;reset&quot; class=&quot;userbutton&quot; value=&quot;重写&quot;/&gt;&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;tr&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;td colspan=&quot;2&quot; align=&quot;right&quot; &gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;%if memName=empty then%&gt;虽然发表评论不用注册，但是为了保护您的发言权，建议您&lt;a href=&quot;register.asp&quot;&gt;注册帐号&lt;/a&gt;. &lt;br/&gt;&lt;%end if%&gt; <br/>&nbsp;&nbsp;&nbsp;&nbsp;字数限制 &lt;b&gt;&lt;%=blog_commLength%&gt; 字&lt;/b&gt; &#124; <br/>&nbsp;&nbsp;&nbsp;&nbsp;UBB代码 &lt;b&gt;&lt;%if (blog_commUBB=0) then response.write (&quot;开启&quot;) else response.write (&quot;关闭&quot;) %&gt;&lt;/b&gt; &#124; <br/>&nbsp;&nbsp;&nbsp;&nbsp;[img]标签 &lt;b&gt;&lt;%if (blog_commIMG=0) then response.write (&quot;开启&quot;) else response.write (&quot;关闭&quot;) %&gt;&lt;/b&gt;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/td&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/tr&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/table&gt;&lt;/form&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;%<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; response.write (&quot;&lt;/div&gt;&lt;/div&gt;&quot;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;end if<br/>end sub<br/>%&gt;<br/><br/>一次发布不完，请继续第二篇第三篇<br/>Tags - <a href="http://www.zhanghaijun.com/tags/pj%25E5%258D%259A%25E5%25AE%25A2/" rel="tag">pj博客</a> , <a href="http://www.zhanghaijun.com/tags/%25E8%25AF%2584%25E8%25AE%25BA/" rel="tag">评论</a>
]]>
</description>
</item><item>
<link>http://www.zhanghaijun.com/post//#blogcomment</link>
<title><![CDATA[[评论] 给PJ博客加评论回复的简单方法]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.zhanghaijun.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>