给PJ增加编辑日记UBBeditor和FCKeditor双模式选择功能
作者:笨花 日期:2008-02-05
----------------------------------
文件class\cls_article.asp
----------------------------------
查找
<a href="blogedit.asp?id=<%=log_ViewArr(0,0)%>" title="编辑该日志" accesskey="E"><img src="images/icon_edit.gif" alt="" border="0" style="margin-bottom:-2px"/></a>
替换成
<a href="blogedit.asp?id=<%=log_ViewArr(0,0)%>&log_editType=1" title="使用UBBeditor编辑该日志" accesskey="E"><img src="images/icon_edit.gif" alt="" border="0" style="margin-bottom:-2px"/></a> <a href="blogedit.asp?id=<%=log_ViewArr(0,0)%>&log_editType=0" title="使用FCKeditor编辑该日志" accesskey="E"><img src="images/icon_edit.gif" alt="" border="0" style="margin-bottom:-2px"/></a>
-----------------
文件blogedit.asp
-----------------
查找
<input name="log_editType" type="hidden" id="log_editType" value="<%=log_editType%>"/>
替换成
<input name="log_editType" type="hidden" id="log_editType" value="<%=Request.QueryString("log_editType")%>"/>
查找
if log_editType=0 then
Dim sBasePath
替换成
dim log_editType1
log_editType1=Request.QueryString("log_editType")
if log_editType1=0 then
Dim sBasePath
查找
if log_editType=0 then
Dim oFCKeditor1
替换成
if log_editType1=0 then
Dim oFCKeditor1
评论: 0 | 引用: 0 | 查看次数: -
发表评论
上一篇
下一篇

文章来自:
Tags:
相关日志: