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


<!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>
    <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 width="100" class="tablisttitle">
                                自动排课时间</td>
                            <td class="tabmanagertr">
                                <asp:DropDownList ID="drpSkyTID" runat="server"></asp:DropDownList>                            </td>
                        </tr>
                        
                        
                        <tr class="tablisttr">
                            <td width="100" class="tablisttitle">
                                课程查询模式</td>
                            <td class="tabmanagertr">
                                <asp:DropDownList ID="drpCourseMode" runat="server">
                                    <asp:ListItem Text="codeno" Value="CourseMode"></asp:ListItem>
                                </asp:DropDownList>                            </td>
                        </tr>
                        
                        
                        <tr class="tablisttr">
                            <td width="100" class="tablisttitle">
                                每周开课天数                            </td>
                            <td class="tabmanagertr">
                            <asp:DropDownList runat="server" ID="drpCourseWeek" ToolTip="每周开课天数" CssClass="-1"
                                    AutoPostBack="True" OnSelectedIndexChanged="drpCourseWeek_SelectedIndexChanged">                                </asp:DropDownList>                            </td>
                        </tr>
                        <tr class="tablisttr">
                          <td class="tablisttitle">每天开课节数 </td>
                          <td class="tabmanagertr"><asp:DropDownList runat="server" ID="drpCourseNumber" tooltip="每天开课节数" CssClass="-1"
                                    AutoPostBack="True" OnSelectedIndexChanged="drpCourseNumber_SelectedIndexChanged"> </asp:DropDownList></td>
                        </tr>
                        
                        <tr class="tablisttr">
                            <td class="tablisttitle">
                                全校无课时间                            </td>
                            <td >
                                <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">系统全局设置，设置自动排课的课时和全校都不排课的时间，请不要选择太多时间哦，否则课程无法排下的；<a href="/admin/autocourse/v2coursedatelimitlist.aspx">点击这里可以设置【全校事宜安排】</a>。
                          <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>
