<!--#include file="Common/Inc_DatConn.asp"-->
<!--#include file="Common/Inc_Function.asp"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><% =strSiteName%> - 会员注册</title>
<meta name="Keywords" content="重庆信息网" />
<meta name="Description" content="重庆信息网" />
<link href="imger/css.css" type="text/css" rel="stylesheet">
<SCRIPT language=JavaScript src="common/inc_DateSelect.htm" type=text/JavaScript></SCRIPT>
<script language="javascript">
<!--
function IsDigit(){
  return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
// -->
</script><%
set rss=server.createobject("adodb.recordset")
sqls = "select * from hySmallClass order by sj desc"
rss.open sqls,conn,1,1
%>
<script language = "JavaScript">
var onecount;
subcat = new Array();
        <%
        count = 0
        do while not rss.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rss("id"))%>","<%=trim(rss("dl"))%>","<%= trim(rss("smallclassname"))%>");
        <%
        count = count + 1
        rss.movenext
        loop
        rss.close
        %>
onecount=<%=count%>;

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

</script>
</head>
<body>
<!--#include file="head.asp"-->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="10" bgcolor="f2f2f2">
  <tr>
    <td width="26%" valign="top"><table width="100%" border="0" cellpadding="9" cellspacing="1" bgcolor="#e6e6e6">
      <tr>
        <td bgcolor="#FFFFFF"><iframe name="login" width="172" height="110" src="common/inc_login.asp" scrolling="no" align="middle" border="0" frameborder="0" marginwidth="1" marginheight="1" target="_top">
				浏览器不支持嵌入式框架，或被配置为不显示嵌入式框架。</iframe></td>
      </tr>
    </table>
    </td>
    <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#e6e6e6">
      <tr>
        <td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="10" cellpadding="0">
          <tr>
            <td height="24" background="imger/09.gif"><span class="STYLE6">≡</span> <span class="STYLE2"><b>您的位置：</b></span></td>
          </tr>
          <tr>
            <td>
<script language="javascript"> 
			//检查email的合法性
			function checkemail(inputstr){
				if(inputstr.indexOf('@') != -1 && inputstr.indexOf('.')!= -1)
					return true;
				else 
			   		return false;	
			}
			//检验表单的合法性
			function FeedBack() {
				if (document.RegUser.Password.value == "") {
					alert("\密码不能为空！");
					document.RegUser.Password.focus();
				}
				else if ((document.RegUser.Password.value).length<4) {
					alert("\密码至少4位！");
					document.RegUser.Password.focus();
				}
				else if (document.RegUser.PasswordTwo.value != document.RegUser.Password.value ) {
					alert("\两次输入的密码不相同！");
					document.RegUser.PasswordTwo.focus();	
				}
				else if  (document.RegUser.CompanyName.value == "") {
					alert("\请正确填写企业名称！");
					document.RegUser.CompanyName.focus();
				}
				else if  (document.RegUser.ContactMan.value == "") {
					alert("\请正确填写企业联系人！");
					document.RegUser.ContactMan.focus();
				}
				else if (document.RegUser.Tel.value == "") {
					alert("\请正确填写联系电话！");
					document.RegUser.Tel.focus();
				}
				else if (document.RegUser.Email.value == "") {
					alert("\E-Mail 不能为空！");
					document.RegUser.Email.focus();
				}
				else if (document.RegUser.Email.value == "" || !checkemail(document.RegUser.Email.value)) {
					alert("\E-Mail 填写错误！");
					document.RegUser.Email.focus();
				}
				else if (document.RegUser.Add.value == "") {
					alert("\请正确填写联系地址！");
					document.RegUser.Add.focus();
				}
				else {
			        return true;
			    }
			    return false;
			}
			</script><table border="0" width="99%" cellspacing="1" cellpadding="0">
          <form method="post" action="Register_save.asp" name="RegUser" OnSubmit="return FeedBack()">
          <input type="hidden" name="Member" value="<%=Session("strMembers")%>">
          <input type="hidden" name="sip" value="<% = GetIp()%>">
          <input type="hidden" name="sMemberType" value="2">  
            <tr>
              <td width="20%" height="25" bgcolor="#B5D7D6" align="right">帐&nbsp;&nbsp;&nbsp; 
                号：</td>
              <td width="80%" height="25" bgcolor="#E7EFEF">&nbsp;<font color="#FF0000"><% = Session("strMembers")%></font></td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">会员类型：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;企业会员</td>
            </tr><%If is_ot_user=1 then%>
            <input type="hidden" name="Password" class="face" value="othertable">
            <%else%>
 <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">密&nbsp;&nbsp;&nbsp; 
                码：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<input type="password" name="Password" class="face" maxlength="10">&nbsp;<font color="#FF0000">**</font>&nbsp;[至少4位，最长10位]</td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">密码确认：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<input type="password" name="PasswordTwo" class="face" maxlength="10">&nbsp;<font color="#FF0000">**</font></td>
            </tr><%end if%>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">单位名称：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<input type="text" name="CompanyName" class="face" maxlength="100" size="40">&nbsp;<font color="#FF0000">**</font></td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">选择模板：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<input type="radio" value="1" name="mb" checked>网店型&nbsp;&nbsp;&nbsp;
				<input type="radio" value="2" name="mb">名片型&nbsp;</td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">联 系 人：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<input type="text" name="ContactMan" class="face" maxlength="30">&nbsp;<font color="#FF0000">**</font></td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">选择类别：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<%
		set rsb=server.createobject("adodb.recordset")
        sqlb = "select * from hyBigClass order by sj desc"
        rsb.open sqlb,conn,1,1
		if rsb.eof and rsb.bof then
			response.write "请先添加分类。"
		else
		%><select class="face" name="BigClassName" onChange="changelocation(document.RegUser.BigClassName.options[document.RegUser.BigClassName.selectedIndex].value)" size="1">
                      <option selected value="<%=trim(rsb("id"))%>"><%=trim(rsb("BigClassName"))%></option>
                      <%
			dim selclass
		    selclass=cstr(rsb("id"))
        	rsb.movenext
		    do while not rsb.eof
			%>
                      <option value="<%=trim(rsb("id"))%>"><%=trim(rsb("BigClassName"))%></option>
                      <%
		        rsb.movenext
    	    loop
		end if
        rsb.close
			%>
                    </select> <select class="face" name="SmallClassName">
                      <option value="" selected>不指定小类</option>
                      <%
           set rsss=server.createobject("adodb.recordset")
			sqlss="select * from hySmallClass where dl='"&selclass&"'"
			rsss.open sqlss,conn,1,1
			if not(rsss.eof and rsss.bof) then
			%>
                      <option value="<%=rsss("id")%>"><%=rsss("SmallClassName")%></option>
                      <% rsss.movenext
				do while not rsss.eof%>
                      <option value="<%=rsss("id")%>"><%=rsss("SmallClassName")%></option>
                      <%
			    	rsss.movenext
				loop
			end if
	        rsss.close
			%>
</td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">单位性质： </td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<font color="#01297e"><select name="qyxz" class="face">
				<option value="民营" selected>民营</option>
				<option value="国营">国营</option>				
				<option value="集体">集体</option>
				<option value="乡镇">乡镇</option>
				<option value="股份制">股份制</option>
				<option value="有限责任公司">有限责任公司</option>
				<option value="中外合资">中外合资</option>
				<option value="中外合作">中外合作</option>
				<option value="外商独资">外商独资</option>
				</select></font></td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">所在地区：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<select class="face" name="dq" size="1">
                          <option value="0" selected>地区</option>
<%
	  set mxdq=server.CreateObject("adodb.recordset")
	  	sqlmxdq = "Select * From mxdq order by sj desc"
 mxdq.Open sqlmxdq,Conn,1,1
	  if not( mxdq.bof and  mxdq.eof) then
		do while not  mxdq.eof
	%>
                          <option value="<%=mxdq("name")%>"><%=mxdq("name")%></option>
<%
 mxdq.movenext
	loop
	end if
mxdq.close
set mxdq=nothing
%>
</select></td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">成立日期：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<input type="text" name="clrq" class="face" size="13" onfocus=setday(this) readonly></td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">注册资金：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<input type="text" name="zczj" class="face" size="11"  ONKEYPRESS="event.returnValue=IsDigit();"> 
				万元</td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">经营类型： </td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<input type="checkbox" CHECKED value="生产型" name="jylx">生产型&nbsp; 
				<input type="checkbox" value="贸易型" name="jylx">贸易型&nbsp; 
				<input type="checkbox" value="服务型" name="jylx">服务型&nbsp; 
				<input type="checkbox" value="政府|机构及其它" name="jylx">政府|机构及其它</td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">腾讯QQ：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<input type="text" name="qq" class="face" ONKEYPRESS="event.returnValue=IsDigit();"></td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">电&nbsp;&nbsp;&nbsp; 
                话：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<b><input type="text" name="Tel" class="face" maxlength="13" ></b>&nbsp;<font color="#FF0000">**</font></td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">传&nbsp;&nbsp;&nbsp; 
                真：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<input type="text" name="Fax" class="face" maxlength="13" ></td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">网&nbsp;&nbsp;&nbsp; 
                址：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<input type="text" name="Homepage" class="face" maxlength="50"></td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">电子邮件：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<input type="text" name="Email" class="face" maxlength="30">&nbsp;<font color="#FF0000">**</font>&nbsp;[请认真填写，找回密码将用到]</td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">详细地址：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<input type="text" name="Add" size="40" class="face" maxlength="50">&nbsp;<font color="#FF0000">**</font></td>
            </tr>
            <tr>
              <td height="25" bgcolor="#B5D7D6" align="right">邮政编码：</td>
              <td height="25" bgcolor="#E7EFEF">&nbsp;<input type="text" name="Postalcode" class="face" maxlength="6" ONKEYPRESS="event.returnValue=IsDigit();" size="14"></td>
            </tr>
            <tr>
              <td height="30" bgcolor="#B5D7D6" align="right" valign="top">公 告 
				板：</td>
              <td height="30" bgcolor="#E7EFEF">&nbsp;<textarea class="face" rows="7" name="gg" cols="50"></textarea></td>
            </tr>
            <tr>
              <td height="30" bgcolor="#B5D7D6" align="right" valign="top"><br>
				单位简介：</td>
              <td height="30" bgcolor="#E7EFEF">&nbsp;<textarea class="face" rows="10" name="js" cols="50"></textarea></td>
            </tr>
            <tr>
              <td height="30" bgcolor="#B5D7D6" align="right"></td>
              <td height="30" bgcolor="#E7EFEF">&nbsp;<input type="submit" name="Submit" value="完成注册" class="button">&nbsp;&nbsp;&nbsp;<input type="reset" name="Reset" value="重新填写" class="button"></td>
            </tr>
          </form>
          </table></td>
          </tr>
        </table></td>
      </tr>
    </table>      </td>
  </tr>
</table>
<!--#include file="boot.asp"-->
</body>
</html>
