<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExameClassStudentAdd.aspx.cs" Inherits="RPWEB.Manage.ExameClassStudentAdd" %>

<!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></title>
    <link href="../Web_CSS/WebCss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../JS/Jquery.js"></script>
    <script type="text/javascript" src="../JS/ManageWeb.js"></script>
</head>
<body>
    <form id="form1" runat="server">
       <div class="div_All">
        <div class="Body_Title">
            <a href=exame_manage.aspx>考试管理</a> >><a href=Exame_Edit.aspx?id=<%=exam_id %>><%=getExameName(exam_id)%></a>>>编辑<%=GetClassNameByEIDClassNUM(exam_id,ClassNUM)%>的学生</div>
            

            
           
        <asp:Repeater ID="Repeater1" runat="server" 
            onitemcommand="Repeater1_ItemCommand">
            <HeaderTemplate>
                <table cellpadding="3" cellspacing="1" class="Admin_Table2">
                    <thead>
                        <tr class="Admin_Table_Title">
                            <th style="width: 10%;">
                                 班级ID
                            </th>
                            
                            <th style="width: 10%;">
                                 班级名称
                            </th> 
                            <th style="width: 10%;">
                                 考试人数
                            </th> 
                                                        
                            <th style="width: 10%;">
                                 原有人数
                            </th> 
                                                        
                            <th style="width: 10%;">
                                 班主任
                            </th>                                                        
                            <th style="width: 20%;">
                               操作
                            </th>
                        </tr>
                    </thead>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>

                    <td>
                        <%#Eval("ClassNUM")%>
                    </td>
                   <td>
                   <%#ClassNUMFont(Eval("ClassNUM").ToString(), Eval("ClassName").ToString())%>
                    </td>  
                    <td>
                        <%#Eval("Student_Sum")%>
                    </td>
                   <td>
<%#StudentCount(Eval("ClassNUM").ToString())%>
                    </td>  
                    
                  <td>
<%#Eval("TeacherUID")%>（<%#Eval("TeacherName")%>）
                    </td>                                          
                                      
                <td>
                <a title="修改信息.." href='ExameClassStudentAdd.aspx?exam_id=<%#Eval("exam_id") %>&ClassNUM=<%#Eval("ClassNUM") %>'><%--<img src="../Images/Edit.gif"/>--%>添加删除该班学生 </a>&nbsp;&nbsp;
                    <%--<asp:ImageButton ID="IBDel" CommandName="Del" CommandArgument='<%#Eval("exam_id")+","+Eval("ClassNUM") %>' runat="server" ImageUrl="../Images/Delete.gif"/>--%>
                    <asp:LinkButton ID="IBDel" OnClientClick=" return confirm('您确定要删除吗？')" CommandName="Del" CommandArgument='<%#Eval("exam_id")+","+Eval("ClassNUM") %>' runat="server">删除该班</asp:LinkButton>

                    </td></tr>
            </ItemTemplate>
            <FooterTemplate>
                </table></FooterTemplate>
        </asp:Repeater>
            








            <div class="pageStyle">
                该班不参考此次考试的学生
            </div>

            <asp:Repeater ID="Repeater3" runat="server" 
            onitemcommand="Repeater3_ItemCommand">
            <HeaderTemplate>
                <table cellpadding="3" cellspacing="1" class="Admin_Table2" >
                    <thead>
                        <tr class="Admin_Table_Title">

                            
                            <th >
                                 学生姓名
                            </th> 
                            <th >
                                 学生学号
                            </th> 
                                                        
                            <th >
                                 学籍状态
                            </th> 
                                                        
                                                       
                            <th>
                               添加
                            </th>
                        </tr>
                    </thead>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>


                   <td>
                   
                        <%#Eval("StudentName")%>
                   
                    </td>  
                    <td>
                        <%#Eval("StudentNUM")%>
                    </td>

                                        <td>
                        <%#Student_AttributeGetName(Eval("StudentNUM").ToString())%>
                    </td>  

                                      
                <td>
                
                    <asp:ImageButton ID="Add" CommandName="Add" CommandArgument='<%#Eval("StudentNUM")%>' runat="server" ImageUrl="../Images/1.gif"/>
                    </td>                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table></FooterTemplate>
        </asp:Repeater>
        
        <asp:HiddenField ID="ClassNUM1" runat="server" Value="" />
                <asp:HiddenField ID="exam_id1" runat="server" Value="" />







  
            <asp:Repeater ID="Repeater2" runat="server" 
            onitemcommand="Repeater1_ItemCommand">
            <HeaderTemplate>
                <table cellpadding="3" cellspacing="1" class="Admin_Table2">
                    <thead>
                        <tr class="Admin_Table_Title">
                            <th >
                                 所在班级
                            </th>
                            
                            <th >
                                 学生姓名
                            </th> 
                            <th >
                                 学生学号
                            </th> 
                                                        
                            <th >
                                 学生考号
                            </th> 
                            
                            
                            <th >
                                 学籍状态
                            </th>                                             
                                                       
                            <th>
                               操作
                            </th>
                        </tr>
                    </thead>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>

                    <td>
                   <%#Eval("ClassNUM")%>
                   （<%#GetClassNameByEIDClassNUM(Convert.ToInt32(Eval("exam_id").ToString()), Eval("ClassNUM").ToString())%>）
                    </td>
                   <td>
                   
                        <%#Eval("StudentName")%>
                   
                    </td>  
                    <td>
                        <%#Eval("StudentNUM")%>
                    </td>
                   <td>
 <%#Eval("ExameNUM")%>
                    </td>  
                    
                    
                    <td>
                        <%#Student_AttributeGetName(Eval("StudentNUM").ToString())%>
                    </td>                    
                    
                    

                                      
                <td>
                    <asp:ImageButton ID="IBDel" CommandName="Del" CommandArgument='<%# Eval("ID")+","+Eval("exam_id")+","+Eval("ClassNUM")+","+Eval("StudentNUM")  %>' runat="server" ImageUrl="../Images/Delete.gif"/>
                    
                    </td>                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table></FooterTemplate>
        </asp:Repeater>
        
        




    
    </div>
    </form>
</body>
</html>
