<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ClassList.aspx.cs" Inherits="RPWEB.Manage.ClassList" %>
<%@ 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>
</head>
<body>
<form id="form1" runat="server">







<%--<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 class="div_All">
        <div class="Body_Title">
            <a href=ClassList.aspx>班级管理</a></div>
            <div class="pageStyle">
                <input type="button" value="添加新班级" onclick='javascript:location.href="Class_Edit.aspx"'/><%=htm1%>
            </div>
            
            
        <asp:Repeater ID="Repeater1" runat="server" 
            onitemcommand="Repeater1_ItemCommand">
            
            
            
            <HeaderTemplate>
                <table cellpadding="3" cellspacing="1" class="Admin_Table">
                    <thead>
                        <tr class="Admin_Table_Title">
            <th>ID</th>
            <th>班级编号</th>
            <th>班级名称</th>
            <th>该班人数</th>
            <th><a href='Student_Excel_in.aspx'>导入学生</a></th>
            <th>班主任</th>
            <th>修改</th>
            <th>删除</th>
                        </tr>
                    </thead>
            </HeaderTemplate>
            
            
<%--        <HeaderTemplate><table class="Linetable">
        <tr>
            <th>ID</th>
            <th>班级编号</th>
            <th>班级名称</th>
            <th>该班人数</th>
            <th><a href='Student_Excel_in.aspx'>导入学生</a></th>
            <th>修改</th>
            <th>删除</th>
        </tr>
        </HeaderTemplate>--%>
        <ItemTemplate>
          <tr>
            <td><%#Eval("id") %></td>
            <td><%#Eval("ClassNUM")%></td>
            <td><a href='Class_Student.aspx?ClassNUM=<%#Eval("ClassNUM") %>'><%#Eval("ClassName")%></a> </td>
            <td><%#StudentCount(Eval("ClassNUM").ToString())%></td>
            
            <td><a href='Student_Excel_in.aspx'>导入学生</a></td>
            <td><%#TeacherUIDtoName(Eval("TeacherUID").ToString())%></td>
            <td><a href='Class_Edit.aspx?id=<%#Eval("id") %>'>修改</a> </td>
            <td>
                <asp:LinkButton ID="LinkButton1" OnClientClick=" return confirm('您确定要删除吗？')" CommandName="Delete" CommandArgument='<%#Eval("ClassNUM") %>' runat="server">删除</asp:LinkButton></td>
          </tr>
          </ItemTemplate>
        <FooterTemplate></table></FooterTemplate>      
        </asp:Repeater>
    </div>
    <div>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server"  CssClass="paginator" 
            onpagechanged="AspNetPager1_PageChanged" PageSize="20">
        </webdiyer:AspNetPager>
    </div>
</form>
</body>
</html>
