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

<!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>题库 - 模拟考试</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" />
    <link type="text/css" href="/Themes/Styles/mobile_index.css" rel="stylesheet" />
    <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>
    .tiku_moni{ width:auto;}
    </style>
    <script type="text/javascript">
    $(function () {
        var examKey = QueryString("ExamKey");
        if (!examKey || examKey.length < 1) {
            showTipsMsg("<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterList_ymxxbzq")%>", 4000, 5);
        }
            $("#btnStartExam").click(function () {
                if (!examKey || examKey.length < 1) {
                    showTipsMsg("<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterList_ymxxbzq")%>", 3000, 5);
                    return false;
                }
                $("#handleIcon").fadeIn(100);
                $.ajax({
                    url: "CreateExam.ashx",
                    type: "post",
                    data: { "ExamKey": examKey, "EPKey": QueryString("EPKey") },
                    dataType: "text",
                    success: function (data) {
                        var result = data ? parseInt(data) : -1;
                        if (result == -3) {
                            top.showTipsMsg("<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Examination_sjsjsjychxst")%>", 4000, 5);
                        } else if (result < 0) {
                            top.showTipsMsg("<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterList_ymxxbzq")%>", 2000, 5);
                        } else {
                         
                            window.parent.location = "/Training/Exam/ExaminationMoblie.aspx?exam=<%=Request["exam"] %>&HashKey=" + data + "&&EPKey=" + QueryString("EPKey");
                            var list = top.art.dialog.list; //关闭上层所有的对话框
                            for (var i in list) {
                                list[i].close();
                            };
                        }
                        $("#handleIcon").fadeOut(100);
                    },
                    error: function () {
                        top.showTipsMsg("<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterList_ymxxbzq")%>", 2000, 5);
                        $("#handleIcon").fadeOut(100);
                    }
                });
            });
            $("#continueClick").click(function () {
                if ($(this).attr("data") == "" || $(this).attr("data").length < 1)
                    return false;

                window.parent.location = "/Training/Exam/ExaminationMoblie.aspx?exam=<%=Request["exam"] %>&HashKey=" + $(this).attr("data") + "&&EPKey=" + QueryString("EPKey");
                var list = top.art.dialog.list; //关闭上层所有的对话框
                for (var i in list) {
                    list[i].close();
                };
                return false;
            });
        });
</script>

</head>

<body>
<div id="handleIcon"></div> 
<div >
	<div>
    	<div class="mid_head_tit">            
            <h3 id="Exam_TitleInfo" runat="server" class="h3 tc fs14 fwb cor1">无</h3>            
        </div>
        <div class="tiku_moni mt10 background1 clear pb5" >
            <dl class="m5 mr10 p10 moni">
                <dt style="font-size:12px"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamIntroduce_kjxx")%>：<label runat="server" id="Exam_StartDate"></label>
                        ～
                        <label id="Exam_EndDate" runat="server">无</label></dd>
                <dd style="font-size:12px"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamIntroduce_kssc")%>：<label runat="server" id="Exam_SumDate"></label> <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Courseware_Minute")%></dd>
                <dd style="font-size:12px"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Examination_ExamCount")%>：<label runat="server" id="Exam_SumCount"></label></dd>
                <dt style="font-size:12px"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("MyExamPlan-sjzf")%>：<label runat="server" id="Exam_SumScore"></label> <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterList_fen")%></dd>                
                <dd style="font-size:12px"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("MyExamPlan-jgfs")%>：<label runat="server" id="Exam_PassScore"></label> <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterList_fen")%></dd>
                <dd style="font-size:12px"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("MyExamPlan-sjlx")%>：<label runat="server" id="Exam_Type"></label></dd>
            </dl>
            <dl class="m5 mr10 p10">
                <dt class="fwb"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamIntroduce_ksxz")%>：</dd>
                <dd style="font-size:12px"><div id="exam_DisContext" runat="server"></div></dd>
            </dl>
            <div class="tc mb10" style="padding:0 10px;" >
            <div id="promptTxt" style="color:Red;"  runat="server"></div>
            	<a href="#" id="btnStartExam" runat="server" class="white background2 btnpad">
                &nbsp;<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamIntroduce_kjsm")%>&nbsp;</a>
                <a href="#" id="continueClick" runat="server" class="white background2 btnpad">
                &nbsp;<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamIntroduce_jxks")%>&nbsp;</a>            	
            </div>
        </div>
    </div>
</div>
</body>
</html>
