📄 admin_userpost.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 "delpost"
Call delpost()
Case "repost"
Call repost()
Case "movepost"
Call movepost()
Case "moveposts"
Call moveposts()
Case "newpost"
Call newpost()
Case "post"
Call admin_post()
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>
<table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" class="table" >
<tr >
<td align="center" class="imgbg" colspan="6"><strong class="size">贴吧申请管理</strong></td>
</tr>
<tr class="table_3">
<td class="bj" colspan="6">帖子列表(点击标题可以查看相关内容)</td>
</tr>
<tr>
<td height="25" class="table_3" width="35%" >标题[只显示帖子的21个字符]</td>
<td width="13%" >相关贴吧</td>
<td width="11%">作者</td>
<td width="9%">作者IP</td>
<td width="18%">申请日期</td>
<td width="14%">操作</td>
</tr>
<%
sql="select * from [title] where [shenhe]=1"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.eof and rs.bof then
Response.Write "<tr><td colspan=""6"" height=""25""><div align=""center"">现在没有待审核内容</div></td></tr>"
End if
do while not rs.eof
%>
<tr>
<td class="table_3" width="35%"><a href="admin_userpost.Asp?action=repost&id=<%=rs("id")%>"><%=left(rs("title"),21)%></a></td>
<td width="13%"><%=rs("posts")%></td>
<td width="11%"><%=rs("username")%></td>
<td width="9%"><%=rs("userip")%></td>
<td width="18%"><%=rs("time")%></td>
<td width="14%">[<a onClick="return confirm('确定删除该审核帖子? ')" href="admin_userpost.Asp?action=delpost&id=<%=rs("id")%>">删除</a>] [<a href="admin_userpost.Asp?action=movepost&id=<%=rs("id")%>&post=<%=Server.URLEncode(rs("posts"))%>">审核通过</a>]</td>
</tr>
<%
rs.movenext
Loop
%>
</table>
</body>
</html>
<%
End Sub
'├========================================┤
'‖ www.fywen.com ‖
'‖ ╔━═━═━═━═━═━╗ ‖
'‖ ┃ 枫叶在线版权所有 ┃ ‖
'‖ ╚━═━═━═━═━═━╝ ‖
'‖ 论坛:www.fywen.com/bbs ‖
'├========================================┤
Sub movepost()
id=request.QueryString("id")
post=request.QueryString("post")
%>
<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_userpost.Asp?action=moveposts&id=<%=id%>&post=<%=post%>" method="post">
<table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" class="table" >
<tr >
<td colspan="2" align="center" class="imgbg"><strong>帖子审核</strong></td>
</tr>
<tr class="table_3">
<td class="bj" colspan="2">帖子分类添加(如果目录里没有需要的分类可以点击新建分类)</td>
</tr>
<%
id = request.QueryString("id")
sql="select * from [title] where [id]="&id
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<tr>
<td height="25" class="table_3" width="23%" >标题:</td>
<td width="76%"><%=rs("title")%></td>
</tr>
<tr>
<td height="25" class="table_3" width="23%">目标目录:</td>
<td width="76%"><select name="post" >
<%
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>
[<a href="admin_userpost.Asp?action=newpost">新建分类</a>] </td>
</tr>
<tr>
<td height="25" class="bj" width="23%"> </td>
<td class="bj" height="25" width="76%"><input name="submit" type="submit" value="审核通过" class="buttion"> <input name="submit" type="reset" value="重新选择" class="buttion"></td>
</tr>
</table>
</form>
</body>
</html>
<%
End Sub
'├========================================┤
'‖ www.fywen.com ‖
'‖ ╔━═━═━═━═━═━╗ ‖
'‖ ┃ 枫叶在线版权所有 ┃ ‖
'‖ ╚━═━═━═━═━═━╝ ‖
'‖ 论坛:www.fywen.com/bbs ‖
'├========================================┤
Sub newpost()
%>
<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_userpost.asp?action=post" 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%"><input name="post" class="input" style="width:145px;" ></td>
</tr>
<tr>
<td height="25" class="bj" width="23%"> </td>
<td class="bj" height="25" width="76%"><input name="submit" type="submit" value="添加" class="buttion"> <input name="submit" type="reset" value="撤消" class="buttion"></td>
</tr>
</table>
</form>
</body>
</html>
<%
End Sub
'├========================================┤
'‖ www.fywen.com ‖
'‖ ╔━═━═━═━═━═━╗ ‖
'‖ ┃ 枫叶在线版权所有 ┃ ‖
'‖ ╚━═━═━═━═━═━╝ ‖
'‖ 论坛:www.fywen.com/bbs ‖
'├========================================┤
Sub admin_post()
post=request.form("post")
posts=request.form("posts")
if post = "" then
%>
<script language="javascript">
alert("贴吧目录名称不能为空")
document.location="javascript:history.back(-1)"
</script>
<%
response.end
else
set rs= server.createobject("adodb.recordset")
sql= "insert into [post]([posttitle],[posts],[postid]) values ('"&post&"','0','0')"
rs.Open sql,conn
%>
<script language="javascript">
alert("贴吧目录添加成功!")
document.location="admin_userpost.asp"
</script>
<%
End If
End Sub
'├========================================┤
'‖ www.fywen.com ‖
'‖ ╔━═━═━═━═━═━╗ ‖
'‖ ┃ 枫叶在线版权所有 ┃ ‖
'‖ ╚━═━═━═━═━═━╝ ‖
'‖ 论坛:www.fywen.com/bbs ‖
'├========================================┤
Sub delpost()
id=request.QueryString("id")
set rs= server.createobject("adodb.recordset")
sql="delete from [title] where [id]="&id
rs.Open sql,conn,3
%>
<script language="javascript">
alert("帖子删除完成")
document.location="admin_userpost.asp"
</script>
<%
End Sub
'├========================================┤
'‖ www.fywen.com ‖
'‖ ╔━═━═━═━═━═━╗ ‖
'‖ ┃ 枫叶在线版权所有 ┃ ‖
'‖ ╚━═━═━═━═━═━╝ ‖
'‖ 论坛:www.fywen.com/bbs ‖
'├========================================┤
Sub repost()
id = request.QueryString("id")
sql="select * from [title] where [id]="&id
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<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>
<table width="98%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" class="table" >
<tr >
<td align="center" class="imgbg"><strong class="size">贴吧申请内容查看</strong></td>
</tr>
<tr class="table_3">
<td class="bj"><div align="center"><%=rs("title")%></div></td>
</tr>
<tr>
<td height="25" class="table_3" >
<%
If rs("img") = "0" Then
Response.Write(rs("body"))
Else
Response.Write(rs("body")&"<br><br>帖子相关图片:<br><br><img src="&rs("img")&">")
End If
%>
</td>
</tr>
<tr>
<td height="25" class="table_3" ><div align="right">[<a href="javascript:window.history.back();">返回</a>] </div></td>
</tr>
</table>
</body>
</html>
<%
End Sub
'├========================================┤
'‖ www.fywen.com ‖
'‖ ╔━═━═━═━═━═━╗ ‖
'‖ ┃ 枫叶在线版权所有 ┃ ‖
'‖ ╚━═━═━═━═━═━╝ ‖
'‖ 论坛:www.fywen.com/bbs ‖
'├========================================┤
Sub moveposts()
id=request.QueryString("id")
posts=request.form("post")
post=request.QueryString("post")
set rs= server.createobject("adodb.recordset")
sql= "update [title] set [post]='"&posts&"',[shenhe]='0' where [id]="&id
rs.Open sql,conn
sql="select * from [post] where [posttitle]='"&posts&"' And [posts]='0'"
set rs= server.createobject("adodb.recordset")
rs.open sql,conn,1,1
postid = rs("postid")+1
sql1= "insert into [post]([posttitle],[posts]) values ('"&posts&"','"&post&"')"
set rs= server.createobject("adodb.recordset")
rs.Open sql1,conn,1,1
%>
<script language="javascript">
alert("贴子审核通过")
document.location="admin_userpost.asp"
</script>
<%
End Sub
Call Fywencl()
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -