<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin_ZGMonitorWarnManage" Title="管理发布出去的通知" Codebehind="KS.ZGMonitorWarnManage.aspx.cs" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">

<asp:Panel ID="listPanel" runat="server" Width="100%">
<style>
@media print {     
      .noprint{display: none; }   
      
}  
     .page a{margin:5px 4px 0 0; color:#2E2828;background:#fff; display:inline-table; border:1px solid #efefef; float:left; text-align:center;height:20px;line-height:20px;min-width:20px;}
    .page a.curr{color:brown;}
</style>
<div class="content-area">
   
      <KS:KSGV ID="ListView" runat="server" AutoGenerateColumns="False" DataKeyNames="FieldID" GridLines="None"
            OnRowDataBound="FieldListView_RowDataBound" PagerType="CustomNumeric" Width="99%" EnableTheming="True" OnRowCommand="FieldListView_RowCommand" HorizontalAlign="Center" EmptyDataText="还没有发出消息!">
            <Columns>
              <asp:TemplateField HeaderText="选择">
                <itemstyle horizontalalign="Center" width="50px" />
                <itemtemplate>
                    <input type="checkbox"  name="ids" id="ids" value="<%#Eval("ID") %>" />
                </itemtemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="内容">
                 <itemstyle />
                <itemtemplate>
                 <div style="word-break:break-all;width:450px"><%# Eval("Content") %></div>
                </itemtemplate>
              </asp:TemplateField>

          
              <asp:TemplateField HeaderText="时间">
                <itemtemplate>
                <%# Eval("adddate") %>
                </itemtemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="对象">
                <itemtemplate>
                <%# Convert.ToString(Eval("scoreid"))=="0"?"所有考生":Eval("username") %>
                </itemtemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="类型">
                <itemtemplate>
                <%# Convert.ToString(Eval("flag"))=="2"?"<font color=red>警告</font>":"<font color=blue>通知</font>" %>
                </itemtemplate>
              </asp:TemplateField>


                <asp:TemplateField HeaderText="管理操作">
                <itemstyle horizontalalign="Center"/>
                <itemtemplate>
                     <asp:LinkButton runat="server" id="delete" commandargument=<%#Eval("ID") %> commandname="del">删除</asp:LinkButton>
               </itemtemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle CssClass="CTitle" />
            <EmptyDataRowStyle CssClass="emptycss" />
        </KS:KSGV>

       
        <br />
        <asp:Panel ID="Panel1" runat="server" Height="30px" Width="739px">
        
        &nbsp;&nbsp;<input type="checkbox" name="chkall" id="chkall" onclick="CheckAll(this.form);"/><label for="chkall">全部选中</label>
           &nbsp; <input type="button" value="批量删除" onmouseover="this.className='button_on';" onmouseout="this.className='button';" class="button" onclick="if (GetIDS('del')){this.form.action='?SJID=<%=SJID %>&action=del';this.form.submit()}" />
         </asp:Panel>
        <KS:Page ID="Page1" runat="server" />
      
     </asp:Panel>
</asp:Content>