<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<% 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" />
<title><%=webname%>个人求职</title>
<link rel="stylesheet" href="<%=HOPE_InstallDir%>Blue/Blue.css" type="text/css" />
<link rel="stylesheet" href="<%=HOPE_InstallDir%>images/General.css" type="text/css" />
</head> 
 <%

'------------------------------------
  if isSession=0 then
 	  if Replace_Text(Request.Cookies("jobuser"))=""  or Replace_Text(Request.Cookies("jobuserid"))="" then
	   response.Redirect(HOPE_InstallDir&"job/")
	  end if
	  jobid=Replace_Text(Request.Cookies("jobuserid"))
	  else
	  if session("jobid")="" or  session("jobuser")="" then
	   response.Redirect(HOPE_InstallDir&"job/")
	  end if  
	  jobid=session("jobid")
  end if
 
 
 msg=""
'修改简历----------------
 modijob=Replace_Text(request("modijob"))
 truename=Replace_Text(request("truename"))
 jobuser=Replace_Text(request("jobuser"))
 jobpass=Replace_Text(request("jobpass"))
 addtime=Replace_Text(request("addtime"))
 hits=Replace_Text(request("hits"))
 sfcode=Replace_Text(request("sfcode"))
 borndate=Replace_Text(request("borndate"))
 age=Replace_Text(request("age"))
 sex=Replace_Text(request("sex"))
 
 country1=Replace_Text(request("country1"))
 province=Replace_Text(request("province"))
 city=Replace_Text(request("city"))
 high=Replace_Text(request("high"))
 weight=Replace_Text(request("weight"))
 ismarry=Replace_Text(request("ismarry"))
 addr=Replace_Text(request("addr"))
 xueli=Replace_Text(request("xueli"))
 learnname=Replace_Text(request("learnname"))
leftdate =Replace_Text(request("leftdate"))

leftschool =Replace_Text(request("leftschool"))
zhicheng =Replace_Text(request("zhicheng"))
jobkind=Replace_Text(request("jobkind"))
jobzhiwei=Replace_Text(request("jobzhiwei"))
jobzhiwei2=Replace_Text(request("jobzhiwei2"))
jobaddr=Replace_Text(request("jobaddr"))
jobmoney=Replace_Text(request("jobmoney"))
contactperson=Replace_Text(request("contactperson"))
post=Replace_Text(request("post"))
tel =Replace_Text(request("tel"))

mobile=Replace_Text(request("mobile"))
homeurl=Replace_Text(request("homeurl"))
othercontact=Replace_Text(request("othercontact"))
des =Replace_Text(request("des"))
jingyan=Replace_Text(request("jingyan"))
if modijob<>"" then
   set rsm=server.CreateObject("adodb.recordset")
   sqlm="select  * from Websen_jobuser  where id="&jobid
   rsm.open sqlm,conn,1,3
   if not rsm.eof then
  rsm("truename")=truename
   rsm("sfcode")=sfcode
    rsm("borndate")=borndate
	 rsm("age")=age
	 rsm("sex")=sex
	 rsm("country")=country1
	 
	 rsm("province")=province
	 rsm("city")=city
	 rsm("high")=high
	 rsm("weight")=weight
	 rsm("ismarry")=ismarry
	 rsm("addr")=addr
	 rsm("xueli")=xueli
	 rsm("learnname")=learnname
	 rsm("leftdate")=leftdate
	 rsm("leftschool")=leftschool
	 
	 rsm("zhicheng")=zhicheng
	 rsm("jobkind")=jobkind
	 rsm("jobzhiwei")=jobzhiwei
	 rsm("jobzhiwei2")=jobzhiwei2
	 rsm("jobaddr")=jobaddr
	 rsm("jobmoney")=jobmoney
	 rsm("contactperson")=contactperson
	 rsm("post")=post
	 rsm("tel")=tel
	 rsm("mobile")=mobile
	 
	 rsm("homeurl")=homeurl
	 rsm("othercontact")=othercontact
	 rsm("des")=des
	 rsm("jingyan")=jingyan
	 rsm.update
	 msg="<font color=red>资料修改成功！</font>" 
   rsm.close
   end if

end if 
 '-------------------------
 
 '-修改密码-------------------
 msgp=""
 jobpass=Replace_Text(request("jobpass"))
 jobpassnew =Replace_Text(request("jobpassnew"))
 jobpassnewtwo=Replace_Text(request("jobpassnewtwo"))
 gogojob=Replace_Text(request("gogojob"))
 if gogojob<>""  and jobpass<>"" and jobpassnew<>"" and jobpassnewtwo<>""  then
 
 if jobpassnew<>jobpassnewtwo then
   response.Write("<script>alert('对不起！两次输入的新密码不一致！');history.back(-1);</script>")
  response.End()
 end if
 set rsp=server.CreateObject("adodb.recordset")
 sqlp="select * from Websen_jobuser where id="&jobid
 rsp.open sqlp,conn,1,3
 if not rsp.eof then 
  if rsp("jobpass")=jobpass then 
   rsp("jobpass")=jobpassnew
   rsp.update
   msgp="<font color=red>修改密码成功！</font>"
  else
  response.Write("<script>alert('对不起！输入的旧密码错误！');history.back(-1);</script>")
  response.End()
  end if
  rsp.close
 end if
 end if
 
 
 
 '------------------
 
%>
<body>
<!--#include file="../inc/head.asp"-->
<div class="juzhong">
<table width="760" height="57" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="192"><a href="<%=HOPE_InstallDir%>job/"><img src="../hc360/job.gif" width="164" height="69" border="0" /></a></td>
    <td width="568" valign="top" class="job_bjing" style=" padding-top: 3px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="20" valign="top" style=" text-align:right; padding-right: 5px; color:#ffffff">如果您有疑问或建议？请 在线提问</td>
      </tr>
      <tr>
        <td height="35">&nbsp;【<font color="#006699"><b>
          <%
	if issession=0 then
	response.Write(Request.Cookies("jobuser"))
	else
	response.Write(session("jobuser"))
	end if
 	
	%>
        </b></font>】<font color="#000000"><b> 欢迎进入<%=webname%>个人求职会员管理中心!</b></font></td>
      </tr>
    </table></td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="760" height="5">
  <tr>
    <td></td>
  </tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="0">
   <tr>
    <td width="190" align="center" valign="top"><!--#include file="../job/left.asp"--></td>
    <td height="400" valign="top">
	<table width="99%" border="0"    align="center" cellpadding="0" cellspacing="0"  >
	<tr><td height="50">◇.祝您找到合适的工作！<br />
	◇.您的求职简历已经被查阅过&nbsp;<font color="red">
	<%
 	if issession=0 then
	response.Write(Request.Cookies("hits"))
	else
	response.Write(session("hits"))
 	end if 			
	%>
	</font>&nbsp;次！
	 </td></tr> <tr><td   height="1"  bgcolor="#375771" ></td></tr>
 	 <tr><td align="center" height="5"></td>
	 </tr>
	 <tr><td align="center" height="30"><%=msgp%><span class="STYLE1">修改密码</span></td>
	 </tr>
	 <tr><td   > 
	 <form name="mjobform" method="post" action="modijobpass.asp" >
	 	 <table width="50%" border="1" style="border-collapse:collapse" align="center" cellpadding="0" cellspacing="0" bordercolor="#BAC5CD" bgcolor="#FCFCFC" >
	 <tr><td>
	 <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FCFCFC" >
	 <tr><td align="right" height="30">
	  登录名：</td>
	 <td height="0"><font color="red">
	 <%
	if issession=0 then
	response.Write(Request.Cookies("jobuser"))
	else
	response.Write(session("jobuser"))
	end if	 
	 %>
	 </font> 
	 
	 </td>
	 </tr>
	
	 <tr onMouseOut="this.style.backgroundColor='#FCFCFC'" onMouseOver="this.style.backgroundColor='#9FD4FF'"><td align="right">
	  旧密码：</td>
	 <td height="30"><input name="jobpass" type="password" value="" size="20" maxlength="20"   style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:110;height:19"/>	 </td>
	 </tr>
	 <tr onMouseOut="this.style.backgroundColor='#FCFCFC'" onMouseOver="this.style.backgroundColor='#9FD4FF'"><td align="right">
	  新密码：</td>
	 <td height="30"><input name="jobpassnew" type="password" value="" size="20" maxlength="20"  style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:110;height:19"/>	 </td>
	 </tr><tr onMouseOut="this.style.backgroundColor='#FCFCFC'" onMouseOver="this.style.backgroundColor='#9FD4FF'"><td align="right">
	  新密码确认：</td>
	 <td height="30"><input name="jobpassnewtwo" type="password" value="" size="20" maxlength="20" style="border-width:1px; border-style:solid; border-collapse:collapse; border-color:#cccccc;width:110;height:19" />	 </td>
	 </tr><tr  ><td align="center" colspan=2 height="30"><input name="gogojob" type="submit" value= " 修改 "   />	 </td>
	 </tr>
	 </table>
	 </td></tr></table>
	 </form>
	 
 </td></tr>
    <tr><td  >  </td></tr>
	 </table>
	</td>
  </tr>
   
</table>  
 <!--#include file="../inc/end.asp"-->
 </div>
</body>
</html>
