<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="collectresume.aspx.cs"
    Inherits="YCHR.Web.newhr.collectresume" %>
<!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>收藏的简历-<%=config.sitename %></title>
<link rel="stylesheet" type="text/css" href="<%=config.templatetheme%>/css/member.css" />
<script type="text/javascript" src="<%=config.templatetheme%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=config.templatetheme%>/js/jquery.form.js"></script>
<script type="text/javascript" src="<%=config.templatetheme%>/js/core.com.js"></script>
</head>
<body>
<form id="form1" runat="server">
  <!--head-->
  <!-- #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="companyinfomodify.aspx">企业资料</a></li>
        <li><a href="account.aspx">我的账户</a></li>
        <li><a href="server_buy.aspx">增值服务</a></li>
        <li><a href="/resume" target="_blank">最新人才库</a></li>
        <li class="search"><a href="resumesearch.aspx">简历搜索</a></li>
        <li class="add"><a href="addjobs.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="addjobs.aspx">发布职位</a></dd>
  <dd> <a href="joblist.aspx">职位管理</a></dd>
  <dt style="margin-top: 8px" class="m2"><a href="javascript:void(0);">简历搜索</a></dt>
  <dd> <a href="resumesearch.aspx">简历搜索</a></dd>
  <dd> <a href="resumeseeker.aspx">简历搜索器</a></dd>
  <dt style="margin-top: 8px" class="m3"><a href="javascript:void(0);">简历管理</a></dt>
  <dd> <a href="receivedResume.aspx">收到的简历</a></dd>
  <dd> <a href="mydownresume.aspx">下载的简历</a></dd>
  <dd> <a href="sendoutinvite.aspx">发出的邀请</a></dd>
  <dd> <a href="collectresume.aspx" class="now">收藏的简历</a></dd>
  <dd> <a href="invitetemp.aspx">邀请模板管理</a></dd>
  <div class="ad200"> <img src="<%=config.templatetheme%>/images/member/ad2.gif" width="198" height="70" alt="ad2" /></div>
  </div>
  <!--right-->
  <div class="navmbs"> 您的位置： <a href="/">网站首页</a> > <a href="Index.aspx">招聘中心</a> > 收藏的简历 > </div>
  <div class="mb_infoTip" id="infotip"> <em><a href="javascript:;" onclick="document.getElementById ('infotip').className='none'"> 关闭</a></em>
    <p> 您目前还可以下载<span class="ft_zi"> 0 </span>份简历。 下载的简历只能保留 2 个月。<a href="#" class="a_blue">立即升级会员</a></p>
  </div>
  <div class="mbbox_r">
    <div class="tagT">
      <ul>
        <li class="cu"><a href="collectresume.aspx">收藏的简历</a></li>
      </ul>
    </div>
    <div class="h5px"> </div>
    <div class="pad20">
      <input id="linkname" maxlength="10" name="linkname" tabindex="5" type="text" runat="server"
                    class="input250" onmouseover="this.className='input251'" onmouseout="this.className='input250'"
                    style="width: 106px; margin: 0 8px;" value="姓名" onfocus="this.value=''" />
      <asp:Button ID="btnsearch" runat="server" CssClass="btn_so" Text="搜索" OnClick="btnsearch_Click" />
      &nbsp;
      <div class="h5px"> </div>
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="padding3"
                    style="margin-top: 12px;">
        <tbody>
          <tr style="background: #F2F2F2" class="ft_13">
            <td width="4%">&nbsp;</td>
            <td width="7%" align="center"> 姓名 </td>
            <td width="8%" align="center"> 年龄 </td>
            <td width="7%" align="center"> 学历 </td>
            <td width="7%" align="center"> 性别 </td>
            <td width="8%" align="center"> 所在地 </td>
            <td width="9%" align="center"> 工作经验 </td>
            <td width="11%" align="center"> 更新时间 </td>
            <td width="13%" align="center"> 下载时间 </td>
            <td width="14%" align="center"> 联系方式 </td>
          </tr>
          <asp:Repeater ID="replist" runat="server" OnItemDataBound="replist_ItemDataBound">
            <ItemTemplate>
              <tr>
                <td><input type="checkbox" id="chkcollectid" name="chkcollectid" value="<%#Eval("id")%>"
                                            runat="server" />
                  <input type="hidden" id="resumeid" name="resumeid" value="<%#Eval("resumeid")%>"
                                            runat="server" /></td>
                <td align="center"><a href="/hr/resumemultiview.aspx?resumeid=<%#Eval("resumeid")%>">
                  <asp:Label ID="lbtname" runat="server"></asp:Label>
                  </a></td>
                <td align="center"> 22 </td>
                <td align="center"><asp:Label ID="lbtedu" runat="server"></asp:Label></td>
                <td align="center"><asp:Label ID="lbtsex" runat="server"></asp:Label></td>
                <td align="center"><asp:Label ID="lbtlive" runat="server"></asp:Label></td>
                <td align="center"><asp:Label ID="lbtworkage" runat="server"></asp:Label></td>
                <td align="center"><%#Eval("collecttime")%></td>
                <td align="center"> 2012-12-11 </td>
                <td align="center"><%#getstate(Eval("resumeid")) %></td>
              </tr>
            </ItemTemplate>
          </asp:Repeater>
          <tr id="repnodata" runat="server">
            <td colspan="10" align="center"><b style="font-size: 20px; line-height: 60px">暂无数据</b></td>
          </tr>
          <tr>
            <td colspan="10"><div class="h5px"> </div>
              <div class="left">
                <input type="checkbox" onclick="checkall(this,'#form1');" name="chkBoxAll" id="chkBoxAll" />
                全选 <a class="btn_hui" id="readresume" href="javascript:;">查看简历 </a><a class="btn_hui"
                                        id="deleall" href="javascript:;">直接删除</a></div>
              <div class="page"> 共下载求职简历 <span class="ft_zi"> <%=recordCount %> </span>份
                <div class="pager"> <%=pagestr %></div>
              </div></td>
          </tr>
        </tbody>
      </table>
    </div>
    <br />
    <!--content-->
  </div>
  <div class="clear"> </div>
  </div>
  <script>
                $("#readresume").click(function () {
                    if (!checkBoxSel('chkcollectid', '.padding3'))
                    {
                        alert("请选择简历");
                        return;
                    }
                    var resumeidstr = $(".padding3").find('input[name="chkcollectid"]:checked').next('input[name=resumeid]').fieldSerialize().replace('&resumeid=', ',');
                  
                    window.open("resumemultiview.aspx?" + resumeidstr);
                });
                $("#deleall").click(function () {
                    if (!checkBoxSel('chkcollectid', '.padding3'))
                    {
                        MessageBox.show("请选择简历", 2, 800);
                        return;
                    }
                    var resumeidstr = $(".padding3").find('input[name="chkcollectid"]:checked').fieldSerialize();
                    var url = "/hr/companycontent.aspx";
                    url += "?operate=delecollectresume&" + resumeidstr;
                    App.get(url, function (res) {
                        if (res.error == "1")
                        {
                            MessageBox.show("删除失败l 333", 2, 800);
                            return;
                        }
                        else
                            MessageBox.show("删除成功", 1, 800);
                        App.redirect("collectresume.aspx");

                    });
                });
    </script>
  <!-- #include file="include/foot.html" -->
</form>
</body>
</html>
