<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../conn/conn.asp"-->
<!--#include file="../inc/Commoncode.asp"-->
<!--#include file="../inc/CommonFunction.asp"-->
<%link="person_openresume.asp"%>
<!--#include file="checkpmember.asp" -->
<%
if request("rid")<>"" then
rid=clng(trim(request("rid")))
end if
Action=trim(Request("Action"))
Select Case Action
	Case "Openresume"
		Call Openresume()
End Select
Sub Openresume()
if request("openss")<>"" then
openss=clng(trim(request("openss")))
conn.execute("update job_p_resume set resume_openness="&openss&" where resume_id="&rid&" and resume_pmember='"&pmember_login&"'")
else
response.write "<script language=javascript>alert('请选择是否公开！');javascript:history.back();</script>"
response.end 
end if
End Sub
%>
<!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>简历公开设置--<%=SiteTitle%></title>
<script src="../js/main.js" language="javascript"></script>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='person_openresume.asp?rid="+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function Jugew(theForm)
{
  if (fnRemoveBrank(theForm.resume.value) == "0")
  {
    alert("请选择简历!");
    theForm.resume.focus();
    return (false);
  }
 }
//-->
</script>
<link href="../member/css.css" rel="stylesheet" type="text/css" /></head>
<body>
<div class="memmenul">
<div class="leftmenutit"><span>简历公开设置</span></div>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" class="mtable" style="padding:4px;">
<form name="form1" id="form1" action="person_openresume.asp?Action=Openresume&rid=<%=rid%>" method="post" onSubmit="return Jugew(this)">
<%
set rs=server.createobject("ADODB.Recordset")
sql="select * from job_p_resume where resume_pmember='"&pmember_login&"' order by resume_announcedate desc"
rs.open sql,conn,1,1
%>
  <tr>
    <td>
<select name="resume" size="1" id="resume" onchange="MM_jumpMenu('window',this,0)">
<option value="0" selected="selected">请选择简历...</option>
<%do while not rs.eof
if rid=rs("resume_id") then%>
<option value="<%=rs("resume_id")%>" selected="selected"><%=rs("resume_title")%></option>
<%else%>
<option value="<%=rs("resume_id")%>"><%=rs("resume_title")%></option>
<%end if%>
<%
rs.movenext
loop
rs.close
set rs=nothing
%></select>
    </td>
  </tr>
<%
if rid<>"" and rid<>0 then
set rs=server.createobject("ADODB.Recordset")
sql="select * from job_p_resume where resume_pmember='"&pmember_login&"'and resume_id="&rid&""
rs.open sql,conn,1,1
resume_openness=rs("resume_openness")
rs.close
set rs=nothing
end if
%>
  <tr>
    <td><input name="openss" id="open1" type="radio" value="0" <%if resume_openness=0 then Response.Write"checked"%> /><label for="open1">我希望此份简历能被企业看到</label><br>
&nbsp;&nbsp;&nbsp;<%=Sitename%>企业会员都可以通过搜索看到您的简历。 如果您希望尽可能多的得到各类招聘机会，这项服务将更加适合您。</td>
  </tr>
  <tr>
    <td><input name="openss" id="open2" type="radio" value="1" <%if resume_openness=1 then Response.Write"checked"%> /><label for="open2">我不想任何人看到此份简历</label><br>
&nbsp;&nbsp;&nbsp;您的简历的完全保密的，任何人都看不到，但您仍然可以使用这份简历主动申请职位。</td>
  </tr>
  <tr>
    <td><input name="sopen" type="submit" class="inputs" id="sopen" value=" 保 存 " /></td>
  </tr>
</form>
</table>
</div>
<%
conn.close:set conn=nothing%>