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

<%@ 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/calendar.js" type="text/javascript"></script>

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

    <script type="text/javascript" src="../Js/jquery.pngFix.pack.js"></script>

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

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

    <style type="text/css">
        ul
        {
            padding: 0;
            margin: 0;
            list-style: none;
            border-top: 1px solid blue;
            border-left: 1px solid blue;
            float: left;
        }
        li
        {
            padding: 3px 6px 3px 6px;
            margin: 0;
            float: left;
            border-bottom: 1px solid blue;
            border-right: 1px solid blue;
            border-collapse: collapse;
            font-size: 12px;
        }
        li:last
        {
            border-right: 1px solid blue;
        }
        a
        {
            text-decoration: none;
        }
        a:visited
        {
            color: Blue;
        }
        a:hover
        {
            color: Red;
            text-decoration: underline;
        }
    </style>

    <script type="text/javascript">
        function retrun() {
            window.history.go(-1);
        }

        var dates = new Date();
        var standate = new Date(dates.getYear(), dates.getMonth(), dates.getDate(), dates.getHours(), dates.getMinutes(), dates.getSeconds());
        var betweendays = 0;


        function getExamTime() {
            var timeleave = top.window.document.getElementById('GetTimeFrame').contentWindow.document.getElementById('timeleave');
            timeleave.value = document.getElementById('txtExamTime').value;
        }

        function setTimeEnd() {
            var timeleave = top.window.document.getElementById('GetTimeFrame').contentWindow.document.getElementById('timeleave');
            if (timeleave.value == undefined || new Number(timeleave.value) == 0)  //not exam time restrict.
            {
                document.getElementById('lblLeavetime').style.display = 'none';
                return;
            }

            var endminutes = new Number(timeleave.value) - 1;
            timeleave.value = new Number(timeleave.value) - 1;

            var strdisplay;
            strdisplay = parseInt(endminutes / 60) + "分" + endminutes % 60 + '秒';
            document.getElementById('timer').innerText = strdisplay;
            //document.all.txtminute.value = strdisplay;
            if (endminutes <= 0) {
                stopExam();
                alert("时间到！");
                return;
            }
            setTimeout("setTimeEnd()", 1000);
        }

        function stopExam() {
            //__doPostBack("btnEnd", "");
            //alert(9);
            document.getElementById("btnEnd").onclick = null;
            document.getElementById("btnEnd").click();
        }
        function window.onbeforeunload() {
            if (event.clientX > document.body.clientWidth && event.clientY < 0 || event.altKey) {
                window.event.returnValue = " "; //"确定要退出本页吗？";
                //  window.location.href = 'busy.aspx';
            }
        }       
    </script>

</head>
<body>
    <form id="form1" runat="server" autocomplete="Off">
    <table width="110%" cellpadding="0" cellspacing="0" class="table_3">
        <tr>
            <td class="nav_font">
                <img src="../Images/ico4.gif" />
                当前的位置：在线面试
            </td>
        </tr>
    </table>
    <div class="box">
       <%-- <table width="110%" cellpadding="5" cellspacing="0" bgcolor="white">
            <tr>
                <td width="80px" align="right">
                    考试科目：
                </td>
                <td width="130px" align="left">
                    <asp:DropDownList ID="ddlExam" runat="server" Width="130px" AppendDataBoundItems="True"
                        AutoPostBack="True" OnSelectedIndexChanged="ddlExam_SelectedIndexChanged">
                        <asp:ListItem Value="0">全部</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td width="50px" align="right">
                    姓名：
                </td>
                <td align="left" width="80px">
                    <asp:TextBox ID="txtName" runat="server" Width="80px"></asp:TextBox>
                </td>
                <td width="80px" align="right">
                    联系方式：
                </td>
                <td width="100px" align="left">
                    <asp:TextBox ID="txtTel" runat="server" MaxLength="11"></asp:TextBox>
                </td>
                <td width="80px" align="right">
                    应聘职位：
                </td>
                <td align="left">
                    <asp:TextBox ID="txtPost" runat="server"></asp:TextBox>
                </td>
            </tr>
        </table>--%>
        <table width="110%" cellpadding="5" cellspacing="0" bgcolor="white">
            <tr>
                <td>
                    <asp:Button ID="btnStart" runat="server" Text="开 始" OnClick="btnStart_Click" Enabled="False" />
                    <asp:TextBox ID="txtExamTime" runat="server" Width="16px"></asp:TextBox>
                    &nbsp;<asp:Button ID="btnEnd" runat="server" Text="结束面试" Enabled="False" OnClick="btnEnd_Click" />
                    &nbsp;&nbsp;
                    <asp:Label ID="lblFlag" runat="server" Text="客观题正确数量：" Font-Size="12px"></asp:Label>
                    <asp:Label ID="lblMark" runat="server"></asp:Label>                
                    <label id="lblLeavetime" style="margin-left: 100px; font-size: 12px;">
                        剩余时间：</label>
                    <label id="timer" style="color: Red; font-weight: bold;">
                    </label>
                </td>
            </tr>
        </table>
    </div>
    <div class="box">
        <table width="110%" class="page_bg_top">
            <tr>
                <td align="left">
                    <asp:Label ID="lblType" runat="server" Font-Size="12px"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lblMessage" runat="server" Height="100px" Width="100%" Font-Bold="True"
                        Font-Size="Larger" ForeColor="Red"></asp:Label>
                </td>
            </tr>
        </table>
        <table width="110%" cellpadding="5" cellspacing="0" bgcolor="white">
            <tr>
                <td align="left">
                    <asp:Label ID="lblNumber" runat="server" Visible="False" Font-Size="12px"></asp:Label>
                    <asp:Label ID="lblTitle" runat="server" Width="810px" Font-Size="12px"></asp:Label>
                </td>
            </tr>
        </table>
        <asp:Panel ID="PanelText" runat="server">
            <table width="110%" class="page_bg_left">
                <tr>
                    <td align="right">
                        <asp:Label ID="lblRight" runat="server" Text="正确" Visible="False" Font-Size="12px"></asp:Label>
                        <asp:RadioButton ID="rbtnRight" runat="server" GroupName="check" Visible="False" />
                        <asp:Label ID="lblWrong" runat="server" Text="错误" Visible="False" Font-Size="12px"></asp:Label>
                        <asp:RadioButton ID="rbtnWrong" runat="server" GroupName="check" Visible="False" />
                    </td>
                </tr>
                <tr>
                    <td width="800px" align="left">
                        <div align="left">
                            <asp:Label ID="lblRequest" runat="server" Width="10%" Visible="False" Text="答案:"></asp:Label><asp:TextBox
                                ID="txtAnswer" runat="server" Width="90%" Height="100px" TextMode="MultiLine"
                                Visible="False"></asp:TextBox></div>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td width="800px" align="left">
                        <asp:Label ID="lblA" runat="server" Width="5%" Font-Size="12px">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" />
                        <uc1:WinMediaPlayer ID="WinMediaPlayerA" runat="server" Height="50" Width="200" AutoRepeat="False"
                            AutoStart="False" ChangeDisplaySize="False" Visible="False" />
                    </td>
                    <td>
                        <asp:CheckBox ID="chkAnswerA" runat="server" />
                        <asp:RadioButton ID="rbtnA" runat="server" GroupName="answer" Visible="False" />
                    </td>
                </tr>
                <tr>
                    <td width="800px" align="left">
                        <asp:Label ID="lblB" runat="server" Width="5%" Font-Size="12px">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" />
                        <uc1:WinMediaPlayer ID="WinMediaPlayerB" runat="server" Height="50" Width="200" AutoRepeat="False"
                            AutoStart="False" ChangeDisplaySize="False" Visible="False" />
                    </td>
                    <td>
                        <asp:CheckBox ID="chkAnswerB" runat="server" />
                        <asp:RadioButton ID="rbtnB" runat="server" GroupName="answer" Visible="False" />
                    </td>
                </tr>
                <tr>
                    <td width="800px" align="left">
                        <asp:Label ID="lblC" runat="server" Width="5%" Visible="False" Font-Size="12px">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" />
                        <uc1:WinMediaPlayer ID="WinMediaPlayerC" runat="server" Height="50" Width="200" AutoRepeat="False"
                            AutoStart="False" ChangeDisplaySize="False" Visible="False" />
                    </td>
                    <td>
                        <asp:CheckBox ID="chkAnswerC" runat="server" Visible="False" />
                        <asp:RadioButton ID="rbtnC" runat="server" GroupName="answer" Visible="False" />
                    </td>
                </tr>
                <tr>
                    <td width="800px" align="left">
                        <asp:Label ID="lblD" runat="server" Width="5%" Visible="False" Font-Size="12px">D.</asp:Label>
                        <asp:Label ID="lblAnswerD" runat="server" Width="90%" Visible="False" Font-Size="12px"></asp:Label>
                        <asp:Image ID="imgD" runat="server" Height="120" Visible="False" Width="240" />
                        <uc1:WinMediaPlayer ID="WinMediaPlayerD" runat="server" Height="50" Width="200" AutoRepeat="False"
                            AutoStart="False" ChangeDisplaySize="False" Visible="False" />
                    </td>
                    <td>
                        <asp:CheckBox ID="chkAnswerD" runat="server" Visible="False" />
                        <asp:RadioButton ID="rbtnD" runat="server" GroupName="answer" Visible="False" />
                    </td>
                </tr>
                <tr>
                    <td width="800px" align="left">
                        <asp:Label ID="lblE" runat="server" Width="5%" Visible="False" Font-Size="12px">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" />
                        <uc1:WinMediaPlayer ID="WinMediaPlayerE" runat="server" Height="50" Width="200" AutoRepeat="False"
                            AutoStart="False" ChangeDisplaySize="False" Visible="False" />
                    </td>
                    <td>
                        <asp:CheckBox ID="chkAnswerE" runat="server" Visible="False" />
                        <asp:RadioButton ID="rbtnE" runat="server" GroupName="answer" Visible="False" />
                    </td>
                </tr>
                <tr>
                    <td width="800px" align="left">
                        <asp:Label ID="lblF" runat="server" Width="5%" Visible="False" Font-Size="12px">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" />
                        <uc1:WinMediaPlayer ID="WinMediaPlayerF" runat="server" Height="50" Width="200" AutoRepeat="False"
                            AutoStart="False" ChangeDisplaySize="False" Visible="False" />
                    </td>
                    <td>
                        <asp:CheckBox ID="chkAnswerF" runat="server" Visible="False" />
                        <asp:RadioButton ID="rbtnF" runat="server" GroupName="answer" Visible="False" />
                    </td>
                </tr>
                <tr>
                    <td width="800px" align="left">
                        <asp:Label ID="lblG" runat="server" Width="5%" Visible="False" Font-Size="12px">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" />
                        <uc1:WinMediaPlayer ID="WinMediaPlayerG" runat="server" Height="50" Width="200" AutoRepeat="False"
                            AutoStart="False" ChangeDisplaySize="False" Visible="False" />
                    </td>
                    <td>
                        <asp:CheckBox ID="chkAnswerG" runat="server" Visible="False" />
                        <asp:RadioButton ID="rbtnG" runat="server" GroupName="answer" Visible="False" />
                    </td>
                </tr>
                <tr>
                    <td width="800px" align="left">
                        <asp:Label ID="lblH" runat="server" Width="5%" Visible="False" Font-Size="12px">H.</asp:Label>
                        <asp:Label ID="lblAnswerH" runat="server" Width="90%" Visible="False" Font-Size="12px">A</asp:Label>
                        <asp:Image ID="imgH" runat="server" Height="120" Visible="False" Width="240" />
                        <uc1:WinMediaPlayer ID="WinMediaPlayerH" runat="server" Height="50" Width="200" AutoRepeat="False"
                            AutoStart="False" ChangeDisplaySize="False" Visible="False" />
                    </td>
                    <td>
                        <asp:CheckBox ID="chkAnswerH" runat="server" Visible="False" />
                        <asp:RadioButton ID="rbtnH" runat="server" GroupName="answer" Visible="False" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    <table width="110%" cellpadding="5" cellspacing="0" bgcolor="white">
        <tr>
            <td align="center">
                <asp:Button ID="btnUp" runat="server" Text="上一题" OnClick="btnUp_Click" Enabled="False" />
                &nbsp;&nbsp;
                <asp:Button ID="btnNext" runat="server" Text="下一题" Enabled="False" OnClick="btnNext_Click" />
            </td>
        </tr>
    </table>
    <div align="left">
        <asp:Panel ID="PanelMessage" runat="server" Visible="False">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnRed" runat="server" Text="X" BackColor="White" Font-Bold="True"
                            ForeColor="White" Width="40px" Enabled="False" /><asp:Label ID="lblRed" runat="server"
                                Text="未做题" Font-Size="12px"></asp:Label>
                        <asp:Button ID="btnGreen" runat="server" Text="X" BackColor="LightGreen" Font-Bold="True"
                            ForeColor="LightGreen" Width="40px" Enabled="False" /><asp:Label ID="lblGreen" runat="server"
                                Text="已做题" Font-Size="12px"></asp:Label>
                        <asp:Button ID="btnBlue" runat="server" Text="X" BackColor="SkyBlue" Font-Bold="True"
                            ForeColor="SkyBlue" Width="40px" Enabled="False" /><asp:Label ID="lblBlue" runat="server"
                                Text="当前题" Font-Size="12px"></asp:Label>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="PanelContent" runat="server" Visible="False">
        </asp:Panel>
    </form>
</body>
</html>
