<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="m_st_teacherset.aspx.cs" Inherits="Web.sy.show.m_st_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">
                <!--栏目开始 -->
            <!--这里添加内容 -->   
                    <table style ="width :100%" ><tr><td style =" text-align :left ">
               <div style =" height :30px">  当前学期：<asp:Label ID="lbSemester" runat="server" ></asp:Label>
                  </div></td>
        <td style =" text-align :right "> <asp:Button ID="btChecked" runat="server" Text="审核" onclick="btChecked_Click"  Visible ="false" /></td></tr></table>
                           <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"> 
                  </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>
                         </ItemTemplate>
                         <EditItemTemplate>
                             <asp:Label ID="Label1" runat="server" Text='<%# Eval("grade") %>'></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:TextBox ID="tbName" runat="server"></asp:TextBox>  
  （例：民乐社团）&nbsp;<asp:Button ID="btAdd" runat="server" Text="添加" onclick="btAdd_Click" 
                  ValidationGroup="add" />  
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" 
                runat="server" ControlToValidate="tbName" Display="Dynamic" 
                ErrorMessage="请填入社团名称。" ForeColor="Red" ValidationGroup="add"></asp:RequiredFieldValidator>
  </div>
             
<!--栏目结束 -->
                </div>
            </div>
        </form>
    </body>
</html>
