<%@ Page Language="C#" AutoEventWireup="true" Codebehind="JobFair.aspx.cs" Inherits="MyITJob.Admin.JobFair" %>

<!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>无标题页</title>
    <link href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript">
function CheckAll(form){
  for (var i=0;i<form.elements.length;i++){
    var e = form.elements[i];
    if (e.name != 'chkAll' && e.disabled == false && e.type == 'checkbox') {
      e.checked = form.chkAll.checked;
      if (e.checked)
        hL(e);
      else
        dL(e);
    }
  }
}

function hL(E){
  while (E.tagName!='TR') {E=E.parentElement;}
  E.className='tdbg2';
}
function dL(E){
  while (E.tagName!='TR') {E=E.parentElement;}
  E.className='tdbg';
}
</script>    
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
                <tr class='topbg'>
                    <td height='30' colspan='2'>
                        <table width='100%'>
                            <tr class='topbg'>
                                <td align='center'>
                                    <strong>招 聘 会 管 理</strong></td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr class="tdbg">
                    <td width='99' height='30'>
                        <strong>有效时间：</strong></td>
                    <td class="dh">
                        <div>
                            <%foreach (ClassLibrary1.strClass.dhClass d in dh) {%>
                            <a <%= d.id == q("type") ? "class='dhcss'":"" %> href="?type=<%= d.id %>">
                                <%=d.name %>
                            </a>
                            <%} %>
                        </div>
                    </td>
                </tr>
            </table>
            <br />
            <table width='100%' border='0' align='center' cellpadding='4' cellspacing='1' class='border'>
                    <tr class='topbg'>
                        <td width="4%" align='center'><strong>选中</strong></td>
                        <td width="30%"><strong class="Glow">会展标题</strong></td>
                        <td width="29%"><strong class="Glow">会展内容</strong></td>
                        <td width="8%" align="center"><strong class="Glow">参加企业</strong></td>
                        <td width="5%" align="center"><strong class="Glow">状态</strong></td>
                      <td width="11%" align="center"><strong class="Glow">更新日期</strong></td>
                        <td width="13%" align='center'><strong class="Glow">操作</strong></td>
                    </tr>
                    <asp:Repeater ID="RP1" runat="server">
                        <ItemTemplate>
                            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                              <td align='center'><input name="checkbox" id="checkbox" type="checkbox" value="<%#Eval("id") %>" /></td>
                                <td><span style="color:<%#Eval("color") %>"><%#Eval("title") %></span></td>
                                <td>
                                  <%#MyFormatnoHtml(FormatLeft(Eval("content").ToString(), 20, 20)) %></td>
                                <td align="center"><a href="JobFair_Company.aspx?id=<%#Eval("id") %>"><span style="font-weight:bold;"><%#Count() %></span> 个</a></td>
                              <td align="center"><%#Eval("isPast").ToString() == "1" ? "显示" : "<span style='color:red;'>屏蔽</span>"%></td>
                            <td align="center"><%#Eval("time","{0:yyyy-MM-dd}") %></td>
                                <td align="center">
                                <a href="JobFair_AddCompany.aspx?type=<%#Eval("id") %>">添加企业</a> | <a href="JobFair_Add.aspx?Action=Edit&id=<%#Eval("id") %>">修改会展</a><br />
                                <a href="?Action=pb0&id=<%#Eval("id")%>">屏蔽</a> | <a href="?Action=pb1&id=<%#Eval("id")%>">恢复</a> | <a href="?id=<%#Eval("ID") %>&Action=Del"
                                        onclick="return confirm('警告！删除此会员将会删除其所有其他相关资料！此操作不可逆。');">删除</a></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
                <div>
                    <input name='chkAll' type='checkbox' onclick='CheckAll(this.form)' value='checkbox' />&nbsp;<asp:Button ID="Button2" runat="server" Text=" 删除展示 " OnClick="Button2_Click" />
                </div>
                <div id="paging" runat="server"></div>                
        </div>
    </form>
</body>
</html>
