<!--#include file="conn/conn_index.asp"-->
<!--#include file="inc/setup.asp"-->
<!--#include file="inc/money.asp"-->
<!--#include file="inc/char.asp"-->
<!--#include file="inc/md5.asp"-->
<!--#include file="inc/sql.asp"-->
<%
	end if
	action=ReplaceBadCharTrim(Request.Form("action")))
	if action="add" then
		If Session("getcode")<>int(Trim(Request.Form("code"))) Then
			response.write"<SCRIPT language=JavaScript>alert('验证码输入错误');"                   
			response.write"javascript:history.go(-1)</SCRIPT>"                   
			response.end
		else
			uname=ReplaceBadChar(Trim(Request.Form("uname")))
			email=ReplaceBadChar(Trim(Request.Form("email")))
			pwd1=ReplaceBadChar(Trim(Request.Form("pwd")))
			pwd=mistake(pwd1)
			question=ReplaceBadChar(Trim(Request.Form("question")))
			answer=ReplaceBadChar(Trim(Request.Form("answer")))
			if question="cus" then
				custom_question=ReplaceBadChar(Trim(Request.Form("custom_question")))
				if custom_question="" then
					response.write"<SCRIPT language=JavaScript>alert('自定义问题不能为空，请重来');"                   
					response.write"javascript:history.go(-1)</SCRIPT>"                   
					response.end
				else
					question=custom_question
				end if
			end if
			Set rs = Server.CreateObject("ADODB.Recordset")
			sql="select * from person where uname='"&uname&"'"
			rs.open sql,conn,2,3
			if not rs.eof then
				response.write"<SCRIPT language=JavaScript>alert('用户名重复，请重新选择一个用户名！');"
				response.write"javascript:history.go(-1)</SCRIPT>"
				response.end
			else
				rs.addnew
				rs("uname")=uname
				rs("hideuser")=1
				rs("pwd")=pwd
				rs("email")=email
				rs("question")=question
				rs("answer")=answer
				rs("fen")=psetup1
				rs("dian")=psetup
				rs("idate")=date()
				rs("setup")=date()
				rs("blog")=0
				rs("hidename")=0
				rs("pic_shenhe")=0
				rs("Resume_type")=1
				rs("changepay")=0
				rs("swf_photo")=swf_photo
				rs.update
				rs.close
				set rs=nothing
			end if
			
			
			kk=conn.Execute("select id from person where uname='"&uname&"'")(0)

			
			Set rs = Server.CreateObject("ADODB.Recordset")
			sql="select * from pmailbox"
			rs.open sql,conn,2,3
			rs.addnew
			rs("reid")=kk
			rs("senduid")="0"
			rs("title")=psmailtitle
			rs("sendname")="系统管理员"
			rs("sdate")=date()
			rs("mailtext")=psmailtext
			rs.update
			rs.close
			set rs=nothing
			
			Response.Cookies("admin_person_name")=uname
			Response.Cookies("admin_person_id")=kk
			Response.Cookies("email")=email
			Response.Cookies("pwd")=pwd1
			Response.Cookies("question")=question
			Response.Cookies("answer")=answer
			
			Response.Cookies("admin_person_name").expires=(now()+1/24)
			Response.Cookies("admin_person_id").expires=(now()+1/24)
			Response.Cookies("email").expires=(now()+1/24)
			Response.Cookies("pwd").expires=(now()+1/24)
			Response.Cookies("question").expires=(now()+1/24)
			Response.Cookies("answer").expires=(now()+1/24)
		

			response.write"<SCRIPT language=JavaScript>alert('恭喜！您已成功注册，现在为您转向会员中心！');"
			response.write"this.location.href='person/';</SCRIPT>"
			response.end
		end if
	end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<link rel="Shortcut Icon" href="Images/favicon.ico">
<link rel="Bookmark" href="Images/favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<TITLE><%= homename %>--个人会员注册</TITLE>
<meta name="Keywords" content="<%= webmeta %>">
<meta name="Description" content="<%= webmeta1 %>">
<style type="text/css">
<!--
.STYLE6 {	color: #0099CC;
	font-size: 12pt;
	font-weight: bold;
	}
.STYLE2 {	color: #ffffff;
	font-size: 14pt;
	font-weight: bold;
}
.style193 {color: #FF6600}
.style193 {color: #FF6600}
body,td,th {
	font-size: 12px;
}
body {
	background-image: url(images/preg/indextopbackground.gif);
	background-repeat:repeat-x;
	margin-left: 0px;
	margin-top: 24px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<script language=JavaScript src="js/preg.js"></script>
<script language="JavaScript" type="text/javascript" src="js/keyfilter.js"></script>
<script type="text/javascript" src="js/checkpwd.js"></script>
<link href="css/preg.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkuserinfo()
{
    if(checkspace(document.userinfo.uname.value) || document.userinfo.uname.value.length < 5 || document.userinfo.uname.value.length >16) {
	document.userinfo.uname.focus();
    alert("用户名长度不能为空,在5位到16位之间,请重新输入！");
	return false;
  }
    if(checkspace(document.userinfo.pwd.value) || document.userinfo.pwd.value.length < 6 || document.userinfo.pwd.value.length >16) {
	document.userinfo.pwd.focus();
    alert("密码长度不能为空,在6位到16位之间,请重新输入！");
	return false;
  }
    if(document.userinfo.pwd.value != document.userinfo.pwd1.value) {
	document.userinfo.pwd.focus();
	document.userinfo.pwd.value = '';
	document.userinfo.pwd1.value = '';
    alert("两次输入的密码不同，请重新输入！");
	return false;
  }

 if(document.userinfo.email.value.length!=0)
  {
    if (document.userinfo.email.value.charAt(0)=="." ||        
         document.userinfo.email.value.charAt(0)=="@"||       
         document.userinfo.email.value.indexOf('@', 0) == -1 || 
         document.userinfo.email.value.indexOf('.', 0) == -1 || 
         document.userinfo.email.value.lastIndexOf("@")==document.userinfo.email.value.length-1 || 
         document.userinfo.email.value.lastIndexOf(".")==document.userinfo.email.value.length-1)
     {
      alert("Email地址格式不正确！");
      document.userinfo.email.focus();
      return false;
      }
   }
 else
  {
   alert("Email不能为空！");
   document.userinfo.email.focus();
   return false;
   }
   if(checkspace(document.userinfo.question.value)) {
	document.userinfo.question.focus();
    alert("对不起，请填写密码提问！");
	return false;
  }
   if(checkspace(document.userinfo.answer.value)) {
	document.userinfo.answer.focus();
    alert("对不起，请填写密码提问的答案！");
	return false;
  }
   if(checkspace(document.userinfo.code.value)) {
	document.userinfo.code.focus();
    alert("对不起，请填写验证码！");
	return false;
  }
}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
//-->
</script>
<style type="text/css">
<!--
.STYLE7 {color: #FF0000}
-->
</style>
</HEAD>
<BODY topMargin=0 leftmargin="0" rightmargin="0">
<!--#include file="top_reg.asp"-->
    <table width="977"  border="0" cellpadding="0" cellspacing="0" align="center">
      <tr>
        <td height="30" align="left">&nbsp;<img src="images/preg/a2.gif" width="9" height="9"><a href="/index.asp"> 首页</a>-个人会员注册</td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="30" align="left" bgcolor="#DEF0FF"><span class="STYLE6">&nbsp;<img src="images/preg/p1.gif" width="16" height="16"> <%= homename %>欢迎您！</span></td>
            </tr>
            <tr>
              <td bgcolor="#A0CDF3"><img name="" src="" width="32" height="1" alt="" style="background-color: #A0CDF3"></td>
            </tr>
          </table>
            <table width="100%" border="1" cellpadding="10" cellspacing="0" bordercolor="#C4E4FF">
            <% If preg_open=1 Then %>
             <tr><td valign="top" bordercolor="#FFFFFF" colspan="2"><br>
                <table width="910"  border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                      <td bgcolor="#77CD38"><div align="center"><span class="white"><strong>个人会员注册</strong></span></div></td>
                   </tr>
                  </table>
                  <table width="910" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77CD38">
               		 <tr>
                        <td bordercolor="#FFFFFF"><table width="95%" height="214" border="0" align="center" cellPadding="5" cellSpacing="0">
                                <tr>
                                  <td align="center">对不起，网站暂时停止个人注册，感谢您的支持，请稍后再试</td>
                                </tr>
                          </table>
                       </td>
                      </tr>
                  </table>
                  <br>
                </td>
             </tr>
            <% Else %>
			<tr><td valign="top" bordercolor="#FFFFFF"> <table width="510"  border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><span class="orange">欢迎注册成为<%= homename %>(<%= replace(homeurl, "http://", "") %>)免费求职会员</span><br>
                      <br>
我们的免费、实用性的服务将助您轻松寻找适合自己的工作，并且是无限期的使用。在使用各项服务的任何过程中都不需要支付费用。加入我们的免费会员也十分简单：只需注册您的帐号及您的个人履历表！<span class="orange">我们负责简历的绝对保密！</span></td>
                  </tr>
                </table>
                  <br>
<table width="510"  border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="80" height="30" bgcolor="#009900"><div align="center" class="white"><span class="style2"><strong>第1步</strong></span></div></td>
                      <td bgcolor="#77CD38"><div align="center"><span class="white"><strong>个人会员注册</strong></span></div></td>
                    </tr>
                  </table>
                    <table width="510" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#77CD38">
                      <tr>
                        <td bordercolor="#FFFFFF"><form action="?" method="post" name="userinfo" onSubmit="return checkuserinfo();"  id="userinfo">
                        <input name="action" type="hidden" value="add" />
                              <table width="95%" height="214" border="0" align="center" cellPadding="5" cellSpacing="0">
                                <tr>
                                  <td height="11" colspan="2"></td>
                                </tr>
                                <tr>
                                  <td height="20" width="79" align="center"><div align="center">用户名：</div></td>
                                  <td width="382" height="20" align="left"><input name="uname" type="text" id="uname" onKeyPress="keyFilter('1234567890abcdefghijklmnopqrstuvwxyz_')" onpaste="return false" onMouseOver="focus();select();" style="IME-MODE: disabled;width:205px;"  /><font color="#009900">* <span class="orange">6－16位 英文字母、数字</span></font></td>
                                </tr>
                                <tr>
                                  <td height="20" width="79" align="center"><div align="center">登陆密码：</div></td>
                                  <td width="382" height="20" align="left"><input name="pwd" type="password" id="pwd" class="form1txt" style="width:205px;" onChange="javascript:EvalPwd(this.value);" onKeyUp="javascript:EvalPwd(this.value);"/><font color="#009900">* <span class="orange">6－16位 英文字母、数字</span></font></td>
                                </tr>
								<tr><td>&nbsp;</td><td><table style="width:207px;" height="20" border="0" cellpadding="0" cellspacing="0" id="pwdpower">
<tr>
<td id="pweak" style=""><div align="center">弱</div></td>
<td id="pmedium" style=""><div align="center">中</div></td>
<td id="pstrong" style=""><div align="center">强</div></td>
</tr>
</table></td></tr>
                                <tr>
                                  <td height="20" width="79" align="center"><div align="center">确认密码：</div></td>
                                  <td width="382" height="20" align="left"><input name="pwd1" type="password" id="pwd1" class="form1txt" style="width:205px;" /><span class="orange"><font color="#009900">* </font>请再次输入密码！</span></td>
                                </tr>
                                <tr>
                                  <td height="20" width="79" align="center"><div align="center">密码问题：</div></td>
                                  <td class="tb_c_con vt">
					<select style="width:210px;" name="question" id="question" onchange="checkQuestion()">
						<option value="">[请选择您的密码提示问题] </option>
						<option value="cus">***自定义密码提示问题***</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>
						<option value="您最喜欢的节日是?">您最喜欢的节日是?</option>
						<option value="您最想去的地方是?">您最想去的地方是?</option>
						<option value="您最想做的事情是?">您最想做的事情是?</option>
						<option value="您最难忘的事情是?">您最难忘的事情是?</option>
					</select><span class="orange"><font color="#009900">* </font>忘记密码的提示问题。</span></td>
                                </tr>
       						  <tr  id="cus_question" style="display:none">
                        <td align="center" class="tb_c_ttl vt">自定义问题：</td>
                        <td class="tb_c_con vt"><input type="text" style="width:205px;" class="minput" name="custom_question" id="custom_question" />
                          <font color="#009900">* </font></td>
                      </tr>
                      <tr>
                        <td align="center" class="tb_c_ttl vt">问题的答案：</td>
                      <td class="tb_c_con vt"><input name="answer" id="answer" size="32" class="minput" style="width:205px;"/>
                        <font color="#009900">* </font></td>
                      </tr>
                                <tr>
                                  <td height="20" width="79" align="center"><div align="center">电子邮局：</div></td>
                                  <td width="382" height="20" align="left"><input name="email" type="text" id="email" style="IME-MODE: disabled;width:205px;"  /><span class="orange"><font color="#009900">* </font>邮箱需要验证，请正确填写</span></td>
                                </tr>
 <tr>
                              <td align="center" valign="middle">验 证 码：</td>
                              <td valign="middle" bgcolor="#FFFFFF"><input name="code" id="code" size="8" maxlength="4" />&nbsp;<font color="#009900">* </font>&nbsp;<img src="GetCode.asp" vspace="2" align="absbottom" ></td>
                            </tr>
                                <tr>
                                  <td height="20" colspan="2" align="center"><input name="I1" type="image" src="images/preg/reg.gif" width="167" height="35" border="0"></td>
                                </tr>
                                <tr>
                                  <td colspan="2"><p align="left"><b><font color="#FF6600"><img src="images/preg/t1.gif" width="16" height="16">注意</font></b>：本系统不支持的部分免费邮箱，推荐使用<strong> <a href="http://mail.it-idc.net" target="_blank">网愿科技邮箱</a></strong> 如果您无法收到邮件请跟我们的客服人员联系。</td>
                                </tr>
                          </table>
                          </form></td>
                      </tr>
                  </table>
                </td>
                <td width="350" bordercolor="#FFFFFF"><img src="images/preg/liucheng.gif" width="173" height="54">
                  <table width="95%" border="1" align="center" cellpadding="5" cellSpacing="0" borderColor="#00CC00" id="AutoNumber29" style="border-collapse: collapse">
                    <tr bordercolor="#FFFFFF">
                      <td vAlign="top" bgcolor="#F3FEE7"><div align="center">注册个人会员（点击“<a href="preg.asp">免费注册个人简历</a>”并填写）</div></td>
                    </tr>
                  </table>
                  <div align="center">↓</div>
                  <table width="95%" border="1" align="center" cellpadding="5" cellSpacing="0" borderColor="#00CC00" id="AutoNumber29" style="border-collapse: collapse">
                    <tr bordercolor="#FFFFFF">
                      <td vAlign="top" bgcolor="#F3FEE7"><div align="center">填写个人简历基本资料（可参阅<a href="/about/index.asp?id=4">使用帮助</a>） </div></td>
                    </tr>
                  </table>
                  <div align="center">↓</div>
                  <table width="95%" border="1" align="center" cellpadding="5" cellSpacing="0" borderColor="#00CC00" id="AutoNumber29" style="border-collapse: collapse">
                    <tr bordercolor="#FFFFFF">
                      <td vAlign="top" bgcolor="#F3FEE7"><div align="center"><a href="login.asp" class="greenfont">个人会员登陆</a><br></div></td>
                    </tr>
                  </table>
                  <div align="center">↓</div>
                  <table width="95%" border="1" align="center" cellpadding="5" cellSpacing="0" borderColor="#00CC00" id="AutoNumber29" style="border-collapse: collapse">
                    <tr bordercolor="#FFFFFF">
                      <td vAlign="top" bgcolor="#F3FEE7"><div align="center">设置、修改、维护个人简历并上传形象图片和各种证书文件等（可参阅<a href="/about/index.asp?id=4">使用帮助</a>）</div></td>
                    </tr>
                  </table>
                  <div align="center">↓</div>
                  <table width="95%" border="1" align="center" cellpadding="5" cellSpacing="0" borderColor="#00CC00" id="AutoNumber29" style="border-collapse: collapse">
                    <tr bordercolor="#FFFFFF">
                      <td vAlign="top" bgcolor="#F3FEE7"><div align="center">个人简历预览、日常管理和查询等<br>
        （如职位搜索、职位申请、查看应聘职位记录等）</div></td>
                    </tr>
                  </table>
                  <br>
                  <center>
                </center></td></tr>
            <% End If %>
          </table></td>
      </tr>
    </table>
<!--#include file="end.asp"-->