configs_setting.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. <!--<div style="display: none; overflow: hidden;" id="configsDialog">
  2. <form id="configs-form" class="form-horizontal m-tb-15" role="form" data-toggle="validator" method="POST" action="">-->
  3. <div class="panel panel-default">
  4. <div class="panel-heading">出题规则</div>
  5. <div class="panel-body">
  6. <div class="form-group">
  7. <label class="control-label col-xs-12 col-sm-2">选择题库:</label>
  8. <div class="col-xs-12 col-sm-8">
  9. <input id="config-cate_id" data-source="exam/cate/selectpage"
  10. data-params='{"custom[kind]":"QUESTION","isTree": true}' data-multiple="true" class="form-control selectpage"
  11. name="configs[cate_id]" value="{$configs.cate_ids|default=''}">
  12. <!--<input id="config-cate_id" data-source="exam/cate/getQuestionCate"
  13. data-params='{"custom[kind]":"QUESTION","isTree": true}' data-multiple="true" class="form-control selectpage"
  14. name="configs[cate_id]" value="{$configs.cate_ids|default=''}">-->
  15. </div>
  16. </div>
  17. <div class="form-group p-tb-15 m-l-25">
  18. <div class="col-xs-12 col-sm-12">
  19. <div class="p-l-80 m-tb-10" id="divAll">
  20. 共 <span class="span_total_total">0</span> 题
  21. ,选取 <span class="span_quantity">{$configs.all.quantity|default=0}</span> 题
  22. ,总分 <span class="span_total_score">{$configs.all.total_score|default=0}</span> 分
  23. </div>
  24. <div class="p-l-80 m-tb-10">
  25. <p>
  26. 判断题: 共 <span class="span_judge_total">0</span> 题,
  27. 选取 <input class="input_kind_count input_judge input_count w-60" data-type="judge" type="number"
  28. step="1" min="0" max="0" value="{$configs.judge.count|default=0}"> 题,
  29. <span class="span_judge_score">每题 <input class="input_judge_score input_score w-60"
  30. data-type="judge" type="number" step="1" min="0"
  31. max="0"
  32. value="{$configs.judge.score|default=0}"> 分,</span>
  33. 总分 <span class="span_kind_total_score span_judge_total_score">{$configs.judge.total_score|default=0}</span>
  34. <input style="display: none" type="checkbox" class="checkbox_difficulty checkbox_judge" data-type="judge"> <!--分难度-->
  35. </p>
  36. <ul class="ul_difficulty ul_judge_difficulty hide">
  37. <li>
  38. 难度低,共 <span class="span_judge_easy_total">0</span> 题,
  39. 选取 <input class="input_judge_easy input_count w-60" data-type="judge_easy" type="number"
  40. step="1" min="0" max="0" value="{$configs.judge.difficulty.easy.count|default=0}">
  41. 题,
  42. 每题 <input class="input_judge_easy_score input_score w-60" data-type="judge_easy"
  43. type="number" step="1" min="0" max="0"
  44. value="{$configs.judge.difficulty.easy.score|default=0}"> 分
  45. 总分 <span class="span_judge_easy_total_score">0</span> 分
  46. </li>
  47. <li>
  48. 难度中,共 <span class="span_judge_general_total">0</span> 题,
  49. 选取 <input class="input_judge_general input_count w-60" data-type="judge_general"
  50. type="number" step="1" min="0" max="0"
  51. value="{$configs.judge.difficulty.general.count|default=0}"> 题,
  52. 每题 <input class="input_judge_general_score input_score w-60" data-type="judge_general"
  53. type="number" step="1" min="0" max="0"
  54. value="{$configs.judge.difficulty.general.score|default=0}"> 分
  55. 总分 <span class="span_judge_general_total_score">0</span> 分
  56. </li>
  57. <li>
  58. 难度高,共 <span class="span_judge_hard_total">0</span> 题,
  59. 选取 <input class="input_judge_hard input_count w-60" data-type="judge_hard" type="number"
  60. step="1" min="0" max="0" value="{$configs.judge.difficulty.hard.count|default=0}">
  61. 题,
  62. 每题 <input class="input_judge_hard_score input_score w-60" data-type="judge_hard"
  63. type="number" step="1" min="0" max="0"
  64. value="{$configs.judge.difficulty.hard.score|default=0}"> 分
  65. 总分 <span class="span_judge_hard_total_score">0</span> 分
  66. </li>
  67. </ul>
  68. </div>
  69. <div class="p-l-80 m-tb-10">
  70. <p>
  71. 单选题: 共 <span class="span_single_total">0</span> 题,
  72. 选取 <input class="input_kind_count input_single input_count w-60" data-type="single"
  73. type="number" step="1" min="0" max="0" value="{$configs.single.count|default=0}"> 题,
  74. <span class="span_single_score">每题 <input class="input_single_score input_score w-60"
  75. data-type="single" type="number" step="1" min="0"
  76. max="0" value="{$configs.single.score|default=0}"> 分,</span>
  77. 总分 <span class="span_kind_total_score span_single_total_score">0</span> 分
  78. <input style="display: none" type="checkbox" class="checkbox_difficulty checkbox_single" data-type="single"> <!--分难度-->
  79. </p>
  80. <ul class="ul_difficulty ul_single_difficulty hide">
  81. <li>
  82. 难度低,共 <span class="span_single_easy_total">0</span> 题,
  83. 选取 <input class="input_single_easy input_count w-60" data-type="single_easy" type="number"
  84. step="1" min="0" max="0"
  85. value="{$configs.single.difficulty.easy.count|default=0}"> 题,
  86. 每题 <input class="input_single_easy_score input_score w-60" data-type="single_easy"
  87. type="number" step="1" min="0" max="0"
  88. value="{$configs.single.difficulty.easy.score|default=0}"> 分
  89. 总分 <span class="span_single_easy_total_score">0</span> 分
  90. </li>
  91. <li>
  92. 难度中,共 <span class="span_single_general_total">0</span> 题,
  93. 选取 <input class="input_single_general input_count w-60" data-type="single_general"
  94. type="number" step="1" min="0" max="0"
  95. value="{$configs.single.difficulty.general.count|default=0}"> 题,
  96. 每题 <input class="input_single_general_score input_score w-60" data-type="single_general"
  97. type="number" step="1" min="0" max="0"
  98. value="{$configs.single.difficulty.general.score|default=0}"> 分
  99. 总分 <span class="span_single_general_total_score">0</span> 分
  100. </li>
  101. <li>
  102. 难度高,共 <span class="span_single_hard_total">0</span> 题,
  103. 选取 <input class="input_single_hard input_count w-60" data-type="single_hard" type="number"
  104. step="1" min="0" max="0"
  105. value="{$configs.single.difficulty.hard.count|default=0}"> 题,
  106. 每题 <input class="input_single_hard_score input_score w-60" data-type="single_hard"
  107. type="number" step="1" min="0" max="0"
  108. value="{$configs.single.difficulty.hard.score|default=0}"> 分
  109. 总分 <span class="span_single_hard_total_score">0</span> 分
  110. </li>
  111. </ul>
  112. </div>
  113. <div class="p-l-80 m-tb-10">
  114. <p>
  115. 多选题: 共 <span class="span_multi_total">0</span> 题,
  116. 选取 <input class="input_kind_count input_multi input_count w-60" data-type="multi" type="number"
  117. step="1" min="0" max="0" value="{$configs.multi.count|default=0}"> 题,
  118. <span class="span_multi_score">每题 <input class="input_multi_score input_score w-60"
  119. data-type="multi" type="number" step="1" min="0"
  120. max="0"
  121. value="{$configs.multi.score|default=0}"> 分,</span>
  122. 总分 <span class="span_kind_total_score span_multi_total_score">0</span> 分
  123. <input style="display: none" type="checkbox" class="checkbox_difficulty checkbox_multi" data-type="multi"> <!--分难度-->
  124. </p>
  125. <ul class="ul_difficulty ul_multi_difficulty hide">
  126. <li>
  127. 难度低,共 <span class="span_multi_easy_total">0</span> 题,
  128. 选取 <input class="input_multi_easy input_count w-60" data-type="multi_easy" type="number"
  129. step="1" min="0" max="0" value="{$configs.multi.difficulty.easy.count|default=0}">
  130. 题,
  131. 每题 <input class="input_multi_easy_score input_score w-60" data-type="multi_easy"
  132. type="number" step="1" min="0" max="0"
  133. value="{$configs.single.difficulty.easy.score|default=0}"> 分
  134. 总分 <span class="span_multi_easy_total_score">0</span> 分
  135. </li>
  136. <li>
  137. 难度中,共 <span class="span_multi_general_total">0</span> 题,
  138. 选取 <input class="input_multi_general input_count w-60" data-type="multi_general"
  139. type="number" step="1" min="0" max="0"
  140. value="{$configs.multi.difficulty.general.count|default=0}"> 题,
  141. 每题 <input class="input_multi_general_score input_score w-60" data-type="multi_general"
  142. type="number" step="1" min="0" max="0"
  143. value="{$configs.multi.difficulty.general.score|default=0}"> 分
  144. 总分 <span class="span_multi_general_total_score">0</span> 分
  145. </li>
  146. <li>
  147. 难度高,共 <span class="span_multi_hard_total">0</span> 题,
  148. 选取 <input class="input_multi_hard input_count w-60" data-type="multi_hard" type="number"
  149. step="1" min="0" max="0" value="{$configs.multi.difficulty.hard.count|default=0}">
  150. 题,
  151. 每题 <input class="input_multi_hard_score input_score w-60" data-type="multi_hard"
  152. type="number" step="1" min="0" max="0"
  153. value="{$configs.multi.difficulty.hard.score|default=0}"> 分
  154. 总分 <span class="span_multi_hard_total_score">0</span> 分
  155. </li>
  156. </ul>
  157. </div>
  158. <div style="display: none" class="p-l-80 m-tb-10">
  159. <p>
  160. 填空题: 共 <span class="span_fill_total">0</span> 题,
  161. 选取 <input class="input_kind_count input_fill input_count w-60" data-type="fill" type="number"
  162. step="1" min="0" max="0" value="{$configs.fill.count|default=0}"> 题,
  163. <span class="span_fill_score">每题 <input class="input_fill_score input_score w-60"
  164. data-type="fill" type="number" step="1" min="0"
  165. max="0"
  166. value="{$configs.fill.score|default=0}"> 分,</span>
  167. 总分 <span class="span_kind_total_score span_fill_total_score">0</span> 分
  168. <input type="checkbox" class="checkbox_difficulty checkbox_fill" data-type="fill"> 分难度
  169. </p>
  170. <ul class="ul_difficulty ul_fill_difficulty hide">
  171. <li>
  172. 难度低,共 <span class="span_fill_easy_total">0</span> 题,
  173. 选取 <input class="input_fill_easy input_count w-60" data-type="fill_easy" type="number"
  174. step="1" min="0" max="0" value="{$configs.fill.difficulty.easy.count|default=0}">
  175. 题,
  176. 每题 <input class="input_fill_easy_score input_score w-60" data-type="fill_easy"
  177. type="number" step="1" min="0" max="0"
  178. value="{$configs.single.difficulty.easy.score|default=0}"> 分
  179. 总分 <span class="span_fill_easy_total_score">0</span> 分
  180. </li>
  181. <li>
  182. 难度中,共 <span class="span_fill_general_total">0</span> 题,
  183. 选取 <input class="input_fill_general input_count w-60" data-type="fill_general"
  184. type="number" step="1" min="0" max="0"
  185. value="{$configs.fill.difficulty.general.count|default=0}"> 题,
  186. 每题 <input class="input_fill_general_score input_score w-60" data-type="fill_general"
  187. type="number" step="1" min="0" max="0"
  188. value="{$configs.fill.difficulty.general.score|default=0}"> 分
  189. 总分 <span class="span_fill_general_total_score">0</span> 分
  190. </li>
  191. <li>
  192. 难度高,共 <span class="span_fill_hard_total">0</span> 题,
  193. 选取 <input class="input_fill_hard input_count w-60" data-type="fill_hard" type="number"
  194. step="1" min="0" max="0" value="{$configs.fill.difficulty.hard.count|default=0}">
  195. 题,
  196. 每题 <input class="input_fill_hard_score input_score w-60" data-type="fill_hard"
  197. type="number" step="1" min="0" max="0"
  198. value="{$configs.fill.difficulty.hard.score|default=0}"> 分
  199. 总分 <span class="span_fill_hard_total_score">0</span> 分
  200. </li>
  201. </ul>
  202. </div>
  203. <div class="p-l-80 m-tb-10">
  204. <p>
  205. 简答题: 共 <span class="span_short_total">0</span> 题,
  206. 选取 <input class="input_kind_count input_short input_count w-60" data-type="short" type="number"
  207. step="1" min="0" max="0" value="{$configs.short.count|default=0}"> 题,
  208. <span class="span_short_score">每题 <input class="input_short_score input_score w-60"
  209. data-type="short" type="number" step="1" min="0"
  210. max="0"
  211. value="{$configs.short.score|default=0}"> 分,</span>
  212. 总分 <span class="span_kind_total_score span_short_total_score">0</span> 分
  213. <input style="display: none" type="checkbox" class="checkbox_difficulty checkbox_short" data-type="short"> <!--分难度-->
  214. </p>
  215. <ul class="ul_difficulty ul_short_difficulty hide">
  216. <li>
  217. 难度低,共 <span class="span_short_easy_total">0</span> 题,
  218. 选取 <input class="input_short_easy input_count w-60" data-type="short_easy" type="number"
  219. step="1" min="0" max="0" value="{$configs.short.difficulty.easy.count|default=0}">
  220. 题,
  221. 每题 <input class="input_short_easy_score input_score w-60" data-type="short_easy"
  222. type="number" step="1" min="0" max="0"
  223. value="{$configs.single.difficulty.easy.score|default=0}"> 分
  224. 总分 <span class="span_short_easy_total_score">0</span> 分
  225. </li>
  226. <li>
  227. 难度中,共 <span class="span_short_general_total">0</span> 题,
  228. 选取 <input class="input_short_general input_count w-60" data-type="short_general"
  229. type="number" step="1" min="0" max="0"
  230. value="{$configs.short.difficulty.general.count|default=0}"> 题,
  231. 每题 <input class="input_short_general_score input_score w-60" data-type="short_general"
  232. type="number" step="1" min="0" max="0"
  233. value="{$configs.short.difficulty.general.score|default=0}"> 分
  234. 总分 <span class="span_short_general_total_score">0</span> 分
  235. </li>
  236. <li>
  237. 难度高,共 <span class="span_short_hard_total">0</span> 题,
  238. 选取 <input class="input_short_hard input_count w-60" data-type="short_hard" type="number"
  239. step="1" min="0" max="0" value="{$configs.short.difficulty.hard.count|default=0}">
  240. 题,
  241. 每题 <input class="input_short_hard_score input_score w-60" data-type="short_hard"
  242. type="number" step="1" min="0" max="0"
  243. value="{$configs.short.difficulty.hard.score|default=0}"> 分
  244. 总分 <span class="span_short_hard_total_score">0</span> 分
  245. </li>
  246. </ul>
  247. </div>
  248. <div style="display: none" class="p-l-80 m-tb-10">
  249. <p>
  250. 材料题: 共 <span class="span_material_total">0</span> 题,
  251. 选取 <input class="input_kind_count input_material input_count w-60" data-type="material" type="number"
  252. step="1" min="0" max="0" value="{$configs.material.count|default=0}"> 题,
  253. <span class="span_material_score">每题 <input class="input_material_score input_score w-60"
  254. data-type="material" type="number" step="1" min="0"
  255. max="0"
  256. value="{$configs.material.score|default=0}"> 分,</span>
  257. 总分 <span class="span_kind_total_score span_material_total_score">0</span> 分
  258. <input type="checkbox" class="checkbox_difficulty checkbox_material" data-type="material"> 分难度
  259. </p>
  260. <ul class="ul_difficulty ul_material_difficulty hide">
  261. <li>
  262. 难度低,共 <span class="span_material_easy_total">0</span> 题,
  263. 选取 <input class="input_material_easy input_count w-60" data-type="material_easy" type="number"
  264. step="1" min="0" max="0" value="{$configs.material.difficulty.easy.count|default=0}">
  265. 题,
  266. 每题 <input class="input_material_easy_score input_score w-60" data-type="material_easy"
  267. type="number" step="1" min="0" max="0"
  268. value="{$configs.single.difficulty.easy.score|default=0}"> 分
  269. 总分 <span class="span_material_easy_total_score">0</span> 分
  270. </li>
  271. <li>
  272. 难度中,共 <span class="span_material_general_total">0</span> 题,
  273. 选取 <input class="input_material_general input_count w-60" data-type="material_general"
  274. type="number" step="1" min="0" max="0"
  275. value="{$configs.material.difficulty.general.count|default=0}"> 题,
  276. 每题 <input class="input_material_general_score input_score w-60" data-type="material_general"
  277. type="number" step="1" min="0" max="0"
  278. value="{$configs.material.difficulty.general.score|default=0}"> 分
  279. 总分 <span class="span_material_general_total_score">0</span> 分
  280. </li>
  281. <li>
  282. 难度高,共 <span class="span_material_hard_total">0</span> 题,
  283. 选取 <input class="input_material_hard input_count w-60" data-type="material_hard" type="number"
  284. step="1" min="0" max="0" value="{$configs.material.difficulty.hard.count|default=0}">
  285. 题,
  286. 每题 <input class="input_material_hard_score input_score w-60" data-type="material_hard"
  287. type="number" step="1" min="0" max="0"
  288. value="{$configs.material.difficulty.hard.score|default=0}"> 分
  289. 总分 <span class="span_material_hard_total_score">0</span> 分
  290. </li>
  291. </ul>
  292. </div>
  293. </div>
  294. </div>
  295. <div class="form-group layer-footer">
  296. <label class="control-label col-xs-12 col-sm-2"></label>
  297. <div class="col-xs-12 col-sm-8">
  298. <button type="button" class="btn btn-success btn-embossed" id="btnSaveConfig">保存设置</button>
  299. <!--<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>-->
  300. </div>
  301. </div>
  302. <!--</form>
  303. </div>-->
  304. </div>
  305. </div>