<!--#include file="conn.asp" -->
<!--#include file="inc/usdl.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=page_title%>用户管理中心.</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="3" topmargin="0">

<!--#include file="head.asp" -->
<table width="763" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="763" height="19" valign="bottom"><font color="#990000">　→ </font>你当前位置：<a href="default.asp">首 
      页 </a>&gt;&gt;管理中心</td>
  </tr>
  <tr>
    <td height="1" background="images/2.jpg"></td>
  </tr>
</table>
<table width="763" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="175" valign="top"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td><div align="center"><img src="pic/manager.gif" width="174" height="70" border="1"></div></td>
        </tr>
        <tr> 
          <td height="17" bgcolor="#EEEEEE"> <div align="center">欢迎: <font color="#FF0000"><strong><%= session("us") %></strong></font> 光临</div></td> 
        </tr>
        <tr> 
          <% us=session("us")
			sql="select * from user where userid='"&us&"'"
			rs.open sql,conn,1,1
			af=rs("sf")
			 %>
          <td><p><font color="#FF0000">您的账面存款：</font></p>
            <p>&nbsp;</p>
            <p align="center"><font color="#FF0000">￥ <%= rs("je") %></font></p> 
            <p align="center">&nbsp;</p>
            <p>客户等级: <font color="#FF0000"><% Response.Write rs("dl")  
us_dl= rs("dl") 
us_dl_class=rs("sf")%>
              <% rs.close
			  ms=""  
			  if Trim(Request.QueryString("w"))="save" then
			  ms="申请成功...请不要重复申请"
			  sql="select * from user where userid='"&session("us")&"'"
			 'sql="update user set dl='"&Trim(Request.Form("dl"))&"',dldat="&date()&" where userid='"&session("us")&"'"
			 rs.open sql,conn,2,3
			 rs("dlf")=true
			 rs("dljp")=Request.Form("dljp")
			 rs("dldat")=date()
			 rs.update
			 rs.close
			 msg="你的申请已经发出!!"
			  end if
			  
			  %>
              </font></p></td>
        </tr>
        <tr>
          <td height="1" background="images/2.jpg"> </td>
        </tr>
      </table> 
	  <div align="center"> 
        <!--#include file="user_inc.asp" -->
        </div></td>
    <td width="1" background="images/1.jpg"> </td>
    <td width="587" valign="top"> 
      <table width="573" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="573"><a href="user.asp"><img src="images/mameger.gif" width="437" height="43"></a></td>
        </tr>
        <tr>
          <td>
		  <% 
		   rs.open "select * from user where userid='"&session("us")&"'and dlf=false",conn,1,1
		   if  rs.eof then
		   Response.Write("你的代理申请已经提交,如果还没有开通请等侍。。。。")
		   else
		   %>
		  <form name="form2" method="post" action="user6.asp?w=save">
              <table width="96%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td width="63%" valign="top"><p><font color="#FF0000">申请成我们的代理</font></p>
                    <p>&nbsp;</p>
                    <p> 您目前的等级是:<font color="#FF0000"><strong><%= us_dl%></strong></font></p>
                    <p>&nbsp;</p>
                    <p>&nbsp;</p>
                    <p>目前我人只提供两个级别的代理</p>
                    <table width="401" border="0" cellspacing="1" cellpadding="1">
                      <tr> 
                        <td width="69" bgcolor="#000066"> <div align="center"><font color="#FFFFFF">申请此级别</font></div></td>
                        <td width="74" bgcolor="#000066"> <div align="center"><font color="#FFFFFF">级 
                            别</font></div></td>
                        <td width="84" bgcolor="#000066"> <div align="center"><font color="#FFFFFF">预付金额</font></div></td>
                        <td width="161" bgcolor="#000066"> <div align="center"><font color="#FFFFFF">其它说明</font></div></td>
                      </tr>
                      <% rs.close
					   rs.open "select * from matter ",conn,1,1
		while not rs.eof %>
                      <tr bjcolor=#F4F4FF onmouseover="this.style.backgroundColor='#E8E8FF';return true;" onmouseout="this.style.backgroundColor='#F4F4FF';"> 
                        <td height="22"> <div align="center">
						<% if us_dl_class>=rs("class") then
						Response.Write("<a href=#### title=你目前的等级高于此代理>不能申请</a>") 
						else %>
                            <input name="dljp" type="radio" class="unnamed1" value="<%=rs("class")%>">
							<% end if %>
                          </div></td>
                        <td> <div align="center"><font color="#FF0000"><%= rs("matter") %></font></div></td>
                        <td> <div align="center"><%= rs("je") %></div></td>
                        <td><%= rs("bak") %></td>
                      </tr>
                      <% rs.movenext
		wend
		rs.close %>
                      <tr bgcolor="#000066"> 
                        <td colspan="4">
<input type="submit" name="Submit2" value="-发出请求-"></td>
                      </tr>
                    </table>
                    <p><font color="#FF0000">关于代理的价格请向我们咨询　<a href="mailto:<%=page_email%>"><%=page_email%></a></font></p></td>
                  <td width="37%"><div align="center"><img src="images/newagent4.gif" width="177" height="213"></div></td>
                </tr>
                <tr> 
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
              </table>
            </form>
			
			<% 
			
			end if %></td>
        </tr>
      </table>
      <p><font color="#0099FF">有关代理的说明请点这里 <a href="dl.asp">&gt;&gt;&gt;</a></font></p> 
      <p>&nbsp;</p>
      <p align="center"><font color="#FF0000"><%= ms %></font></p></td>
  </tr>
  <tr> 
    <td>&nbsp;</td>
    <td colspan="2">&nbsp;</td>
  </tr>
</table>
<%
call CloseDatabase '关闭数据库链接
%>
<!--#include file="top.asp" -->

</body>
</html>





























