<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="courseteacherlimitmanage.aspx.cs" Inherits="Us.Web.admin.autocourse.courseteacherlimitmanage" %>



<!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 id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>教师无课信息</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
    <%=ImportScriptStr %>
    <asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal><link href="../style/default/style.css" rel="stylesheet" type="text/css" />


   

    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            $("#TabCourse tr td").click(function() {
                var selectid = $(this).attr("id");
                var s1 = selectid.substring(0, 1);
                var s2 = selectid.substring(1, 2);
                if (s1 == "0" || s2 == "0") {

                }
                else {
                    var myclass = "tabmanagertrB";
                    if ($(this).attr("class") == myclass) {
                        $(this).removeClass("tabmanagertrB").addClass("tabmanagertrA");
                        $(this).html("");
                    }
                    else {
                        $(this).removeClass("tabmanagertrA").addClass("tabmanagertrB");
                        $(this).html("不排");
                    }
                    jsSelect();
                }
            });
        });

        function jsSelect() {
            var sID = "";
            $(".tabmanagertrB").each(function() {
                sID += $(this).attr("ID") + ",";
            });
            $("#txtDateString").val(sID);
        }

        function initjsSelect(IDList) {
            var sID = "#TD32,#TD13,#TD23,#TD15,#TD35,#TD56,#TD47,#TD18";
            sID = IDList;
            $(sID).removeClass("tabmanagertrA").addClass("tabmanagertrB");
            $(sID).html("不排");
        }
    </script>

</head>
<body onload="win_onLoad();">
    <form id="form1" runat="server">
    
    <div id="tbMain">
        <div class="divTbg">
            <div class="divTbgL">
            </div>
            <div class="divTbgInfo">
                <div class="divTbgTitle">
                    教师无课管理</div>
            </div>
        </div>
        <div class="divTbgF">
        </div>
        <div class="divTNavBG" id="topURL">
            <ul id="topURLul">
                <li class="divURLed" id="div1">
                    <div>
                        <img src="../style/default/images/mini_icons_046.gif" width="10" height="10" />
                        基本信息</div>
                </li>
            </ul>
        </div>
        <div id="mypanel">
            <div class="divInfoContext">
                <div class="divInfo">
                    <div class="divInfoblack">
                        <div class="divInfoTopList">
                            <div class="listLeft">
                                <div class="navtitle">
                                    教师无课信息</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="divInfo">
                    <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tablist" id="mainlist">
                        <tr class="tablisttr">
                            <td class="tablisttitle">
                                <span>
                                    <label for="drpSkyDID">
                                        无课院系</label></span>
                            </td>
                            <td class="tabmanagertr">
                                <span>
                                    <asp:DropDownList ID="drpSkyDID" runat="server" AutoPostBack="True" OnSelectedIndexChanged="drpSkyDID_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </span>
                            </td>
                            <td class="tablisttitle">
                                <label for="drpSkyCID">
                                    <span>无课教师</span></label>
                            </td>
                            <td class="tabmanagertr">
                                <span>
                                    <asp:DropDownList ID="drpUserID" runat="server">
                                        <asp:ListItem Text="-请选择-"></asp:ListItem>
                                    </asp:DropDownList>
                                </span>
                            </td>
                        </tr>
                        <tr class="tablisttr">
                            <td class="tablisttitle">
                                无课学期</td>
                            <td class="tabmanagertr">
                                <asp:DropDownList ID="drpSkyTID" runat="server" Enabled="false">
                                </asp:DropDownList>
                            </td>
                            <td class="tablisttitle">
                                &nbsp;无课说明
                            </td>
                            <td class="tabmanagertr">
                                <asp:TextBox ID="txtLInfo" runat="server" MaxLength="100" ToolTip="无课说明" CssClass="1"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="tablisttr">
                            <td class="tablisttitle">
                                全校无课时间
                            </td>
                            <td  colspan="3">
                               <div style="margin:5px;">
                                <div style="width: 100%;   overflow: auto;">
                                    <asp:Table ID="TabCourse" runat="server" CssClass="tablist" Width="100%" border="0"
                                        CellPadding="0" CellSpacing="1">
                                    </asp:Table>
                                </div></div>
                            </td>
                        </tr>
                        <tr class="tablisttr">
                            <td class="tablisttitle">
                                功能说明
                            </td>
                            <td class="tabmanagertr" colspan="3">
                                设置教师不排课时间，请不要选择太多时间哦，否则课程无法排下的；
                                <div style="display: none">
                                    <asp:TextBox ID="txtDateString" runat="server"></asp:TextBox></div>
                            </td>
                        </tr>
                    </table>
                    <div class="divSave">
                        <asp:Button ID="btnSubmit" runat="server" Text="保存(S)" CssClass="SkyButtonFocus"
                            OnClick="btnSubmit_Click" />
                        <asp:Button ID="btnExit" runat="server" Text="取消(C)" CssClass="SkyButtonFocus" OnClick="btnSubmit_Click" />
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div><asp:Literal ID="litJavaScript" runat="server"></asp:Literal>
    </form>
</body>
</html>
