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

📄 user_add.asp

📁 在线经销商回单管理系统在线经销商回单管理系统
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<!--#include file="../Inc/Ubbcode.asp"-->
<!--#include file="Inc/Function.asp"-->
<%
dim ArticleID,rsArticle,FoundErr,ErrMsg
ArticleID=trim(request("ArticleID"))
FoundErr=False
'if ArticleID="" then 
'	response.Redirect("ProductManage.asp")
'end if

%>
<%
dim rs
dim sql
dim count
set rs=server.createobject("adodb.recordset")
sql = "select * from SmallClass order by SmallClassID asc"
rs.open sql,conn,1,1
%>
<script language = "JavaScript">
var onecount;
subcat = new Array();
        <%
        count = 0
        do while not rs.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rs("SmallClassName"))%>","<%= trim(rs("BigClassName"))%>","<%= trim(rs("SmallClassName"))%>");
        <%
        count = count + 1
        rs.movenext
        loop
        rs.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.myform.SmallClassName.length = 1; 
    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform.SmallClassName.options[document.myform.SmallClassName.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
    }    


</script><style type="text/css">
A:link    {	 color: #333333;TEXT-DECORATION: none	}
A:visited {	 color: #333333;TEXT-DECORATION: none	}
A:active  {	 color: #003300;TEXT-DECORATION: none	}
A:hover   {	 color: #003300;TEXT-DECORATION: underline overline	}
.navtrail {  COLOR: #eeeeee; FONT-SIZE: 14px; LINE-HEIGHT: 14px }
A.navtrail:link {  COLOR: #eeeeee; CURSOR: w-resize }
A.navtrail:visited {  COLOR: #eeeeee; CURSOR: w-resize }
A.navtrail:active {  COLOR: #eeeeee; CURSOR: w-resize }
A.navtrail:hover {  COLOR: #eeeeee; CURSOR: e-resize }
INPUT{BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 1px; PADDING-LEFT: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 9pt; BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #cccccc; PADDING-BOTTOM: 1px; BORDER-TOP-COLOR: #cccccc; PADDING-TOP: 1px; HEIGHT: 18px; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #cccccc}
<!--
td {  font-family: "宋体"; font-size: 10pt; color: #333333; text-decoration: none}
-->
</style>
<BODY  leftMargin=0 topMargin=0 marginheight="0" marginwidth="0"> 
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" class="weiqun">
  <tr> 
    <td height="5" valign="top" bgcolor="#FFFFFF"></td>
  </tr>
  <tr> 
    <td height="72" valign="top" bgcolor="#FFFFFF"><table width="746" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          
          <td valign="top"><table Class=border width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="206" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td class="title_right" height="32">&nbsp;&nbsp;</td>
                    </tr>
                  </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    
            <TR> 
              <TD height="1"> <FORM name='myform' action='UserRegPost.asp' method='post'>
                  <table width=95% border=0 align="center" cellpadding=2 cellspacing=1 bordercolor="#FFFFFF" bgcolor="#D9E2F1" style="border-collapse: collapse">
                    <TR align=center> 
                      <TD height=20 colSpan=2><span class="t1" style="font-weight: bold; color: #000000">添加经销商</span></TD>
                    </TR>
                    <TR>
                      <TD bgcolor="#FFFFFF"><span style="font-weight: bold">&nbsp;地区:</span></TD>
                      <TD bgcolor="#FFFFFF"><%
	if session("purview")=3 or session("purview")=4 then
		response.write rsArticle("BigClassName") & "<input name='BigClassName' type='hidden' value='" & rsArticle("BigClassName") & "'>&gt;&gt;"
	else		
        sql = "select * from BigClass"
        rs.open sql,conn,1,1
		if rs.eof and rs.bof then
			response.write "请先添加省份。"
		else
		%> <select name="BigClassName" onChange="changelocation(document.myform.BigClassName.options[document.myform.BigClassName.selectedIndex].value)" size="1">
                <%
		    do while not rs.eof
			%>
                <option <% if rs("BigClassName")=rsArticle("BigClassName") then response.Write("selected") end if%> value="<%=trim(rs("BigClassName"))%>"><%=trim(rs("BigClassName"))%></option>
                <%
		        rs.movenext
				BigClass=rs("BigClassName")
    	    loop
		end if
		
		
        rs.close
		
			%>
              </select> <%
			  
	end if
	if session("purview")=4 then
		response.write rsArticle("SmallClassName") & "<input name='SmallClassName' type='hidden' value='" & rsArticle("SmallClassName") & "'>"
	else
	%> <select name="SmallClassName">
                <option value="" >不指定地市</option>
                <%
			sql="select * from SmallClass where BigClassName='" & BigClass & "'"
			rs.open sql,conn,1,1
			if not(rs.eof and rs.bof) then
				do while not rs.eof%>
                <option <% if rs("SmallClassName")=rsArticle("SmallClassName") then response.Write("selected") end if%> value="<%=rs("SmallClassName")%>"><%=rs("SmallClassName")%></option>
                <%
			    	rs.movenext
				loop
			end if
	        rs.close
			%>
              </select> <%
	end if
	%> </TD>
                    </TR>
                    <TR> 
                      <TD width="18%" bgcolor="#FFFFFF"><b>用户名:</b><BR></TD>
                      <TD width="82%" bgcolor="#FFFFFF"> <INPUT   maxLength=14 size=30 name=UserName> 
                        <font color="#FF0000">*</font> 不能小于4个字符(2个汉字)</TD>
                    </TR>
                    <TR> 
                      <TD width="18%" bgcolor="#FFFFFF"><B>密码(至少6位):</B><BR></TD>
                      <TD width="82%" bgcolor="#FFFFFF"> <INPUT   type=password maxLength=12 size=30 name=Password> 
                        <font color="#FF0000">*</font> 请输入密码,区分大小写。 不要使用类似 '*'、' '的特殊字符</TD>
                    </TR>
                    <TR> 
                      <TD width="18%" bgcolor="#FFFFFF"><strong>确认密码(至少6位):</strong><BR></TD>
                      <TD width="82%" bgcolor="#FFFFFF"> <INPUT   type=password maxLength=12 size=30 name=PwdConfirm> 
                        <font color="#FF0000">*</font> 请再输一遍确认</TD>
                    </TR>
                    <TR> 
                      <TD width="18%" bgcolor="#FFFFFF"><strong>密码问题:</strong><BR></TD>
                      <TD width="82%" bgcolor="#FFFFFF"> <INPUT   type=text maxLength=50 size=30 name="Question">                        忘记密码的提示问题</TD>
                    </TR>
                    <TR> 
                      <TD width="18%" bgcolor="#FFFFFF"><strong>问题答案:</strong><BR></TD>
                      <TD width="82%" bgcolor="#FFFFFF"> <INPUT   type=text maxLength=20 size=30 name="Answer">
                        <input name="sex" type="hidden" id="sex" value="1">
                        忘记密码的提示问题答案,用于取回密码</TD>
                    </TR>
                 
                    <TR> 
                      <TD width="18%" bgcolor="#FFFFFF"><strong>Email地址:</strong><BR></TD>
                      <TD width="82%" bgcolor="#FFFFFF"> <INPUT   maxLength=50 size=30 name=Email> 
                        <font color="#FF0000">
                        <INPUT name=homepage id="homepage" value="http://" size=30   maxLength=50  type="hidden">
                        请输入有效的邮件地址</font></TD>
                    </TR>
                   
                    <TR> 
                      <TD width="18%" bgcolor="#FFFFFF"><strong>经销商名称:</strong><BR></TD>
                      <TD width="82%" bgcolor="#FFFFFF"> <INPUT name=Comane id="Comane" size=30   maxLength=100>
                        您的经销商名称</TD>
                    </TR>
                    <TR> 
                      <TD bgcolor="#FFFFFF"><strong>邮政编码:</strong></TD>
                      <TD width="82%" bgcolor="#FFFFFF"><input name=Zip id="Zip" size=30 maxlength=20></TD>
                    </TR>
                    <TR> 
                      <TD bgcolor="#FFFFFF"><strong>联系电话:<br>
                              </strong></TD>
                      <TD width="82%" bgcolor="#FFFFFF"><input name=Phone id="Phone" size=30 maxlength=20> 
                        <font color="#FF0000">*格式13117101402<strong></strong></font></TD>
                    </TR>
                    <TR> 
                      <TD width="18%" bgcolor="#FFFFFF"><strong>传 真:</strong></TD>
                      <TD width="82%" bgcolor="#FFFFFF"> <INPUT name=Fox id="Fox" size=30 maxLength=50></TD>
                    </TR>
                  </TABLE>
                  <div align="center"> 
                    <INPUT   type=submit value=" 注 册 " name=Submit>
                    &nbsp; 
                    <INPUT name=Reset   type=reset id="Reset" value=" 清 除 ">
                  </div>
                </form></TD>
            </TR>
                  </table> </td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
</BODY></HTML>

⌨️ 快捷键说明

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