<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Tip.aspx.cs" Inherits="Book.Book.Tip" %>

<!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>
</head>
<body style=" font-family:Verdana; font-size:12px">
    <form id="form1" runat="server">
    <div>
    您有如下事件提醒，要取消提醒，请选择事件，然后单击取消提醒<br />
    
    
    
    
    <script>
    
    function SelectAll(aControl) 
       { 
            var tempControl=aControl; 
            var isChecked=tempControl.checked;

            elem=aControl.form.elements; 
            for(i=0;i<elem.length;i++) 
            if(elem[i].type=="checkbox" && elem[i].id!=tempControl.id) 
             { 
                  if(elem[i].checked!=isChecked) 
                        elem[i].click(); 
            } 
        }

          </script>
    

        <asp:Button ID="Button1" runat="server" Text="取消提醒" onclick="Button2_Click" />
 
    
    
              <asp:GridView ID="GridView1" runat="server" CssClass="table_1" Width="100%" 
                        AutoGenerateColumns="False" EmptyDataText="没有数据"> 
                                            <Columns> 
                        <asp:TemplateField ItemStyle-Width="60px" HeaderText="管理"> 
                            <HeaderTemplate> 
<asp:CheckBox ID="chk_SelectedHeader" runat="server" AutoPostBack="False" onclick="javascript:SelectAll(this);" 
                            Text="全选" /> 
                            </HeaderTemplate> 
                            <ItemTemplate > 
                                <asp:CheckBox ID="CheckBox1" runat="server" /> 
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("id") %>' 
                                     style="display:none"></asp:Label> 
                            </ItemTemplate> 
                        </asp:TemplateField> 
                       
                            <asp:BoundField DataField="begintime" ItemStyle-Width="200px" HeaderText="开始时间" /> 
                             <asp:BoundField DataField="endtime"  ItemStyle-Width="200px" HeaderText="结束时间" /> 
                              <asp:BoundField DataField="title" HeaderText="事件内容" /> 
                       
                        
                        </Columns> 
                    </asp:GridView>

    </div>
    </form>
</body>
</html>
