<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ClassStudents.aspx.cs"
    Inherits="MTCUN.Mobile.Teacher.ClassStudents" Title="班级学员-老师" %>

<%@ Register Src="../../UserCol/Progress.ascx" TagName="Progress" TagPrefix="uc1" %>
<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../User_Col/col_ReportControl.ascx" TagName="ReportControl" TagPrefix="uc2" %>
<%@ Register Src="../User_Col/col_Header.ascx" TagName="col_Header" TagPrefix="uc3" %>
<%@ Register Src="../User_Col/col_ClassControlPanel.ascx" TagName="col_ClassControlPanel" TagPrefix="uc4" %>
<%@ Register Src="../../UserCol/ReportServer.ascx" TagName="ReportServer" TagPrefix="uc5" %>
<!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 runat="server">
    <title></title>
    <link id="mobileCss" runat="server" href="../themes/mobile.css" rel="stylesheet"
        type="text/css" />
    <script type="text/javascript">
        function __Control_Prints(id) {

            var KeyID = "";
            for (var i = 0; i < document.forms[0].elements.length; i++) {
                var e = document.forms[0].elements[i];
                if (e.type == "checkbox" && e.id == "id") {
                    if (e.checked) {
                        KeyID += "," + e.value;
                    }
                }
            }

            if (KeyID.length > 0) {
                KeyID = KeyID.substring(1, KeyID.length);
            }

            __Control_Print(id, KeyID);
        }

        function Checks(checkbox) {
            for (var i = 0; i < document.forms[0].elements.length; i++) {
                var e = document.forms[0].elements[i];
                if (e.type == "checkbox" && e.id == "id") {
                    e.checked = checkbox.checked;
                }
            }
        }

    </script>
    <script type="text/javascript">
        function Send() {
            var StuClassID = "";
            for (var i = 0; i < document.forms[0].elements.length; i++) {
                var e = document.forms[0].elements[i];
                if (e.type == "checkbox" && e.id == "id") {
                    if (e.checked) {
                        StuClassID += "," + e.value;
                    }
                }
            }

            if (StuClassID.length > 0) {
                StuClassID = StuClassID.substring(1, StuClassID.length);
                document.getElementById("StuClassID").value = StuClassID;
                document.formStudent.action = "../SMS/SendToStudent.aspx?app=true";
                document.formStudent.submit();
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">

        <uc3:col_Header ID="col_Header1" runat="server" />
        <uc5:ReportServer ID="ReportServer1" runat="server" />
        <div id="web_page_contents">

            <div class="biao_zhun_suo_jin">
                <uc4:col_ClassControlPanel ID="col_ClassControlPanel1" runat="server" />

                <div class=" striking">
                    <table cellpadding="0" cellspacing="2">
                        <tr>

                            <td class="orangebutton"><span class="inline_block">筛选：</span>
                                <span class="inline_block">
                                    <asp:DropDownList ID="ddlOrderMode" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlOrderMode_SelectedIndexChanged">
                                        <asp:ListItem Value="0">默认</asp:ListItem>
                                        <asp:ListItem Value="1">显示全部</asp:ListItem>
                                        <asp:ListItem Value="2">状态正常</asp:ListItem>
                                        <asp:ListItem Value="3">状态异常</asp:ListItem>
                                        <asp:ListItem Value="4">课时未完学员</asp:ListItem>
                                        <asp:ListItem Value="5">课时上完学员</asp:ListItem>
                                    </asp:DropDownList>
                                </span>
                            </td>
                        </tr>
                    </table>
                </div>

                <div class="main">
                    <asp:Repeater ID="repBlock" runat="server" OnItemCommand="repBlock_ItemCommand" OnItemDataBound="repBlock_ItemDataBound">
                        <ItemTemplate>
                            <div class="kuai">
                                <h1 class="auto_length_title">
                                    <span runat="server" id="spanBox">
                                        <input type="checkbox" id="id" value='<%#Eval("StuClassID")%>' /></span><%# ShowStudent(Eval("StudentName"), Eval("Byname"), Eval("Sex"), Eval("StudentType"), Eval("SignInID"), Eval("MobileTel"), Eval("SignInSMS"), Eval("FingerState"), Eval("FingerCode"), Eval("LastAppLoginTime"))%>
                                </h1>

                                <table class="table" cellspacing="0" border="0">
                                    <tr>
                                        <td style="width: auto">学号：</td>
                                        <td style="width: auto">
                                            <%# Eval("StudentID")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">选班状态：</td>
                                        <td style="width: auto"><%# Rs.Items.GetScState(Eval("ScStateID")) %></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">类型：</td>
                                        <td style="width: auto"><%#Rs.Items.GetStuClassType(Eval("ContinueReg"))%></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">选班日期：</td>
                                        <td style="width: auto"><%# Eval("DateAndTime") %></td>
                                    </tr>
                                    <tr>
                                        <td style="width: auto">课时进度：</td>
                                        <td style="width: auto">
                                            <uc1:Progress ID="Progress1" runat="server" QuantifiedType='<%#(QuantifiedType)Eval("QuantifiedType") %>' MaxNum='<%#Eval("Lessons") %>' MinNum='<%#Eval("CourseProgress") %>'
                                                StartDate='<%#Eval("DateAndTime") %>' ExpiryDate='<%#Eval("ExpiryDate") %>' Width="90%" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>总成绩：</td>
                                        <td><%#Eval("Score")%></td>
                                    </tr>
                                </table>



                                <table style="width: 100%;" cellpadding="0" cellspacing="2">
                                    <tr>


                                        <td>
                                            <div class="lab_button">
                                                <asp:HyperLink runat="server" ID="hlkOpinion" Text="评价" NavigateUrl='<%# string.Format("PostOpinion.aspx?StuClassID={0}&GetURL={1}",Eval("StuClassID"),swq.Web.PathAndQuery()) %>'></asp:HyperLink>
                                            </div>
                                        </td>
                                        <%--                                        <td>
                                            <div class="lab_button">
                                                <a href='../Affairs/StuReply.aspx?StudentID=<%#Eval("StudentID")%>&GetURL=<% = swq.Web.PathAndQuery() %>'><span style="color: red">
                                                    <%#Eval("ReCount")%>
                                                </span>次,回访</a>
                                            </div>
                                        </td>
                                        <td>
                                            <div class="lab_button">
                                                <asp:HyperLink ID="hlkControlPanel" runat="server" Text="控制面板" NavigateUrl='<%# string.Format("StudentShow.aspx?StudentID={0}&topURL={1}",Eval("StudentID"),swq.Web.PathAndQuery()) %>' />
                                            </div>
                                        </td>--%>
                                    </tr>
                                </table>



                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>

                <div class=" striking">
                    <table cellpadding="0" cellspacing="2">
                        <tr>
                            <td>
                                <input onclick="Checks(this)" type="checkbox">
                            </td>
                            <td>全选
                            </td>
                            <td></td>
                            <td class="orangebutton" onmouseover="__mt_NavMouseover(this,'orangebutton')" onmouseout="__mt_NavMouseout(this,'orangebutton')">
                                <asp:HyperLink ID="hlkSMS" runat="server" NavigateUrl='<%#string.Format("javascript:Send();void(0);") %>'
                                    Text="发消息" />
                            </td>
                            <td class="orangebutton" onmouseover="__mt_NavMouseover(this,'orangebutton')" onmouseout="__mt_NavMouseout(this,'orangebutton')">
                                <uc2:ReportControl ID="ReportControl1" runat="server" />
                            </td>
                        </tr>
                    </table>
                </div>

                <div class="pager_button">
                    <asp:Literal ID="litPagerButton" runat="server"></asp:Literal>
                </div>

                <div class="backpanel">
                    <label class="lab_button_kuan" id="__mt_labBack" runat="server">
                        <input id="Button1" causesvalidation="false" type="button" runat="server" onclick="back(this)"
                            value="返回" />
                    </label>
                </div>

            </div>
        </div>
    </form>
    <div class="printWeb">
        <iframe id="PrintWeb" width="0" height="0"></iframe>

        <!--短信Post传递参数代码S-->
        <form id="formStudent" name="formStudent" method="post">
            <input id="StuClassID" name="StuClassID" type="hidden" value="" />
        </form>
        <!--短信Post传递参数代码E-->
    </div>
</body>
</html>
