📄 sysuserimpeach.asp
字号:
<% Option Explicit %>
<!--#include file="../../../Inc/Cls_DB.asp" -->
<!--#include file="../../../Inc/Cls_User.asp" -->
<!--#include file="../../../Inc/Const.asp"-->
<%
'==============================================================================
'软件名称:风讯网站信息管理系统
'当前版本:Foosun Content Manager System(FoosunCMS V3.2SP1)
'最新更新:2006.50
'==============================================================================
'Copyright (C) 2002-2004 Foosun.Net All rights reserved.
'商业注册联系:028-85098980-601,项目开发:028-85098980-606、609,客户支持:608
'产品咨询QQ:394226379,159410,125114015
'技术支持QQ:315485710,66252421
'项目开发QQ:415637671,655071
'程序开发:四川风讯科技发展有限公司(Foosun Inc.)
'Email:service@Foosun.cn
'MSN:skoolls@hotmail.com
'论坛支持:风讯在线论坛(http://bbs.foosun.net)
'官方网站:www.Foosun.cn 演示站点:test.cooin.com
'网站通系列(智能快速建站系列):www.ewebs.cn
'==============================================================================
'免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接
'风讯公司保留此程序的法律追究权利
'如需进行2次开发,必须经过风讯公司书面允许。否则将追究法律责任
'==============================================================================
Dim DBC,Conn,UserConn
Set DBC = New DataBaseClass
Set Conn = DBC.OpenConnection()
DBC.ConnStr = "DBQ=" + Server.MapPath(UserDBConnectStr) + ";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
Set UserConn = DBC.OpenConnection()
Set DBC = Nothing
%>
<!--#include file="../../../Inc/Session.asp" -->
<!--#include file="../../../Inc/CheckPopedom.asp" -->
<%
if Not JudgePopedomTF(Session("Name"),"P040900") then Call ReturnError1()
Dim FS_User
Set FS_User = New Cls_User
If Request.QueryString("act")="del" Then
if Not JudgePopedomTF(Session("Name"),"P040902") then Call ReturnError1()
Dim StrID
StrID = Request.QueryString("ID")
StrID = Replace(StrID,"***",",")
UserConn.Execute("delete from FS_Impeach where id in ("&StrID&")")
Response.write "<script>alert('删除成功!');location='SysUserImpeach.asp';</script>"
Response.End
ElseIf Request.QueryString("act")="reduce" Then
if Not JudgePopedomTF(Session("Name"),"P040903") then Call ReturnError1()
Dim StrUserID,ArrUserID,r_i,NumPoint
StrUserID = Request.QueryString("UserID")
NumPoint = Request.QueryString("Point")
If IsNumeric(NumPoint)=False Then
Response.write "<script>alert('请输入要扣的积分数');history.back();</script>"
Else
NumPoint = Abs(CInt(NumPoint))
End If
ArrUserID = Array("")
ArrUserID = Split(StrUserID,"***")
For r_i=0 To UBound(ArrUserID)
FS_User.ID = ArrUserID(r_i)
FS_User.update "Point","Point-"&NumPoint,ArrUserID(r_i)
FS_User.AddLog "point",FS_User.point-NumPoint,FS_User.EName,"被人举报,扣分"
Next
Response.write "<script>alert('扣分成功');location='SysUserImpeach.asp';</script>"
Response.End
End If
Set FS_User = Nothing
Dim StrSQL,RsImpeach
StrSQL = "Select ImpeachTo,ImpeachFrom,ImpeachTime,ImpeachContent,b.ID,a.ID as IID from FS_Impeach as a,FS_Members as b where a.ImpeachTo=b.MemName order by a.ID desc"
Set RsImpeach = Server.CreateObject(G_FS_RS)
RsImpeach.open StrSQL,UserConn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>会员列表</title>
</head>
<link href="../../../CSS/FS_css.css" rel="stylesheet">
<script src="../../SysJS/PublicJS.js" language="JavaScript"></script>
<script language="JavaScript" src="../../SysJS/ContentMenu.js"></script>
<body topmargin="2" leftmargin="2" onClick="SelectAdmin();" onselectstart="return false;">
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#999999">
<tr bgcolor="#EEEEEE">
<td height="26" colspan="5" valign="middle">
<table width="100%" height="20" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width=2 class="Gray">|</td>
<td width=35 align="center" alt="查看举报信息" onClick="ViewDetail();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">查看</td>
<td width=2 class="Gray">|</td>
<td width=35 align="center" alt="删除会员" onClick="DelImpeach();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">删除</td>
<td width=2 class="Gray">|</td>
<td width=35 align="center" alt="锁定会员" onClick="LockUser();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">锁定</td>
<td width=2 class="Gray">|</td>
<td width=35 align="center" alt="扣除被举报会员的一定积分" onClick="ReducePoint();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">扣分</td>
<td width=2 class="Gray">|</td>
<td width=35 align="center" alt="发送站内短信" onClick="SendMessage();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">发信</td>
<td width=2 class="Gray">|</td>
<td width=35 align="center" alt="后退" onClick="top.GetEkMainObject().history.back();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">后退</td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5" height="2"></td>
</tr>
<tr>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="15%" class="ButtonListLeft"> <div align="center">被举报人</div></td>
<td width="15%" class="ButtonList"> <div align="center">举报人</div></td>
<td width="50%" class="ButtonList"> <div align="center">举报原因</div></td>
<td height="26" class="ButtonList"> <div align="center">举报时间</div></td>
</tr>
<%
if Not RsImpeach.eof then
Dim page_size,page_no,page_total,record_all,PageNums
page_size=Request.QueryString("page_size")
if page_size<=0 or page_size="" then page_size=20
If isnumeric(Request.Form("PageNums")) then
if Request.Form("PageNums")<>0 then
page_size = Cint(Request.Form("PageNums"))
end if
End if
page_no=request.querystring("page_no")
if page_no<=1 or page_no="" then page_no=1
If Request.QueryString("page_no")="" then
page_no=1
end if
RsImpeach.PageSize=page_size
page_total=RsImpeach.PageCount
if (cint(page_no)>page_total) then page_no=page_total
RsImpeach.AbsolutePage=page_no
record_all=RsImpeach.RecordCount
Dim i
for i=1 to RsImpeach.PageSize
if RsImpeach.eof then exit for
%>
<tr>
<td height="26"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../../Images/Folder/Userface.gif" width="18" height="18"></td>
<td><span class="TempletItem" UserID="<% = RsImpeach("ID") %>" ImpeachID="<%=RsImpeach("IID")%>">
<% = RsImpeach("ImpeachTo") %>
</span></td>
</tr>
</table></td>
<td><div align="center">
<% =RsImpeach("ImpeachFrom")%>
</div></td>
<td><div align="center">
<% = Left(RsImpeach("ImpeachContent"),30) %>
</div></td>
<td><div align="center">
<%=RsImpeach("ImpeachTime")%>
</div></td>
</tr>
<%
RsImpeach.MoveNext
Next
end if
%>
</table>
</td>
</tr>
<%if page_total>1 then%>
<tr>
<td height="18">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="1">
<td width="42%" height="18"><table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
</tr>
</table> </td>
<td width="51%" height="25" valign="middle"> <div align="right">
<% = "NO.<b>"& page_no &"</b>, " %>
<% = "Totel:<b>"& page_total &"</b>, RecordCounts:<b>" & record_all &"</b> "%>
<%
if Page_Total=1 then
response.Write " <img src=../images/First1.gif border=0 alt=首页></img> "
response.Write " <img src=../images/prePage.gif border=0 alt=上一页></img> "
response.Write " <img src=../images/nextPage.gif border=0 alt=下一页></img> "
response.Write " <img src=../images/endPage.gif border=0 alt=尾页></img> "
else
if cint(Page_No)<>1 and cint(Page_No)<>Page_Total then
response.Write " <a href=?page_no=1&page_size="& page_size &"&Keywords="&Request("Keywords")&"><img src=../images/First1.gif border=0 alt=首页></img></a> "
response.Write " <a href=?page_no="&cstr(cint(Page_No)-1)&"&page_size="&page_size&"&Keywords="&Request("Keywords")&"><img src=../images/prePage.gif border=0 alt=上一页></img></a> "
response.Write " <a href=?page_no="&cstr(cint(Page_No)+1)&"&page_size="&page_size&"&Keywords="&Request("Keywords")&"><img src=../images/nextPage.gif border=0 alt=下一页></img></a> "
response.Write " <a href=?page_no="& Page_Total &"&page_size="& page_size &"&Keywords="&Request("Keywords")&"><img src=../images/endPage.gif border=0 alt=尾页></img></a> "
elseif cint(Page_No)=1 then
response.Write " <img src=../images/First1.gif border=0 alt=首页></img></a> "
response.Write " <img src=../images/prePage.gif border=0 alt=上一页></img> "
response.Write " <a href=?page_no="&cstr(cint(Page_No)+1)&"&page_size="& page_size &"&Keywords="&Request("Keywords")&"><img src=../images/nextPage.gif border=0 alt=下一页></img></a> "
response.Write " <a href=?page_no="& Page_Total &"&page_size="& page_size &"&Keywords="&Request("Keywords")&"><img src=../images/endpage.gif border=0 alt=尾页></img></a> "
else
response.Write " <a href=?page_no=1&page_size="& page_size &"&Keywords="&Request("Keywords")&"><img src=../images/First1.gif border=0 alt=首页></img> "
response.Write " <a href=?page_no="&cstr(cint(Page_No)-1)&"&page_size="& page_size &"&Keywords="&Request("Keywords")&"><img src=../images/prePage.gif border=0 alt=上一页></img></a> "
response.Write " <img src=../images/nextPage.gif border=0 alt=下一页></img></a> "
response.Write " <img src=../images/endpage.gif border=0 alt=尾页></img> "
end if
end if
%>
</div></td>
<td width="7%" valign="middle"><select onChange="ChangePage(this.value);" style="width:50;" name="select">
<% for i=1 to Page_Total %>
<option <% if cint(Page_No) = i then Response.Write("selected")%> value="<% = i %>">
<% = i %>
</option>
<% next %>
</select></td>
</tr>
</table>
</td>
</tr>
<% end if %>
</table>
</body>
</html>
<%
Set Conn = Nothing
%>
<script>
var DocumentReadyTF=false;
var ListObjArray = new Array();
var ContentMenuArray=new Array();
function document.onreadystatechange()
{
if (DocumentReadyTF) return;
IntialListObjArray();
InitialClassListContentMenu();
DocumentReadyTF=true;
}
function InitialClassListContentMenu()
{
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.ViewDetail();",'查看','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.DelImpeach();",'删除','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.LockUser();",'锁定','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.ReducePoint();",'扣分','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction("parent.SendMessage();",'发送短信','disabled');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('seperator','','');
ContentMenuArray[ContentMenuArray.length]=new ContentMenuFunction('top.GetEkMainObject().location.reload();','刷新','');
}
function ContentMenuFunction(ExeFunction,Description,EnabledStr)
{
this.ExeFunction=ExeFunction;
this.Description=Description;
this.EnabledStr=EnabledStr;
}
function ContentMenuShowEvent()
{
ChangeContentMenuStatus();
}
function ChangeContentMenuStatus()
{
var EventObjInArray=false,SelectUser='',DisabledContentMenuStr='';
for (var i=0;i<ListObjArray.length;i++)
{
if (event.srcElement==ListObjArray[i].Obj)
{
if (ListObjArray[i].Selected==true) EventObjInArray=true;
break;
}
}
for (var i=0;i<ListObjArray.length;i++)
{
if (event.srcElement==ListObjArray[i].Obj)
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -