<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Report.aspx.cs" Inherits="RM.Web.Training.Exam.Report" %>

<!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 runat="server">
 <title><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Report_Title")%></title>
    <link href="Themes/Css/ExamGlobal.css" rel="stylesheet" type="text/css" />
    <script src="../../Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="../../Themes/Scripts/artDialog/artDialog.js" type="text/javascript"></script>
    <script src="../../Themes/Scripts/artDialog/iframeTools.js" type="text/javascript"></script>
    <script src="../../Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <style type="text/css">
        h1 { font-size: 13pt; text-align: center; padding-bottom: 10px; }
        #container label { color: Red; margin: 0 5px; font-size: 12pt; }
        #examInfo { border: 1px solid #CCC; padding: 5px; text-align:center; }
        #result { width: 40px; word-break: break-all; word-wrap: break-word; height: 210px; overflow: scroll; }
        .bottomLink { text-align: right; margin-top: 10px; }
        .bottomLink a { transition: none; margin-left: 10px; /*background: url("/Themes/Images/ExamButton.png") no-repeat;*/ text-align: center; font-size: 11pt !important; padding: 5px 12px; font-size: 15px; color: #666; transition: none; border: 1px solid #CCC;background-color:#fff; }
        .bottomLink a:hover { background-position: 0 -30px; transition: none; }        
        #checkMyExam {/*background:url("") no-repeat; */ border: 1px solid #3d76cc;background-color:#488bef;/*background-position: 0 -60px;*/ color: White; }
        #checkMyExam:hover { background-position: left bottom; background-color:#20aeff}
        #score { font-weight: bold; font-size: 15pt !important; }
        #container { width: 400px; margin: 0 auto; }
    </style>
    <script type="text/javascript">
        var tiaozhuan = "/Training/Exam/ExamHistory_List.aspx";
        if (window.location.href.split("action=pigai").length > 1) {
            tiaozhuan = "/Training/Exam/CorrectExam_List.aspx";
        }
        var yz = 0;
        $(function () {
            $("#close").click(function () {
                yz = 1;
                if (window.parent.frames["main"] != undefined) {
                    window.parent.frames["main"].location = tiaozhuan;
                } else {
                    window.parent.location = tiaozhuan;
                }
                OpenClose();
                return false;
            });
            if (QueryString("Not").length > 0) {
                $("#checkMyExam").click(function () {
                    var data = QueryString("key");
                    if (window.parent.frames["main"] != undefined) {
                        window.parent.frames["main"].location = "/Training/Exam/ResultExam.aspx?HashKey=" + data;
                    } else {
                        window.parent.location = "/Training/Exam/ResultExam.aspx?HashKey=" + data;
                    }
                    OpenClose();
                    return false;
                });
            } else {
                $("#checkMyExam").hide(0);
            }
            if (QueryString("NP").length > 0) {
                $("#btnOk").click(function () {
                    var data = QueryString("NP");
                    if (window.parent.frames["main"] != undefined) {
                        window.parent.frames["main"].location = "/Training/Exam/" + data;
                    } else {
                        window.parent.location = "/Training/Exam/" + data;
                    }
                    OpenClose();
                    return false;
                });
            } else {
                $("#btnOk").hide(0);
            }
        });

        function lookExam_PersonalData() {
            yz = 1;
            var data = QueryString("key");
            var url = "/Training/Exam/Exam_PersonalData.aspx?HashKey=" + data;
            if (window.parent.frames["main"] != undefined) {
                window.parent.frames["main"].location = url;
            } else {
                window.parent.location = url;
            }
            OpenClose();
        }

//        监控页面关闭事件
        window.onbeforeunload = function (event) {
            if (yz == 0) {
                if (window.parent.frames["main"] != undefined) {
                    window.parent.frames["main"].location = tiaozhuan;
                } else {
                    window.parent.location = tiaozhuan;
                }
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="container">
        <div>
            <h1 id="examName" runat="server"></h1>
            <ul id="examInfo">
                <li style=" font-size:30px; height:35px; line-height:35px;"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Report_def")%> ：<label id="score" runat="server" style="font-size:30px;">0</label><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterList_fen")%></li>
                <li><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("DataList_zFen")%>：<label runat="server" id="sumCount"></label> <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Report_jieg")%>：<label id="isThrough" runat="server"></label></li>
                <li class="clear"></li>
                <li><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("result_paiming")%>：<%=Paimingindex %></li>
                <li><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("result_kaoshishijian")%>：<%=resulttime%></li>
            </ul>
        </div>
        <fieldset style="display: none;">
            <legend><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CorrectExam_dtbg-wtg")%></legend>
            <ul id="result">
                <li><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterList_dqzql-wtg")%>：<label id="accuracy" runat="server"></label></li>
                <li><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Report_cwth")%>：<label id="errorNums" runat="server"></label></li>
                <li><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Report_wdth")%>：<label id="notNums" runat="server"></label></li>
                <li><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Report_zqth")%>：<label id="rightNums" runat="server"></label></li>
                <li><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CorrectExam_dtbg")%>：<p>
                    <label>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("nothing")%></label>
                </p>
                </li>
                 <li><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Report_cpth")%>：<label runat="server" id="quesCount"></label><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterList_ti")%></li>
                <li><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("MyExamPlan-jgfs")%>：<label runat="server" id="passScore"></label><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterList_fen")%></li>
                <li class="clear"></li>
                 <li style="display: none;"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamStatisticsList_datetime")%>：<label runat="server" id="examDate"></label></li>
                <li><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Name")%>：<label runat="server" id="userName"></label></li>
                <li class="clear"></li>
                
            </ul>
        </fieldset>
        <div class="bottomLink">
            <a href="javascript:void(0)" id="checkMyExam"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Report_ckcp")%></a>
         <!--   <a href="javascript:void(0)" onclick="lookExam_PersonalData();"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamHistory_Listlookdata")%></a>  -->
            <a href="javascript:void(0)"
                id="btnOk">&nbsp;<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("OK")%>&nbsp;</a><a href="javascript:void(0)"
                    id="close">&nbsp;<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Close")%>&nbsp;</a>
        </div>
    </div>
    </form>
</body>
</html>
