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

<!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/css.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="/css/popcalendar.js"></script>
    </head>
<body>
    <form id="fom" runat="server">
        <div id ="main-c-03-right" >
            <table cellpadding="0"; cellspacing ="0"; style =" width :100%;background-image: url('/css/images/right_top.png'); background-repeat :repeat-x" >
                <tr>
                  <td class  ="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	    任课教师安排
                      	</td>
                </tr>
            </table>
            <div id="main-c-03-right02-main">
                <!--栏目开始 -->
            <!--这里添加内容 -->   
               <div >  当前学期：<asp:Label ID="lbSemester" runat="server" ></asp:Label>
                  </div> 
                                        <table style ="width :100%;" ><tr><td style =" width :70px;">学科：
             </td>
             <td>   
                  <asp:RadioButtonList ID="rblCourse" runat="server" AutoPostBack="True" 
                      onselectedindexchanged="rblCourse_SelectedIndexChanged"  CellSpacing="10"
                      RepeatDirection="Horizontal" RepeatColumns="8"> 
                  </asp:RadioButtonList> </td></tr><tr><td style =" width :70px;">年级：</td>
             <td>   
                         <asp:RadioButtonList ID="rblGrade" runat="server" AutoPostBack="True" 
                      onselectedindexchanged="rblGrade_SelectedIndexChanged"  CellSpacing="10"
                      RepeatDirection="Horizontal" RepeatColumns="8">
                  </asp:RadioButtonList></td></tr></table> 
			<asp:GridView ID="GridView1" runat="server" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" 
                    onrowcreated="GridView1_RowCreated" 
                    onrowcancelingedit="GridView1_RowCancelingEdit" 
                    onrowediting="GridView1_RowEditing" onrowupdating="GridView1_RowUpdating" >
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
<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 BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
                <div>
            <asp:Button ID="btChecked" runat="server" Text="审核" onclick="btChecked_Click"  Visible ="false" />
        </div>
<!--栏目结束 -->
                </div>
            </div>
        </form>
    </body>
</html>
