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

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<%@ Register Src="../UserControls/WinMediaPlayer.ascx" TagName="WinMediaPlayer" TagPrefix="uc1" %>
<!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" />
    <title></title>

    <script src="../js/artDialog3/artDialog.min.js"></script>

    <script>        (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>

    <style type="text/css">
        .hideC
        {
            display: none;
        }
    </style>
    <base target="_self"></base>

    <script language="javascript" type="text/javascript" src="../datepicker/WdatePicker.js"></script>

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

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

    <style>
        html
        {
            overflow-x: hidden;
        }
        .style1
        {
            width: 92px;
        }
        .style2
        {
            width: 110px;
            height: 40px;
        }
        .style3
        {
            width: 150px;
            height: 40px;
        }
        .style5
        {
            width: 92px;
            height: 35px;
        }
        .style6
        {
            width: 150px;
            height: 35px;
        }
        .style7
        {
            width: 110px;
            height: 35px;
        }
        .style8
        {
            width: 171px;
            height: 35px;
        }
        .style9
        {
            height: 35px;
        }
        .style11
        {
            height: 40px;
        }
    </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 cellpadding="0" cellspacing="0" class="table_box">
        <tr>
            <td class="right_bg">
                <span class="right_title">
                    <img src="../Images/homen.gif" class="img_style" />
                    您的当前位置：试题和考试管理 &gt; 考试复查</span>
            </td>
        </tr>
        <tr>
            <td id="tableSearch" runat="server" class="r_top_box">
                <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                    <%--  <asp:Panel ID="PanelShow" runat="server" align="left">--%>
                    <tr>
                        <td align="left" class="style1">
                            <uc1:WinMediaPlayer ID="WinMediaPlayer" runat="server" Height="50" Width="200" AutoRepeat="False"
                                AutoStart="False" ChangeDisplaySize="False" Visible="False" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            考试类型：
                        </td>
                        <td align="left" class="style3">
                            <asp:DropDownList ID="ddlExamType" runat="server" AppendDataBoundItems="True" Width="150"
                                AutoPostBack="True" OnSelectedIndexChanged="ddlExamType_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:DropDownList>
                        </td>
                        <td align="right" class="style2">
                            考试名称：
                        </td>
                        <td align="left" width="150">
                            <asp:DropDownList ID="ddlSubject" runat="server" AppendDataBoundItems="True" Width="150">
                                <asp:ListItem Value="0">请选择</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td align="right" width="80">
                            &nbsp;
                        </td>
                        <td align="left" class="style11">
                            <input id="txtStartTime" name="txtStartTime" visible="False" style="width: 100px;"
                                class="Wdate" runat="server" type="text" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="style5">
                            &nbsp;部门：
                        </td>
                        <td align="left" class="style6">
                            <asp:DropDownList ID="ddlDepartment" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlDepartment_SelectedIndexChanged"
                                Width="100%">
                            </asp:DropDownList>
                        </td>
                        <td align="right" class="style7">
                            &nbsp;姓名：
                        </td>
                        <td align="left" class="style8">
                            <asp:DropDownList ID="ddlName" runat="server" Width="150">
                            </asp:DropDownList>
                        </td>
                        <td align="right" class="style9">
                        </td>
                        <td align="left" class="style9">
                            <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查 询" />
                            <asp:Button ID="btnReturn" runat="server" OnClick="btnReturn_Click" Text="返 回" Visible="False" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <%--</asp:Panel>--%>
        <tr>
            <td>
                <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label><asp:Label
                    ID="lblMessage2" runat="server" ForeColor="Red"></asp:Label>
                &nbsp;修改考试分数为：<asp:TextBox ID="txtScore" runat="server"></asp:TextBox>
                <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="保存" />
                <asp:Label ID="lblUserId" runat="server" Visible="False"></asp:Label>
                <asp:Label ID="lblExamId" runat="server" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <asp:GridView ID="gvShowWrongQuestion" AllowPaging="True" runat="server" AutoGenerateColumns="False"
                                Width="100%" DataKeyNames="Themaid,answerid,mark" OnRowDataBound="gvShowWrongQuestion_RowDataBound"
                                OnRowCommand="gvShowWrongQuestion_RowCommand" SkinID="0" BorderColor="#efefef"
                                BorderStyle="Solid" BorderWidth="1">
                                <PagerSettings Visible="False" />
                                <Columns>
                                    <asp:TemplateField HeaderText="学员答题情况" HeaderStyle-CssClass="headerStyle">
                                        <ItemTemplate>
                                            <table width="100%" cellpadding="3">
                                                <tr>
                                                    <td class="exam_r_big_title" valign="top">
                                                        <span class="font_white">
                                                            <asp:Label ID="lblCount" runat="server"></asp:Label></span> <span class="exam_font_tip"
                                                                style="font-size: 12px;">考题类型：<font class="blue_font">
                                                                    <asp:Label ID="lblNumber" runat="server"></asp:Label></font></span>
                                                    </td>
                                                </tr>
                                                <tr align="left">
                                                    <td width="100%">
                                                        <table cellpadding="5" cellspacing="0" width="100%">
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="lblTitle" runat="server" Width="780px" Font-Size="12px" Font-Bold="True"
                                                                        ForeColor="#0066A1"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="lblRightAnswer" runat="server" Text="本题正确答案：" ForeColor="Red"></asp:Label>
                                                                    <asp:Label ID="lblRAnswer" runat="server"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="lblUserAnswer" runat="server" ForeColor="Red" Text="用户输入答案："></asp:Label>
                                                                    <asp:Label ID="lblUAnswer" runat="server"></asp:Label>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <asp:Label ID="lblMark" runat="server" ForeColor="Red" Text="该题分数："></asp:Label>
                                                                    <asp:Label ID="lblMark2" runat="server"></asp:Label>
                                                                    <asp:Label ID="lblGetMark" runat="server" ForeColor="Red" Text="得分：" Visible="false"></asp:Label>
                                                                    <asp:Label ID="lblGetMark2" runat="server" Font-Bold="True" Visible="False"></asp:Label>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                            <asp:Panel ID="panelNotCloze" runat="server">
                                                <table cellpadding="5" cellspacing="0" width="100%">
                                                    <tr>
                                                        <td valign="top"align=right>
                                                            <asp:Label ID="lblHD" runat="server" Text="答案：" Width="40px"></asp:Label>
                                                        </td>
                                                        <td valign="top">
                                                            <table cellpadding="5" cellspacing="0" width="100%" style="vertical-align:top">
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblA" runat="server" Width="5%" Font-Size="12px" Text="A."></asp:Label>
                                                                        <asp:Label ID="lblAnswerA" runat="server" Width="90%" Font-Size="12px"></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" />
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblB" runat="server" Width="5%" Font-Size="12px" Text="B."></asp:Label>
                                                                        <asp:Label ID="lblAnswerB" runat="server" Width="90%" Font-Size="12px"></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" />
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblC" runat="server" Width="5%" Visible="False" Font-Size="12px" Text="C."></asp:Label>
                                                                        <asp:Label ID="lblAnswerC" runat="server" Width="90%" Visible="False" Font-Size="12px"></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" />
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblD" runat="server" Width="5%" Visible="False" Font-Size="12px" Text="D."></asp:Label>
                                                                        <asp:Label ID="lblAnswerD" runat="server" Visible="False" Width="90%" Font-Size="12px"></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" />
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblE" runat="server" Width="5%" Visible="False" Font-Size="12px" Text="E."></asp:Label>
                                                                        <asp:Label ID="lblAnswerE" runat="server" Width="90%" Visible="False" Font-Size="12px"></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" />
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblF" runat="server" Width="5%" Visible="False" Font-Size="12px" Text="F."></asp:Label>
                                                                        <asp:Label ID="lblAnswerF" runat="server" Width="90%" Visible="False" Font-Size="12px"></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" />
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblG" runat="server" Width="5%" Visible="False" Font-Size="12px" Text="G."></asp:Label>
                                                                        <asp:Label ID="lblAnswerG" runat="server" Width="90%" Visible="False" Font-Size="12px"></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" />
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblH" runat="server" Width="5%" Visible="False" Font-Size="12px" Text="H."></asp:Label>
                                                                        <asp:Label ID="lblAnswerH" runat="server" Width="90%" Visible="False" Font-Size="12px"></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" />
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label ID="lblQuestionAnswer" runat="server" Width="700px" Font-Size="12px"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                        </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="正确答案" />
                                    <asp:BoundField DataField="mark" 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>
                        </td>
                    </tr>
                    <tr>
                        <td class="page_bg_left">
                            <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>
                        </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) {
            }
        }
    }
    function isDigit1(s) {

        var v = document.getElementById(s).value;
        //alert(v);
        var patrn = /^[0-9]{1,20}$/;
        if (!patrn.exec(v)) {
            alert('请输入数字。');
            document.getElementById(s).value = 0;
            return;

        }
        return true
    }    
</script>

</html>
