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

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<%@ Register Src="../UserControls/WinMediaPlayer.ascx" TagName="WinMediaPlayer" TagPrefix="uc1" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style type="text/css">
        .hideC
        {
            display: none;
        }
    </style>
    <base target="_self">
    </base>

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

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

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

    <style>
        html
        {
            overflow-x: hidden;
        }
        #focusOn
        {
            width: 6px;
            height: 11px;
            margin-bottom: 0px;
        }
    </style>

    <script type="text/javascript">
        function onTop() {
            var focusOn = document.getElementById('focusOn');
            focusOn.focus();
            focusOn.style.display = 'none';
        }
        window.onload = onTop;
    </script>

</head>
<body>
    <form id="form1" runat="server" defaultbutton="btnSearch">
    <input id="focusOn" />
    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="tablestyle">
        <tr>
            <td align="center">
                <br>
                <table width="98%" border="0" cellspacing="0" cellpadding="0" class="tablebg">
                    <tr>
                        <td width="1%" align="left" valign="top">
                            <img src="../images/right01.gif" width="4" height="116" />
                        </td>
                        <td width="99%" align="center" valign="top">
                            <br />
                            <table width="98%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td align="left" class="textboldblack">
                                        <img src="../images/tubiao14.gif" width="14" height="14" />
                                        <asp:Label ID="lblHead" runat="server" Text="培训实施管理 > 培训过程监控 > 试卷复查" Font-Size="X-Small"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                            <br />
                            <div>
                                <asp:Panel ID="PanelShow" runat="server" align="left">
                                    <table class="table_1" width="100%" border="0" cellpadding="5" cellspacing="1">
                                        <tr>
                                            <td align="left">
                                                <uc1:WinMediaPlayer ID="WinMediaPlayer" runat="server" Height="50" Width="200" AutoRepeat="False"
                                                    AutoStart="False" ChangeDisplaySize="False" Visible="False" />
                                            </td>
                                        </tr>
                                        <tr class="search">
                                            <td align="left" width="80">
                                                课程名称：
                                            </td>
                                            <td align="left" width="100">
                                                <asp:DropDownList ID="ddlSubject" runat="server" Width="180" AppendDataBoundItems="True">
                                                    <asp:ListItem Value="0">请选择</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td align="left" width="50">
                                                部门：
                                            </td>
                                            <td align="left" width="150">
                                                <asp:DropDownList ID="ddlDepartment" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlDepartment_SelectedIndexChanged"
                                                    Width="100%">
                                                </asp:DropDownList>
                                            </td>
                                            <td align="left" width="50">
                                                姓名：
                                            </td>
                                            <td align="left" width="70">
                                                <asp:DropDownList ID="ddlName" runat="server" Width="100%">
                                                </asp:DropDownList>
                                            </td>
                                            <td align="left">
                                                <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查 询" />
                                                &nbsp;<asp:Button ID="btnReturn" runat="server" OnClick="btnReturn_Click" Text="返 回" />
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                            </div>
                            <div align="left">
                                <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
                            </div>
                            <div class="box">
                                <asp:GridView ID="gvShowWrongQuestion" AllowPaging="True" runat="server" AutoGenerateColumns="False"
                                    DataKeyNames="Themaid" OnRowDataBound="gvShowWrongQuestion_RowDataBound" OnRowCommand="gvShowWrongQuestion_RowCommand">
                                    <PagerSettings Visible="False" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="学员答题情况">
                                            <ItemTemplate>
                                                <div width="780px" align="left">
                                                    <asp:Label ID="lblNumber" runat="server" Font-Size="X-Small"></asp:Label>
                                                    <asp:Label ID="lblRightAnswer" runat="server" Text="本题正确答案：" ForeColor="Red"></asp:Label>
                                                    <asp:Label ID="lblRAnswer" runat="server"></asp:Label>
                                                    <asp:Label ID="lblUserAnswer" runat="server" Text="用户答案：" ForeColor="Red"></asp:Label>
                                                    <asp:Label ID="lblUAnswer" runat="server"></asp:Label>
                                                    <asp:Button ID="btnStudy" runat="server" Text="查看课程内容" ForeColor="Red" Visible="False" />
                                                </div>
                                                <div width="780px" align="left">
                                                    <asp:Label ID="lblTitle" runat="server" Width="780px" Font-Size="X-Small"></asp:Label>
                                                </div>
                                                <div width="780px" align="left">
                                                    <asp:Label ID="lblA" runat="server" Width="5%" Font-Size="X-Small" Text="A."></asp:Label>
                                                    <asp:Label ID="lblAnswerA" runat="server" Width="90%" Font-Size="X-Small"></asp:Label>
                                                    <asp:Image ID="imgA" runat="server" Height="120" Visible="False" Width="240" />
                                                    <asp:Button ID="btnA" runat="server" Text="播放" Visible="False" CommandName="a" />
                                                </div>
                                                <div width="780px" align="left">
                                                    <asp:Label ID="lblB" runat="server" Width="5%" Font-Size="X-Small" Text="B."></asp:Label>
                                                    <asp:Label ID="lblAnswerB" runat="server" Width="90%" Font-Size="X-Small"></asp:Label>
                                                    <asp:Image ID="imgB" runat="server" Height="120" Visible="False" Width="240" />
                                                    <asp:Button ID="btnB" runat="server" Text="播放" Visible="False" CommandName="b" />
                                                </div>
                                                <div width="780px" align="left">
                                                    <asp:Label ID="lblC" runat="server" Width="5%" Visible="False" Font-Size="X-Small" Text="C."></asp:Label>
                                                    <asp:Label ID="lblAnswerC" runat="server" Width="90%" Visible="False" Font-Size="X-Small"></asp:Label>
                                                    <asp:Image ID="imgC" runat="server" Height="120" Visible="False" Width="240" />
                                                    <asp:Button ID="btnC" runat="server" Text="播放" Visible="False" CommandName="c" />
                                                </div>
                                                <div width="780px" align="left">
                                                    <asp:Label ID="lblD" runat="server" Width="5%" Visible="False" Font-Size="X-Small" Text="D."></asp:Label>
                                                    <asp:Label ID="lblAnswerD" runat="server" Width="90%" Visible="False" Font-Size="X-Small"></asp:Label>
                                                    <asp:Image ID="imgD" runat="server" Height="120" Visible="False" Width="240" />
                                                    <asp:Button ID="btnD" runat="server" Text="播放" Visible="False" CommandName="d" />
                                                </div>
                                                <div width="780px" align="left">
                                                    <asp:Label ID="lblE" runat="server" Width="5%" Visible="False" Font-Size="X-Small"
                                                        Text="E."></asp:Label>
                                                    <asp:Label ID="lblAnswerE" runat="server" Width="90%" Visible="False" Font-Size="X-Small"></asp:Label>
                                                    <asp:Image ID="imgE" runat="server" Height="120" Visible="False" Width="240" />
                                                    <asp:Button ID="btnE" runat="server" Text="播放" Visible="False" CommandName="e" />
                                                </div>
                                                <div width="780px" align="left">
                                                    <asp:Label ID="lblF" runat="server" Width="5%" Visible="False" Font-Size="X-Small"
                                                        Text="F."></asp:Label>
                                                    <asp:Label ID="lblAnswerF" runat="server" Width="90%" Visible="False" Font-Size="X-Small"></asp:Label>
                                                    <asp:Image ID="imgF" runat="server" Height="120" Visible="False" Width="240" />
                                                    <asp:Button ID="btnF" runat="server" Text="播放" Visible="False" CommandName="f" />
                                                </div>
                                                <div width="780px" align="left">
                                                    <asp:Label ID="lblG" runat="server" Width="5%" Visible="False" Font-Size="X-Small"
                                                        Text="G."></asp:Label>
                                                    <asp:Label ID="lblAnswerG" runat="server" Width="90%" Visible="False" Font-Size="X-Small"></asp:Label>
                                                    <asp:Image ID="imgG" runat="server" Height="120" Visible="False" Width="240" />
                                                    <asp:Button ID="btnG" runat="server" Text="播放" Visible="False" CommandName="g" />
                                                </div>
                                                <div width="780px" align="left">
                                                    <asp:Label ID="lblH" runat="server" Width="5%" Visible="False" Font-Size="X-Small"
                                                        Text="H."></asp:Label>
                                                    <asp:Label ID="lblAnswerH" runat="server" Width="90%" Visible="False" Font-Size="X-Small"></asp:Label>
                                                    <asp:Image ID="imgH" runat="server" Height="120" Visible="False" Width="240" />
                                                    <asp:Button ID="btnH" runat="server" Text="播放" Visible="False" CommandName="h" />
                                                </div>
                                            </ItemTemplate>
                                            <HeaderStyle ForeColor="Red" HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="question" HeaderText="问题" />
                                        <asp:BoundField DataField="Type" HeaderText="类型" />
                                        <asp:BoundField DataField="UserAnswer" HeaderText="用户答案" />
                                        <asp:BoundField DataField="answer" HeaderText="正确答案" />
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <asp:Label ID="lblEmpty" runat="server" Text="没有符合条件的数据！"></asp:Label>
                                    </EmptyDataTemplate>
                                    <EmptyDataRowStyle Font-Bold="true" ForeColor="Red" HorizontalAlign="Center" Font-Size="X-Large" />
                                </asp:GridView>
                            </div>
                            <div class="box">
                               <cc1:AspNetPager ID="myAspNetPager" runat="server" AlwaysShow="True" CssClass="cut_pager" PageSize="10"
                                FirstPageText="首页&nbsp;&nbsp;" HorizontalAlign="Right" InputBoxStyle="width:20px;" 
                                LastPageText="尾页" NextPageText="&nbsp;&nbsp;下一页&nbsp;&nbsp;" NumericButtonTextFormatString="  {0}"
                                OnPageChanging="AspNetPager1_PageChanging" PrevPageText="上一页"  ShowCustomInfoSection="Left" CustomInfoTextAlign="Left"
                                ShowInputBox="Always">
                            </cc1:AspNetPager>
                            </div>
                        </td>
                        <td width="0%" align="right" valign="top">
                            <img src="../images/right02.gif" width="4" height="134" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>

<script type="text/javascript" language="javascript">
    window.scrollTo(0, 0);
    function LockCourse(ID) {
        window.showModalDialog("../Learn/Courseadjunct.aspx?from=exam&id=" + ID, "", "status=no;dialogWidth=1000px;dialogHeight=560px;menu=no;resizeable=yes;scroll=yes;center=yes;edge=raise")
    }
    function CheckSelect() {
        var count = 0;
        for (var i = 0; i < document.getElementsByTagName("*").length; i++) {
            var e = document.getElementsByTagName("*")[i];
            try {
                if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel") {
                    if (e.checked == true) {
                        count++;
                    }
                }
            }
            catch (exception) {
            }
        }
        if (count > 1) {
            alert("只能选取一个用户！");
            return false;
        }
        else {
            return true;
        }
    }
    function CheckAll() {
        var cked = false;
        cked = document.getElementById("chkSelAll").checked;
        for (var i = 0; i < document.getElementsByTagName("*").length; i++) {
            var e = document.getElementsByTagName("*")[i];
            try {
                if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel") {
                    e.checked = cked;
                }
            }
            catch (exception) {
            }
        }
    }     
</script>

</html>
