<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="privateset.aspx.cs" Inherits="YCHR.Web.person.privateset" %>

<!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=utf-8" />
    <title>隐私设置＿个人求职中心_易辰人才招聘系统</title>
    <link rel="stylesheet" type="text/css" href="<%=config.templatetheme%>/css/member.css" />
    <script language="JavaScript" src="<%=config.templatetheme%>/js/jquery.js"></script>
    <script language="JavaScript" src="<%=config.templatetheme%>/js/jquery.validate.min.js"></script>
    <script language="JavaScript" src="<%=config.templatetheme%>/js/jquery.form.js"></script>
    <script language="JavaScript" src="<%=config.templatetheme%>/js/core.com.js"></script>  
    <script type="text/javascript">
        //验证
        $(document).ready(function () {
            $("#form1").validate({
                success: function (label) {
                    label.text(" ").addClass("success")
                },
                rules: {
                    Txt_Shielding: {     required: true,        minlength: 2,      maxlength: 18
                    }

                },
                messages: {
                    Txt_Shielding: {       required: "请填写企业的关键字",       minlength: jQuery.format("填写不能小于{0}个字符"),       maxlength: jQuery.format("填写不能大于{0}个字符")           }
                },
                
                onkeyup: true,
                errorElement: "span",
                errorPlacement: function (error, element) {
                    if (element.is(":radio")) error.appendTo(element.parent().next().next());
                    else if (element.is(":checkbox")) error.appendTo(element.next());
                    else error.appendTo(element.parent())
                }
            })
        });

</script>
</head>
<body>
    <form id="form1" runat="server">
    <!-- #include file="include/head.html" -->
    <!--nav-->
    <div class="navbox">
        <div class="navtab">
            <ul>
                <li class="now"><a href="index.aspx">求职中心</a></li>
                <li><a href="PersonInfoModify.aspx">个人资料</a></li>
                <li><a target="_blank" href="/news">职场资讯</a></li>
                <li><a target="_blank" href="/about/help.html">帮助中心</a></li>
                <li class="search"><a href="/search/jobsearch.aspx">职位搜索</a></li>
                <li class="add"><a href="resumeList.aspx">发布简历</a></li>
            </ul>
        </div>
    </div>
    <div class="clear">
    </div>
    <!--content-->
    <div class="box">
        <!--menu-->
        <div class="mb_menu">
            <dl>
                <dt class="m1"><a href="javascript:void(0);">我的简历</a></dt>
                <dd>
                    <a href="resumeList.aspx">简历管理</a></dd>
                <dd>
                    <a href="myletter.aspx">我的求职信</a></dd>
                <dd>
                    <a href="sendresumelist.aspx">外发简历</a></dd>
                <dd>
                    <a href="privateset.aspx" class="now">隐私设置</a></dd>
                <dt class="m2" style="margin-top: 8px"><a href="javascript:void(0);">职位搜索</a></dt>
                <dd>
                    <a href="/search/jobsearch.aspx"  target="_blank">职位搜索</a></dd>
                <dt class="m3" style="margin-top: 8px"><a href="javascript:void(0);">我的工作</a></dt>
                <dd class="w98">
                    <a href="applylist.aspx">求职申请</a></dd>
                <dd class="w98">
                    <a href="JobInviteList.aspx">面试通知</a></dd>
                <dd>
                   <a href="attentioncompanylist.aspx">关注的企业</a></dd>
                <dd>
                    <a href="mycollectjob.aspx">搜藏的职位</a></dd>
                
                <dd class="w98">
                    <a href="whodownresume.aspx">谁下载了我的简历</a></dd>
            </dl>
        </div>
        <!--right-->
        <div class="navmbs">
            您的位置： <a href="/">首页</a> > <a href="Index.aspx">求职中心</a> > <a href="resumeList.aspx">
                我的简历</a> > 隐私设置</div>
        <div class="mbbox_r">
            <div class="h5px">
            </div>
            <h3>
                <strong>联系信息公开设置</strong></h3>
            <div class="pad20">
                <p class="left" style="width: 50%">
                    允许企业查看我的哪些信息？<br />
                    <input id="checkcontact1" class="checkBox" type="checkbox" value="mobile" name="checkcontact"
                        disabled="disabled" checked="checked" >
                    <label for="checkcontact1">
                        手机</label>
                    <input id="checkcontact2" class="checkBox" type="checkbox" checked="checked" value="email"
                       disabled="disabled"  name="checkcontact">
                    <label for="checkcontact2">
                        邮箱</label>
                    <input id="checkcontact_qq" class="checkBox" type="checkbox" <%=qqcheck==true?"checked=checked":"" %>" value="qq"
                        name="checkcontact">
                    <label for="checkcontact3">
                        QQ</label>
                    <input id="checkcontact_tele" class="checkBox" type="checkbox" <%=telecheck==true?"checked=checked":"" %>" value="tele"
                        name="checkcontact">
                    <label for="checkcontact4">
                        电话</label>
                    <input id="checkcontact_address" class="checkBox" type="checkbox" <%=addresscheck==true?"checked=checked":"" %>" value="address"
                        name="checkcontact">
                    <label for="checkcontact5">
                        地址</label>
                </p>
                <p class="right yingsi" style="width: 44%">
                    温馨提示：<br />
                    <i class="ft_zi">您的设置将针对您的所有简历，请谨慎！ 联系信息请尽可能全部显示，以便企业能够联系到您。</i></p>
            </div>
            <div class="h5px">
            </div>
            <h3>
                <strong>简历公开设置</strong></h3>
            <div class="pad20">
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="padding3">
                    <tbody>
                        <tr style="background: #F2F2F2">
                            <td align="center">
                                <strong>简历名称</strong>
                            </td>
                            <td align="center">
                                <strong>公开设置</strong>
                            </td>
                        </tr>
                        
                        <asp:Repeater ID="replist" runat="server" 
                            onitemdatabound="replist_ItemDataBound">
                            <ItemTemplate>
                              <tr>
                            <td align="center">
                                <a href="#" class="a_blue"><%#Eval("resumename")%></a>
                            </td>
                            
                            <td align="center">
                              <asp:RadioButtonList ID="RadioResumeLock" runat="server" 
                                                    RepeatDirection="Horizontal">
                  <asp:ListItem Selected="True" Value="1">对所有公开</asp:ListItem>
                  <asp:ListItem Value="2">对认证企业公开</asp:ListItem>
                  <asp:ListItem Value="3">完全保密</asp:ListItem>
                </asp:RadioButtonList>     
                 <input type="hidden" value="<%#Eval("id") %>" id="resumeid" name="resumeid">
                 <asp:HiddenField ID="hiddenresumelock" Value='<%#Eval("resumelock") %>' runat="server" />
                            </td>
                        </tr>
                            </ItemTemplate>
                            </asp:Repeater>
                     
                        <tr id="norepdata" runat="server">
                            <td colspan="2" align="center">
                                <b style="font-size: 20px; line-height: 60px">  暂无数据</b>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <p class="yingsi">
                    温馨提示：<br />
                    <i class="ft_zi">对所有公司公开：您的简历能被所有招聘公司查阅！<br />
                        对认证公司公开：您的简历只被通过本网站验证的公司查阅！<br />
                        完全保密：您的简历无法被招聘公司查阅，但您可以用此份简历投递！ </i>
                    <br />
                    如果不想被某些企业查阅到简历，可以<strong><a href="#pinbi">设置屏蔽公司</a></strong>。 只有一份简历可以完全公开，或对验证公司公开！<br />
                </p>
            </div>
            <div class="h5px">
            </div>
            <h3>
                <strong>被屏蔽公司</strong></h3>
            <div class="pad20">
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="padding3">
                    <tbody>
                        <tr style="background: #F2F2F2">
                            <td width="12%" align="center">
                                <strong>序号</strong>
                            </td>
                            <td width="20%" align="center">
                                <strong>关键字</strong>
                            </td>
                            <td width="53%" align="center">
                                <strong>被屏蔽公司</strong>
                            </td>
                            <td width="15%" align="center">
                                <strong>操作</strong>
                            </td>
                        </tr>
                          <asp:Repeater ID="repkeyword" runat="server" onitemcommand="repkeyword_ItemCommand">
                    <ItemTemplate>
                        <tr>
                            <td align="center">
                             <%# Container.ItemIndex + 1%> 
                            </td>
                            <td align="center">
                             <%#Eval("ShieldingKeywords")%>
                            </td>
                            <td align="center">
                                <a href="#" class="a_blue"><%#SearchCompany(Eval("ShieldingKeywords").ToString())%></a>
                            </td>
                            <td align="center">
                              <asp:LinkButton ID="lkbdele" CommandName="dele" OnClientClick="return confirm('您确定删除吗?')" CommandArgument='<%#Eval("id")%>' runat="server">删除</asp:LinkButton>
                            </td>
                        </tr>
                           </ItemTemplate>
                  </asp:Repeater>
                        <tr id="nokeyword" runat="server">
                            <td colspan="4" align="center">
                                <b style="font-size: 20px; line-height: 60px">暂无数据</b>
                            </td>
                        </tr>
                       
                    </tbody>
                </table>
            </div>
            <h3>
                <em><font color="#ff3300">*</font> 为必填项</em><strong>添加公司黑名单</strong><a href="javascript:;"
                    name="#pinbi"></a></h3>
            <div class="h5px">
            </div>
            <table width="100%" cellspacing="1" cellpadding="4" border="0" class="padding3 ft_13">
                <tbody>
                    <tr>
                        <td width="15%" align="right">
                            <font color="#ff3300">* </font>关键字：
                        </td>
                        <td width="33%">
                          <asp:TextBox ID="Txt_Shielding" runat="server" CssClass="input250" MaxLength="18"></asp:TextBox>   
                        </td>
                        <td width="52%">
                            <asp:Button   ID="btnadd" CssClass="btn_set" CommandName="Add" runat="server" Text="添加屏蔽关键字" onclick="btnadd_Click"   />&nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="3">&nbsp;
                            
                        </td>
                    </tr>
                </tbody>
            </table>
            <br />
        </div>
        <div class="clear">
        </div>
        <!--content-->
        <div class="clear">
        </div>
    </div><script>             
              $('input[name=checkcontact]').click(function () {              
                  var contact = $('input[name=checkcontact]:checked').fieldSerialize();
                  var url = 'Ajax_person.aspx?type=privateset&' + contact; 
                  App.get(url, function (res) { 
                      //错误提示
                      if (res.error==1)
                      {
                          MessageBox.show("设置出错", 2, 5000); 
                          return;
                      }
                      MessageBox.show("设置成功", 1, 5000); 
                      return;
                  });
              });
              $('input[name=replist$ctl00$RadioResumeLock]').click(function () {
                  var contact = $('input[name=replist$ctl00$RadioResumeLock]:checked').fieldSerialize();
                  var resumeid = $('#replist_ctl00_RadioResumeLock').next('input[name=resumeid]').fieldSerialize();
                  var url = 'Ajax_person.aspx?type=resumelockset&' + resumeid + '&' + contact;
                  App.get(url, function (res) {
                      //错误提示
                      if (res.error == 1)
                      {
                          MessageBox.show("设置出错", 2, 5000);  
                          return;
                      }
                       MessageBox.show("设置成功", 1, 5000); 
                      return;
                  });
              });
    </script>
    <!-- #include file="include/foot.html" -->
    </form>
</body>
</html>
