<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<% data_path="../" 'ACC连接数据库路径，对SQL无效 %>
<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/safe.asp"-->
<!--#include file="../manage/makehtml/index/temp_inc.asp"-->
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=webname%>个人求职</title>
<LINK href="../js/style_full.css" type=text/css rel=stylesheet>
<style type="text/css">
  .bgc{ 
	filter:	progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=#FFFFFF, EndColorStr=#E6E6E6);
 }
  .STYLE1 {color: #0099CC}
  /*列表*/
.tabls{width:100%; margin-top:5px; border-bottom:1px solid #ddd;border-right:1px solid #ddd;}
.tabls .tabls_head{text-align:center;}
.tabls .tabls_head td{border-top:1px solid #ddd; padding:5px 0px; background-color:#F8F8F8; font-weight:bold;}
.tabls .tabls_tr_1{background-color:#f6f6f6;}
.tabls .tabls_tr_1 td,.tabls .tabls_tr_2 td{padding:5px;}
.tabls td{border-left:1px solid #ddd;border-top:1px solid #ddd;}
.tabls  td td{border:none; padding:0px; }
.tabls_1{border:1px #ddd solid;}

/*表格*/
.tab1{border-left:1px solid #dddddd; border-top:1px solid #dddddd;}
.tab1 td,.tab1 th{border-right:1px solid #dddddd; border-bottom:1px solid #dddddd; padding:3px 10px;}
.tab1 th{font-size:14px; background-color:#F6F6F6; text-align:right; color:#5A5A5A; }
.tab1 td{ background-color:#F4FBFF;}
/**/
  </style>
<LINK href="../images/style.css" type=text/css rel=stylesheet>
<script>
function checkform()
	{
		if(document.mjobform.jobpass.value=="")
			{
				alert("请填写旧密码");
				document.mjobform.jobpass.focus();
				return false;
			}
		if(document.mjobform.jobpassnew.value=="")
			{
				alert("请填写新密码");
				document.mjobform.jobpassnew.focus();
				return false;
			}
		if(document.mjobform.jobpassnewtwo.value=="")
			{
				alert("确认新密码不能为空");
				document.mjobform.jobpassnewtwo.focus();
				return false;
			}
		if(document.mjobform.jobpassnewtwo.value!=document.mjobform.jobpassnew.value)
			{
				alert("两次密码不一致");
				document.mjobform.jobpassnew.value="";
				document.mjobform.jobpassnewtwo.value="";
				document.mjobform.jobpassnew.focus();
				return false;
			}
		return true;
	}
</script>
</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

 '-修改密码-------------------
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 yixiang_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="修改密码成功！"
			response.Write("<script>alert('"&msgp&"');location='jobmanage.asp';</script>")
		else
			response.Write("<script>alert('对不起！输入的旧密码错误！');history.back(-1);</script>")
			response.End()
		end if
	rsp.close
	end if
end if
%>
<body>
 <!--#include file="person_top.asp"-->
<table width="988" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:5px;">
  <tr>
    <td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top"><!--#include file="person.asp"--></td>
      </tr>
      <tr>
        <td>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="jobTable_top1">
        <tr>
          <td width="25" height="29"><img src="../images/ico.gif" style="padding-left:5px;" /></td>
      <td width="699"><font class="title">我的简历</font></td>
    </tr>
        <tr>
          <td colspan="2">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin:5px; line-height:150%;">
              <tr>
                <td width="20%"><strong>简历完整度</strong></td>
            <td width="17%"><strong>公开度</strong></td>
            <td width="16%"><strong>被浏览数</strong></td>
            <td width="15%"><strong>更新时间</strong></td>
            <td width="32%"><strong>操作</strong></td>
          </tr>
              <tr>
                <td>基本完整</td>
            <td><a href="javascript:changeOpen(0);">不公开</a>/公开</td>
            <td><font color="red">
	<%
	if issession=0 then
		response.Write(Request.Cookies("hits"))
	else
	response.Write(session("hits"))
	end if 	
	%></font></td>
            <td><%=userRs("leftdate")%></td>
            <td><a href="PersonResumeDemo.asp?track=<%=jobid%>" target="_blank">预览</a> <a href="modijobinfo.asp">修改</a></td>
          </tr>
          </table></td>
    </tr>
      </table>
	  <%
	  userRs.close
	  set userRs=nothing
	  %>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="jobTable_top">
          <tr>
            <td width="25" height="29"><img src="../images/ico.gif" style="padding-left:5px;" /></td>
            <td width="699"><font class="title">修改密码</font></td>
          </tr>
          <tr>
            <td colspan="2" align="center">
			<form name="mjobform" method="post" action="modijobpass.asp" onSubmit="return checkform();">
			  <table width="593" border="0" cellpadding="3" cellspacing="0" style="margin:0 auto;">
                <tr>
                  <td align="right"><span class="fontred">*</span>登录名：</td>
                  <td align="left"><font color="red">
                    <%
	if issession=0 then
	response.Write(Request.Cookies("jobuser"))
	else
	response.Write(session("jobuser"))
	end if	 
	 %>
                  </font></td>
                </tr>
                <tr>
                  <td align="right"><span class="fontred">*</span>旧密码：</td>
                  <td align="left" ><input name="jobpass" type="password" maxlength="50" id="jobpass" class="input1" style="width:300px;" />                  </td>
                </tr>
                <tr>
                  <td align="right"><span class="fontred">*</span>新密码：</td>
                  <td align="left"><input name="jobpassnew" type="password" maxlength="50" id="jobpassnew" class="input1" style="width:300px;" /></td>
                </tr>
                <tr>
                  <td align="right"><span class="fontred">*</span>新密码确认：</td>
                  <td align="left"><input name="jobpassnewtwo" type="password" maxlength="50" id="jobpassnewtwo" class="input1" style="width:300px;" /></td>
                </tr>
              </table>
			  <table height="42" border="0" cellpadding="3" cellspacing="0" style="margin:0 auto;">
                <tr>
                  <td><input name="gogojob" type="submit" class="button2" id="the_submit" value="提 交" /></td>
                  <td><input name="the_reset" type="reset" class="button2" value="重 填" /></td>
                </tr>
              </table>
			</form>
			</td>
          </tr>
        </table></td>
      </tr>
    </table>
</td>
    <td width="264" valign="top">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="jobTable_top">
  <tr>
    <td width="23" height="29"><img src="../images/ico.gif" style="padding-left:5px;" /></td>
    <td width="239"><font class="title">招聘职位类别</font></td>
  </tr>
  <tr>
    <td colspan="2"><%=HOPE_JobKind(1,1,4,14)%></td>
  </tr>
</table>	</td>
  </tr>
</table>
<!--#include file="bottom.asp"-->
</body>
</html>
