<%@ Page Language="C#" AutoEventWireup="true" Inherits="MyITJob.Company_issuejobManage" Codebehind="issuejobManage.aspx.cs" %>
<%@ Register TagPrefix="ascx" TagName="PageFooter" Src="~/ascx/PageFooter.ascx" %>
<%@ Register TagPrefix="ascx" TagName="LeftPage" Src="~/Company/LeftDH.ascx" %>
<%@ Register TagPrefix="ascx" TagName="PageTop2" Src="~/ascx/PageTop2.ascx" %>
<!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 runat="server">
    <title>
        <%=Application["PageTitle"] %>
        - 企业职位管理</title>
    <link href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery.min.js" type="text/javascript"></script>
    <script src="../js/jquery.colorbox.js" type="text/javascript"></script>
    <link href="../js/colorbox.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/csb_AJAX.js"></script>   
    <script type="text/javascript">
    $(document).ready(function(){
        $(".overBox").colorbox();
    });
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <ascx:PageTop2 ID="PageTop2" runat="server" />
        <table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td width="13%" valign="top">
                    <ascx:LeftPage ID="LeftPage" runat="server" />
                </td>
                <td width="8%" valign="top">
                </td>
                <td width="79%" valign="top">
                    <table width='100%' border='0' align='center' cellpadding='4' cellspacing='1' class='border'>
                        <tr class='topbg2'>
                            <td colspan="2" align='center'>
                                <strong class="Glow">企 业 职 位 管 理</strong></td>
                        </tr>
                        <tr class='tdbg'>
                            <td width="24%">
                                <div align="right">
                                    <strong>管理选项：</strong></div>
                            </td>
                            <td width="76%">
                                <asp:RadioButtonList ID="RB1" runat="server" RepeatDirection="Horizontal" AutoPostBack="True"
                                    RepeatLayout="flow" CellPadding="0" CellSpacing="0">
                                    <asp:ListItem Value="有效信息">有效信息</asp:ListItem>
                                    <asp:ListItem Value="过期信息">过期信息</asp:ListItem>
                                    <asp:ListItem Value="发布总数" Selected="True">发布总数</asp:ListItem>
                                </asp:RadioButtonList>
                                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true">
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                    <br />
                    <table width='100%' border='0' align='center' cellpadding='4' cellspacing='1' class='border' id="tbindex">
                        <tr class='topbg2'>
                            <td width="21%" align='center'>
                                <strong class="Glow">发布职位</strong></td>
                            <td width="9%" align='center'>
                                <strong class="Glow">智能匹配</strong></td>
                            <td width="7%" align='center'>
                                <strong class="Glow">点击数</strong></td>
                            <td width="10%" align='center'>
                                <strong class="Glow">发送时间</strong></td>
                            <td width="11%" align='center'>
                                <strong class="Glow">到期时间</strong></td>
                            <td width="10%" align='center'>
                                <strong class="Glow">状态</strong></td>
                            <td width="24%" align='center'>
                                <strong class="Glow">操作</strong></td>
                        </tr>
                        <asp:Repeater ID="RP1" runat="server">
                            <ItemTemplate>
                                <tr class='tdbg'>
                                    <td align='center'>
                                        <a class="title4" title="<%#Eval("zpzw").ToString() %>" href='/Company_Lookzl.aspx?pn=<%# Eval("qyName")%>&id=<%# Eval("id") %>'
                                            target='_blank'><b style="font-family:微软雅黑; font-size:14px;"><%#FormatLeft(Eval("zpzw").ToString(), 13, 11)%></b></a><br />(<%#Eval("bumen") %>)<br />
                                        <%#Eval("urgent").ToString() == "紧急招聘" ? "<span style='color:red'>[紧急]</span>":""%><%#Eval("hot").ToString() == "热门职位" ? "<span style='color:blue'>[热门]</span>":""%><%#Eval("height").ToString() == "高薪职位" ? "<span style='color:green'>[高薪]</span>":""%>
                                    </td>
                                    <td align='center'>
                                        <a href='pipei_Person.aspx?id=<%#Eval("id") %>&zw=<%#Server.UrlEncode(Eval("zpzw").ToString()) %>'>
                                            匹配人才</a></td>
                                    <td align='center'>
                                        <%#Eval("lookcount") %>
                                    </td>
                                    <td align='center'>
                                        <%#Eval("AddTime","{0:yyyy-MM-dd}") %>
                                    </td>
                                    <td align='center'>
                                        <%#Eval("OverTime", "{0:d}")%>
                                    </td>
                                    <td align='center'>
                                        <%#((DateTime)Eval("OverTime") < DateTime.Now) || Eval("uptime").ToString().Contains("1900") ? "<font color=\"red\">停止招聘</>" : "正在招聘"%>
                                    </td>
                                    <td align='center'>
                                        <a href="issuejobManage.aspx?Action=F5&id=<%#Eval("ID") %>">刷新</a> | <a href="issuejobManage.aspx?Action=Pause&id=<%#Eval("ID") %>">
                                            <%#Eval("uptime").ToString().Contains("1900-1-1") || ((DateTime)Eval("OverTime") < DateTime.Now) ? "重发" : "暂停"%></a> | <a href="issuejob.aspx?Action=Edit&id=<%#Eval("ID") %>">修改</a> | <a href="issuejobManage.aspx?id=<%#Eval("ID") %>&Action=Del"
                                            onclick="return confirm('确定要删除此项吗？此操作不可逆。');">删除<br />
                                        </a><a href="#" class="jj" title="修改紧急招聘操作" onclick="$('.jj').colorbox({inline:true, href:'#jj<%#Eval("id") %>Box'})">
                                            <span id="jjspan<%#Eval("id") %>"><%#Eval("urgent")%></span></a> | <a href="#" class="hot" title="修改热门招聘操作" onclick="$('.hot').colorbox({inline:true, href:'#hot<%#Eval("id") %>Box'})">
                                            <%#Eval("Hot")%></a> | <a href="#" class="height" onclick="$('.height').colorbox({inline:true, href:'#h<%#Eval("id") %>Box'})">
                                            <%#Eval("height")%>
                                        </a>
                                    </td>
                                    <td width="8%" class="none">
                                        <div id="jj<%#Eval("id") %>Box">
                                            <a class="overBox" title="修改紧急招聘结果" href="?Action=jj&id=<%#Eval("id") %>&t=<%=DateTime.Now.Millisecond %>" onclick="goVIP('?Action=urgent&id=<%#Eval("id") %>','jj(<%#Eval("id") %>)')">当前状态：<b><%#Eval("urgent") %></b>，是否想要修改当前状态</a>
                                        </div>
                                        <div id="hot<%#Eval("id") %>Box">
                                            <a class="overBox" title="修改热门招聘结果" href="?Action=Hotajax&id=<%#Eval("id")%>&t=<%=DateTime.Now.Millisecond %>" onclick="goVIP('?Action=Hot&id=<%#Eval("id") %>','hot(<%#Eval("id") %>)')">当前状态：<b><%#Eval("Hot") %></b>，是否想要修改当前状态</a>
                                        </div>
                                        <div id="h<%#Eval("id") %>Box">
                                            <a class="overBox" title="修改高薪招聘结果" href="?Action=Hjax&id=<%#Eval("id")%>&t=<%=DateTime.Now.Millisecond %>" onclick="goVIP('?id=<%#Eval("id")%>&Action=Height','height(<%#Eval("id") %>)')">当前状态：<b><%#Eval("height")%></b>，是否想要修改当前状态</a>
                                        </div>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                    <div id="paging" runat="server"></div>
                </td>
            </tr>
        </table>
        <ascx:PageFooter ID="PageFooter" runat="server" />
    </form>
</body>
</html>
