⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 member_agent.asp

📁 直接解压即可 都是asp源码 超经典的啊
💻 ASP
字号:
<!--#include file="conn.asp"-->
<% 
id=session("userid")
username=session("username")
if id="" or username="" then
response.Redirect("adminloginerror.asp")
end if
Set rs = Server.CreateObject("ADODB.Recordset")
if session("usertyp")="企业" then
sql="select * from userentreg where login_name='"& username &"' and id=" & id &""
end if
if session("usertyp")="个人" then
sql="select * from userpersreg where login_name='"& username &"' and id=" & id &""
end if
rs.open sql,conn,3,3
if rs.eof then
response.Redirect("adminloginerror.asp")
else
%>

<html>

<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">

<body>
<% if request.querystring("cmd")="add" then
user_name=request.form("user_name")
user_id=request.form("user_id")
usertyp=request.form("usertyp")
sales=request.form("sales")
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from member_agent where user_name='"&user_name&"' and user_id="&user_id&" and usertyp='"&usertyp&"'"
rs.open sql,conn,3,3
if rs.eof then
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from member_agent"
rs.open sql,conn,3,3
rs.addnew
rs("user_name")=user_name
rs("user_id")=user_id
rs("usertyp")=usertyp
rs("sales")=sales
rs("date")=date()
rs.update
response.write"<table width=100% border=0 cellspacing=0 cellpadding=5><tr><td><div align=center class=f1>您的申请已送出,当我们收到您的代理款之后将发给您的代理账号到您的信箱!<br><br><input name=Submit type=submit onClick=javascript:history.go(-1) value=返回></div></td></tr></table>"
else
response.write"<div align=center class=f1>您无须多次提交代理申请!</div>"
end if
end if
%>
<% if request.querystring("cmd")="" then %>
<table width="100%" border="0" cellspacing="0" cellpadding="8">
  <tr> 
    <td><div align="center"> 
        <form name="form1" method="post" action="member_agent.asp?cmd=add">
          <table width="90%" border="0" cellpadding="5" cellspacing="0">
            <tr> 
              <td><img src="images/aggimgaa.gif" width="111" height="24"></td>
            </tr>
            <tr> 
              <td><div class="f1">注意事项:在您成为我们代理之前所有已发生的业务,都不能计算在您的代理范畴内。</div></td>
            </tr>
            <tr> 
              <td><table border=0 cellpadding=0 cellspacing=0 width="100%">
                  <tbody>
                    <tr> 
                      <td> 时代商务代理商主要有两大类:<span class="f1">个人代理商</span>和<span class="f1">企业代理商</span>,具体代理级别如下: 
                        <table border=0 cellpadding=0 cellspacing=0 width="100%">
                          <tbody>
                            <tr> 
                              <td align=middle> <p><img src="images/newagent1.gif" width="102" height="22"></p>
                                <p><img src="images/newagent2.gif" width="102" height="22"></p>
                                <p><img src="images/newagent3.gif" width="102" height="22"></p></td>
                              <td width=177><img src="images/newagent4.gif" width="177" height="213"></td>
                            </tr>
                          </tbody>
                        </table>
                        <p>新加入的代理商定级标准如下:</p>
                        <table border=0 cellpadding=8 cellspacing=1 width="100%">
                          <tbody>
                            <tr bgcolor=#1d4b79> 
                              <td align=middle><font color=#ffffff>普通代理商</font></td>
                              <td><font color=#ffffff>预付款 300元人民币</font></td>
                            </tr>
                            <tr bgcolor=#1d4b79> 
                              <td align=middle><font color=#ffffff>牵手代理商</font></td>
                              <td><font color=#ffffff>预付款 500元人民币</font></td>
                            </tr>
                            <tr bgcolor=#1d4b79> 
                              <td align=middle><font color=#ffffff>伙伴代理商</font></td>
                              <td><font 
                  color=#ffffff>预付款 800元人民币</font></td>
                            </tr>
                          </tbody>
                        </table>
                        <p>预付款:预付款是代理商预先打入的款项作为将来购买域名注册,空间租用等产品与服务的款项。<br>
                        </p></td>
                      <td width=50> </td>
                    </tr>
                  </tbody>
                </table>
                <table width="95%" border="0" align="center" cellpadding="5" cellspacing="0">
                  <tr> 
                    <td><span class="f2">请选择您想加入的代理级别:</span> 
                      <input name="sales" type="radio" value="普通代理商" checked>
                      <span class="f1">普通代理商</span> 
                      <input type="radio" name="sales" value="牵手代理商">
                      <span class="f1">牵手代理商 </span> 
                      <input type="radio" name="sales" value="伙伴代理商">
                      <span class="f1">伙伴代理商 
                      <input name="user_name" type="hidden" id="user_name" value="<%=session("username")%>">
                      <input name="user_id" type="hidden" id="user_id" value="<%=session("userid")%>">
                      <input name="usertyp" type="hidden" id="usertyp" value="<%=session("usertyp")%>">
                      </span></td>
                  </tr>
                  <tr> 
                    <td><div align="center"> </div></td>
                  </tr>
                  <tr> 
                    <td><div align="center"> 
                        <input type="submit" name="Submit" value="是的,我想成为你们的代理">
                      </div></td>
                  </tr>
                </table></td>
            </tr>
          </table>
        </form>
      </div></td>
  </tr>
</table>
<% end if %>
</body>
</html>
<% 
end if
rs.close
set rs=nothing
set conn=nothing
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -