<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YC_JobTuiJian_List.aspx.cs"
    Inherits="YCHR.Web.admin.company.YC_JobTuiJian_List" %>
<!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 id="Head1" runat="server">
<title>职位推荐管理</title>
<link rel="stylesheet" type="text/css" href="../images/style.css" />
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/function.js"></script>
<script type="text/javascript">
        $(function () {
            $(".msgtable tr:nth-child(odd)").addClass("tr_bg"); //隔行变色
            $(".msgtable tr").hover(
			    function () {
			        $(this).addClass("tr_hover_col");
			    },
			    function () {
			        $(this).removeClass("tr_hover_col");
			    }
		    );
        });
    </script>
</head>
<body style="padding: 10px;">
<form id="form1" runat="server">
  <div class="navigation"> <span class="add"></span><b>您当前的位置：首页 &gt; 职位管理 &gt;
    <asp:Literal ID="LiteralTxt" runat="server"></asp:Literal>
    </b></div>
  <div class="spClear"> </div>
  <table width="100%" cellspacing="1" cellpadding="2" border="0" align="center" class="border">
    <tbody>
      <tr class="tdbg">
        <td width="79" height="30"><strong>管理选项：</strong></td>
        <td width="904" class="dh"><a href="YC_Job_List.aspx">管理首页</a>| [<a href="javascript:location.reload()">刷新页面</a>] </td>
      </tr>
      <tr class="tdbg">
        <td width="79" height="30"><strong>身份筛选：</strong></td>
        <td class="dh"><div> <a href="?type=&amp;day=<%=RequestS("day") %>" class="<%=RequestS("showtype")==""?"dhcss":"" %>"> 不限</a> <a href="?type=1&amp;day=<%=RequestS("day") %>" class="<%=RequestS("type")=="1"?"dhcss":"" %>"> 急招职位</a> <a href="?type=2&amp;day=<%=RequestS("day") %>" class="<%=RequestS("type")=="2"?"dhcss":"" %>"> 热门职位</a> <a href="?type=3&amp;day=<%=RequestS("day") %>" class="<%=RequestS("type")=="3"?"dhcss":"" %>"> 高薪职位</a> <a href="?type=4&amp;day=<%=RequestS("day") %>" class="<%=RequestS("type")=="4"?"dhcss":"" %>"> 固顶职位</a> </div></td>
      </tr>
      <tr class="tdbg">
        <td width="79" height="30"><strong>到期时间：</strong></td>
        <td class="dh"><a href="?day=&amp;type=<%=RequestS("type") %>" class="<%=RequestS("day")==""?"dhcss":"" %>"> 不限</a> <a href="?day=0&amp;type=<%=RequestS("type") %>" class="<%=RequestS("day")=="0"?"dhcss":"" %>"> 已到期</a> <a href="?day=1&amp;type=<%=RequestS("type") %>" class="<%=RequestS("day")=="1"?"dhcss":"" %>"> 一天内到期</a> <a href="?day=3&amp;type=<%=RequestS("type") %>" class="<%=RequestS("day")=="3"?"dhcss":"" %>"> 三天内到期</a> <a href="?day=7&amp;type=<%=RequestS("type") %>" class="<%=RequestS("day")=="7"?"dhcss":"" %>"> 一周内到期</a> <a href="?day=30&amp;type=<%=RequestS("type") %>" class="<%=RequestS("day")=="30"?"dhcss":"" %>"> 一月内到期</a> <a href="?day=180&amp;type=<%=RequestS("type") %>" class="<%=RequestS("day")=="180"?"dhcss":"" %>"> 半年内到期</a></td>
      </tr>
      <tr class="tdbg">
        <td height="30"><strong>　　搜索：</strong></td>
        <td><asp:DropDownList ID="ddlProperty" runat="server" AutoPostBack="True" CssClass="select">
            <asp:ListItem Value="">选择搜索类型 </asp:ListItem>
            <asp:ListItem Value="1">职位名称 </asp:ListItem>
            <asp:ListItem Value="2">企业名称 </asp:ListItem>
          </asp:DropDownList>
          <asp:TextBox ID="txtKeywords" class="keyword" runat="server"></asp:TextBox>
          &nbsp;
          <asp:Button ID="ButtonSearch" CssClass="submit" runat="server" Text="搜索" OnClick="ButtonSearch_Click" />
 </td>
      </tr>
    </tbody>
  </table>
  <div class="back"><asp:LinkButton ID="LinkButton1" OnClientClick="return confirm( '你确定要刷新数据库吗？ ');" CssClass="submit" runat="server" OnClick="LinkButton_Click">刷新数据</asp:LinkButton>
          (刷新数据会将所有过期推荐职位重置为有效状态)
          &nbsp;
          <asp:LinkButton ID="Linkdele" OnClientClick="return confirm( '你确定要删除过期的推荐数据吗？ ');" CssClass="submit" runat="server" OnClick="Linkdele_Click">清理数据</asp:LinkButton>
          (不会对职位数据造成影响,但是会清除所有推荐招聘职位)</div>
  <div class="clear box">
  <div class="left">
  目前总记录数为：<b class="ft_red ft_16"><%=recordCount %></b></div>  
  <asp:Literal ID="litpagestr0" runat="server"></asp:Literal>
  </div>
  <div class="clear"></div>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
    <tr>
      <th width="10%" align="center"> <input id="chkBoxAll" name="chkBoxAll" onclick="checkall(this,'.msgtable');" 
                    type="checkbox" /></th>
      <th width="21%" align="center"> 职位名称 </th>
      <th width="23%" align="center"> 企业名称 </th>
      <th width="13%" align="center"> 开始时间 </th>
      <th width="13%" align="center"> 截止日期 </th>
      <th width="20%" align="center"> 类型 </th>
    </tr>
    <asp:Repeater ID="repList" runat="server">
      <ItemTemplate>
        <tr>
          <td align="center"><asp:HiddenField ID="txtid" Value='<%#Eval("id") %>' runat="server" />
            <asp:CheckBox ID="cb_id" CssClass="checkall" runat="server" /></td>
          <td align="left"><em><%#showStatus(Eval("stime"), Eval("etime"))%></em><strong><%#Eval("jobname")%></strong></td>
          <td align="left"><%#Eval("companyname")%></td>
          <td align="center"><%#Eval("stime")%></td>
          <td align="center"><%#Eval("etime")%></td>
          <td align="center"><%#showtypeName(Eval("type"))%></td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
  </table>
  <div class="clear box">
  <div class="left">
  <asp:Button ID="Button1" CssClass="submit" runat="server" Text="删除" 
        onclick="Button1_Click"  /></div>
    <!--page-->
  <asp:Literal ID="litpagestr" runat="server"></asp:Literal>
  </div>
  <div class="clear"></div>
</form>
</body>
</html>
