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

<%@ Register Src="/UserControl/LoadButton.ascx" TagName="LoadButton" 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 runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>
        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_AddQuesType")%></title>
    <script src="/Language/en-au.js" type="text/javascript"></script>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <link href="../Exam/Themes/Css/AddQuesionsCss.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/jquery.json-2.3.min.js" type="text/javascript"></script>
    <script src="/Training/Learn/m/json2.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/ajaxfileupload.js" type="text/javascript"></script>
    <link href="/Themes/Scripts/artDialog/skins/opera.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/artDialog/artDialog.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <script type="text/javascript" src="/Training/Learn/m/ckplayer/ckplayer.js" charset="utf-8"></script>
    <script src="/Live/swfobject.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/jQuery.path2html.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/xinQiQuestion.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/QuestionPage.js" type="text/javascript"></script>
    <style type="text/css">
        #choiseWhere label { font-size: 9pt; padding-left: 5px; margin-left: 10px; }
        #choiseWhere label input { border: 0px; }
     /*   #pc_View #que_0 { float: none; clear: both; width: 100%; }
         #pc_View .op_Result { float: none; clear: both; width: 100%; }
        #pc_View li { float: left; }
        #pc_View li img { width: 80%; max-width: 300px; }*/
        
    </style>
</head>
<body>
    <div class="btnbartitle">
        <div>
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Ques_entry")%>
        </div>
    </div>
    <div class="btnbarcontetn">
        <div style="float: left;">
            <a style="display:none;" class="button green" onclick="btnClickChoiseQuestion(this)" title="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Ques_Choisetishi")%>"
                style="float: left;"><span class="icon-botton" style="background: url('/Themes/images/16/layout_add.png') no-repeat scroll 0px 4px;">
                </span>
                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Ques_Choise")%>
            </a>
        </div>
        <div style="text-align: right">
            <uc1:LoadButton ID="LoadButton1" runat="server" />
            <%--
            <input type="button" value="B型题" onclick="btnClickEvent('addbtypeop')" />
            <input type="button" value="单选" onclick="btnClickEvent('addsingle')" />
          <input type="button" value="多选" onclick="btnClickEvent('addmultiple')" />
          <input type="button" value="填空" onclick="btnClickEvent('addfill')" />
          
           <input type="button" value="判断" onclick="btnClickEvent('addjudge')" />
          <input type="button" value="排序" onclick="btnClickEvent('addsort')" />
          <input type="button" value="确认" onclick="savaAndToExamEvent()"  />
          <input type="button" value="大题" onclick="btnClickEvent('addbig')" />
           <input type="button" value="判断" onclick="btnClickEvent('addjudge')" />--%>
        </div>
    </div>
    <div class="myhelp" style="color: Red">
        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_tishi")%>
        <input type="button" name="" value="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("TraningTest_Add_Help")%>"
            onclick="HelpShow();" />
    </div>
    <div style="height: 80%; float: right; width: 50%; margin-left: 2px; display: none;"
        id="HelpDiv">
        <fieldset style="height: 100%;">
            <legend>
                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("RandomQue_help")%></legend>
            <div style="overflow: auto; height: 100%">
                <div>
                    <p class="a1">
                        <br />
                        ***********************<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_danxuantiformt")%>***********************</p>
                    <br />
                    <p class="a2">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_danxuantititle")%>
                        <br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Question_item1")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Question_item2")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Question_item3")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("answer")%>：A<br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Ques_zssm")%>：<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_zhushi")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Courseware_Fraction")%>：<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_fszs")%></p>
                    <p>
                        ......
                        <br />
                    </p>
                    <a href="/Training/TrainingTest/image/text_01.png" target="_blank">
                        <img style="border: 0px;" src="/Training/TrainingTest/image/text_01.png"></a>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p class="a1">
                        ***********************<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_dunxuantiformt")%>***********************</p>
                    <br />
                    <p class="a2">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_dunxuantititle")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Question_item1")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Question_item2")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Question_item3")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("answer")%>：AB<br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Ques_zssm")%>：<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_zhushi")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Courseware_Fraction")%>：<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_fszs")%><br />
                        ....<br />
                        <br />
                    </p>
                    <br />
                    <a href="/Training/TrainingTest/image/text_02.jpg" target="_blank">
                        <img style="border: 0px;" src="/Training/TrainingTest/image/text_02.jpg"></a>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p class="a1">
                        ***********************<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_wendatiformt")%>***********************</p>
                    <br />
                    <p class="a2">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_wendatititle")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Ques_zssm")%>：<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_zhushi")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Courseware_Fraction")%>：<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_fszs")%><br />
                    </p>
                    <p>
                        ...</p>
                    <br />
                    <a href="/Training/TrainingTest/image/text_03.jpg" target="_blank">
                        <img style="border: 0px; width: 580px;" src="/Training/TrainingTest/image/text_03.jpg"></a>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p class="a1">
                        ***********************<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_paixutiformt")%>***********************</p>
                    <br />
                    <p class="a2">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_paixutizs")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Question_item1")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Question_item2")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Question_item3")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("answer")%>：321<br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Ques_zssm")%>：<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_zhushi")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Courseware_Fraction")%>：<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_fszs")%><br />
                        ...<br />
                        <br />
                    </p>
                    <a href="/Training/TrainingTest/image/text_04.jpg" target="_blank">
                        <img style="border: 0px;" src="/Training/TrainingTest/image/text_04.jpg"></a>
                    <p>
                        &nbsp;</p>
                    <p class="a1">
                        ***********************<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_panduantiformt")%>***********************</p>
                    <br />
                    <p class="a2">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_panduantizs")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("answer")%>：<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_dui")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Ques_zssm")%>：<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_panduantizs2")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Courseware_Fraction")%>：<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_fszs")%><br />
                        .....<br />
                        <br />
                    </p>
                    <a href="/Training/TrainingTest/image/text_05.jpg" target="_blank">
                        <img style="border: 0px;" src="/Training/TrainingTest/image/text_05.jpg"></a>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p class="a1">
                        ***********************<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_zonghetiformt")%>***********************</p>
                    <br />
                    <p class="a2">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_zonghetizs")%></p>
                    <p>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_zonghetizs2")%><br />
                        ……<br />
                        <br />
                    </p>
                    <a href="/Training/TrainingTest/image/text_06.jpg" target="_blank">
                        <img style="border: 0px;" src="/Training/TrainingTest/image/text_06.jpg"></a>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p class="a1">
                        ***********************<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_tiankongtiformt")%>***********************</p>
                    <br />
                    <p>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_tiankongtizs")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Ques_zssm")%>：<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_zhushi")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Courseware_Fraction")%>：<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_fszs")%><br />
                        ...<br />
                        <br />
                    </p>
                    <a href="/Training/TrainingTest/image/text_07.jpg" target="_blank">
                        <img style="border: 0px;" src="/Training/TrainingTest/image/text_07.jpg"></a>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p class="a1">
                        ***********************<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_Bxingtiformt")%>***********************</p>
                    <br />
                    <p class="a2">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_Bxingtizs")%></p>
                    <p>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_Bxingtizs2")%><br />
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Courseware_Fraction")%>：<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Train_fszs")%><br />
                        <br />
                    </p>
                    <a href="/Training/TrainingTest/image/text_08.jpg" target="_blank">
                        <img style="border: 0px; width: 580px" src="/Training/TrainingTest/image/text_08.jpg"></a>
                    <p>
                        &nbsp;</p>
                    <p>
                        &nbsp;</p>
                    <p>
                    </p>
                </div>
            </div>
        </fieldset>
    </div>
    <link rel="stylesheet" type="text/css" href="/Themes/Scripts/Lightbox/Lightbox/css/style.css">
    <script type="text/javascript" src="/Themes/Scripts/Lightbox/Lightbox/js/jquery.colorbox-min.js"></script>
    <script type="text/javascript" src="/Themes/Scripts/Lightbox/Lightbox/js/lrtk.js"></script>
    
    <script type="text/javascript">

    $(function () {
        var qjson = '<%=resultObj %>';
        if (qjson != "" && qjson != undefined && qjson != null && qjson != '[]') {            
            window.jsontohtml(eval(<%=resultObj %>));
        }
        $("img").each(function (i) {
             var imgsrc = $(this).attr("src");
              if (imgsrc.indexOf("image")<0 && imgsrc.indexOf("/Resources/SharesFiles") < 0 && imgsrc.indexOf("/Resources/ExamImportWord") < 0) {
                 $(this).attr("src", "/Resources/ExamImportWord/" + imgsrc);
                 imgsrc="/Resources/ExamImportWord/" + imgsrc;
             }
         });  
    });
    

    function HelpShow() {
        $("#HelpDiv").toggle();
    }

    function pc_View() {       
          var i = 0;
        $(".annex").each(function () {
            $(this).attr("id", "aa" + i);
            var fileUrl = $(this).html();// text();
            window.path2html("aa" + i, fileUrl);
            i++;
        });
            var j = 0;
       $("annex").each(function () {                    
            $(this).attr("id", "aa" + j);
            var fileUrl = $(this).text();
            window.path2html("aa" + j, fileUrl);
            j++;
        });  
        $("img").each(function (i) {
             var imgsrc = $(this).attr("src");
              if (imgsrc.indexOf("image")<0 && imgsrc.indexOf("/Resources/SharesFiles") < 0 && imgsrc.indexOf("/Resources/ExamImportWord") < 0) {
                 $(this).attr("src", "/Resources/ExamImportWord/" + imgsrc);
                 imgsrc="/Resources/ExamImportWord/" + imgsrc;
             }
         });
      $("a[rel^='colorbox']").colorbox(
{title:" ",slideshow:true,slideshowAuto:false,previous:"上一张",next:"下一张",close:"关闭",slideshowStart:"播放",slideshowStop:"暂停",current:"第 {current} 张 (共{total}张)"});      
    }
    </script>
</body>
</html>
