<!--#include file="head.asp"-->
<style>body{background-color: #fff;}</style>


<%
act=SafeRequest("act")
cact=SafeRequest("cact")
page=SafeRequest("page")
link="gongdan?ct="

if cact="cha" then
link="gongdan?cact=cha"


end if


if SafeRequest("act")="del" then
buyid=SafeRequest("buyid")
if buyid="" then call PopErr("缺少参数")

	sql="select * from ayname where aynameid="&request.Cookies("aynameid")&"" 
	rs.open sql,conn,1,3
	rs("nobuyid")=replace(trim(rs("nobuyid")),buyid&","," ")
	rs.update
	rs.close
	call logadd(request.Cookies("aynameid"),"封禁买家ID删除成功",0,0)
	call PopErr2("买家ID删除成功","nobuylist")
end if


%>


<main>
<div  class="container">
<div class="ui-lrctnei">
<%call userleft()%>
<div class="r"> 
<div class="ui-content">
                        
					
                            
<div class="neiye">

                   
                                                     
            <!-------------------------------------- 开始 -------------------------------------->									
            <div class="neibiaoti"></div>
            <div class="neibiaoti2">被限制购买买家ID列表</div>
            <div class="gexian20"></div>
                	<div class="neitable">
					<table>
                        <tr class="hd">
                            <td>买家ID</td>
                            <td>操作</td>
                        </tr>
						<%
						sql="select * from ayname where aynameid="&request.Cookies("aynameid")&"" 
						rs.open sql,conn,1,3

						
						if trim(rs("nobuyid"))<>"" and isnull(trim(rs("nobuyid")))=false then
							
						diankastr=mid(trim(rs("nobuyid")),1,len(trim(rs("nobuyid")))-1)	
						diankastr=split(trim(diankastr),",")

						For dianka=0 To Ubound(diankastr) 	
						%>
                  		<tr onmouseover=this.bgColor='#FAFAFA' onmouseout=this.bgColor='#ffffff'>
                            <td><%=trim(diankastr(dianka))%></td>
                            <td><a href="?act=del&buyid=<%=trim(diankastr(dianka))%>">删除</a></td>
                        </tr>
						<%
						next 
						end if
                        rs.close%>
                        
               		  </table>
            		</div>
            <!-------------------------------------- 结束 -------------------------------------->


        <div class="clearfix"></div>
        


</div>








</div>
</div>
</div>
</div>
</main>


<footer>
<div class="container">
</div>
</footer>

</body>
</html>