<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LessonDay.aspx.cs"
    Inherits="MTCUN.Mobile.Class.LessonDay" Title="此日课表-教务" %>

<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../User_Col/col_LessonDay.ascx" TagName="col_LessonDay" TagPrefix="uc1" %>
<%@ Register Src="../../UserCol/SimpleCode.ascx" TagName="SimpleCode" TagPrefix="uc1" %>
<%@ Register Src="../User_Col/col_StuHeader.ascx" TagName="col_StuHeader" TagPrefix="uc2" %>
<%@ Register Src="../User_Col/col_Header.ascx" TagName="col_Header" TagPrefix="uc3" %>
<!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="mobileCss" runat="server" href="../themes/mobile.css" rel="stylesheet"
        type="text/css" />
    <style type="text/css">
        .style1 {
            width: 100%;
            background-color: #ffffff;
            padding: 0px;
            margin: 0px;
        }

            .style1 td {
                border-left: 0px solid #cccccc;
            }

        .code {
            color: #838383;
        }

        .code {
            color: #838383;
        }

        .calendar_day {
            border-radius: 5px;
            background-color: khaki;
            width: 11%;
            height: 50px;
            padding: 2px;
            margin: 2px;
            position: relative;
            text-align: center;
        }

        .calendar_day_striking {
            border-radius: 15px;
            background-color: red;
            height: 15px;
            width: 15px;
            padding: 2px;
            margin: 2px;
            position: absolute;
            bottom: 2px;
            right: 2px;
            color: white;
            text-align: center;
            line-height: 15px;
            vertical-align: middle;
        }

        .calendar_day_lesson {
            background-color: darkorange;
            cursor: pointer;
        }

        .calendar_today {
            /*font-weight: bold;
            color: red;*/
            background-color: hotpink;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <uc3:col_Header ID="col_Header1" runat="server" />
        <div id="web_page_contents">

            <div class="biao_zhun_suo_jin">
                <div class="striking">

                    <div style="text-align: center">
                        <asp:Label ID="labDateAndTime" runat="server" Font-Bold="true"></asp:Label>
                    </div>


                    <table class="table_simple_kuan" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <asp:Label ID="labMonth" runat="server"></asp:Label>
                                <asp:Repeater ID="repBlock" runat="server">
                                    <ItemTemplate>
                                        <div class="kuai">
                                            <table class="table_simple_kuan" cellspacing="0" border="0">
                                                <tr>
                                                    <td colspan="2"><%# (int)Eval("LeStateID") == 0 ? "<span class ='weishangke'>未上课</span>": "<span class ='yishangke'>已上课</span>"%></td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 50px">时段：</td>
                                                    <td style="width: auto; font-weight: bold">
                                                        <%# string.Format("{0}-{1}", Eval("StartDate", "{0:HH:mm}"),EndDate(Eval("EndDate")))%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: auto">班级：</td>
                                                    <td style="width: auto">
                                                        <%# Eval("ClassName")%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: auto">班号：</td>
                                                    <td style="width: auto">
                                                        <%# Eval("ClassID")%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: auto">课题：</td>
                                                    <td style="width: auto"><%#Eval("Subject")%></td>
                                                </tr>
                                                <tr>
                                                    <td style="width: auto">课时：</td>
                                                    <td style="width: auto"><%#Eval("Lessons")%></td>
                                                </tr>
                                                <tr>
                                                    <td style="width: auto">类型：</td>
                                                    <td style="width: auto">
                                                        <asp:Label runat="server" ID="labLessonType" Text='<%#(int)Eval("LessonType") == 1 ? "正常" : "补课"%>'></asp:Label><asp:Label
                                                            runat="server" ID="labPlace" ForeColor="Red" Text='<%#(int)Eval("LessonType") == 0 ? (swq.Tools.GetInt(Eval("Place")) == 1 ? "(他)" : "(本)") : ""%>'
                                                            ToolTip='<%#(int)Eval("LessonType") == 0 ? (swq.Tools.GetInt(Eval("Place")) == 1 ? "(他)表示在他班补课" : "(本)表示在本班补课") : ""%>'></asp:Label></td>
                                                </tr>
                                                <tr>
                                                    <td style="width: auto">讲师：</td>
                                                    <td style="width: auto">
                                                        <%#Eval("TeacherName")%></td>
                                                </tr>
                                                <tr>
                                                    <td style="width: auto">助教：</td>
                                                    <td style="width: auto">
                                                        <%#Eval("AssistantName")%></td>
                                                </tr>
                                                <tr>
                                                    <td>教室：</td>
                                                    <td>
                                                        <%#Eval("ClassroomName") %>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>出勤：</td>
                                                    <td>实到:<%#Eval("FactCount")%>
                                    旷课:<%#Eval("TruancyCount")%>
                                    请假:<%#Eval("LeaveCount")%>
                                                    </td>
                                                </tr>
                                            </table>

                                            <div class="striking">
                                                <b>家庭作业：</b><%#Eval("Remark") %>
                                            </div>
                                            <div class="lab_button dianming">
                                                <asp:HyperLink runat="server" ID="hlkAttend" Text="点名" NavigateUrl='<%# string.Format("Attend.aspx?ClassID={0}&LessonDegreeID={1}&GetUrl={2}&topUrl={2}",Eval("ClassID"),Eval("LessonDegreeID"),swq.Web.PathAndQuery()) %>'></asp:HyperLink>

                                            </div>
                                        </div>

                                    </ItemTemplate>
                                </asp:Repeater>


                                <uc1:col_LessonDay ID="col_LessonDay1" runat="server" />
                            </td>
                        </tr>
                        <tr style="display: none">
                            <td>
                                <label class="lab_button_kuan">
                                    <asp:Button ID="btnShow" runat="server" OnClick="btnShow_Click" Text="今天" />
                                </label>
                                <label class="lab_button_kuan">
                                    <asp:Button ID="btnUp" runat="server" OnClick="btnUp_Click" Text="上一天" />
                                </label>
                                <label class="lab_button_kuan">
                                    <asp:Button ID="btnDown" runat="server" OnClick="btnDown_Click" Text="下一天" />
                                </label>
                            </td>
                        </tr>
                    </table>





                </div>

                <div class="backpanel">
                <label class="lab_button_kuan" id="__mt_labBack" runat="server">
                    <input causesvalidation="false" type="button" runat="server" onclick="back(this)" value="返回" />
                </label>
                    </div>

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