<!--#include file="conn.asp" -->
<% adm_power_page=6 %>
<!--#include file="admin_dn.asp" -->
<!--#include file="../inc/config.asp" -->
<!--#include file="../inc/mail_inc.asp" -->
<% 
 if Request.QueryString("w")="save" then
 sql="update user set sf='"&Trim(Request.QueryString("dljp"))&"',dlf=false where id="&request("id")
 conn.execute(sql)
 
  if jmail_info then
   html="<p>你好:</p><p>你在"
   html=html&home_page_name&"申请的代理已经成功。谢谢你对我们的支持。"
   html=html&"</p><p>合作愉快</p><p>祝:商安</p>"&home_page_url
   call SendMail(Request("email"),"您好!!代理申请成功..",html) 
  end if
  
end if
if Request.QueryString("w")="del" then
 sql="update user set dlf=false where id="&request("id")
 conn.execute(sql)
end if
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>:::管理页面:::</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="2" topmargin="0">
<p><font color="#FF0000">最新加盟代理</font></p>
<p><font color="#FF0000">加明意向</font></p>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
  <tr> 
    <td width="11%" bgcolor="#000066"> <div align="center"><font color="#FFFFFF">用户名</font></div></td>
    <td width="15%" bgcolor="#000066"> <div align="center"><font color="#FFFFFF">姓名</font></div></td>
    <td width="21%" bgcolor="#000066"> <div align="center"><font color="#FFFFFF">电子邮件</font></div></td>
    <td width="17%" bgcolor="#000066"> <div align="center"><font color="#FFFFFF">电 
        话</font></div></td>
    <td width="12%" bgcolor="#000066"> <div align="center"><font color="#FFFFFF">当前|申请</font></div></td>
    <td width="12%" bgcolor="#000066"> <div align="center"><font color="#FFFFFF">申请时间</font></div></td>
    <td width="12%" bgcolor="#000066"> <div align="center"><font color="#FFFFFF">操 
        作</font></div></td>
  </tr>
  <% 
  sql="select * from user where dlf=true" 
  rs.open sql,conn,1,1
  if rs.eof then
  Response.Write "<tr><td colspan=7>当前没有人加入者..</td></tr>"
  end if
  while not rs.eof 
   %>
  <tr onmouseover="this.style.backgroundColor='#E7EFF5';return true;" onmouseout="this.style.backgroundColor='#F7F7F7';"> 
    <td bgcolor="#F7F7F7"> <div align="center"><a href="user_list.asp?id=<%=rs("id")%>"><%= rs("userid") %></a></div></td>
    <td bgcolor="#F7F7F7"> <div align="center"><%= rs("name") %></div></td>
    <td bgcolor="#F7F7F7"> <div align="center"><%= rs("email") %></div></td>
    <td bgcolor="#F7F7F7"> <div align="center"><%= rs("tel") %></div></td>
    <td bgcolor="#F7F7F7"> <div align="center"><%= rs("sf") %>|<font color="#FF0000"><%= rs("dljp") %></font></div></td>
    <td bgcolor="#F7F7F7"> <div align="center"><font color="#FF0000"><%= rs("dldat") %></font></div></td>
    <td bgcolor="#F7F7F7"> <div align="center"><a href="adm_12.asp?w=save&dljp=<%=rs("dljp")%>&id=<%=rs("id")%>&email=<%=rs("email")%>"><img src="../images/3.jpg" alt="确认生效。。" width="16" height="16" border="0"></a>　 
        <a href="adm_12.asp?w=del&id=<%=rs("id")%>"><img src="images/4.jpg" alt="不生效" width="16" height="16" border="0"></a></div></td>
  </tr>
  <% 
  rs.movenext
  wend 
  rs.close
  
   %>
  <tr> 
    <td colspan="7">&nbsp;</td>
  </tr>
</table>
<p>　</p>
<p><font color="#FF0000">代理列表</font></p>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr bgcolor="#000066"> 
    <td width="11%"> <div align="center"><font color="#FFFFFF">用户名</font></div></td>
    <td width="17%"> <div align="center"><font color="#FFFFFF">姓名</font></div></td>
    <td width="19%"> <div align="center"><font color="#FFFFFF">电子邮件</font></div></td>
    <td width="17%"> <div align="center"><font color="#FFFFFF">电 话</font></div></td>
    <td width="12%"> <div align="center"><font color="#FFFFFF">等级</font></div></td>
    <td width="12%"> <div align="center"><font color="#FFFFFF">代得理身份</font></div></td>
    <td width="12%"> <div align="center"><font color="#FFFFFF">申请时间</font></div></td>
  </tr>
  <% 
  sql="select * from user where sf<>0 and sf<>1" 
  rs.open sql,conn,1,1
  while not rs.eof 
   %>
  <tr bgcolor="#F7F7F7"onmouseover="this.style.backgroundColor='#E7EFF5';return true;" onmouseout="this.style.backgroundColor='#F7F7F7';"> 
    <td height="19">
<div align="center"><a href="user_list.asp?id=<%=rs("id")%>"><%= rs("userid") %></a></div></td>
    <td><div align="center"><%= rs("name") %></div></td>
    <td><div align="center"><%= rs("email") %></div></td>
    <td><div align="center"><%= rs("tel") %></div></td>
    <td><div align="center"><%= rs("sf") %></div></td>
    <td><div align="center"><%= rs("dl") %></div></td>
    <td> <div align="center"><font color="#FF0000"><%= rs("dldat") %></font></div></td>
  </tr>
  <% 

  rs.movenext
  wend 
  rs.close
  
   %>
  <tr> 
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td colspan="2">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>
