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

<!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 href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
  <script language="javascript" src="../MyITJob.js" type="text/javascript"></script>
  <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 align="center" border="0" cellpadding="2" cellspacing="1" class="border" width="100%">
        <tr class="topbg2">
          <td align="center" width="100%">
            <strong class="Glow">院 校 机 构 活 动 管 理</strong></td>
        </tr>
      </table>
      <asp:Panel ID="Manage" runat="server" Visible="false">
        <table border="0" width="100%">
          <tr>
            <td>
              搜索登陆名：
              <asp:TextBox ID="searchText" runat="server"></asp:TextBox>
              <input id="Submit1" type="submit" value="搜 索" /></td>
          </tr>
        </table>
        <table align="center" border="0" cellpadding="4" cellspacing="1" class="border" width="100%">
          <tr class="topbg2">
            <td align="center" width="8%">
              <strong class="Glow">选中</strong></td>
            <td align="center" width="10%">
              <strong class="Glow">登录名</strong></td>
            <td align="center" width="19%">
              <strong class="Glow">院校名称</strong></td>
            <td align="center" width="33%">
              <strong class="Glow">标题</strong></td>
            <td align="center" width="13%">
              <strong class="Glow">添加时间</strong></td>
            <td align="center" width="17%">
              <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 id="checkbox" name="checkbox" type="checkbox" value='<%#Eval("t1id")%>' /></td>
                <td align='center'>
                  <%#Eval("t1slname")%>
                </td>
                <td align='center'>
                  <a href='/School/School_Basemeans.aspx?id=<%#Eval("t2id")%>' target="_blank">
                    <%#Eval("t2slname")%>
                  </a>
                </td>
                <td align='center'>
                    <a href="/School/School_Message.aspx?id=<%#Eval("t1id") %>" class="Date" target="_blank" style="color:<%#Eval("sl_color")%>"><%#Eval("sl_title")%></a>
                </td>
                <td align='center'>
                  <%#Eval("sl_time", "{0:d}")%>
                </td>
                <td align="center">
                  <a href="?Action=Edit&id=<%#Eval("t1id")%>">修改</a> | <a href='?id=<%#Eval("t1id") %>&Action=Del'
                    onclick="return confirm('警告！删除此会员将会删除其所有其他相关资料！此操作不可逆。');">删除</a></td>
              </tr>
            </ItemTemplate>
          </asp:Repeater>
        </table>
        <div>
          <input name="chkAll" onclick="CheckAll(this.form)" type="checkbox" value="checkbox" />
          <asp:Button ID="del_button" runat="server" OnClick="del_button_Click" Text="删 除" />
        </div>
        <div id="paging" runat="server"></div>
      </asp:Panel>
      <asp:Panel ID="EditMessage" runat="server" Visible="false">
        <table align="center" border="0" cellpadding="2" cellspacing="1" class="border" width="100%">
          <tr class="tdbg">
            <td align="right" class="tdbg2" width="15%">
              标题：</td>
            <td valign="top" style="width: 85%">
              <asp:TextBox ID="message_title" runat="server" Width="268px"></asp:TextBox>
              <asp:DropDownList ID="TitleColor" runat="server">
                <asp:ListItem style="background:#000000; color:#FFFFFF" Value="">默认</asp:ListItem>
                <asp:ListItem style="background:#FF0000; color:#FFFFFF" Value="#FF0000">红色</asp:ListItem>
                <asp:ListItem style="background:#0000FF; color:#FFFFFF" Value="#0000FF">蓝色</asp:ListItem>
              </asp:DropDownList></td>
          </tr>
          <tr class="tdbg">
            <td align="right" class="tdbg2" width="15%">
              内容：</td>
            <td valign="top" style="width: 85%">
              <asp:TextBox ID="message_Content" TextMode="MultiLine" runat="server" Height="196px"
                Width="507px"></asp:TextBox></td>
          </tr>
          <tr class="tdbg">
            <td align="right" colspan="2">
              <div align="center">
                <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="修改" />
                <input name="Submit" type="reset" value="重置" />
              </div>
            </td>
          </tr>
        </table>
      </asp:Panel>
    </div>
  </form>
</body>
</html>
