<%@ page language="C#" autoeventwireup="true" inherits="Repoort_LearnTimeLFRM, App_Web_jkqe9z1v" stylesheettheme="Themes" theme="Themes" %>

<%@ OutputCache Duration="300" VaryByParam="none" %>
<!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">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <title></title>

    <script src="../js/calendar.js" type="text/javascript"></script>

    <style>
        html
        {
            overflow-x: hidden;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="right_postion_bg">
        <span class="s_potion_font"><img src="../Images/homen.gif" class="pic_style" />  当前的位置：我的桌面 &gt; 学习积极性查看详细</span>
    </div>
    <div class="box">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td id="titlebg">
                <div id="title01">
                    <ul style="float: left; padding-left: 25px; ">
                        <li><a id="num1" href="javascript:checkdiv('1')" onfocus="this.blur()" style="background-image: url(../images/right04.gif)">
                            最近学习前50</a></li>
                        <li><a id="num2" href="javascript:checkdiv('2')" onfocus="this.blur()">总学习时间前50</a></li>
                    </ul>
                </div>
    <div align="right" style="background-color:White;">
        <asp:Button ID="brnAll" runat="server" Text="查看全部" OnClick="brnAll_Click" /></div>
            </td>
        </tr>
    </table>
    <div class="box_nob" id="div1">
        <asp:GridView ID="gvAchievement" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            OnRowDataBound="gvAchievement_RowDataBound">
            <PagerSettings Visible="False" />
            <Columns>
                <asp:TemplateField HeaderText="照片" HeaderStyle-CssClass="rowStyle">
                    <ItemTemplate>
                        <asp:Image ID="imgPhoto" runat="server" ImageUrl="" BorderColor="#cccccc" BorderStyle="Solid"
                            Height="121px" Width="95px" BorderWidth="3px" Style="padding: 1px;" onerror="this.src='../images/null.jpg'" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Userid" HeaderText="姓名" HeaderStyle-CssClass="rowStyle"></asp:BoundField>
                <asp:BoundField DataField="lasttime" HeaderText="最后学习时间" HeaderStyle-CssClass="rowStyle" />
            </Columns>
            <EmptyDataTemplate>
                <asp:Label ID="lblEmpty" runat="server" Text="没有符合条件的数据！"></asp:Label>
            </EmptyDataTemplate>
            <EmptyDataRowStyle Font-Size="XX-Large" Font-Bold="true" ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
    </div>
    <div class="box_nob" id="div2" style="display: none;">
        <asp:GridView ID="gvTotal" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            OnRowDataBound="gvTotal_RowDataBound">
            <PagerSettings Visible="False" />
            <Columns>
                <asp:TemplateField HeaderText="照片">
                    <ItemTemplate>
                        <asp:Image ID="imgPhoto" runat="server" ImageUrl="" BorderColor="#cccccc" BorderStyle="Solid"
                            Height="121px" Width="95px" BorderWidth="3px" Style="padding: 1px;" onerror="this.src='../images/null.jpg'" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="Userid" HeaderText="姓名"></asp:BoundField>
                <asp:BoundField DataField="totaltime" HeaderText="总学习时间(分钟)" />
            </Columns>
            <EmptyDataTemplate>
                <asp:Label ID="lblEmpty" runat="server" Text="没有符合条件的数据！"></asp:Label>
            </EmptyDataTemplate>
            <EmptyDataRowStyle Font-Size="XX-Large" Font-Bold="true" ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
    </div>
    </form>
</body>

<script type="text/javascript">
    function checkdiv(num) {
        if (num == "1") {
            document.getElementById("div1").style.display = "block";
            document.getElementById("div2").style.display = "none";


            document.getElementById("num1").style.backgroundImage = 'url(../images/right04.gif)';
            document.getElementById("num2").style.backgroundImage = '';


        } else if (num == "2") {
            document.getElementById("div1").style.display = "none";
            document.getElementById("div2").style.display = "block";


            document.getElementById("num1").style.backgroundImage = '';
            document.getElementById("num2").style.backgroundImage = 'url(../images/right04.gif)';

        }
    }
</script>

</html>
