<!--#include file="inc_top.asp" -->
<table width="762" bgcolor="#ffffff" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
	<td align="center"> 
	<%set rs = conn.execute("select * from xlb order by xlbid asc")
 %>
<script language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rs.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rs("xlbname"))%>","<%= trim(rs("lbid"))%>","<%= trim(rs("xlbid"))%>");
        <%
        count = count + 1
        rs.movenext
        loop
        rs.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.myform.xlbid.length = 0; 

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform.xlbid.options[document.myform.xlbid.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
</script>
<script language="javascript">
	<!--//
	function checksignup() {
		if ( document.myform.lbid.value == '' ) {
			window.alert('请选择你网店产品类别在多用户商城中的类别归类!!');
			document.myform.lbid.focus();
			return false;
		}
		if ( document.myform.xlbid.value == '' ) {
			window.alert('请选择你网店产品类别在多用户商城中的类别归类!!');
			document.myform.xlbid.focus();
			return false;
		}
		if ( document.myform.name.value == '' ) {
			window.alert('请输入商店的名称!!');
			document.myform.name.focus();
			return false;
		}
		if ( document.myform.name2.value == '' ) {
			window.alert('请输入负责人姓名!!');
			document.myform.name2.focus();
			return false;
		}
		if ( document.myform.dz.value == '' ) {
			window.alert('请输入公司地址!!');
			document.myform.dz.focus();
			return false;
		}
		if ( document.myform.pc.value == '' ) {
			window.alert('请输入邮编!!');
			document.myform.pc.focus();
			return false;
		}
		if ( document.myform.tel.value == '' ) {
			window.alert('请输入联系电话!!');
			document.myform.tel.focus();
			return false;
		}
		if ( document.myform.email.value == '' ) {
			window.alert('请输入email地址前缀!!');
			document.myform.email.focus();
			return false;
		}
		if ( document.myform.email2.value == '' ) {
			window.alert('请输入email地址后缀!!');
			document.myform.email2.focus();
			return false;
		}
		if(isNaN(document.myform.sl.value)||(document.myform.sl.value == '' )) {
			window.alert('请输入网店商品数量!!');
			document.myform.sl.focus();
			return false;
		}
		if((document.myform.admin.value== '' )||(document.myform.admin.value.length<6)) {
			window.alert('请输入大于6位数的管理员名称!!');
			document.myform.admin.focus();
			return false;
		}
		if((document.myform.password.value== '' )||(document.myform.password.value.length<6)) {
			window.alert('请输入大于6位数的管理员密码!!');
			document.myform.password.focus();
			return false;
		}
			return true;
			}
	//-->
</script>
      <form name="myform" id="myform" method="post" action="shenqing3.asp">
        <font color="#FF3333"><br>
        <font size="2">请不要测试！注册后24小时内我们核实后即可开通！<br>
        另外，商店名称和网店管理员登陆名称一经提交将不能修改</font></font> <br>
        <br>
        <table width="550" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
          <tr bgcolor="#FFFFFF"> 
            <td height="25" colspan="2" valign="middle" bgcolor="#f1f1f1">&nbsp; 
              <font color="#FF3333">&gt;&gt;商家联系信息 </font></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25" align="right" valign="middle">贵网店所属类别&nbsp;</td>
            <td height="25" valign="middle">&nbsp; <%
	set rs = conn.execute("select * from lb")
	if rs.eof and rs.bof then
	response.write "请先添加类别。"
	response.end
	else
	%> <select name="lbid" size="1" class="wenbenkuang" onChange="changelocation(document.myform.lbid.options[document.myform.lbid.selectedIndex].value)">
                <option value="" selected>==请选大类别==</option>
                <%do while not rs.eof%>
                <option value="<%=trim(rs("lbid"))%>"><%=trim(rs("lbname"))%></option>
                <%
        				rs.movenext
       					loop
						end if
       					rs.close
                                       set rs=nothing %>
              </select> <select name="xlbid" class="wenbenkuang">
                <option selected value="">==请选小类别==</option>
              </select></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="200" height="25" align="right" valign="middle">商店名称&nbsp;</td>
            <td width="350" height="25" valign="middle">&nbsp; <input name="name" type="text" class="wenbenkuang" id="name" size="30" maxlength="40"> 
              <font color="#FF0000">十字以内</font> </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="200" height="25" align="right" valign="middle">负责人&nbsp;</td>
            <td width="350" height="25" valign="middle">&nbsp; <input name="name2" type="text" class="wenbenkuang" id="name2" size="15" maxlength="10"> 
            请填写真实姓名，很重要 </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="200" height="25" align="right" valign="middle">公司地址&nbsp;</td>
            <td width="350" height="25" valign="middle">&nbsp; <input name="dz" type="text" class="wenbenkuang" id="dz" size="50" maxlength="50"></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="200" height="25" align="right" valign="middle">邮编&nbsp;</td>
            <td width="350" height="25" valign="middle">&nbsp; <input name="pc" type="text" class="wenbenkuang" id="name4" size="15" maxlength="6"></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="200" height="25" align="right" valign="middle">电话&nbsp;</td>
            <td width="350" height="25" valign="middle">&nbsp; <input name="tel" type="text" class="wenbenkuang" id="name5" size="30" maxlength="30">
              区号-电话号码-分机号码</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="200" height="25" align="right" valign="middle">传真&nbsp;</td>
            <td width="350" height="25" valign="middle">&nbsp; <input name="fax" type="text" class="wenbenkuang" id="name7" size="30" maxlength="20">
              可不埴</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="200" height="25" align="right" valign="middle">E-mail信箱&nbsp;</td>
            <td width="350" height="25" valign="middle">&nbsp; <input name="email" type="text" class="wenbenkuang" id="name8" size="10" maxlength="40"> 
              <font color="#FF3333" class="b2">@ </font><font size="3"> 
              <input name="email2" type="text" class="wenbenkuang" id="email2" size="15" maxlength="40">
              </font>请输入您的电子邮箱</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="200" height="25" align="right" valign="middle">您打算在本商城销售多少种商品&nbsp;</td>
            <td width="350" height="25" valign="middle">&nbsp; <input name="sl" type="text" class="wenbenkuang" id="name23" size="10" maxlength="5">
              个 </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25" colspan="2" valign="middle" bgcolor="#f1f1f1">&nbsp;<font color="#FF3333"> 
              &gt;&gt;商家网店管理登陆名称与密码</font></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25" align="right" valign="middle">管理员登陆名称&nbsp;</td>
            <td height="25" valign="middle"> &nbsp; <input name="admin" type="text" class="wenbenkuang" id="admin" size="20" maxlength="20">
              只能是6-20位英文或数字组成</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25" align="right" valign="middle">管理员登陆密码&nbsp;</td>
            <td height="25" valign="middle"> &nbsp; <input name="password" type="password" class="wenbenkuang" id="password" size="20" maxlength="20">
              只能是6-20位英文或数字组成</td>
          </tr>
        </table>
        <br>
        <font color="#FF3333" size="2">注意：推广期内我们提供免费服务，但我们保留随着市场情况的改变提供收费服务的权利</font><br>
        <br>
          <input name="Submit" type="submit" class="go-wenbenkuang" value="提 交" onClick="javascript:return checksignup()">
          &nbsp; 
          <input name="Submit3" type="reset" class="go-wenbenkuang" value="重 置">
      </form></td>
  </tr>
</table>
<!--#include file="inc_end.asp" -->