<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YC_Simple_list.aspx.cs" Inherits="YCHR.Web.admin.company.YC_Simple_list" %>
<%@ Register Assembly="YCHR.Web.UI" Namespace="YCHR.Web.UI" TagPrefix="cc1" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<!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>
<style>
#preview {
	position:absolute;
	border:1px solid #ccc;
	background:#333;
	padding:5px;
	display:none;
	color:#fff;
}
</style>
</head>
<body style="padding:10px;">
<form id="form1" runat="server">
  <div class="navigation"><span class="add"></span><b>您当前的位置：首页 &gt; 企业招聘 &gt; 一句话招聘列表</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="8%" height="30"><strong>管理选项：</strong></td>
        <td width="92%" class="dh"><a href="YC_zhaopin_List.aspx">管理首页</a>| <a href="YC_Simple_add.aspx">添加微招聘信息</a>| <a href="javascript:location.reload()">刷新页面</a></td>
      </tr>
      <tr class="tdbg">
        <td width="8%" height="30"><strong>是否审核：</strong></td>
        <td class="dh"><a href="?status=" class="<%=RequestS("status")==""?"dhcss":"" %>">不限</a> <a href="?status=0" class="<%=RequestS("status")=="0"?"dhcss":"" %>">未审核通过</a> <a href="?status=1" class="<%=RequestS("status")=="1"?"dhcss":"" %>">已审核通过</a></td>
      </tr>
      <tr class="tdbg">
        <td height="30"><strong>搜索：</strong></td>
        <td><br />
          <asp:DropDownList ID="ddlProperty" 
        runat="server" AutoPostBack="True" CssClass="select" >
            <asp:ListItem Value="1">职位名称 </asp:ListItem>
            <asp:ListItem Value="2">公司(店面)名称 </asp:ListItem>
          </asp:DropDownList>
          </b>&nbsp;
          <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword"></asp:TextBox>
          &nbsp;
          <asp:Button ID="btnSelect" runat="server" Text="查询"  CssClass="submit" 
        onclick="btnSelect_Click" /></td>
      </tr>
    </tbody>
  </table>
  <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">选择</th>
      <th width="5%" align="center">编号</th>
      <th width="10%" align="center">职位名称</th>
      <th width="5%" align="center">人数</th>
      <th width="14%" align="center">企业名称</th>
      <th width="10%" align="center">联系电话</th>
      <th width="7%" align="center">联系人</th>
      <th width="18%" align="center">地址</th>
      <th width="8%" align="center">发布日期</th>
      <th width="13%" align="center">是否已审</th>
    </tr>
    <asp:Repeater ID="repList" runat="server" onitemdatabound="repList_ItemDataBound">
      <ItemTemplate>
        <tr>
          <td align="center"><asp:HiddenField ID="id" Value='<%#Eval("id") %>' runat="server" />
            <asp:HiddenField ID="hidstate" Value='<%#Eval("isok") %>' runat="server" />
            <asp:CheckBox ID="cb_id" CssClass="checkall" runat="server" /></td>
          <td align="center"><%#Eval("id") %></td>
          <td align="left"><%#Eval("jobname")%></td>
          <td align="center"><%#Eval("amount")%></td>
          <td align="left"><%#Eval("companyname").ToString()%></td>
          <td align="center"><%#Eval("tele")%><br /></td>
          <td align="center"><%#Eval("linkname")%></td>
          <td align="left"><%#Eval("address")%></td>
          <td align="center"><%#Convert.ToDateTime((Eval("addtime").ToString())).ToString("yyyy-MM-dd")%></td>
          <td align="center"><asp:DropDownList ID="dropstate"  OnSelectedIndexChanged="dropstate_Chang"
                            AutoPostBack="true" ToolTip='<%#Eval("id") %>' runat="server">
              <asp:ListItem Value="0">未审核</asp:ListItem>
              <asp:ListItem Value="1">已审核</asp:ListItem>
            </asp:DropDownList><br />
            <%#Eval("isok").ToString() == "1" ? "已审核" : "<font color='red'>未审核</font> "%></td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
  </table>
  <div class="clear box">
    <div class="left">
      <asp:Button ID="btndele" runat="server" CssClass="submit" 
        onclick="btndele_Click" OnClientClick="return confirm( '你确定删除该信息吗？？ ');" 
        Text="删除该信息" />
    </div>
    <!--page-->
    <asp:Literal ID="litpagestr" runat="server"></asp:Literal>
  </div>
  <div class="clear"></div>
</form>
</body>
</html>
