<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LessonTable.aspx.cs" Inherits="SWTraining.Class.LessonTable"
    Title="教务管理-课程总表(周)" %>

<!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">
    <link id="linkStyle" runat="server" href="../Themes/Blue/css.css" rel="stylesheet"
        type="text/css" />
    <script type="text/javascript">
        function GetUrl() {
            location = 'LessonTeacherTable.aspx?DateAndTime=' + document.getElementById("tbxDateAndTime").value;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="tool_ControlPanel">
        <table cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    校区：
                </td>
                <td>
                    <asp:DropDownList ID="ddlSchool" runat="server" DataTextField="SchoolName" DataValueField="SchoolID">
                    </asp:DropDownList>
                </td>
                <td>
                    日期：
                </td>
                <td>
                    <asp:TextBox ID="tbxDateAndTime" runat="server"></asp:TextBox>
                </td>
                <td>
                    <label class="lab_buttom">
                        <asp:Button ID="btnShow" runat="server" OnClick="btnShow_Click" Text="查看本周" />
                    </label>
                    <label class="lab_buttom">
                        <asp:Button ID="btnUp" runat="server" OnClick="btnUp_Click" Text="上周" />
                    </label>
                    <label class="lab_buttom">
                        <asp:Button ID="btnDown" runat="server" OnClick="btnDown_Click" Text="下周" />
                    </label>
                    <label class="lab_buttom">
                        <input id="btnTeacherTable" type="button" value="按老师分组" onclick="GetUrl();" />
                    </label>
                    <label class="lab_buttom">
                        <asp:Button ID="btnExportExcel" runat="server" OnClick="btnExportExcel_Click" Text="导出EXCEL" />
                    </label>
                </td>
            </tr>
        </table>
    </div>
    <div class="both">
    </div>
    <div class="divpanel" style="overflow: auto; padding-bottom: 40px">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="gridview"
            OnRowDataBound="GridView1_RowDataBound">
            <HeaderStyle Wrap="false" />
            <Columns>
                <asp:BoundField DataField="ClassroomName" HeaderText="教室" />
                <asp:BoundField DataField="Sunday" HeaderText="周日" HtmlEncode="false" />
                <asp:BoundField DataField="Monday" HeaderText="周一" HtmlEncode="false" />
                <asp:BoundField DataField="Tuesday" HeaderText="周二" HtmlEncode="false" />
                <asp:BoundField DataField="Wednesday" HeaderText="周三" HtmlEncode="false" />
                <asp:BoundField DataField="Thursday" HeaderText="周四" HtmlEncode="false" />
                <asp:BoundField DataField="Friday" HeaderText="周五" HtmlEncode="false" />
                <asp:BoundField DataField="Saturday" HeaderText="周六" HtmlEncode="false" />
            </Columns>
        </asp:GridView>
    </div>
    <div class="divremark">
        <b>注意事项：</b><br />
        1、红色标注的时间段，表示教室时间安排上发生冲突。<br />
        2、点击日期进入学员考勤。</div>
    </form>
</body>
</html>
