<!--#include file="conn.asp"-->
<!--#include file="check.asp"-->
<!--#include file="../inc/setup.asp"-->
<!--#include file="../inc/char.asp"-->
<!--#include file="../inc/cinfo.asp"-->
<!--#include file="../inc/sql.asp"-->
<%
	end if
	admin_person_name=ReplaceBadChar(Request.Cookies("admin_person_name"))
	action=Trim(Request.QueryString("action"))
	if action="add" then
	
		iname=ReplaceBadChar(Trim(Request.Form("iname")))
		code=ReplaceBadChar(Trim(Request.Form("code")))
		bday=ReplaceBadChar(Trim(Request.Form("bday")))
		sex=ReplaceBadChar(Trim(Request.Form("sex")))
		hidename=int(ReplaceBadChar(Trim(Request.Form("janCorporationFaxConceal"))))
		
		if hidename="" then hidename=0
		
		Set rs = Server.CreateObject("ADODB.Recordset")
		sql="select * from person where uname='"&admin_person_name&"'"
		rs.open sql,conn,2,3
		rs("iname")=iname
		rs("cname")=iname
		rs("code")=code
		rs("bday")=bday
		rs("sex")=sex
		rs("hidename")=hidename
		rs.update
		rs.close
		Response.Cookies("person_name")=iname
		Response.Cookies("person_name").expires=(now()+1/24)
		Response.write"<SCRIPT language=JavaScript>alert('用户资料输入成功,现在为您转入简历设置');"
		Response.write"this.location.href='Resume_all.asp';</script>"
		Response.End()
	end if
	Set rs = Server.CreateObject("ADODB.Recordset")
	sql="select * from person where uname='"&admin_person_name&"'"
	rs.open sql,conn,1,1
%>
<HTML>
<HEAD>
<TITLE><%=homename%>-个人会员</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1492" name=GENERATOR>
<SCRIPT src="../inc/fPopUpCalendarDlg.js"></SCRIPT>
<LINK href="../company/images/css.css" type=text/css rel=stylesheet>
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
function checkuserinfo()
{
   var lst = /[u00-uFF]/;
   if(lst.test(document.userinfo.iname.value)) {
   alert("对不起，真实姓名必须为纯中文！");
   return false;
   }
   if(checkspace(document.userinfo.iname.value)) {
	document.userinfo.iname.focus();
    alert("对不起，请输入您的真实姓名！");
	return false;
  }
   if(checkspace(document.userinfo.code.value)) {
	document.userinfo.code.focus();
    alert("对不起，请输入您的证件号码！");
	return false;
  }
   if(checkspace(document.userinfo.bday.value)) {
	document.userinfo.bday.focus();
    alert("对不起，请选择您的出生日期！");
	return false;
  }
}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
//-->
</script>
<BODY>
<TABLE width=768 border=0 align="center" cellPadding=10 cellSpacing=0 borderColor=#111111 style="BORDER-COLLAPSE: collapse">
  <TBODY>
  <form name="userinfo" action="?action=add" method="post" onSubmit="return checkuserinfo()">
    <TR>
      <TD width="96%" valign="top"><DIV align=center>
        <TABLE cellSpacing=1 cellPadding=0 width=95% bgColor=0EBDF6 border=0>
          <TBODY>
            <TR>
              <TD bgColor=#ffffff>
			  <TABLE height=24 cellSpacing=0 cellPadding=0 width=700 align=center border=0>
                <TBODY>
                  <TR>
                    <TD height=35><FONT face=Verdana color=#ff6600><STRONG>&nbsp;&nbsp;填写个人资料 </STRONG></FONT></FONT>（请您根据以下要求，完整并正确填写您的个人资料，带<FONT color=#ff6600> * </FONT>号为必填项）</TD>
                  </TR>
                  <TR>
                    <TD bgColor=0EBDF6 height=25>&nbsp;&nbsp;<font color="#FFFFFF"><b>1.个人信息</b></font></TD>
                  </TR>
                  <TR>
                    <TD bgColor=#e2e2e2 height=3></TD>
                  </TR>
                </TBODY>
              </TABLE>
                    <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 height=95 cellSpacing=3 cellPadding=7 width=700 align=center border=0>
                      <TBODY>
                        <TR>
                          <TD align="right" width=80 bgColor=#f9f9f9 height=20><FONT color=#ff6600 style="font-size:14px">*</FONT> 真实姓名：</TD>
                          <TD align=left width=279 bgColor=#f9f9f9 height=20><INPUT name=iname id="iname" maxLength=20 value="<%=rs("iname")%>">&nbsp;&nbsp;<span style="color:#404040;"><input id="janCorporationFaxConceal" type="checkbox" name="janCorporationFaxConceal" value="1" <% If rs("hidename")=1 Then Response.Write("checked")%>/><label for="janCorporationFaxConceal">隐藏名字</label></span></TD>
                          <TD align=left width=194 bgColor=#f9f9f9>（请输入您的真实姓名）</TD>
                        </TR>
                        <TR bgColor=#ECFAFF>
                          <TD width=80 height=20 align="right" bgcolor="#ECFAFF"><FONT color=#ff6600 style="font-size:14px">*</FONT>证件号码： </TD>
                          <TD width=279 height=20 align=left bgcolor="#ECFAFF"><INPUT name=code type=text id="code" maxLength=20 value="<%=rs("code")%>">                          </TD>
                          <TD align=left width=194 bgColor=#ECFAFF>（请输入您的证件号码，如身份证，学生证，军人证等）</TD>
                        </TR>
                        <TR>
                          <TD align="right" width=80 bgColor=#f9f9f9 height=20><FONT color=#ff6600 style="font-size:14px">*</FONT>出生年日：</TD>
                          <TD align=left width=279 bgColor=#f9f9f9 height=20><input name="bday" type="text" id="bday" size="20" maxlength=20 readonly value="<%=rs("bday")%>">
                          <INPUT name=button1 onClick="fPopUpCalendarDlg(bday);return false" type=button value="选择出生日期"></TD>
			<TD align=left width=194 bgColor=#f9f9f9>（请选择您的出生日期）</TD>
                        </TR>
                        <TR>
                          <TD align="right" width=80 bgColor=#ECFAFF height=20><FONT color=#ff6600 style="font-size:14px">*</FONT>性&nbsp;&nbsp;&nbsp;&nbsp;别：</TD>
                          <TD align=left width=279 bgColor=#ECFAFF height=20><INPUT NAME="sex" TYPE="radio" VALUE="男" <% if rs("sex")="男" then Response.Write("checked") %>>
                          男 <INPUT TYPE="radio" NAME="sex" VALUE="女" <% if rs("sex")="女" then Response.Write("checked") %>>女</TD>
                          <TD align=left width=194 bgColor=#ECFAFF>（请选择您的性别）</TD>
                        </TR>
                      </TBODY>
                  </TABLE>
              </TD>
            </TR>
          </TBODY>
        </TABLE>
        <br>
        <INPUT style="FONT-SIZE: 12px; FONT-FAMILY: 宋体; HEIGHT: 27px" type=submit value=" 提   交 " name=Submit>
        &nbsp;
        <INPUT style="FONT-SIZE: 12px; FONT-FAMILY: 宋体; HEIGHT: 27px" type=reset value=" 取    消 " name=Reset>
      </div></TD>
    </TR>
  </form>
  </TBODY>
</TABLE>
<%
	rs.close
	set rs=nothing
	conn.close
	set conn=nothing
%>
</BODY>
</html>