<%@ Page Language="C#" MasterPageFile="~/Template1.Master" AutoEventWireup="true" CodeBehind="Meeting.aspx.cs" Inherits="WebApplication1.Meeting" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>待开会议</title>
    <style type="text/css">
        #co { color:Black; text-align:center; }
        #location { text-align:center; }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <body>
<div id="location">
    <div>
        <h1 id="co">待开会议</h1>
    </div>
    <div id="location">
        
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            CellPadding="2" DataKeyNames="m_autoID" DataSourceID="SqlDataSource1" 
            ForeColor="Black" GridLines="None" BackColor="LightGoldenrodYellow" 
            BorderColor="Tan" BorderWidth="1px">
            <FooterStyle BackColor="Tan" />
            <Columns>
                <asp:BoundField DataField="m_autoID" HeaderText="编号" InsertVisible="False" 
                    ReadOnly="True" SortExpression="m_autoID" />
                <asp:BoundField DataField="m_meetingroom" HeaderText="地点" 
                    SortExpression="m_meetingroom" />
                <asp:BoundField DataField="m_chargedept" HeaderText="主办部门" 
                    SortExpression="m_chargedept" />
                <asp:BoundField DataField="m_topicmeeting" HeaderText="会议议题" 
                    SortExpression="m_topicmeeting" />
                <asp:BoundField DataField="m_starttime" HeaderText="时间" 
                    SortExpression="m_starttime" />
                <asp:TemplateField HeaderText="查看">
                    <ItemTemplate>
                        <asp:CheckBox ID="chk_id1" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="删除">
                    <ItemTemplate>
                        <asp:CheckBox ID="chk_id" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
            <HeaderStyle BackColor="Tan" Font-Bold="True" />
            <AlternatingRowStyle BackColor="PaleGoldenrod" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:studentConnectionString %>" 
            SelectCommand="SELECT [m_autoID], [m_meetingroom], [m_chargedept], [m_topicmeeting], [m_starttime] FROM [T_Meeting] WHERE ([m_statemeeting] = @m_statemeeting)">
            <SelectParameters>
                <asp:Parameter DefaultValue="false" Name="m_statemeeting" Type="Boolean" />
            </SelectParameters>
        </asp:SqlDataSource>
        
    </div>
    <div align="center">
        <asp:Button ID="Button1" runat="server" Text="删除" onclick="Button1_Click" 
            style="width: 40px; height: 26px;" />&nbsp;&nbsp;
            <asp:Button ID="Button3" runat="server" Text="查看会议信息" 
            onclick="Button3_Click" />&nbsp;&nbsp;
    </div>
</div>
</body>
</asp:Content>
