<!--#include file="../Include/Conn.asp" -->
<!--#include file="../Include/const.asp" -->
<!-- #include file="../Include/enpasswd.inc" -->
<HTML><HEAD>
<TITLE><%=site_info(0)%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1264" name=GENERATOR>

</HEAD>
<SCRIPT>
function check_it()
{
if (theform.uid.value=="")
{
alert("请输入您的用户名!");
theform.uid.focus();
return false;
}
if (theform.pwd.value=="")
{
alert("请输入您的密码!");
theform.pwd.focus();
return false;
}
}

</SCRIPT>
<META content="Microsoft FrontPage 5.0" name=GENERATOR>
<style type="text/css">
<!--
.style2 {color: #FFFFFF}
-->
</style>
</HEAD>
<BODY text=#000000 bgColor=#003366 leftMargin=0 topMargin=0>
<SCRIPT language=JavaScript src="../Include/validate.js"></SCRIPT>
<SCRIPT language=JavaScript>
<!--
function checkform()
{
 if (checkstring("用户名", document.addnew.uname.value, false)) {
    document.addnew.uname.focus();
    return false;   
  }
  var pwd = document.addnew.pwd.value;
  if (addnew.pwd.value=="") {
		alert("请输入登录密码！");
		addnew.pwd.focus();		
		    return (false);
  }
  if (pwd.length < 3) {
    alert("密码不能少于三位！");
    return false;   
  }
  var pwd2 = document.addnew.pwd2.value;
  if (pwd != pwd2) {
    alert("两次密码输入不一致！");
    document.addnew.pwd.value="";
    document.addnew.pwd2.value="";
	return false;
  }
  if (checkemail("电子邮件", document.addnew.email.value, false)) {
    document.addnew.email.focus();
    return false;   
  }
  return true;
}
//-->
</SCRIPT>
</BODY></HTML>
<% zhmail="欢迎您注册人才热线,请尽快发布您的招聘信息或求职简历以完成您的注册!"
zhmail=zhmail&"在您成功注册之后,您便能享受到本站完善的求职招聘服务,目前主要功能有："
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;1、个人在线添加求职简历"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;2、个在线上传个人相片"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;3、首页显示最新新闻信息10条"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;4、首页显示最新招聘信息8条"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;5、首页显示最新求职信息8条"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;6、注册用户可在线发送求职/招聘意向邮件"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;7、企业可发布多条招聘信息"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;8、企业自己删除招聘信息"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;9、个人/企业帐号注销"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;10、首页页尾导航采用数据库形式方便随时更改"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;11、首页所有广告及链接图片均为数据库形式更新更轻松"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;12、站内基本信息统计"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;13、在线人才新闻系统"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;14、在线政策法规发布系统"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;15、在线人事代理信息发布系统"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;16、企业营业执照图片在线上传"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;17、企业信息和招聘信息独立分开，更便于查看"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;18、院校用户注册功能（暂不提供）"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;19、培训机构注册（暂不提供）"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;20、猎头服务（暂不提供）"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;21、个业职位库"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;22、企业人才库"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;23、个人/企业站内信箱可实现站内招聘/求职"
zhmail=zhmail&"<br>&nbsp;"
zhmail=zhmail&"最后祝您在本站找到合适的工作招到合适的人才!"
zhmail=zhmail&"<br>&nbsp;"
zhmail=zhmail&"<br>&nbsp;&nbsp;&nbsp;&nbsp;P.S.(此信为系统所发,请勿回复,谢谢!)"
usertype=request("usertype") 
if usertype="" then Response.End
uname=request("uname")
email=request("email")
pwd=mistake(request("pwd"))

if usertype="company" then
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from company where uname='"&uname&"'"
rs.open sql,conn,3,3
if not rs.eof then
response.write"<SCRIPT language=JavaScript>alert('用户名重复，请重新选择一个用户名！');"
response.write"javascript:history.go(-1)</SCRIPT>"
end if
rs.close
sql="select * from company"
rs.open sql,conn,3,3
rs.addnew
rs("uname")=uname
rs("pwd")=pwd
rs("email")=email
rs.update
rs.close
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from cmailbox"
rs.open sql,conn,3,3
rs.addnew
rs("reid")=uname
rs("senduid")="sysop"
rs("title")="恭喜您注册成功！"
rs("sendname")="系统管理员"
rs("sdate")=now()
rs("mailtext")=zhmail
rs.update
rs.close
session("cuid")=uname
response.write"<SCRIPT language=JavaScript>alert('恭喜！您的企业注册成功，请点击确定按钮进入企业招聘频道！请尽快发布您的招聘信息，在您招到合适的人才后，请自觉将招聘信息删除！');"
response.write"this.location.href='../admin/admin_cuser.asp';</SCRIPT>"
end if

 %>