<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Yc_companyphoto_list.aspx.cs" Inherits="YCHR.Web.admin.company.Yc_companyphoto_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>
    <script type="text/javascript">
        this.imagePreview = function () {
            xOffset = 10;
            yOffset = 30;
            $("a.preview").hover(function (e) {
                this.t = this.title;
                this.title = "";
                var c = (this.t != "") ? "<br/>" + this.t : "";
                $("body").append("<p id='preview'><img src='" + this.href + "' alt='Image preview' />" + c + "</p>");
                $("#preview")
			.css("top", (e.pageY - xOffset) + "px")
			.css("left", (e.pageX + yOffset) + "px")
			.fadeIn("fast");
            },
	function () {
	    this.title = this.t;
	    $("#preview").remove();
	});
            $("a.preview").mousemove(function (e) {
                $("#preview")
			.css("top", (e.pageY - xOffset) + "px")
			.css("left", (e.pageX + yOffset) + "px");
            });
        };
        // starting the script on page load
        $(document).ready(function () {
            imagePreview();
        });
    </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="78" height="30">
                    <strong>管理选项：</strong>
                </td>
                <td width="905" class="dh">
                    <a href="YC_zhaopin_List.aspx">管理首页</a>|<a target="sysMain" href="YC_zhaopin_List.aspx">招聘企业管理</a>|
                    <a href="YC_Job_List.aspx">职位管理</a>|<a target="sysMain" href="YC_Simple_List.aspx">微招聘管理</a>|
                    <a href="YC_company_service.aspx">企业服务申请管理</a>|  <a href="Yc_companyphoto_list.aspx">企业相册管理</a>|[<a href="javascript:location.reload()">刷新页面</a>]
                </td>
            </tr>
            <tr class="tdbg">
                <td width="78" height="30">
                    <strong>审核状态：</strong>
                </td>
                <td class="dh">
                    <a href="?state=&amp;day="
                        class="<%=RequestS("state")==""?"dhcss":"" %>">不限</a> <a href="?state=0&amp;day=<%=RequestS("day") %>"
                            class="<%=RequestS("state")=="0"?"dhcss":"" %>">未审核的图片</a> <a href="?state=1&amp;day=<%=RequestS("day") %>"
                                class="<%=RequestS("state")=="1"?"dhcss":"" %>">已审核图片</a>
                </td>
            </tr>
            <tr class="tdbg">
                <td width="78" height="30">
                    <strong>时间筛选：</strong>
                </td>
                <td class="dh">
                    <a href="?day=&amp;&amp;state=<%=RequestS("state") %>"
                        class="<%=RequestS("day")==""?"dhcss":"" %>">不限</a> <a href="?day=1&amp;state=<%=RequestS("state") %>"
                            class="<%=RequestS("day")=="1"?"dhcss":"" %>">一天内</a> <a href="?day=3&amp;state=<%=RequestS("state") %>"
                                class="<%=RequestS("day")=="3"?"dhcss":"" %>">三天内</a> <a href="?day=7&amp;state=<%=RequestS("state") %>"
                                    class="<%=RequestS("day")=="7"?"dhcss":"" %>">一周内</a> <a href="?day=30&amp;state=<%=RequestS("state") %>"
                                        class="<%=RequestS("day")=="30"?"dhcss":"" %>">一月内</a> <a href="?day=180&amp;state=<%=RequestS("state") %>"
                                            class="<%=RequestS("day")=="180"?"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:DropDownList>
                    &nbsp;
                    <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword"></asp:TextBox>
                    &nbsp;
                    <asp:Button ID="btnSelect" runat="server" Text="查询" CssClass="submit" OnClick="btnSelect_Click" />
                    &nbsp;&nbsp;&nbsp;<br />
                    <br />
                </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" id="ListView">
    <tr>
      <th width="5%" align="center"><input id="chkBoxAll" type="checkbox" name="chkBoxAll" onclick="checkall(this,'#ListView');"> </th>
      <th width="5%" align="center">编号</th> 
      <th width="25%" align="center"> 企业名称 </th>
      <th width="35%" align="center"> 相册图片 </th>
      <th width="10%" align="center"> 加入时间
       </th>
      <th width="10%" align="center"> 图片状态 </th>
      <th width="10%" align="center"> 操作 </th>
     
    </tr>
    <asp:Repeater ID="repList" runat="server" onitemcommand="repList_ItemCommand">
      <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="center"><%#Eval("id") %></td>
            <td align="center"><%#Eval("companyname") %></td>
            <td align="center"><a href="/upload/companyphtoto/<%#Eval("comid") %>/<%#Eval("photo") %>" target="_blank"><img src="/upload/companyphtoto/<%#Eval("comid") %>/<%#Eval("photo") %>" width="300px"  height="100px" /> </a> </td>
            <td align="center"><%#Eval("addtime") %></td>
            <td align="center"><%#Eval("state").ToString() == "0" ? "<font color='red'>未审核</font>" : "已审核"%></td>
            <td align="center"><asp:ImageButton ID="ImgDel"  OnClientClick="return confirm( '确定要删除吗？会连同子类一起被删除并且无法恢复 ');" CommandName="ImgDel" ImageUrl="../images/white_delete.png"  runat="server" /> </td>
          
        </tr>

      </ItemTemplate>
    </asp:Repeater>
  </table>
    <div class="clear box">
        <div class="left">
            <asp:Button ID="btnsh" runat="server" CssClass="submit" OnClick="btnsh_Click"
                OnClientClick="return confirm( '你确定要审核通过吗 ');" Text="审核" />
            <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>
