📄 editthread.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="admin/BBSConfig.asp"-->
<!--#include file="INC/online.asp"-->
<!--#include file="INC/ShowMsg.asp"-->
<!--#include file="INC/header.asp"-->
<!--#include file="INC/Board_Config.asp"-->
<%
'****************************************************************
'* joinboard BBS Ver2.3.0/友盟论坛 Ver2.3.0
'*
'* 版权所有: JoinBoard V2.3
'*
'* 程序制作: 友盟工作室
'*
'* 主页地址: http://joinboard.com 友盟论坛
'*
'* 论坛地址: http://bbs.joinboard.com/、http://youmeng.com
'*
'****************************************************************
'* Powered by: JoinBoard V2.3
'* Copyright 2003-2004. - All Rights Reserved.
'* JoinBoard is a trademark of YouMeng Studio.
'****************************************************************
threadid = trim(request.QueryString("threadid"))
if Not(IsNumeric(threadid)) or threadid = "0" then
response.Write("<META HTTP-EQUIV='REFRESH' CONTENT='0; URL="&BBSHomeUrl&"'>")
response.End()
End if
set rs = Conn.ExeCute("select thread_title,Board_ID From JBB_thread where threadID="&threadID)
if Not rs.eof then
thread_title = rtrim(rs("thread_title"))
BoardID = rs("Board_ID")
Board_info BoardID
Board_Config = Application(JBBMasterCookies&"Board_Config"&BoardID)
title = Board_Config(2)
if Board_Config(6)=true then styleid = Board_Config(5)
else
%>
<!--#include file="INC/style.asp"-->
<%
set rs = Nothing
response.Write("<html><head><title>"& BBS_Config(0) &" - 错误信息"&"</title><link href="&Css_path&" rel=""stylesheet"" type=""text/css""></head><body leftmargin=""0"" topmargin=""0"">")
Call top()
ShowMsg "该文章不存在或者已经删除!~请点击 <a href=""javascript:history.back()"">这里</a> 返回"
Call bottom()
response.End()
End if
set rs = Nothing
%>
<!--#include file="INC/style.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="keywords" content="joinboard,forum,bbs,youmeng,友盟论坛">
<title><%=BBS_Config(0)&" - 修改主题:"&thread_title%></title>
<link href="<%=Css_path%>" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_callJS(jsStr) { //V2.3
return eval(jsStr)
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0">
<%
Call onlineuser()
call top()
response.Write "<table border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"" class=""path-table"">"
response.Write "<tr><td>"
response.Write "<img src="""& BBS_Skin(3) &"JBB_bullet.gif""> <a href="""&BBSHomeUrl&""">"& BBS_Config(0) &"</a> <img src="""& BBS_Skin(3) &"JBB_bullet.gif""> <a href=""board.asp?BoardID="& BoardID &""">"& Board_Config(2) &"</a> <img src="""& BBS_Skin(3) &"JBB_bullet.gif""> 修改主题:<a href=""showthread.asp?threadID="& threadID &"""><strong>"& thread_title &"</strong></a>"
response.Write "</td></tr></table>"
if usergroup = 1 then
editpost = true
elseif usergroup = 2 then
set rs = Conn.ExeCute("select Mod_stop from JBB_Mod where Mod_nameID="&userid &" and Mod_stop=0")
if Not rs.eof then
editpost = true
End if
set rs = nothing
elseif usergroup = 3 then
set rs = Conn.ExeCute("select Mod_BoardID from JBB_Mod where Mod_nameID="&userid &" and Mod_stop=0 and Mod_BoardID="&BoardID)
if Not rs.eof then
editpost = true
End if
set rs = nothing
End if
if editpost <> true then
ShowMsg "您没有权限修改此主题或者您还没有登录.请点击 <a href=""javascript:history.back()"">这里</a> 返回"
Call Bottom()
response.End()
End if
'----------------------------------------------
action = trim(request.QueryString("action"))
if action = "edit" then
editR = replace(trim(request.Form("editR")),"'","''")
newtitle = replace(trim(request.Form("newtitle")),"'","''")
oldtitle = trim(request.Form("oldtitle"))
if editR = "" then
ShowMsg "请输入您修改此主题标题理由,点击 <a href=""javascript:history.back()"">这里</a> 返回输入."
elseif newtitle = "" then
ShowMsg "主题标题不可为空,点击 <a href=""javascript:history.back()"">这里</a> 返回输入."
else
Conn.ExeCute("update JBB_thread set thread_title='"& newtitle &"' where threadid="&threadid)
Conn.ExeCute("insert into JBB_log(userid,username,reason,logC,logtime,logIP,oldcontent) values("& userid &",'"& username &"','"& editR &"','修改主题标题:"& thread_title &"','"& Now() &"','"& userip &"','"& oldtitle &"')")
ShowMsg "修改主题完毕,系统正在返回主题列表,如果您不想等待,请点击 <a href=""Board.asp?BoardID="& BoardID &""">这里</a>."
response.Write("<META HTTP-EQUIV='REFRESH' CONTENT='2; URL=Board.asp?BoardID="& BoardID &"'>")
End if
else
%>
<form name="form1" method="post" action="?action=edit&threadid=<%=threadid%>">
<table width="355" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
<tr>
<td colspan="2" class="table-title"> <div align="center">以下操作将记录入论坛日志,请输入您修改此主题的理由!
</div></td>
</tr>
<tr class="table-dark">
<td width="35%">
<div align="right"><font color="#FF0000">*</font>修改理由:</div></td>
<td width="662">
<input name="editR" type="text" id="editR" size="30" maxlength="50">
</td>
</tr>
<tr class="table-light">
<td>
<div align="right"><font color="#FF0000">*</font>主题标题:</div></td>
<td>
<input name="newtitle" type="text" id="newtitle" value="<%=thread_title%>" size="30" maxlength="50">
<input name="oldtitle" type="hidden" id="oldtitle" value="<%=thread_title%>"></td>
</tr>
<tr class="table-title">
<td> </td>
<td>
<input type="submit" name="Submit" value="确定修改"> <input name="Submit2" type="button" onClick="MM_callJS('history.back()')" value="返回">
</td>
</tr>
</table>
</form>
<br>
<br>
<%
End if
Call Bottom()
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -