<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Admin_Course_KS_CosDetail" Codebehind="KS.CosLearnRecordDetail.aspx.cs" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
       <div class="content-area">
        <asp:Repeater ID="RptList" runat="server">
            <HeaderTemplate>
                <table width="99%" class="CTable" border="0" cellpadding="1" cellspacing="1">
                    <tr class="CTitle">
                        <td align="center"><b>序号</b></td>
                        <td align="center"><b>课时名</b></td>
                        <td align="center"><b>上次学习时间</b></td>
                        <td align="center"><b>IP地址</b></td>
                        <td align="center"><b>学习终端</b></td>
                        <td align="center"><b>课时时长</b></td>
                        <td align="center"><b>已学习时长</b></td>
                        <td align="center"><b>完成率</b></td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr onmouseover="this.className='CtrMouseOver'" onmouseout="this.className='CtrMouseOut'">
                     <td class="Ctd" style="text-align: center"><%# Eval("CourseID") %></td>
                    <td class="Ctd" style="text-align: center"><%# GetPName(Eval("PeriodID").ToString()) %></td>
                    <td class="Ctd" style="text-align: center"><%# Eval("LastDate").ToString() %></td>
                    <td class="Ctd" style="text-align: center"><%# Eval("LastLearnIP").ToString() %></td>
                    <td class="Ctd" style="text-align: center"><%# Utils.OrderDeviceName(Utils.StrToInt(Eval("LastLearnDevice").ToString())) %></td>
                  <td class="Ctd" style="text-align: center"><%# Utils.FormatSecondToTime(Utils.StrToInt(Eval("TimeCount").ToString()))%></td>
                 <td class="Ctd" style="text-align: center"><%# Utils.FormatSecondToTime(Utils.StrToInt(Eval("MaxLearnCount").ToString()))%></td>
                 <td class="Ctd" style="text-align: center"><%# CalPercent(Kesion.Publics.Utils.StrToInt(Eval("PeriodID").ToString()))%></td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <tr class="tdbg emptycss" style="display: <%# bool.Parse((RptList.Items.Count==0).ToString())?"":"none"%>">
                    <td class="Ctd" style="text-align: center" colspan="12"></td>
                </tr>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</asp:Content>

