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



<!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" />
    <asp:Literal ID="litregscript" runat="server" Text=""></asp:Literal>
    <link href="../style/default/style.css" rel="stylesheet" type="text/css" />
<%=ImportScriptStr %>
<link href="res/style.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="/admin/js/System.js" type="text/javascript"></script>

   

    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
        $(".schoolcourseDate,.schoolcourseDateB").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 = "schoolcourseDateB";
                    if ($(this).attr("class") == myclass) {
                        $(this).removeClass("schoolcourseDateB").addClass("schoolcourseDate");
                       // $(this).html("");
                    }
                    else {
                        $(this).removeClass("schoolcourseDate").addClass("schoolcourseDateB");
                        //$(this).html("占用");
                    }
                    jsSelect();
                }
            });
        });

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

        function initjsSelect(IDList) {
            var sID = "#TD32,#TD13,#TD23,#TD15,#TD35,#TD56,#TD47,#TD18";
            sID = IDList;
            $(sID).removeClass("schoolcourseDate").addClass("schoolcourseDateB");
            //$(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">
                                占用学期
                            </td>
                            <td class="tabmanagertr">
                                <asp:DropDownList ID="drpSkyTID" runat="server" Enabled="false">
                                </asp:DropDownList>
                            </td>
                            <td class="tablisttitle">
                                &nbsp;</td>
                            <td class="tabmanagertr">
                                &nbsp;</td>
                        </tr>
                        <tr class="tablisttr">
                            <td class="tablisttitle">
                                占用名称</td>
                            <td class="tabmanagertr">
                                <asp:TextBox ID="txtLTitle" runat="server" MaxLength="50" ToolTip="占用名称" CssClass=""></asp:TextBox>
                            </td>
                            <td class="tablisttitle">
                                占用说明
                            </td>
                            <td class="tabmanagertr">
                                <asp:TextBox ID="txtLInfo" runat="server" MaxLength="50" ToolTip="占用说明"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="tablisttr">
                            <td class="tablisttitle">
                                占用备注</td>
                            <td class="tabmanagertr">
                                <asp:TextBox ID="txtLNote" runat="server" MaxLength="4000" ToolTip="占用备注"></asp:TextBox></td>
                            <td class="tablisttitle">
                                &nbsp;</td>
                            <td class="tabmanagertr">
                                &nbsp;</td>
                        </tr>
                        <tr class="tablisttr">
                            <td class="tablisttitle">
                                全校无课时间
                            </td>
                            <td class="tabmanagertr" colspan="3">
                                <div style="width: 100%; height: 450px; overflow: auto;">
                                    <asp:Table ID="TabCourse" runat="server" CssClass="table" Width="100%"
                                        CellPadding="0" CellSpacing="1">
                                    </asp:Table>
                                </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"  Width="100%"></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>
