parse_label.php 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <!--数学,物理上传试卷共用弹窗-->
  2. <script src="/js/xndatepicker/src/moment.js"></script>
  3. <script type="text/javascript" src="/js/xndatepicker/src/xndatepicker.js"></script>
  4. <style>
  5. <!--
  6. .xndatepicker {
  7. z-index: 999999999;
  8. }
  9. #parse_area{
  10. width:720px;
  11. height:500px;
  12. font-size:12px;
  13. }
  14. .pa_head{
  15. width:100%;
  16. height:40px;
  17. color:#000;
  18. }
  19. .pa_middle{
  20. height:230px;
  21. }
  22. .pa_bottom{margin-top:10px;}
  23. .pa_title{float: left;width:100px;line-height: 40px;text-align: center;font-weight:bold;}
  24. .pa_tab{float:left;width:620px;line-height: 40px;}
  25. .pa_explain{float:left;width:620px;}
  26. .pa_upload_area{float:left;width:620px;background:#ddd;height:230px;}
  27. .pa_red{color:red;font-weight:bold}
  28. .pa_black{font-weight: bold}
  29. .pa_purple{color:purple;font-weight: bold}
  30. .pa_upload_area button{
  31. width:141px;
  32. height:43px;
  33. border:1px solid #2977ff;
  34. border-radius: 5px;
  35. background: #fff;
  36. display: block;
  37. margin:15px auto 0px auto;
  38. color:#2977ff;
  39. font-size:14px;
  40. font-weight:bold;
  41. }
  42. .pa_upload_area .show_word{
  43. display: block;
  44. text-align: right;
  45. width:100%;
  46. margin-top:120px;
  47. padding-right:10px;
  48. }
  49. /*标注样式*/
  50. #label_win{
  51. width:410px;
  52. height:300px;
  53. padding-left:10px;
  54. }
  55. .pa_label_tab{float:left;width:300px;line-height: 40px;}
  56. .estimate{height:20px;}
  57. .label_remark{width:100%;height:150px;resize:vertical;line-height: 20px;}
  58. .dateinputer{
  59. line-height:40px;
  60. height:40px;
  61. margin:10px 0;
  62. border:1px solid #ccc;
  63. cursor: pointer;
  64. position:relative;
  65. /*top:10px;*/
  66. /*left:20px;*/
  67. padding:0 6px;
  68. font-size:12px !important;
  69. }
  70. .flex-div{
  71. display: flex;
  72. justify-content: flex-start;
  73. align-items: flex-start;
  74. flex-flow: column;
  75. margin-left:30px;
  76. margin-top:20px;
  77. }
  78. .shortcut{display: none}
  79. .dater1{
  80. -webkit-box-sizing:unset !important;
  81. box-sizing:unset !important;
  82. }
  83. -->
  84. </style>
  85. <div id="parse_area" style="display: none">
  86. <div class="pa_head">
  87. <div class="pa_title">解析方式:</div>
  88. <div class="pa_tab">
  89. <span><input type="radio" name="select_upload_mode" class="select_upload_mode" checked value="1" />模板解析</span>
  90. <span><input type="radio" name="select_upload_mode" class="select_upload_mode" value="2" />AI解析</span>
  91. <span><input type="radio" name="select_upload_mode" class="select_upload_mode" eid="" grade="" value="3" />复用试卷</span>
  92. <input type="hidden" name="upload_template_eid" value="">
  93. <input type="hidden" name="upload_template_type" value="2">
  94. </div>
  95. </div>
  96. <div class="pa_list">
  97. <div class="pa_middle">
  98. <div class="pa_title">选择文件:</div>
  99. <div class="pa_upload_area">
  100. <div class="upload_left upload_btn_1">
  101. <button id="word_file_button">WORD上传</button>
  102. <input type="file" name="word_file" id="word_file" style="display:none">
  103. <span class="word_file_path"></span>
  104. <span class="show_word"><a style="color:#619aff" href="/assets/data/physics_topic_mould.docx">word模板下载</a></span>
  105. </div>
  106. <div class="upload_left upload_btn_2" style="display: none">
  107. <button id="paper_file_button">试卷上传</button>
  108. <input type="file" name="paper_file" id="paper_file" style="display:none">
  109. <span class="paper_file_path"></span>
  110. <button id="parse_file_button">答案上传</button>
  111. <input type="file" name="parse_file" id="parse_file" style="display:none">
  112. <span class="parse_file_path"></span>
  113. <span class="show_word" style="margin-top:70px;"><a style="color:#619aff;" download="" href="/images/example.png">查看图示</a></span>
  114. </div>
  115. </div>
  116. </div>
  117. <div class="pa_bottom">
  118. <div class="pa_title">注意事项:</div>
  119. <div class="pa_explain p_txt_1">
  120. 1、一套试卷只能选择其中一种上传方式;<br>
  121. 2、新解析支持格式word、pdf,每次只可上传一份试卷,试卷若为图片,请保存至word后上传;<br>
  122. 3、试卷、答案分开上传时,请分别在不同的入口上传;若答案与试卷在同一份文件中,可直接在试卷入口上传即可,答案处不用上传;<br>
  123. 4、文件最大不超过10MB;<br>
  124. 5、AI解析,目前仅<span class="pa_red">高中物理、高中数学</span>在工作时间8:30-18:00内才可使用,其他学科不支持;<br>
  125. 6、采用AI解析时,将由题库后台校对,预计会在<span class="pa_red">48</span>小时内完成,且学科老师在进行题目过编时,对于文档上传错误或者图片不清晰等的试卷,有权打回。<br>
  126. 7、<span class="pa_red">AI解析处在试用阶段,上传试卷后无法撤回与重新上传,请谨慎使用……</span>;
  127. </div>
  128. <div class="pa_explain p_txt_2" style="display: none">
  129. <br>
  130. 1、<span class="pa_red">请确保试卷及答案解析完整,再发送标注,否则无法生成错题本/个性化学习宝;</span><br>
  131. 2、新解析支持格式word、pdf,每次只可上传一份试卷,试卷若为图片,请保存至word后上传;<br>
  132. 3、试卷、答案分开上传时,请分别在不同的入口上传;若答案与试卷在同一份文件中,可直接在试卷入口上传即可,答案处不用上传;
  133. 4、文件最大不超过10MB;<br>
  134. </div>
  135. </div>
  136. </div>
  137. <div class="copy_exam_list" style="display: none">
  138. <form id="examSelect">
  139. <div class="" style="height:520px;padding:10px;">
  140. <div class="class_area" id="class_area">
  141. <table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer student-list" style="font-size:12px">
  142. <thead>
  143. <tr>
  144. <th>名称</th>
  145. <th>创建时期</th>
  146. <th>考试日期</th>
  147. <th>操作</th>
  148. </tr>
  149. </thead>
  150. <tbody>
  151. <tr><td colspan="8">暂无数据</td></tr>
  152. </tbody>
  153. </table>
  154. <div class="row">
  155. <div class="col-xs-6">
  156. <div class="dataTables_paginate paging_simple_numbers student_list_page">
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. </div>
  162. </form>
  163. </div>
  164. </div>
  165. <!--数学,物理上传试卷共用弹窗end-->
  166. <!--数学,物理发送新题库标注弹窗-->
  167. <div id="label_win" style="display: none;">
  168. <div class="pa_head">
  169. <div class="pa_title"><span class="pa_red">*</span>标注方式:</div>
  170. <div class="pa_label_tab">
  171. <span><input type="radio" name="select_label_mode" class="select_label_mode" checked value="1" />题库后台标注</span>
  172. <!-- <span><input type="radio" name="select_label_mode" disabled class="select_label_mode" value="2" />教师端自主标注</span>-->
  173. </div>
  174. <div class="pa_title"><span class="pa_red">*</span>期望完成时间:</div>
  175. <div class="pa_label_tab">
  176. <span><input type="text" name="estimate" class="estimate form_datetime dateinputer" readonly value="" /></span>
  177. </div>
  178. <p class="pa_red">注:期望完成时间是预计标注完成的重要依据之一,但实际预计完成不一定为期望完成时间。</p>
  179. <div class="pa_title">备注:</div>
  180. <div class="pa_label_tab">
  181. <span>
  182. <textarea name="remark" class="label_remark"></textarea>
  183. </span>
  184. </div>
  185. </div>
  186. </div>
  187. <!--数学,物理发送标注弹窗end-->
  188. <script>
  189. var datetime=new XNDatepicker($(".form_datetime"),{
  190. // format:'YYYY-MM-DD',
  191. type:'datetime',//year/month/date/multiple/ week/datetime/datetimerange/ daterange/monthrange/yearrange
  192. multipleDates:[],//当为多选日期类型时的初始值
  193. startTime:'',
  194. // endTime:'2036-04-04',
  195. // minDate:'2019-04-04',
  196. format:'YYYY-MM-DD HH:mm',
  197. maxDate:'',
  198. separator:' 到 ',
  199. showType:'modal',
  200. linkPanels:false,//面板联动
  201. showClear:true,//是否显示清除按钮
  202. autoConfirm:true,
  203. // showShortKeys:true,
  204. autoFillDate:true,//自动变更element里面的值
  205. },function(data){
  206. console.log(data)
  207. },)
  208. </script>