⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_move.asp

📁 好用的贴吧源代码
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="../inc/md5.asp"-->
<!--#include file="../inc/UserPs.Asp"-->
<!--#include file="../inc/pwwd.asp"-->
<%
'├========================================┤
'‖             www.fywen.com              ‖
'‖       ╔━═━═━═━═━═━╗       ‖
'‖       ┃   枫叶在线版权所有   ┃       ‖
'‖       ╚━═━═━═━═━═━╝       ‖
'‖         论坛:www.fywen.com/bbs        ‖
'├========================================┤
	BotList = "Google,Isaac,SurveyBot,Baiduspider,yahoo,yisou,3721,ia_archiver,P.Arthur,FAST-WebCrawler,Java,Microsoft-ATL-Native,TurnitinBot,WebGather,Sleipnir"
	Botlist = Split(Botlist,",")
	For i = 0 To Ubound(Botlist)
	If InStr(Lcase(Request.ServerVariables("HTTP_USER_AGENT")),Lcase(Botlist(i))) > 0 Then
	   response.write" - Powered By FYPost - 枫叶贴吧"
	   response.End()
	Exit For
	End If
	Next
'/*不让搜索引擎收录*/
Call Admin_Admin()
action = ReplaceBadWord(Request.QueryString("action"))
Select Case action
	Case ""
	Call admin_index()
	Case "movepost"
	Call movepost()
End Select
Sub admin_index()
%>
<HTML>
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<TITLE>管理中心—贴吧管理</TITLE>
<link href="css/css.css" rel="stylesheet" type="text/css">

<style type="text/css">
<!--
td{
    background:#F1F3F5;
}
-->
</style></head>
<body>
<form  action="admin_move.asp?action=movepost" method="post">
<table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" class="table" >
  <tr > 
    <td  align="center" class="imgbg" colspan="2"><strong class="size">批量转移</strong></td>
    </tr>
<tr class="table_3">
<td class="bj" colspan="2">目录分类添加</td>
</tr>
<tr>
  <td height="25" class="table_3" width="23%" >原目录(分类):</td>
  <td  width="76%"><select name="posts" id="skin">
 <%
sql="select * from [post] where [posts]='0' order by [id] desc" 
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
do while not rs.eof
%>
    <option value="主目录"><%=rs("posttitle")%></option>
<%
set rs1= server.createobject("adodb.recordset") 
sql1= "select * from [post] where [posttitle]='"&rs("posttitle")&"' And [posts]<>'0' order by [id] desc "
rs1.open sql1,conn,1
if not rs1.eof and not rs1.bof then
do while not rs1.eof 
%>
  <option value="<%=rs1("posts")%>">> <%=rs1("posts")%></option>
<%
rs1.movenext
loop
End if
rs.movenext
loop
if rs.eof and rs.bof then
   Response.Write "<option value=""没有分类"">没有分类</option>"
End if
%>
 </select></td>
</tr>
<tr>
  <td height="25" class="table_3" width="23%">目标目录:</td>
  <td  width="76%"><select name="post" id="skin">
 <%
sql="select * from [post] where [posts]='0' order by [id] desc" 
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
do while not rs.eof
%>
    <option value="<%=rs("posttitle")%>"><%=rs("posttitle")%></option>
<%
rs.movenext
loop
if rs.eof and rs.bof then
   Response.Write "<option value=""没有分类"">没有分类</option>"
End if
%>
 </select></td>
</tr>
    <tr> 
	  <td height="25" class="bj" width="23%">&nbsp;</td>
      <td class="bj" height="25" width="76%"><input name="submit" type="submit" value="确定移动" class="buttion"> &nbsp;<input name="submit" type="reset" value="重新选择" class="buttion"></td>
    </tr>
</table>
</form>
</body>
</html>
<%
End Sub
'├========================================┤
'‖             www.fywen.com              ‖
'‖       ╔━═━═━═━═━═━╗       ‖
'‖       ┃   枫叶在线版权所有   ┃       ‖
'‖       ╚━═━═━═━═━═━╝       ‖
'‖         论坛:www.fywen.com/bbs        ‖
'├========================================┤
Sub movepost()
    post=request.form("post")
    posts=request.form("posts")
    if posts = "主目录" then
%>
    <script language="javascript">
	    alert("贴吧主目录不能转移")
       document.location="javascript:history.back(-1)"
    </script>
<%
response.end
else
  set rs= server.createobject("adodb.recordset")
  sql= "update [post] set [posttitle]='"&post&"' where [posts]='"&posts&"'"
  rs.Open sql,conn
  sql= "update [title] set [post]='"&post&"' where [posts]='"&posts&"'"
  rs.Open sql,conn
  sql= "update [retitle] set [post]='"&post&"' where [posts]='"&posts&"'"
  rs.Open sql,conn
%>
    <script language="javascript">
       alert("贴吧分类移动完成")
       document.location="admin_move.asp"
    </script>
<%
End If
End Sub
Call Fywencl()
'├========================================┤
'‖             www.fywen.com              ‖
'‖       ╔━═━═━═━═━═━╗       ‖
'‖       ┃   枫叶在线版权所有   ┃       ‖
'‖       ╚━═━═━═━═━═━╝       ‖
'‖        论坛:www.fywen.com/post        ‖
'├========================================┤
%>


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -