<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login_course.aspx.cs" Inherits="Web.sy.admin.login_course" %>

<!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">
    <title>OA标题页</title>
<link href="/css/admincss/skin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/css/popcalendar.js"></script>
</head>
<body>
    <form id="form1" runat="server" >
<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
        <td   class ="top_bg_left "></td>
    <td  class ="top_bg_center " >
    <table style ="width :100%; height :31px"  border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
<!--这里写页标题 -->
        <td style ="height :31px"><div class="titlebt">学科设置</div></td>
      </tr>
    </table>
    </td> 
    <td class ="top_bg_right "></td>
  </tr>
  <tr>
    <td style ="background :url(../../css/admincss/images/mail_leftbg.gif); vertical-align :middle " >&nbsp;</td>
    <td style ="background-color :#F7F8F9; vertical-align :top " >
        <asp:Panel ID="plZong" runat="server">
    
   <!--  一组内容模块开始   --> 
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td  style =" height :40px">
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  
                添加学科</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>
 当前学期：<asp:Label ID="lbSemester" runat="server" ></asp:Label>
<div>
<asp:GridView ID="GridView2" runat="server" Width="100%" CssClass="gv" 
            cellspacing="1" BorderWidth="1px" 
                AutoGenerateColumns="False" onrowcreated="GridView2_RowCreated" 
        onrowdeleting="GridView2_RowDeleting" 
        onselectedindexchanging="GridView2_SelectedIndexChanging" OnRowDataBound="GridView2_RowDataBound" >
            <RowStyle  CssClass="gvrow" BorderWidth="1px" />
                <Columns>
                  <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" />
                    <asp:BoundField DataField="coursename" HeaderText="学科" ReadOnly="True" />
                    <asp:BoundField DataField="categories" HeaderText="类别" ReadOnly="True" />
                    <asp:BoundField DataField="grade" HeaderText="开设年级" ReadOnly="True" />
                    <asp:BoundField DataField="managerid" HeaderText="学科管理人编号" ReadOnly="True" />
                    <asp:BoundField DataField="managername" HeaderText="学科管理人姓名" ReadOnly="True" />
                    <asp:BoundField DataField="labname" HeaderText="可用教室" ReadOnly="True" />
                    <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                    <asp:ButtonField CommandName="Select" HeaderText="修改" ShowHeader="True" 
                        Text="修改" />
                </Columns>
            <HeaderStyle  CssClass="gvhead"  />
        </asp:GridView>
        <table >
        <tr style =" height :30px;">
        <td >   学科：      
            <asp:DropDownList ID="ddlCourse" runat="server">
            </asp:DropDownList>
            </td><td >开设年级 ： </td>
        <td><asp:CheckBoxList ID="cblGrade" runat="server" RepeatDirection="Horizontal">
    </asp:CheckBoxList></td>
       
        <td>        <asp:Button ID="btCoursegrade" runat="server" Text="添加" 
                        onclick="btCoursegrade_Click" /></td>
        </tr>
        </table>
  <div style ="width :100% ; text-align :right ;">   <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl ="login_course_add.aspx">添加学科</asp:HyperLink></div>
                    </div>
        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->

   <!--  一组内容模块开始   --> 
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td style ="height :40px" >
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  
                任课教师安排</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>
               <div style =" height :30px"> 
                  <asp:Button ID="Button2" runat="server" Text="生成本学期教师安排表" 
                      onclick="Button2_Click" /></div> 
               <div style =" height :30px">
                  <asp:RadioButtonList ID="rblCourse" runat="server" AutoPostBack="True" 
                      onselectedindexchanged="rblCourse_SelectedIndexChanged"  CellSpacing="10"
                      RepeatDirection="Horizontal"> 
                  </asp:RadioButtonList> </div> 
               <div style =" height :30px">
                                    <asp:RadioButtonList ID="rblGrade" runat="server" AutoPostBack="True" 
                      onselectedindexchanged="rblGrade_SelectedIndexChanged"  CellSpacing="10"
                      RepeatDirection="Horizontal">
                  </asp:RadioButtonList>
                  <br />      
                    </div>

<asp:GridView ID="GridView3" runat="server" Width="100%" CssClass="gv" 
            cellspacing="1" BorderWidth="1px" 
                AutoGenerateColumns="False" onrowcancelingedit="GridView3_RowCancelingEdit" 
                   onrowediting="GridView3_RowEditing" onrowupdating="GridView3_RowUpdating" 
                   onrowcreated="GridView3_RowCreated" >
            <RowStyle  CssClass="gvrow" BorderWidth="1px" />
                <Columns>
                     <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" />
                     <asp:TemplateField HeaderText="年级">
                         <ItemTemplate>
                             <asp:Label ID="Label1" runat="server" Text='<%# Bind("grade") %>'></asp:Label>（
                             <asp:Label ID="Label2" runat="server" Text='<%# Bind("class") %>'></asp:Label>）班
                         </ItemTemplate>
                         <EditItemTemplate>
                             <asp:Label ID="Label1" runat="server" Text='<%# Eval("grade") %>'></asp:Label>
                             <asp:Label ID="Label2" runat="server" Text='<%# Bind("class") %>'></asp:Label>
                         </EditItemTemplate>
                     </asp:TemplateField>
                                        <asp:TemplateField HeaderText="任课教师">
                                            <ItemTemplate>
                                                <asp:Label ID="lbviewTeacher" runat="server" Text='<%# Bind("teachername") %>'></asp:Label>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("teachername") %>'></asp:Label><asp:TextBox
                                                    ID="tbEditTeachd" runat="server"  Text='<%# Eval("teacherid") %>'></asp:TextBox>
                                            </EditItemTemplate>
                     </asp:TemplateField>
                             <asp:BoundField DataField="checked" HeaderText="审核状态" ReadOnly="True" />
                     <asp:CommandField EditText="修改" HeaderText="修改" ShowEditButton="True" />
                </Columns>
            <HeaderStyle  CssClass="gvhead"  />
        </asp:GridView>
        <div>
            <asp:Button ID="btChecked" runat="server" Text="审核" onclick="btChecked_Click"  Visible ="false" />
        </div>
        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->

    </asp:Panel>
       <asp:Panel ID="plEditCourse" runat="server" Visible ="false" >
       <table >
       <tr>
       <td style =" height :30px;"> 学科：</td>
       <td>    <asp:Label ID="lbEditCourse" runat="server"></asp:Label>       <asp:Label ID="lbEditId" runat="server" Visible ="false"  ></asp:Label></td>
       </tr>
           <tr>
               <td style=" height :30px;">
                   开设年级：</td>
               <td>
                   <asp:CheckBoxList ID="cblEditGrade" runat="server" RepeatDirection="Horizontal">
                   </asp:CheckBoxList>
               </td>
           </tr>
       <tr>
       <td  style =" height :30px;">学科管理人：</td>
       <td>  <asp:TextBox ID="tbEditTeacher" runat="server"></asp:TextBox></td>
       </tr>
       <tr>
       <td  style =" height :30px;">可用教室：</td>
       <td>     <asp:CheckBoxList ID="cblEditLab" runat="server" 
               RepeatDirection="Horizontal" RepeatColumns="8">
           </asp:CheckBoxList></td>
       </tr>
       <tr>
       <td  style =" height :30px;"></td>
      <td><asp:Button ID="btEDit" runat="server" Text="提交" onclick="btEDit_Click" /></td> </tr>
       </table>
       </asp:Panel> 
    </td>
    <td  style =" background-image:url(/css/admincss/images/mail_rightbg.gif )" >
    </td>
  </tr>
  <tr>
<td  class ="buttom_bg_left "></td>
  <td   class ="buttom_bg_center " ></td>
    <td  class ="buttom_bg_right " ></td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>