<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Class_Student.aspx.cs" Inherits="RPWEB.Manage.Class_Student" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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>
    
    <script language="javascript" type="text/javascript">
    
    
    
window.onerror = function() { return true; }
$(function() {
var x = 10;
var y = 10;

    $("#BT1").click(function() {
        
            var checkValue = "";
            $("[name=CheckMes]:checkbox:checked").each(function() {
                if ($.trim($(this).val()).length > 0) {
                    checkValue += "," + $.trim($(this).val());
                }
            })
            if (checkValue.length == 0) {
                alert("你没有选择任何学生，请先选中要修改的学生！");
                return false;
            }
            else {
                $("#HSelectID").val(checkValue.substr(1));
            }
            return true;

    });  
})


window.onerror = function() { return true; }
$(function() {
var x = 10;
var y = 10;

    $("#BT2").click(function() {
        
            var checkValue = "";
            $("[name=CheckMes]:checkbox:checked").each(function() {
                if ($.trim($(this).val()).length > 0) {
                    checkValue += "," + $.trim($(this).val());
                }
            })
            if (checkValue.length == 0) {
                alert("你没有选择任何学生，请先选中要修改的学生！");
                return false;
            }
            else {
                $("#HSelectID").val(checkValue.substr(1));
            }
            return true;

    });  
})

window.onerror = function() { return true; }
$(function() {
var x = 10;
var y = 10;

    $("#BT3").click(function() {
        
            var checkValue = "";
            $("[name=CheckMes]:checkbox:checked").each(function() {
                if ($.trim($(this).val()).length > 0) {
                    checkValue += "," + $.trim($(this).val());
                }
            })
            if (checkValue.length == 0) {
                alert("你没有选择任何学生，请先选中要修改的学生！");
                return false;
            }
            else {
                $("#HSelectID").val(checkValue.substr(1));
            }
            return true;

    });  
})


 </script>   
    
</head>
<body>
    <form id="form1" runat="server">
    
        <div class="div_All">
        <div class="Body_Title">
            <a href=ClassList.aspx>班级管理</a> 》》<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>班学生</div>
            <div class="pageStyle">
                <input type="button" value="添加新学生" onclick='javascript:location.href="Student_Edit.aspx?ClassNUM=<%=ClassNUM %>"'/>
            </div>
            
            
    
    <div>
    
        
    
    </div>
    
<%--<link href="../css/UserPagesStyle.css" rel="stylesheet" type="text/css" />  --%>


<%--<style type="text/css">

.paginator { font: 11px Arial, Helvetica, sans-serif;padding:10px 20px 10px 0; margin: 0px;}

.paginator a {padding: 1px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none;margin-right:2px}

.paginator a:visited {padding: 1px 6px; border: solid 1px #ddd; background: #fff; text-decoration: none;}

.paginator .cpb {padding: 1px 6px;font-weight: bold; font-size: 13px;border:none}

.paginator a:hover {color: #fff; background: #ffa501;border-color:#ffa501;text-decoration: none;}


</style>--%>


    
<%--       <script src="../js/jquery-1.3.1-vsdoc-cn.js" type="text/javascript"></script>
        <script src="../js/JQtable.js" type="text/javascript"></script>
       <script type="text/javascript">
        $(document).ready(function() {
            TableInit();
        });
    </script>
     <div>--%>
        <asp:Repeater ID="Repeater1" runat="server" 
            onitemcommand="Repeater1_ItemCommand">
            
            
<%--        <HeaderTemplate><table class="Linetable">
        <tr>
            <th>班级编号</th>
            <th>学生姓名</th>
            <th>学号</th>
            <th>修改</th>
            <th>删除</th>
        </tr>
        </HeaderTemplate>--%>
            <HeaderTemplate>
                <table cellpadding="3" cellspacing="1" class="Admin_Table">
                    <thead>
                        <tr class="Admin_Table_Title">
            <th>学生姓名</th>
            <th>班级(编号)</th>
            <th>学号</th>
            <th>密码</th>
<th>状态</th>
            <th>成绩回顾</th>

            <th>操作</th>
                        </tr>
                    </thead>
            </HeaderTemplate>
                 
        
        <ItemTemplate>
          <tr>
            <td>
            <input type="checkbox" value='<%#Eval("ID") %>' name="CheckMes" />
            <a href=Student_Fensu_All.aspx?StudentNUM=<%#Eval("StudentNUM")%>><%#Eval("StudentName")%></a></td>
          
            <td><%#getClassName((Eval("ClassNUM")).ToString())%>(<%#Eval("ClassNUM")%>)</td>
            <td><%#Eval("StudentNUM")%></td>
            <td><%#Eval("PWD")%></td>
<td><%#Student_AttributeGetName(Convert.ToInt32(Eval("Student_Attribute_ID")))%></td>
            <td><a href=Student_Fensu_All.aspx?StudentNUM=<%#Eval("StudentNUM")%>>成绩回顾</a></td>

            <td>
<%--                <asp:LinkButton ID="LinkButton1" OnClientClick=" return confirm('您确定要删除吗？')" CommandName="Delete" CommandArgument='<%#Eval("id") %>' runat="server">删除</asp:LinkButton>
--%>                
                
                
                
                
                <a title="修改信息.." href='Student_Edit.aspx?id=<%#Eval("id") %>&ClassNUM=<%=ClassNUM %>'><img src="../Images/Edit.gif"/></a>&nbsp;&nbsp;
                    <asp:ImageButton ID="IBDelService" OnClientClick=" return confirm('您确定要删除吗？')" CommandName="Delete" CommandArgument='<%#Eval("ID") %>' runat="server" ImageUrl="~/Images/Delete.gif" ToolTip="删除该用户.."/>

                
                
                </td>
          </tr>
          </ItemTemplate>
        <FooterTemplate></table></FooterTemplate>      
        </asp:Repeater>
        
                <div class="BottomPage">


                    
                    <span >
                        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CustomInfoHTML="共[%RecordCount%]条，[%CurrentPageIndex%] / [%PageCount%]页"
                            FirstPageText="[ 首页 ]" LastPageText="[ 末页 ]" NextPageText="[ 下一页 ]" NumericButtonCount="15"
                            PageSize="60" PrevPageText="[ 上一页 ]" CustomInfoTextAlign="Left" ShowCustomInfoSection="Left"
                            Direction="LeftToRight" Width="100%" InvalidPageIndexErrorMessage="你确定你输入的是数字？！"
                            PageIndexOutOfRangeErrorMessage="没这么多页o(∩_∩)o 哈哈.." SubmitButtonText="转到" CssClass="pageStyle"
                            HorizontalAlign="Right" OnPageChanged="AspNetPager1_PageChanged" CustomInfoSectionWidth="20%">
                        </webdiyer:AspNetPager>
                    </span>
        </div>
        
        
        
        
                <div class="BottomPage">
<span >
                <input id="BtnAllSelect" type="button" value="全选" />&nbsp;<asp:Button ID="BtnAllDel"
                    runat="server" Text="删除" OnClick="BtnAllDel_Click" /></span> 
<asp:HiddenField ID="HSelectID" runat="server" Value="" />


调班：<asp:ListBox ID="ListBox1" runat="server" Rows="1"></asp:ListBox>
&nbsp;<asp:Button ID="BT1" runat="server" Text="调班" OnClick="BT1_Click" />

密码：<asp:TextBox ID="TextBox1" runat="server" Width=50>123</asp:TextBox>
&nbsp;&nbsp;<asp:Button ID="BT2" runat="server" Text="设置" OnClick="BT2_Click" />


修改：<asp:ListBox ID="ListBox2" runat="server" Rows="1"></asp:ListBox>
&nbsp;<asp:Button ID="BT3" runat="server" Text="设置" OnClick="BT3_Click" />      
        
        </div>
        
        
    </div>
    
<%--    <div>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server"  CssClass="paginator" 
            onpagechanged="AspNetPager1_PageChanged" PageSize="60">
        </webdiyer:AspNetPager>
    </div>--%>

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