<% data_path="../" 'ACC连接数据库路径，对SQL无效 %>
<!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>
<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/safe.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" href="<%=HOPE_InstallDir%>blue/blue.css" type="text/css" />
<title><%=webname%>--个人求职用户登录</title>
 
 <%
 if Replace_Text(Request("Websen_Action"))="Websen_Add" then 
%>
  <script language="JavaScript" type="text/JavaScript">
	<!--
	function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
	}
	MM_reloadPage(true);
	//-->
 </script>
 </head>
 <body>
<div id="Layer1" style="position:absolute; left:0px; top:0px; width:1003px; height:100%; z-index:1; background-image: url(images/div_bg.jpg); layer-background-image: url(images/div_bg.jpg); border: 1px none #000000;" class="img"></div>

<div id="Layer2" style="position:absolute; left:178px; top:182px; width:642px; height:100px; z-index:2; background-color: #FFFFFF; layer-background-color: #FFFFFF; border: 1px none #000000;">
  
  <%
		 url=request.ServerVariables("HTTP_REFERER")
		 verifycodes= Replace_Text(request("jobVerifycode"))
		 if verifycodes=""  then
			  verifycodes=1
			end if
 
		
		 if issession=0 then
		if Replace_Text(request.Cookies("safecode"))<>"" then
		 safecode=Replace_Text(request.Cookies("safecode"))
		 else
		 safecode=1111
		end if
		else
		 safecode=Session("SafeCode")
		end if

		
		
  if  cstr(verifycodes)<>cstr(safecode)   then
				response.write"<table width=""100%"" border=""0"" align=""left"" cellpadding=""0"" cellspacing=""0"" bgcolor=""#FFFFFF"">"
				response.write"<tr>"
				response.write"<td width=""5%"" align=""center""><img src="""&HOPE_InstallDir&"login/images/standard_msg_error.gif"" width=""16"" height=""16""><br></td>"
				response.write"<td width=""100%""\><br><table width =""100%""\><tr><td valign=""top"" style=padding-left:8px><font color=red><b>验证码错误，请重新输入<br>"
				response.write"</b>"
				response.write"</font></td></tr></table><br></td>"
				response.write"</tr>"
				Response.write "<tr><td align=center colspan=2><input name=""返回"" type=""button"" value=""返回""   style=""background-color:#E3E3E3;border:solid #CCCCCC"" onclick=""window.location.href='joblogin1.asp'""></td></tr>"
				response.write"</table>"
				
				
		else
 		dim UsernameGet,PasswordGet
		UsernameGet=Replace_Text(Request("jobUsernameGet"))
		PasswordGet=Replace_Text(Request("jobPasswordGet"))
 		 if UsernameGet<>"" and PasswordGet<>"" and  cstr(verifycodes)=cstr(safecode)  then
		 
		 
 		sql="select * from Websen_jobuser where jobuser='"&UsernameGet&"' and jobpass='"&PasswordGet&"' and islock=0 "
		Set rs= Server.CreateObject("ADODB.Recordset") 
		rs.open sql,conn,1,1
		if rs.eof then
		response.write"<table width=""100%""  border=""0"" align=""left"" cellpadding=""0"" cellspacing=""0"" bgcolor=""#ffffff"">"
		response.write"<tr>"
		response.write"<td width=""5%"" align=""center""><img src="""&HOPE_InstallDir&"login/images/standard_msg_error.gif"" width=""16"" height=""16""><br></td>"
		response.write"<td width=""95%""\><br><table width =""100%""\><tr><td valign=""top"" style=padding-left:8px><font color=red><b> 登录名或密码错误<br>"
		response.write"</b>"
		response.write"</font>"
		response.write"<div class=s>您刚才输入的登录名是 <font color=ff0000><b>"&UsernameGet&"</b></font> <br>"
		response.write"您刚才输入的密码是<font color=ff0000><b>"&PasswordGet&"</b></font>，请核对一下刚才输入的登录名和密码是否正确，包括大小写，或你的登录名已经被锁定，再重新试一下</div>"
		response.write"</td></tr></table><br></td>"
		response.write"</tr>"
		Response.write "<tr><td align=center colspan=2><input name=""返回"" style=""background-color:#F3F2F2;border:solid  #CCCCCC"" type=""button"" value=""返回"" onclick=""window.location.href='joblogin1.asp'""></td></tr>"
		response.write"</table>"
	    end if
 	
 		if not rs.eof then
		
		 if issession=0 then 
		 Response.Cookies("jobuser")=rs("jobuser")
		 Response.Cookies("jobuserid")=rs("id")
		 Response.Cookies("hits")=rs("hits")
  	     Response.Cookies("jobuser").Expires=dateadd("n",time_score,now())
 	     Response.Cookies("jobuserid").Expires=dateadd("n",time_score,now())
 	     Response.Cookies("hits").Expires=dateadd("n",time_score,now())
			 
		 else
		  session("jobid")=rs("id")
		 session("jobuser")=rs("jobuser")
		 session("hits")=rs("hits")
		 session.Timeout=45
		 end if

		 
		 
   	     Response.Redirect(HOPE_InstallDir&"job/jobmanage.asp")
		 end if
		rs.close
		set rs=nothing
		end if
		end if
		
 		 if issession=0 then
 		  response.Cookies("safecode")=""
 		else
		  Session("SafeCode")=""
		end if
		
		
%>
</div>
 <%
 end if
 %> <!--#include file="../inc/head.asp"-->
  <div class="juzhong">
<table width="783" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="783" style="border-collapse:collapse" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#F2F2F2">
  <tr>
    <td height="40" bgcolor="#FCFCFC">&nbsp;<font color="#006699"><b>Welcome!</b></font><font color="#FF0000"><b> 欢迎光临<%=webname%>个人求职会员管理中心! </b></font>&nbsp;【<a href="<%=HOPE_InstallDir%>job/">招聘中心首页</a>】</td>
  </tr>
  <tr><td height="30">
 &nbsp;发布修改你的简历信息,让招聘单位看见你完善的信息!
  <br>
  </td></tr>
  <tr><td height="2" bgcolor="#FFFFFF"></td></tr>
</table>
     <table width="783" style="border-collapse:collapse" border="1" align="center" cellpadding="0"   cellspacing="0" bordercolor="#E0E0E0">
<tr><td  bgcolor="#F9F9F9">
  <FORM name="loginForm" action="" method=post   >

   <table border="0" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" width="305" align="center">
   <tr><td colspan="2" height="11" bgcolor="#F9F9F9"></td></tr>
   <tr><td colspan="2" bgcolor="#EBEBEB" height="1" ></td></tr> <tr><td colspan="2"  align="center"  height="30"> <font color="#000000" style="font-weight:bold; font-size:14px">个人求职用户登录窗口</font></td></tr>
  
   <tr   bgcolor="#FFFFFF" onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'"><td width="86" height="30" align="right">
   登录名：</td>
   <td width="219">
       <input type="text" value="" name="jobUsernameGet" maxlength="20"  style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:120;height:19"  size=19 >
   </td></tr><tr   bgcolor="#FFFFFF" onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'">
   <td height="30" align="right">密码：</td>
   <td><input type="password"  style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:120;height:19" size=20  value="" name="jobPasswordGet" maxlength="20">  
   </td></tr>
   <tr   bgcolor="#FFFFFF" onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'"><td height="30" align="right">         
 验证码：</td>
   <td><input name="Websen_Action" type="hidden" id="Websen_Action" value="Websen_Add"> 
 <input name="jobVerifycode"   id="jobVerifycode"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:50;height:19"   onKeyUp="value=value.replace(/[^\d]/g,'') " size=4 maxlength="5" tonbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">
                                   <img src="../vCode.asp?" onClick="this.src+=Math.random()" alt="图片看不清？点击重新得到验证码" style="cursor:hand;">
   </td></tr>
   
									<tr height="50" align="center"   > <td colspan="2"><input type="submit" value="登 录" name="gogo"></td></tr>
	</table>
</form>
</td></tr></table>
  </div>
     <div class="nav_778">
   <!--#include file="../inc/end.asp"-->
   </div>
  </body>
  </html>
<%
 		conn.close
		set conn=nothing
 %>
 
 