📄 manage_broadaction.asp
字号:
<!--#include file="Connections/connY.asp" -->
<!--#include file="Inc/Set.asp" -->
<!--#include file="Inc/Level01.asp" -->
<%
'定义参数
ID=Request.Form("ID")
IDArray=Split(ID,"|")
IDNum=UBound(IDArray)
FromID=Request.Form("FromID")
ToID=Request.Form("ToID")
User=Request.Form("User")
'删除指定广播
If ID<>"" Then
Set rsBroad = Server.CreateObject("ADODB.Recordset")
For I=0 To IDNum
Sql = "Select * From tBroadManage Where rSubject="&Forum_ID&" And rID="&IDArray(I)
rsBroad.Open Sql,ConnY,3,3
If rsBroad.Eof Then
Note=Note&" ID."&IDArray(I)&"操作失败;"
rsBroad.Close
Else
rsBroad.Delete
rsBroad.Close
Note=Note&" ID."&IDArray(I)&"操作成功;"
End If
Next
Set rsBroad=Nothing
End If
'批量删除广播
If FromID<>"" And ToID<>"" Then
Set rsBroad = Server.CreateObject("ADODB.Recordset")
For I=FromID To ToID
Sql = "Select * From tBroadManage Where rSubject="&Forum_ID&" And rID="&I
rsBroad.Open Sql,ConnY,3,3
If rsBroad.Eof Then
Note=Note&" ID."&I&"操作失败;"
rsBroad.Close
Else
rsBroad.Delete
rsBroad.Close
Note=Note&" ID."&I&"操作成功;"
End If
Next
Set rsBroad=Nothing
End If
'删除指定用户所有在本版的广播.
If User<>"" Then
Set rsBroad = Server.CreateObject("ADODB.Recordset")
Sql = "Select * From tBroadManage Where rSubject="&Forum_ID&" And rPoster='"&User&"'"
rsBroad.Open Sql,ConnY,3,3
If rsBroad.Eof Then
Note="操作失败或者无此用户"
rsBroad.Close
Else
While Not rsBroad.Eof And Not rsBroad.Bof
Note=Note&" ID."&rsBroad("rID")&"操作成功;"
rsBroad.Delete
rsBroad.MoveNext
Wend
End If
Set rsBroad=Nothing
End If
%>
<html>
<head>
<title><%=Forum_Title%></title>
<meta http-equiv="Content-Type" content="text/html;">
<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
<!--#include file="Inc/Css.asp" -->
</head>
<body leftmargin="0" topmargin="0" bgcolor="<%=Forum_BgColor%>" vlink="<%=Forum_Css_A_Link_Color%>">
<!--#include file="Inc/Top.asp" -->
<table width="<%=Forum_Width%>" border="0" cellspacing="1" cellpadding="0" align="center" bgcolor="<%=Forum_BorderColor%>">
<tr>
<td height="20" bgcolor="<%=Forum_BgColor%>">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="font">
<tr>
<td> 您所在的位置: <a href="../" onFocus="this.blur()">首页</a> >>
<a href="List.asp" onFocus="this.blur()">讨论组</a> >> <a href="List.asp?T=<%=Forum_TypeID%>" onFocus="this.blur()"><%=Forum_TypeName%></a>
>> <a href="Board.asp?S=<%=Forum_ID%>" onFocus="this.blur()"><%=Forum_Name%></a>
>> <a href="Manage.asp?S=<%=Forum_ID%>" onFocus="this.blur()">版面管理</a>
>> <font color="<%=Forum_NavFontColor%>">广播</font></td>
<td width="150"></td>
<td width="18"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="<%=Forum_Width%>" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height=1></td>
</tr>
</table>
<table width="<%=Forum_Width%>" border="0" cellspacing="1" cellpadding="2" align="center" class="font" bgcolor="<%=Forum_BorderColor%>">
<tr>
<td bgcolor="<%=Forum_BgColor%>" height="394">
<div align="center">
<table width="400" border="0" cellspacing="1" cellpadding="2" bgcolor="<%=Forum_BorderColor%>" class="font">
<tr>
<td height="100" bgcolor="<%=Forum_AlternateColor1%>">
<div align="center"> <font color="<%=Forum_PFontColor%>"><%=Note%></font>
<br>
<br>
<a href="Manage_Broad.asp?S=<%=Forum_ID%>" onFocus="this.blur()">返回广播页面</a></div>
</td>
</tr>
</table>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
</td>
</tr>
</table>
<table width="<%=Forum_Width%>" border="0" cellspacing="0" cellpadding="0" align="center" id=infoborder style="DISPLAY: none">
<tr>
<td height=1></td>
</tr>
</table>
<!--#include file="Inc/Bottom.asp" -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -