<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
end if
if session("flag")>2 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
if qx8<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
action=request.QueryString("action")
if action="del" then
id=request.QueryString("id")
if id="" then 
response.write "<script LANGUAGE='javascript'>alert('参数错误，请返回！');location.href='syh.asp';</script>"
response.End
else
conn.execute "delete from shop_yh where id="&id
response.write "<script LANGUAGE='javascript'>alert('成功退订，请返回！');location.href='syh.asp';</script>"
response.End
end if
else
%>
<html>
<head>
<title>网软志成在线购物系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {
	color: #000000;
	font-weight: bold;
}
-->
</style></head>

<body><div align="center">
  <table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/right_top2.gif">
    <tr>
      <td width="1%">&nbsp;</td>
      <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
          <tr>
            <td width="30%" style="font-size:14px;color:#ffffff">&nbsp;<span class="style1">商友会信息管理</span></td>
            <td width="70%" align="right">&nbsp;</td>
          </tr>
      </table></td>
    </tr>
  </table>
   
   <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#999999">
     <tr bgcolor="#cccccc">
       <td height="22" bgcolor="#cccccc" >
         <div align="center"> 商友会 </div>
         <div align="center"></div>
       <div align="center"></div></td>
       <td bgcolor="#cccccc" ><div align="center">用户</div></td>
       <td >
         <div align="center">回复</div></td>
       <td bgcolor="#cccccc" >
         <div align="center">建立时间</div></td>
       <td >
         <div align="center"></div>
       <div align="center">操作</div></td>
     </tr>
   

			  <%
	
set rs=server.createobject("adodb.recordset")
rs.open "select * from shop_yh order by id asc",conn,3,1
if rs.eof then
         %>
<table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
     <tr>
       <td align=center>暂无商友会，请添加!</td>
     </tr>
   </table>
		 <%
           else 
        rs.PageSize =12 '每页记录条数
		iCount=rs.RecordCount '记录总数
		iPageSize=rs.PageSize
    	maxpage=rs.PageCount 
    	page=request("page")
    	per_page=rs.PageSize
    
    if Not IsNumeric(page) or page="" then
        page=1
    else
        page=cint(page)
    end if
    
    if page<1 then
        page=1
    elseif  page>maxpage then
        page=maxpage
    end if
    
    rs.AbsolutePage=Page

	if page=maxpage then
		x=iCount-(maxpage-1)*iPageSize
	else
		x=iPageSize
	end if
	For i=0 To x-1
  %>
	
     <tr bgcolor="#F3F3F3">
       <td height=23 align=left bgcolor="#F3F3F3">&nbsp;&nbsp; <strong><a href=../list.asp?id=<%=rs("shopid")%> target="_blank" ><%=rs("shopname")%></a></strong> <a href=../list_pinglun.asp?id=<%=rs("shopid")%> target="_blank">查看评论</a>
           <div align="center"> </div>
       <div align="center"></div></td>
       <td height=23 align=left bgcolor="#F3F3F3"><div align="center"><%=rs("username")%></div></td>
       <td align=left>
         <div align="center"><%=rs("hot")%></div></td>
       <td align=left>
         <div align="center"><%=year(rs("adddate"))&"."&month(rs("adddate"))&"."&day(rs("adddate"))%></div></td>
       <td align=center>
         <div align="center"><a href="?action=del&id=<%=rs("id")%>">退订</a></div></td>
     </tr>
     <%
			rs.movenext
		    next
			%>
   </table>
   <p align="right"> 
   <%call PageControl(iCount,maxpage,page,"border=0 align=center","<p align=center>",per_page)%>
         </div>
<div align="center"> 
  <center>
    <%rs.close 
conn.close%>
  </center>
</div>      <br>
<!--#include file="page.asp"-->

<%end if%><%end if%>
<!--#include file="copyright.asp"-->