<!--#include file="../conn.asp"-->
<!--#include file="z_adv_conn.asp"-->
<!--#include file="../fun.asp"-->
<%
dim stats,sql_adv,rs_adv,myid,mymoney,myep,mysave,mylife,rs,sql,LxTelMB,BoardData,sys,fString,ho

sys=sysinfo()
LxTelMB=LxTel_MB '读取模板
fString = replace(LxTelMB(2,0), "$Subject$", "广告公司")
fString = replace(fString, "$Url$", sys(5,0))
Response.Write fString '输出顶部内容
Menu
Response.Write "<table width="&LxTelMB(1,0)&" align=center border=1 class=table0 style=""border-collapse: collapse""><tr><td height=27>&nbsp;<img src=../images/sys/nav.gif>&nbsp;<a href=../index.asp>论坛首页</a>&nbsp;→&nbsp;广告公司</td></tr></table>"

if Request.Cookies(BBSInfo&"username")<>"admin" or islogin<>"Y" then
    Response.Write "<li>您不是指定的广告公司管理员"
    tom
    Response.End
end if
set rs_adv=server.createobject("adodb.recordset")
sql_adv="select * from [adv_broker] order by addtime desc"
rs_adv.Open sql_adv,Conn_adv
select case Request("menu")
case "userdel"
for each ho in Request("username")
conn_adv.execute("delete from [adv_broker] where username='"&ho&"'")
next
Response.Write "成功删除了选择的用户"
end select
%>
<br>
<table cellspacing="0" cellpadding="0" width=<%=LxTelMB(1,0)%> border="0" class="table" align="center" style="border-collapse: collapse">
<TR align=middle height=30>
<TD class=td1_title>用户名</TD>
<TD class=td1_title>有效反馈量</TD>
<TD class=td1_title>加入时间</TD>
<TD class=td1_title>删除</TD>
</TR>
<form method="post" action="z_adv_del.asp?menu=userdel">
<%Do While Not rs_adv.EOF%> 
<TR align=middle height=25>
<TD class=td1><a target="_blank" href=Profile.asp?username=<%=rs_adv("username")%>><%=rs_adv("username")%></a>　</TD>
<TD class=td1><%=rs_adv("count_z")%></TD>
<TD class=td1><%=rs_adv("addtime")%></TD>
<TD class=td1><input type="checkbox" value="<%=rs_adv("username")%>" name="username"></TD></TR>
<%
rs_adv.MoveNext
loop
rs_adv.Close
set rs_adv=nothing
%>

	<TR align=middle class=a3>
<TD colspan="7" align="right">&nbsp;<input onclick="{if(confirm('您确定要删除所选择的用户?')){return true;}return false;}"  type="submit" value="   确 定   "></TD></form>
	</TR>
</TABLE><center><br>
<a href="z_adv_admin.asp">广告公司参数设置</a>    <a href="z_adv_del.asp">广告公司用户管理</a>
<%
tom
%>