<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Public/Person_Cookies.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<% 
'地区分站参数
Dim c_City,c_Name
If Session("c_City") = "" Then 
 Response.Redirect "../Index.asp"
 Response.End()
End if
c_City = Session("c_City")
c_Name = Session("c_Name")

Dim Rs,Cmd,Tmp,Action
Dim Perid,UserName,UserType,ContactKeep,ResumeKeep,PhotoKeep,ContactStr,ResumeStr,PhotoStr

Action = Request.QueryString("action")
If Action = "submit" Then 
 Call Submit()  '//跳转到保存数据的函数
Elseif Action = "delkeeps" Then
 Call DelKeeps_Submit()
End if

'//判断用户身份
If IsArray(Session("Person")) Then
 Perid = Session("Person")(2)
 UserName = Session("Person")(0)
Else
 Session.Abandon() 
 Response.write "<script>alert('-登录后才能进行该操作！-');location.href='../Public/MemberLogin.asp';</script>"
 Response.End()
End if

'//调用存储过程
Set Cmd = Server.Createobject("ADODB.Command")
Cmd.ActiveConnection = Conn
Cmd.CommandText = "Per_SecuritySetup"
Cmd.CommandType = 4
Cmd.Parameters.Append Cmd.CreateParameter("@Perid",200,1,30)
Cmd.Parameters("@Perid") = Perid
Set Rs = Cmd.Execute

If Rs.Eof Then
 CloseRs
 Set Cmd = Nothing
 CloseDB
 Response.write "没有找到会员资料！"
 Response.End()
End if
Tmp = Rs.GetRows() '//将数据填充到数组
'//0姓名,1用户类型,2联系方式保密,3简历保密,4个人照片屏蔽
'//如：Tmp(0,0)表示 用户的姓名
CloseRs
Set Cmd = Nothing
'//功能代码
RealName = Tmp(0,0)
UserType = Cls_Usertype(Tmp(1,0))
ResumeKeep  = Tmp(3,0)

If ResumeKeep = 0 Then
 ResumeStr = "公开"
Else
 ResumeStr = "保密"
End if


 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Style.css" type=text/css rel=stylesheet>
<title><%= Cls_WebName&" | "&c_Name&"站" %> -- 简历中心 -- 简历属性</title>
</head>

<body>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td>
      <!--#include file="../c_Header/Person_Resume.asp" -->
    </td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td><table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="4"></td>
        </tr></table>
      <table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="175" valign="top"> 
            <!--#include file="../Lefter/Person_SecuritySetup.asp" -->
          </td>
          <td width="5">&nbsp;</td>
          <td valign="top">
            <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr> 
                <td height="2"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <form action="?action=submit" name="theForm" method="post" onSubmit="return theForm_check();">
                <tr> 
                  <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
                      <tr> 
                        <td bgcolor="#FFFFFF"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td height="2"></td>
                            </tr>
                          </table>
                          <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
                            <tr> 
                              <td height="25" bgcolor="f5f5f5"><b><font color="#000000">&nbsp;简历公开程度</font></b></td>
                            </tr>
                          </table>
                          <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td height="2"></td>
                            </tr>
                          </table>
                          <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr align="left"> 
                              <td height="25" bgcolor="f9f9f9"> <input type="radio" name="resumekeep" value="0" <% If ResumeKeep = 0 Then Response.write "Checked" %>>
                                对所有公开</td>
                            </tr>
                            <tr> 
                              <td height="25" align="left">所有企业会员均有权搜索并看到您的简历,如果您非常迫切的希望尽快找到工作,这项服务最适合您;</td>
                            </tr>
                            <tr align="left"> 
                              <td height="25" bgcolor="f9f9f9"> <input type="radio" name="resumekeep" value="2" <% If ResumeKeep = 2 Then Response.write "Checked" %>>
                                公开，但对部分企业隐藏</td>
                            </tr>
							
                            <tr> 
                              <td height="25" align="left">如果您希望在公开个人简历时,还要回避某些公司,我们可以根据你的意愿,将您的个人资料对这些企业隐藏,他们将不会搜索到您的简历; 
                               
                              </td>
                            </tr>
							<% If ResumeKeep = 2 Then %>
                            <tr> 
                              <td height="25" align="left">以下是您屏蔽的公司： <a href="javascript:" onClick="javascript:window.open('../Person/Per_Keeps.asp','rslt','width=500,height=320,resizable=yes,scrollbars=yes');"><font color="#FF0000"><u>新增企业记录</u></font></a> </td>
                            </tr>
							 <% 
							  Set Re = Conn.Execute("Select k.Ncid,c.CompanyName,k.Comid From [pH_Person_Keeps] As k Inner Join [pH_Company_Base] As c On k.Comid=c.Comid Where k.Perid='"&Perid&"'")
							  While Not Re.Eof
							   Ncid = Re(0)
							   CompanyName = Re(1) 
							   Comid = Re(2)
							   %>
                            <tr> 
                              <td height="25" align="left">&middot;<a href="../c_Company/Info/Com_View.asp?Param=<%= Comid %>" target="_blank"><%= CompanyName %></a> <a href="?action=delkeeps&ncid=<%= Ncid %>"><u>删除</u></a></td>
                            </tr>
							<% 
							Re.Movenext
							   Wend
							   Re.Close
							
							End if %>
                            <tr> 
                              <td height="25" align="left" bgcolor="f9f9f9"> <input type="radio" name="resumekeep" value="1" <% If ResumeKeep = 1 Then Response.write "Checked" %>>
                                不公开简历 </td>
                            </tr>
                            <tr> 
                              <td height="25" align="left">选择本项,将只有<%= Cls_Webname %>的工作人员才能看到您的简历,如果您希望采用慎重,不张扬的方式来寻找工作,请选择本项.</td>
                            </tr>
                          </table>
                          <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td height="2"></td>
                            </tr>
                          </table>
                          <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td height="2"></td>
                            </tr>
                          </table></td>
                      </tr>
                    </table></td>
                </tr>
                <tr> 
                  <td height="40" align="center"> <input name="perid" type="hidden" id="perid" value="<%= Perid %>"> 
                    <input type="submit" name="Submit" value=" 保 存 设 置 " style="height:35px;"> 
                  </td>
                </tr>
              </form>
            </table></td>
        </tr>
      </table>

<!--#include file="../c_Include/Footer.asp" -->
	  </td>
  </tr>
</table>

</body>
</html>
<% 
Sub Submit()
 Call Check_url()    '防止外部站点提交数据
 '//提交数据
 Perid                = Session("Person")(2) 
 ResumeKeep           = Replace_Text(Request.Form("ResumeKeep"))

 SQL = "Update [pH_Person_Info] Set ResumeKeep="&ResumeKeep&" Where Perid='"&Perid&"'"
 Conn.Execute(SQL)
 '//更改最后修改时间
 SQL = "Update [pH_Person_Base] Set LastUpdate_Time=getdate() Where Perid='"&Perid&"'"
 Conn.Execute(SQL)
 CloseDB
 Response.redirect "Per_ResumeProperty.asp"
End Sub

Sub DelKeeps_Submit()
 '//提交数据
 Perid = Session("Person")(2)
 Ncid = Replace_Text(Request("Ncid"))
 
 SQL = "Delete [pH_Person_Keeps] Where Perid='"&Perid&"' And Ncid="&Ncid
 Conn.Execute(SQL)

 CloseDB
 Response.redirect "Per_ResumeProperty.asp"
End Sub


 %>
