ExamPaper.cshtml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. @{
  2. ViewBag.Title = "WaittingPage";
  3. Layout = "~/Views/Shared/Examinee.cshtml";
  4. }
  5. <form id="form1">
  6. @Html.Hidden("hide_Exam_Url")
  7. @Html.Hidden("hide_State")
  8. <div class="PageLoad">
  9. <img src="@Url.Content("~/Content/Examiner/Image/loading.jpg")" /></div>
  10. <span id="test"></span>
  11. <div id="paper_body">
  12. <div id="topContainer">
  13. <div id="information_bar">
  14. </div>
  15. <div id="control_bar">
  16. <div id="control_container">
  17. <div>
  18. 离考试结束还有</div>
  19. <div class="timer">
  20. </div>
  21. <input type="button" value="" id="btn_takePaper" class="newexambtn" />
  22. </div>
  23. </div>
  24. <div class="box">
  25. </div>
  26. </div>
  27. <div class="tooltip1">
  28. <span style="font-weight: bold">温馨提示:</span>试卷共有<span id="exam_count" class="tooltip_text"></span>道题,还剩<span
  29. id="exam_over" class="tooltip_text"></span>道,标记<span id="exam_sign" class="tooltip_text"></span>道。
  30. <font color="red">红色</font>代表标记,<font color="green">绿色</font>代表已做,<font color="blue">蓝色</font>代表未做。</div>
  31. <span id="txt_message" style="display: none"></span><span id="txt_ListRoomMessage"
  32. style="display: none"></span><span id="txt_GetExamineeMessage" style="display: none">
  33. </span><span id="txt_changeState" style="display: none"></span><span id="txt_autoSave"
  34. style="display: none"></span>
  35. <div id="ExamPaper">
  36. <div id="navigation_bar">
  37. <div class="navigation_desc2">
  38. 题目导航</div>
  39. <div id="navigation_container">
  40. <div id="navigation_body" class="navigation_body">
  41. </div>
  42. </div>
  43. <div id="navigation_button">
  44. </div>
  45. </div>
  46. <div class="q_placehold">
  47. <div id="question">
  48. </div>
  49. <div class="q_buttom">
  50. </div>
  51. </div>
  52. <div style="clear: both">
  53. </div>
  54. </div>
  55. <div id="buttonContainer">
  56. </div>
  57. </div>
  58. <div id="ExamMessage" style="display: none; margin-top: 0px; text-align: center;
  59. overflow: hidden; zoom: 100%;">
  60. <div style="background-image: url('@Url.Content("~/Content/Examiner/Image/takepaper.jpg")'); background-repeat: no-repeat;
  61. background-position: top; height: 800px;">
  62. <div style="margin: 440px auto; width: 100%; float: left; text-align: center;" id="divClose"
  63. name="divClose">
  64. <span id="lbScore">@ViewBag.lbScore</span>
  65. <br />
  66. <a id="login" href="javascript:launchEnter()" style="vertical-align: top;">
  67. <img border='0' src="@Url.Content("~/Content/Examiner/Image/ReExam.gif")" /></a> <a href="javascript:launchClose()">
  68. <img border='0' src="@Url.Content("~/Content/Examiner/Image/eColse.gif")" /></a>
  69. </div>
  70. <div style="clear: both">
  71. </div>
  72. </div>
  73. </div>
  74. @Html.Hidden("hdf_Testmethod")
  75. </form>
  76. @section header{
  77. <link href="~/Content/Examiner/common.css" type="text/css" rel="stylesheet" />
  78. <link href="~/Content/Examiner/examStyle.css" type="text/css" rel="stylesheet" />
  79. }
  80. @section scripts{
  81. <script type="text/javascript" src="~/Scripts/Examinee/hashtable.js"></script>
  82. <script type="text/javascript" src="~/Scripts/Examinee/jquery.timers.js"></script>
  83. <script type="text/javascript" src="~/Scripts/Examinee/jquery-jtemplates_uncompressed.js"></script>
  84. <script type="text/javascript" src="~/Scripts/Examinee/jquery.countdown.js"></script>
  85. <script type="text/javascript" src="~/Scripts/Examinee/iexam.interactively.js"></script>
  86. <script type="text/javascript" src="~/Scripts/Examinee/examinee.js"></script>
  87. <script type="text/javascript" src="~/Scripts/Examinee/paperBuilder.js"></script>
  88. <script type="text/javascript" src="~/Scripts/Examinee/jquery.xml2json.js"></script>
  89. <script type="text/javascript">
  90. var examinee =@Html.Raw(ViewBag.examinee);
  91. @ViewBag.controllabled
  92. if (typeof (examineeBehaviour) != 'undefined') {
  93. var behaviour = new examineeBehaviour();
  94. var examInfo;
  95. var paper = new Array();
  96. var allWarring;
  97. var personWarring;
  98. $(function () {
  99. $.get("@Url.Content("~/OnlineTest/ExamQuesion")?test_id=@(ViewBag.test_id)&paper_id=@(ViewBag.newPaperid)", function (paperxml) {
  100. examInfo = paperxml.examInfo;
  101. var paperInfo = paperxml.paper;
  102. var questionCount = 0;
  103. $(paperInfo).each(function (i, j) {
  104. if (j.questions != null) {
  105. if (j.questions.length > 0) {
  106. questionCount += j.questions.length;
  107. questiont = j;
  108. }
  109. else {
  110. questionCount += 1;
  111. var question = new Array();
  112. question.push(j.questions);
  113. j.questions = question;
  114. }
  115. paper.push(j);
  116. }
  117. });
  118. examInfo.questionCount = questionCount;
  119. allWarring = paperxml.allWarring;
  120. personWarring = paperxml.personWarring;
  121. if (allWarring == null) { allWarring = new Object(); }
  122. if (personWarring == null) { personWarring = new Object(); }
  123. var builder = new paperBuilder();
  124. builder.BuildInformationPanel(examInfo);
  125. builder.BuildPaper(paper);
  126. behaviour.bindSignEvent();
  127. var methodType = $("#hdf_Testmethod").val();
  128. if (methodType != "0") {
  129. $("#divClose").hide();
  130. }
  131. else {
  132. var readPaper = $('[id$=hide_State]').val();
  133. if (readPaper == "0") {
  134. document.getElementById("login").style.display = "none";
  135. $('[id$=lbScore]').hide();
  136. }
  137. }
  138. });
  139. });
  140. }
  141. </script>
  142. }