thirdview2.php 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114
  1. <script src="/js/jquery.datetimepicker.js"></script>
  2. <link rel="stylesheet" href="/fonts/fpdf/iconfont.css" />
  3. <link rel="stylesheet" href="/css/modelCreatePaper.css" />
  4. <link rel="stylesheet" href="/css/jquery.datetimepicker.css" />
  5. <link rel="stylesheet" href="/css/third/base.css" />
  6. <style>
  7. #choose-error{color: #FF0000;}
  8. #examName-error{color: #FF0000;}
  9. #classIds-error{color: #FF0000;}
  10. #type-error{color: #FF0000;}
  11. #markType-error{color: #FF0000;}
  12. #subject-error{color: #FF0000;}
  13. #examDate{color: #FF0000;}
  14. </style>
  15. <div class="main-content-inner">
  16. <ul class="clearfix main-content-inner-ul">
  17. <?php if((isset(Yii::app()->session['session_duoxueke_subject_id']) && Yii::app()->session['session_duoxueke_subject_id']==3) || (isset(Yii::app()->session['session_duoxueke_subject_id']) && Yii::app()->session['session_duoxueke_subject_id']==6)){?>
  18. <li class="pull-left">
  19. <button onclick='location.href="<?php echo $this->createUrl("print/index",array('type'=>'wp'));?>"' class="button button_normal button_group button_arrow " data-button="red">打印试卷</button>
  20. <img src="/images/line.jpg" style="height:45px;" />
  21. </li>
  22. <li class="pull-left">
  23. <!--<button onclick='ccc()' class="button button_normal button_group button_arrow <?php if($printType == 'wtb'){echo 'button_active';}?>" data-button="red">下载错题本</button>-->
  24. <button onclick='location.href="<?php echo $this->createUrl("print/sub_index",array('type'=>'wtb'));?>"' class="button button_normal button_group button_arrow " data-button="red">下载错题本</button>
  25. <img src="/images/line.jpg" style="height:45px;" />
  26. </li>
  27. <li class="pull-left">
  28. <button onclick='location.href="<?php echo $this->createUrl("print/sub_index",array('type'=>'isp'));?>"' class="button button_normal button_group button_arrow " data-button="red">下载个性化学习方案</button>
  29. <img src="/images/line.jpg" style="height:45px;" />
  30. </li>
  31. <li class="pull-left">
  32. <button onclick='location.href="<?php echo $this->createUrl("print/sub_index",array('type'=>'studytrend'));?>"' class="button button_normal button_group button_arrow " data-button="red">下载个性化学习宝</button>
  33. <img src="/images/line.jpg" style="height:45px;" />
  34. </li>
  35. <li class="pull-left">
  36. <button onclick='location.href="<?php echo $this->createUrl("print/student_product");?>"' class="button button_normal button_group button_arrow " data-button="red">阶段复习个性化学习宝</button>
  37. <img src="/images/line.jpg" style="height:45px;" />
  38. </li>
  39. <li class="pull-left">
  40. <button onclick='location.href="<?php echo $this->createUrl("third/index");?>"' class="button button_normal button_group button_arrow button_active" data-button="red">第三方试卷</button>
  41. <img src="/images/line.jpg" style="height:45px;" />
  42. </li>
  43. <li class="pull-left">
  44. <button onclick='location.href="<?php echo $this->createUrl("export/index");?>"' class="button button_normal button_group button_arrow <?php if($printType == ''){echo 'button_active';}?>" data-button="red">导出报告</button>
  45. <img src="/images/line.jpg" style="height:45px;" />
  46. </li>
  47. <li class="pull-left">
  48. <button onclick='location.href="<?php echo $this->createUrl("upload/index");?>"' class="button button_normal button_group button_arrow" data-button="red">上传试卷</button>
  49. <img src="/images/line.jpg" style="height:45px;" />
  50. </li>
  51. <?php if(isset(Yii::app()->session['testFlag'])&&(Yii::app()->session['testFlag']==1)){
  52. ?>
  53. <li class="pull-left">
  54. <button onclick='location.href="<?php echo $this->createUrl("print/restore");?>"' class="button button_normal button_group button_arrow" data-button="red">还原考试</button>
  55. <img src="/images/line.jpg" style="height:45px;" />
  56. </li>
  57. <?php
  58. }?>
  59. <li class="pull-left">
  60. <button onclick='location.href="<?php echo $this->createUrl("record/importscore"); ?>"'
  61. class="button button_normal button_group button_arrow " data-button="red">导入成绩
  62. </button>
  63. <img src="/images/line.jpg" style="height:45px;"/>
  64. </li>
  65. <?php }else{ ?>
  66. <li class="pull-left">
  67. <button onclick='location.href="<?php echo $this->createUrl("third/index");?>"' class="button button_normal button_group button_arrow button_active" data-button="red">试卷列表</button>
  68. <img src="/images/line.jpg" style="height:45px;" />
  69. </li>
  70. <li class="pull-left">
  71. <button onclick='location.href="<?php echo $this->createUrl("export/index_duo");?>"' class="button button_normal button_group button_arrow " data-button="red">导出报告</button>
  72. <img src="/images/line.jpg" style="height:45px;" />
  73. </li>
  74. <?php }?>
  75. <!-- <div class="tab-con clearfix pull-right" style="margin:8px 11px 0 0">
  76. <div class="has-sel fl"><?php /*echo isset(Yii::app()->params["subjectId"][Yii::app()->session['session_subject_id']])?Yii::app()->params["subjectId"][Yii::app()->session['session_subject_id']]:'数学'*/?></div>
  77. <div class="sel-opt fl">
  78. 切换学科
  79. <?php /*if($subject){*/?>
  80. <div class="points"></div>
  81. <?php /*}*/?>
  82. </div>
  83. <div class="sel-cons" style="z-index:6;background-color: #fff;">
  84. <div class="sc-lis" val="3"><span>数学<?php /*if($subject && isset($subject[3]) && !empty($subject[3])){*/?><div class="points"></div><?php /*}*/?></span></div>
  85. <div class="sc-lis" val="12"><span>物理<?php /*if($subject && isset($subject[12]) && !empty($subject[12])){*/?><div class="points"></div><?php /*}*/?></span></div>
  86. <div class="sc-lis" val="13"><span>化学<?php /*if($subject && isset($subject[13]) && !empty($subject[13])){*/?><div class="points"></div><?php /*}*/?></span></div>
  87. <div class="sc-lis" val="14"><span>生物<?php /*if($subject && isset($subject[14]) && !empty($subject[14])){*/?><div class="points"></div><?php /*}*/?></span></div>
  88. </div>
  89. </div>-->
  90. <li class="pull-left">
  91. <button onclick='location.href="<?php echo $this->createUrl("cylet/index");?>"' class="button button_normal button_group button_arrow" data-button="red">全学科统考</button>
  92. </li>
  93. </ul>
  94. <div class="page-content">
  95. <div class="mcp-title">模板组卷</div>
  96. <div class="mcp-main-con">
  97. <div class="mcp-form-list clearfix">
  98. <div class="mcp-form-menu fl">试卷名称</div>
  99. <div class="mcp-form-detail fl">
  100. <input type="text" placeholder="必填" class="test-paper-name" name="examName">
  101. </div>
  102. <div id="examName-error"></div>
  103. </div>
  104. <div class="mcp-form-list clearfix">
  105. <div class="mcp-form-menu fl">主阅卷员</div>
  106. <div class="mcp-form-detail fl">
  107. <div class="inp-text pointer">选择阅卷员</div>
  108. <ul class="select-con tac">
  109. <!--<li class="sel-option pointer" id="1">高三一班</li>-->
  110. <?php foreach($teacher_arr as $t):?>
  111. <li class="sel-option pointer" id="<?php echo $t['teacher_id']?>"><?php echo $t['teacher_name']?></li>
  112. <?php endforeach;?>
  113. <!--<li class="sel-option pointer" id="2">高三二班</li>-->
  114. <!--<li class="sel-option pointer" id="3">高三三班</li>-->
  115. </ul>
  116. </div>
  117. <div id="choose-error"></div>
  118. </div>
  119. <div class="mcp-form-list clearfix">
  120. <div class="mcp-form-menu fl">考试班级</div>
  121. <div class="mcp-form-detail fl">
  122. <div class="test-classes-desc">默认已选我执教的班级(<span class="">单击移除</span>)<span id="classIds-error"></span></div>
  123. <div class="sel-classes g1" status="1">
  124. </div>
  125. <div class="sel-classes g2" style="display: none;" status="0">
  126. </div>
  127. <div class="sel-classes g3" style="display: none;" status="0">
  128. </div>
  129. <div class="clearfix">
  130. <div class="grade-sel fl">
  131. <div class="grade-top">年级</div>
  132. <ul>
  133. <li class="active" grade="1">高一</li>
  134. <li class="" grade="2">高二</li>
  135. <li class="" grade="3">高三</li>
  136. </ul>
  137. </div>
  138. <div class="bj-sel fl" id="grade1">
  139. <div class="class-top">班级</div>
  140. <ul>
  141. </ul>
  142. </div>
  143. <div class="bj-sel fl" id="grade2" style="display: none;">
  144. <div class="class-top">班级</div>
  145. <ul>
  146. </ul>
  147. </div>
  148. <div class="bj-sel fl" id="grade3" style="display: none;">
  149. <div class="class-top">班级</div>
  150. <ul>
  151. </ul>
  152. </div>
  153. </div>
  154. </div>
  155. </div>
  156. <div class="mcp-form-list clearfix">
  157. <div class="mcp-form-menu fl">线上阅卷</div>
  158. <div class="mcp-form-detail fl clearfix" id ="markType">
  159. <div class="mcp-radio-sel fl">
  160. <span class="sel-btn select markType" value="3"></span>
  161. <span class ="markType" value="3">班级混合阅卷</span>
  162. </div>
  163. <div class="mcp-radio-sel fl">
  164. <span class="sel-btn markType" value="4"></span>
  165. <span class="markType" value="4">班级单独阅卷</span>
  166. </div>
  167. <div id="markType-error"></div>
  168. </div>
  169. </div>
  170. <div class="mcp-form-list clearfix">
  171. <div class="mcp-form-menu fl">考试时间</div>
  172. <div class="mcp-form-detail fl clearfix">
  173. <input type="text" class='core datetimepicker8' style="width: 140px;line-height: 27px;padding-left: 5px;" name="examDate" id="trial_begin_time_test" readonly/>
  174. </div>
  175. <div id="examDate"></div>
  176. </div>
  177. </div>
  178. <div class="template-flag-box">
  179. <a href="javascript:;" id="createThird" active="true">保存试卷</a>
  180. <!--<a href="javascript:;" class="template-flag">创建答题卡</a>-->
  181. </div>
  182. <div class="template-flag-box" style="margin-top: 15px;font-size: 14px;color: #999999">
  183. <?php
  184. $_num= '';
  185. $use_version = '';
  186. if(isset(Yii::app()->session['coachInfo']->use_version))
  187. {
  188. $use_version = Yii::app()->session['coachInfo']->use_version;
  189. }else
  190. {
  191. $use_version = Yii::app()->session['coachInfo']['use_version'];
  192. }
  193. if(!$use_version)
  194. {
  195. $use_version = 100;
  196. }
  197. $version_number = implode('',explode('.',$use_version));
  198. if(strlen($version_number)<7)
  199. {
  200. for($i=0;$i<7-strlen($version_number);$i++)
  201. {
  202. $_num.='0';
  203. }
  204. }
  205. $version_number=(int)$version_number.$_num;
  206. ?>
  207. <span>该试卷是否需要创建新的答题卡?<a href="javascript:;" class="template-flag" style="color: #006cff;border-radius:unset;border-bottom:2px #006cff solid;background: none;font-size: 14px;font-weight: bold;width: 127px;">创建新的答题卡</a></span>
  208. </div>
  209. <div class="teamplate-list-box">
  210. <div class="mcp-form-list clearfix">
  211. <table class="card-setting">
  212. <tr>
  213. <th>答题卡类型</th>
  214. <td>
  215. <label><input type="radio" name="layout" checked value="21">A3</label>
  216. <label><input type="radio" name="layout" value="11">A4横版</label>
  217. <label><input type="radio" name="layout" value="10">A4竖版</label>
  218. </td>
  219. </tr>
  220. <tr>
  221. <th>考号板式</th>
  222. <td>
  223. <label><input type="radio" name="select_card_type" value="1" checked>准考证号</label>
  224. <label><input type="radio" name="select_card_type" value="2">条形码</label>
  225. </td>
  226. </tr>
  227. <tr>
  228. <th>题型(多选)</th>
  229. <td class="ques-type">
  230. <div class="ques-type-control">
  231. <label><input type="checkbox">单选题</label>
  232. <label class="special-type"><input type="checkbox">不定项选择题</label>
  233. <label><input type="checkbox">主观题</label>
  234. <label ><input type="checkbox">选做题</label>
  235. </div>
  236. <div class="ques-topic-num">
  237. <div class="ques-topic ques-topic-one">
  238. <h3 class="clearfix"><span class="fl">单选题</span></h3>
  239. <div class="clearfix ques-topic-list">
  240. <img src="/images/del_2.png" class="ques-item-del">
  241. <div class="ques-topic-item">题型<span>1</span>:<em>【A】<b></b></em><em>【B】<b></b></em><em>【C】<b></b></em><em>【D】<b></b></em><s></s><a href="javascript:;">选项编辑</a></div>
  242. <div class="topic-num">题号:<input type="text" value=""></div>
  243. <p>*多个题号逗号隔开(如1,2,3,4,5);连续题号可用"-"隔开(如:1-5);</p>
  244. </div>
  245. <div class="add-type"><a href="javascript:;"><img src="/css/third/img/add_topic.png" alt="">增加题型</a></div>
  246. </div>
  247. <div class="ques-topic">
  248. <h3 class="clearfix"><span class="fl">不定向选择题</span></h3>
  249. <div class="clearfix ques-topic-list">
  250. <img src="/images/del_2.png" class="ques-item-del">
  251. <div class="ques-topic-item">题型<span>1</span>:<em>【A】<b></b></em><em>【B】<b></b></em><em>【C】<b></b></em><em>【D】<b></b></em><s></s><a href="javascript:;">选项编辑</a></div>
  252. <div class="topic-num">题号:<input type="text" value=""></div>
  253. <p>*多个题号逗号隔开(如1,2,3,4,5);连续题号可用"-"隔开(如:1-5);</p>
  254. </div>
  255. <div class="add-type"><a href="javascript:;"><img src="/css/third/img/add_topic.png" alt="">增加题型</a></div>
  256. </div>
  257. <div class="ques-topic ques-topic3">
  258. <h3 class="clearfix">
  259. <span class="fl">主观题</span>
  260. <div class="fl line-type">
  261. 边框样式:
  262. <label><input type="radio" name="lineType" checked>无边框</label>
  263. <label><input type="radio" name="lineType">虚线</label>
  264. <label><input type="radio" name="lineType">实线</label>
  265. </div>
  266. </h3>
  267. <div class="clearfix ques-topic-list">
  268. <img src="/images/del_2.png" class="ques-item-del">
  269. <div class="ques-topic-item">主观题<span>1</span>:
  270. <em>样式:<img src="/css/third/img/topic_type.png" alt=""></em>
  271. <label><input type="radio" name="topicType" value="1" checked>空白</label>
  272. <label><input type="radio" name="topicType" value="2">横线</label>
  273. <div class="line-control">
  274. 行数:
  275. <b class="add">+</b>
  276. <input type="text" value="1" readonly>
  277. <b class="del">-</b>
  278. </div>
  279. <label><input type="radio" name="topicType" value="3">作文表格</label>
  280. </div>
  281. <div class="topic-num">题号:<input type="text" value=""></div>
  282. <p>*多个题号逗号隔开(如1,2,3,4,5);连续题号可用"-"隔开(如:1-5);</p>
  283. </div>
  284. <div class="add-type"><a href="javascript:;" class="main-topic"><img src="/css/third/img/add_topic.png" alt="">增加题型</a></div>
  285. </div>
  286. <div class="ques-topic">
  287. <h3 class="clearfix"><span class="fl">选做题</span></h3>
  288. <div class="clearfix ques-topic-list choose-topic">
  289. <img src="/images/del_2.png" class="ques-item-del">
  290. <div class="ques-topic-item choose-topic-num">题型:<input type="text" value="">&nbsp;&nbsp;选&nbsp;&nbsp;<input type="text" name="bixuan" value="1" readonly></div>
  291. <div>样式:<label><input type="radio" name="chooseType" value="1" checked>空白</label><label><input type="radio" name="chooseType" value="2">横线</label></div>
  292. <div class="topic-num">题号:<input type="text" value=""></div>
  293. <p>*选做题必须为模板最后一题,选做题题型数量与填写的题号要一致,(如题型2选1,则题号:2,3);</p>
  294. <p>*多个题号逗号隔开(如1,2,3,4,5);连续题号可用"-"隔开(如:1-5);</p>
  295. </div>
  296. </div>
  297. </div>
  298. </td>
  299. </tr>
  300. </table>
  301. </div>
  302. <input type="hidden" name="subjectId" value="<?php echo Yii::app()->session['session_duoxueke_subject_id'];?>">
  303. <input type="hidden" name="textbookId" value="0">
  304. <input type="hidden" name="tpl_index" value="1050">
  305. <input type="hidden" name="tpl_index" value="1050">
  306. <input name="type" value="1" type="hidden"/>
  307. <input name="teacherId" value="0" type="hidden"/>
  308. <input name="markType" value="3" type="hidden"/>
  309. <input name="classIds" value="0" type="hidden"/>
  310. <input name="topic" value="0" type="hidden"/>
  311. <input name="is_update" value="0" type="hidden"/>
  312. <!--<button id="createThird">确定</button>-->
  313. <div class="mcp-form-list mcp-fl-btns clearfix">
  314. <input type="button" value="打印预览" class="mcp-sure-btn" id="PrintThird" active="true">
  315. </div>
  316. </div>
  317. </div>
  318. </div>
  319. <script>
  320. var TopicType=new Array(4);
  321. TopicType[0]=[];
  322. TopicType[1]=[];
  323. TopicType[2]=[];
  324. TopicType[3]=[];
  325. $(document).ready(function(){
  326. $('.datetimepicker8').datetimepicker({
  327. onGenerate:function( ct ){
  328. $(this).find('.xdsoft_date').toggleClass('xdsoft_disabled');
  329. $(this).find('.xdsoft_today').removeClass('xdsoft_disabled');
  330. },
  331. format:'Y-m-d',
  332. formatDate:'Y-m-d',
  333. //minDate:'-1970/01/2',
  334. maxDate:'+1970/01/2',
  335. todayBtn : true,
  336. minDate: '-<?php echo date('Y-m-d', strtotime('Yesterday')); ?>',
  337. timepicker:false
  338. });
  339. //选择考试时间
  340. //选择教材题源
  341. var subjects = <?php echo json_encode($teacherSubjectNames); ?>;
  342. var textbooks = <?php echo json_encode($teacherSubjectMaterialNames); ?>;
  343. for(var key in subjects){
  344. $(".choose-grade").append('<option value="'+ key +'">'+ subjects[key] +'</option>');
  345. }
  346. $(".choose-grade").change(function(){
  347. var obj = $(this);
  348. var val = obj.val();
  349. var child = $('.choose-book');
  350. child.html('<option value="0">选择教材</option>');
  351. for (var key in textbooks) {
  352. if (key == val) {
  353. child.html('');
  354. for (var name in textbooks[key]) {
  355. child.append('<option value="'+ [name] +'">'+ textbooks[key][name] +'</option>');
  356. }
  357. }
  358. }
  359. });
  360. //返回
  361. $('.mcp-back-btn').click(function(){
  362. location.href="<?php echo Yii::app()->createUrl('third/index')?>";
  363. });
  364. $('input[name="examName"]').keydown(function(event){
  365. $('#examName-error').html("");
  366. });
  367. //阅卷方式
  368. $('.markType').click(function(){
  369. var markType = $(this).attr('value');
  370. if(markType){
  371. $('#markType-error').html("");
  372. }
  373. $('input[name="markType"]').val(markType);
  374. });
  375. //考试类型
  376. $('.examType').click(function(){
  377. var type = $(this).attr('value');
  378. if(type){
  379. $('#type-error').html("");
  380. }
  381. $('input[name="type"]').val(type);
  382. });
  383. //选择教师
  384. $('.sel-option').click(function(){
  385. var teacher_id = $(this).attr('id');
  386. if(teacher_id){
  387. $('#choose-error').html("");
  388. }
  389. $('input[name="teacherId"]').val(teacher_id);
  390. $.post(
  391. "<?php echo Yii::app()->createUrl('third/ajaxchangeclasses')?>",
  392. {teacher_id:teacher_id},
  393. function(result){
  394. if(result.error){
  395. $('#choose-error').html(result.error);
  396. }else{
  397. var htmlg1 = "";
  398. var htmlg2 = "";
  399. var htmlg3 = "";
  400. $.each(result.class_arr_select,function(k,v){
  401. if(v.grade == 1){
  402. htmlg1+="<span grade='"+v.grade+"' classid='"+v.class_id+"'>"+v.class_name+"</span>";
  403. }
  404. if(v.grade == 2){
  405. htmlg2+="<span grade='"+v.grade+"' classid='"+v.class_id+"'>"+v.class_name+"</span>";
  406. }
  407. if(v.grade == 3){
  408. htmlg3+="<span grade='"+v.grade+"' classid='"+v.class_id+"'>"+v.class_name+"</span>";
  409. }
  410. });
  411. $('.g1').html(htmlg1);
  412. $('.g2').html(htmlg2);
  413. $('.g3').html(htmlg3);
  414. var htmlidg1 = "";
  415. var htmlidg2 = "";
  416. var htmlidg3 = "";
  417. $.each(result.class_arr_noselect,function(k,v){
  418. if(v.grade == 1){
  419. htmlidg1 += '<li class="bjs-lis ellipsis" grade="'+v.grade+'" classid="'+v.class_id+'" ><span class="judge-sel"></span>'+v.class_name+'</li>';
  420. }
  421. if(v.grade == 2){
  422. htmlidg2 += '<li class="bjs-lis ellipsis" grade="'+v.grade+'" classid="'+v.class_id+'" ><span class="judge-sel"></span>'+v.class_name+'</li>';
  423. }
  424. if(v.grade == 3){
  425. htmlidg3 += '<li class="bjs-lis ellipsis" grade="'+v.grade+'" classid="'+v.class_id+'" ><span class="judge-sel"></span>'+v.class_name+'</li>';
  426. }
  427. });
  428. $('#grade1 ul').html(htmlidg1);
  429. $('#grade2 ul').html(htmlidg2);
  430. $('#grade3 ul').html(htmlidg3);
  431. }
  432. },
  433. 'json'
  434. );
  435. });
  436. //切换年级
  437. $('.a-years,.a-province,.paper-type > span, .grade-sel ul li').click(function(){
  438. if(!$(this).hasClass('active')){
  439. $(this).addClass('active').siblings().removeClass('active');
  440. var gradearr=[1,2,3];
  441. var grade=$(this).attr("grade");
  442. for(var i=0;i<=gradearr.length;i++){
  443. if(gradearr[i]==grade){
  444. $("#grade"+grade).show();
  445. $('.g'+grade).show();
  446. $('.g'+grade).attr('status',1);
  447. }else{
  448. $("#grade"+gradearr[i]).hide();
  449. $(".g"+gradearr[i]).hide();
  450. $(".g"+gradearr[i]).attr('status',0);
  451. }
  452. }
  453. }
  454. });
  455. //添加班级
  456. $(".bj-sel ul").on("click","li", function(){
  457. $('#classIds-error').html("");
  458. $(this).find('.judge-sel').addClass('active');
  459. $(this).remove();
  460. var grade = $(this).attr('grade');
  461. $('.g'+grade).append('<span grade="'+$(this).attr("grade")+'" classid="'+$(this).attr("classid")+'">'+$(this).text()+'</span>');
  462. });
  463. //移除班级
  464. $('.sel-classes').delegate('span','click',function(){
  465. $(this).remove();
  466. $("#grade"+$(this).attr("grade")).children("ul").append('<li class="bjs-lis" grade="'+$(this).attr("grade")+'" classid="'+$(this).attr("classid")+'"><span class="judge-sel"></span>'+$(this).html()+'</li>');
  467. });
  468. if ($('.sel-classes > span').length > 0){
  469. for (var i = 0;i < $('.sel-classes > span').length; i++){
  470. for (var k = 0;k < $('.bjs-lis').length; k++){
  471. if ($('.bjs-lis').eq(k).text().trim()==$('.sel-classes > span').eq(i).text().trim()) {
  472. $('.bjs-lis').eq(k).find('.judge-sel').addClass('active');
  473. }
  474. }
  475. }
  476. }
  477. $('.mcp-radio-sel').click(function(){
  478. if (!$(this).find('.sel-btn').hasClass('select')) {
  479. $(this).find('.sel-btn').addClass('select');
  480. $(this).siblings().find('.sel-btn').removeClass('select');
  481. }
  482. });
  483. $('.grade-sel ul li').click(function(){
  484. $(this).addClass('active').siblings().removeClass('active');
  485. });
  486. // $('.judge-sel').on('click',function(){
  487. // alert(1);
  488. // if (!$(this).hasClass('active')) {
  489. // $(this).addClass('active');
  490. // $('.sel-classes').append('<span>'+$(this).closest('.bjs-lis').text()+'</span>');
  491. // } else {
  492. // $(this).removeClass('active');
  493. // for (var i = 0;i < $('.sel-classes > span').length; i++) {
  494. // console.log($('.sel-classes > span').eq(i).text());
  495. // if ($('.sel-classes > span').eq(i).text().trim() == $(this).closest('.bjs-lis').text().trim()){
  496. // $('.sel-classes > span').eq(i).remove();
  497. // }
  498. // }
  499. // }
  500. // });
  501. $('.sel-classes > span').click(function(){
  502. $(this).remove();
  503. for (var i = 0;i < $('.bjs-lis').length; i++) {
  504. if ($('.bjs-lis').eq(i).text().trim()==$(this).text().trim()){
  505. $('.bjs-lis').eq(i).find('.judge-sel').removeClass('active');
  506. }
  507. }
  508. });
  509. // 下拉列表模拟
  510. $('.inp-text').click(function(){
  511. if ($(this).next().is(':hidden')){
  512. $(this).next().show();
  513. } else {
  514. $(this).next().hide();
  515. }
  516. });
  517. // 点下拉列表选项
  518. $('.select-con li').click(function(){
  519. $(this).closest('.select-con').hide();
  520. $(this).closest('.mcp-form-detail').find('.inp-text').text($(this).text());
  521. });
  522. // 点击空白处下拉列表消失
  523. $(document).click(function(e){
  524. var targetNode = $(e.target).closest(".inp-text");
  525. if (targetNode.length>0){
  526. return;
  527. }else{
  528. $(".select-con").hide();
  529. }
  530. });
  531. $("body").delegate("#createThird[active='true']", "click", function(e) {
  532. var classIds='';
  533. $(".sel-classes[status=1]").children("span").each(function(){
  534. classIds += $(this).attr('classid')+",";
  535. });
  536. $('input[name="classIds"]').val(classIds);
  537. var error = new Array();
  538. var classIds = $('input[name="classIds"]').val();
  539. var examName = $('input[name="examName"]').val();
  540. var is_update = $('input[name="is_update"]').val();
  541. var type = $('input[name="type"]').val();
  542. var teacherId = $('input[name="teacherId"]').val();
  543. // var markType = $('input[name="markType"]').val();
  544. var markType = $("#markType").find(".select").attr("value");
  545. var subjectId = $('input[name=subjectId]').val();
  546. var examDate = $("input[name='examDate']").val();
  547. if(subjectId == 0 || subjectId == null){
  548. $('#subject-error').html('请指定题源');
  549. error.push('没有指定题源');
  550. }else{
  551. $('#subject-error').html('');
  552. }
  553. if(examName == "" || examName == null){
  554. $('#examName-error').html('请指定考试名称');
  555. error.push('没有指定考试名称');
  556. }else{
  557. $('#examName-error').html('');
  558. }
  559. if(type == "" || type == null){
  560. $('#type-error').html('请指定考试类型');
  561. error.push('没有指定考试类型');
  562. }else{
  563. $('#type-error').html('');
  564. }
  565. if(teacherId == '0' || teacherId == null){
  566. $('#choose-error').html('请指定阅卷老师');
  567. error.push('没有指定阅卷老师');
  568. }else{
  569. $('#choose-error').html('');
  570. if(classIds == "" || classIds == null){
  571. $('#classIds-error').html('请指定考试班级');
  572. error.push('没有指定考试班级');
  573. }else{
  574. $('#classIds-error').html('');
  575. }
  576. }
  577. if(!markType){
  578. $('#markType-error').html('请指定阅卷方式');
  579. error.push('没有指定阅卷方式');
  580. }else{
  581. $('#markType-error').html('');
  582. }
  583. if (examDate == '') {
  584. $('#examDate').html('请设置考试日期');
  585. error.push('请设置考试日期');
  586. } else if (examDate < '<?php echo date('Y-m-d'); ?>') {
  587. //$('#examDate').html('考试日期设置错误');
  588. // error.push('考试日期设置错误');
  589. }else{
  590. $('#examDate').html('');
  591. }
  592. if(error.length == 0){
  593. var data={
  594. examName:examName,
  595. teacherId:teacherId,
  596. type:type,
  597. classIds:classIds,
  598. markType:markType,
  599. subjectId:subjectId,
  600. textbookId:0,
  601. examDate:examDate,
  602. tpl_index:1050,
  603. is_update:is_update,
  604. topic:JSON.stringify(TopicType),
  605. layout:$("input[name=layout]:checked").val(),
  606. select_card_type:$("input[name=select_card_type]:checked").val()
  607. };
  608. if (!$(".ques-type-control label input").is(':checked')) {
  609. $.post("<?php echo Yii::app()->createUrl('third/quanCreatethird')?>",data,function (data) {
  610. var m = JSON.parse(data);
  611. if(m.status==0)
  612. {
  613. layer.msg(m.msg);
  614. return false;
  615. }else{
  616. $('input[name="is_update"]').val(m.exam_group_id);
  617. location.href = m.result;
  618. }
  619. });
  620. }else{
  621. $.post("<?php echo Yii::app()->createUrl('third/ajaxCreatethird')?>",data,function (data) {
  622. var m = JSON.parse(data);
  623. if(m.status==0)
  624. {
  625. layer.msg(m.msg);
  626. return false;
  627. }else{
  628. $('input[name="is_update"]').val(m.exam_group_id);
  629. // evaluationClient.CreateDiSanFang(JSON.stringify(m.result));
  630. location.href = m.result;
  631. }
  632. });
  633. }
  634. }else{
  635. layer.msg(error.join(','));
  636. }
  637. });
  638. $("#PrintThird").click(function(){
  639. if (!$(".ques-type-control label input").is(':checked')) {
  640. layer.msg('请选择题型!');return false;
  641. }
  642. for(i = 0 ; i<TopicType.length;i++)
  643. {
  644. if(TopicType[i].length>0){
  645. if( i==3 &&!TopicType[3][0][0]){
  646. layer.msg('选做题设置有误,题型不能为空!');
  647. return false;
  648. }
  649. for (j = 0;j<TopicType[i].length;j++){
  650. if(TopicType[i][j][1]=="")
  651. {
  652. layer.msg('题号不能为空!');
  653. return false;
  654. }
  655. }
  656. }
  657. }
  658. $('input[name="topic"]').val(JSON.stringify(TopicType)); //题型选择数据赋值
  659. var classIds='';
  660. $(".sel-classes[status=1]").children("span").each(function(){
  661. classIds += $(this).attr('classid')+",";
  662. });
  663. $('input[name="classIds"]').val(classIds);
  664. var examName = $('input[name="examName"]').val();
  665. var classIds = $('input[name="classIds"]').val();
  666. var data = {
  667. examName:examName,
  668. classIds:classIds,
  669. layout:$("input[name=layout]:checked").val(),
  670. select_card_type:$("input[name=select_card_type]:checked").val(),
  671. topic:JSON.stringify(TopicType)
  672. };
  673. $.post("<?php echo Yii::app()->createUrl('third/create_sheet')?>",data,function (rs) {
  674. var m = JSON.parse(rs);
  675. if(m.status==0)
  676. {
  677. layer.msg(m.msg);
  678. return false;
  679. }else{
  680. evaluationClient.CreateDiSanFang(JSON.stringify(m.result));
  681. }
  682. });
  683. });
  684. });
  685. </script>
  686. <script>
  687. $(function(){
  688. $(".template-flag").click(function(){
  689. $(".teamplate-list-box").toggle();
  690. })
  691. // 点击显示隐藏
  692. $(".ques-type-control label input").click(function(e){
  693. var index=$(this).parent().index();
  694. var tempTopic = $(".ques-topic-num .ques-topic").eq(index);
  695. delTopicType(tempTopic);
  696. if($(this).is(":checked")){
  697. tempTopic.show();
  698. if(index==0 || index==1){
  699. TopicType[index].push([4,'',0]); //对应数据初始化对应题型,题号,样式三种数据
  700. }else if(index==2){
  701. TopicType[index].push([1,'',1]); //对应数据初始化对应题型,题号,样式三种数据
  702. }else if(index==3){
  703. TopicType[index].push([0,'',0]); //对应数据初始化对应题型,题号,样式三种数据
  704. }
  705. //console.log(TopicType);
  706. }else{
  707. tempTopic.hide();
  708. if(index==0 || index==1){
  709. tempTopic.find(".ques-topic-list").eq(0).find("input").val("");
  710. tempTopic.find(".ques-topic-list").find('.topic-num input').val('');
  711. tempTopic.find(".ques-topic-list").eq(0).find(".ques-topic-item").removeClass("ques-topic-item-edit").find("a").html("选项编辑");
  712. }else if(index==2){
  713. console.log(tempTopic.find(".ques-topic-list").find('.topic-num').find('input').val());
  714. tempTopic.find(".ques-topic-list").find('.topic-num').find('input').val('');
  715. tempTopic.find(".ques-topic-list").find('.line-control').find('input').val(1);
  716. tempTopic.find(".ques-topic-list").eq(0).find(".ques-topic-item").find('label input').eq(0).click();
  717. }else if(index==3){
  718. tempTopic.find(".ques-topic-list").find('.topic-num input').val('');
  719. tempTopic.find(".ques-topic-list").eq(0).find("input").val("");
  720. }
  721. tempTopic.find(".ques-topic-list").eq(0).find("em").remove();
  722. for(var i=0;i<4;i++){
  723. tempTopic.find(".ques-topic-list").eq(0).find("s").before("<em>【"+arr[i]+"】<b></b></em>");
  724. }
  725. for(var i=tempTopic.find(".ques-topic-list").length;i>1;i--){
  726. tempTopic.find(".ques-topic-list:last").remove();
  727. }
  728. TopicType[index]=[]; //清空对应数据
  729. console.log(TopicType);
  730. }
  731. $("input[name=bixuan]").val(1)
  732. });
  733. // 选项编辑
  734. $("body").delegate(".ques-topic-item a","click",function(){
  735. if($(this).closest(".ques-topic-item").hasClass("ques-topic-item-edit")){
  736. $(this).closest(".ques-topic-item").removeClass("ques-topic-item-edit");
  737. $(this).html("选项编辑");
  738. $(this).closest(".ques-topic-item").find("s").hide();
  739. //装入修改后数据
  740. var index=$(this).closest('.ques-topic').index(); //第几个大类型
  741. var topic_index=$(this).closest('.ques-topic-list').index()-1; //该题型下第几个子题型
  742. TopicType[index][topic_index][0]=$(this).parent().find('em').length;
  743. console.log(TopicType);
  744. }else{
  745. $(this).closest(".ques-topic-item").addClass("ques-topic-item-edit");
  746. $(this).siblings("s").show();
  747. if($(this).closest(".ques-topic").hasClass("ques-topic-one")){
  748. console.log($(this).closest(".ques-topic-item").find("em").length)
  749. if($(this).closest(".ques-topic-item").find("em").length >3){
  750. $(this).siblings("s").hide();
  751. }else{
  752. $(this).siblings("s").show();
  753. }
  754. }else{
  755. console.log($(this).closest(".ques-topic-item").find("em").length)
  756. if($(this).closest(".ques-topic-item").find("em").length >6){
  757. $(this).siblings("s").hide();
  758. }else{
  759. $(this).siblings("s").show();
  760. }
  761. }
  762. $(this).html("保存");
  763. }
  764. });
  765. // 删除选项
  766. $("body").delegate(".ques-topic-item-edit b","click",function(){
  767. if($(this).closest(".ques-topic-item-edit").find("em").length <= 10){
  768. $(this).closest(".ques-topic-item-edit").find("s").show();
  769. }
  770. var tempParent = $(this).closest(".ques-topic-item-edit");
  771. $(this).closest("em").remove();
  772. orderABC(tempParent.find("em"))
  773. hideDel(tempParent.find("b"))
  774. });
  775. function orderABC(obj){
  776. for(var i=0;i<obj.length;i++){
  777. obj.eq(i).html("【"+arr[i]+"】<b></b>")
  778. }
  779. }
  780. // 增加选项
  781. var arr = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N'];
  782. $("body").delegate(".ques-topic-item-edit s","click",function(){
  783. if($(this).closest(".ques-topic").hasClass("ques-topic-one")){
  784. addAbc($(this),4)
  785. }else{
  786. addAbc($(this),7)
  787. }
  788. });
  789. function addAbc(obj,count){
  790. var idx = obj.closest(".ques-topic-item-edit").find("em").length;
  791. obj.before("<em>【"+arr[idx]+"】<b></b></em>");
  792. hideDel(obj.closest(".ques-topic-item-edit").find("b"))
  793. if(obj.closest(".ques-topic-item-edit").find("em").length >= count){
  794. obj.hide();
  795. }
  796. }
  797. // 增加题型
  798. $(".add-type a").click(function(){
  799. var temp = $(this).closest(".add-type").prev().clone(true);
  800. temp.find("span").html($(this).closest(".add-type").prev().index()+1);
  801. temp.find("input[type='text']").val("");
  802. temp.find(".ques-topic-item").removeClass("ques-topic-item-edit").find("a").html("选项编辑");
  803. temp.find("em").remove();
  804. for(var i=0;i<4;i++){
  805. temp.find("s").before("<em>【"+arr[i]+"】<b></b></em>");
  806. }
  807. if($(this).hasClass("main-topic")){
  808. temp.find("input[name^='topicType']").attr("name","topicType_"+($(this).closest(".ques-topic").find(".ques-topic-list").length));
  809. temp.find(".line-control input").val(1)
  810. }
  811. temp.find('input:radio').each(function(i){
  812. temp.find('input:radio').eq(i).attr('checked',false);
  813. });
  814. temp.find('.line-control').hide();
  815. $(this).closest(".add-type").before(temp);
  816. var index=$(this).closest('.ques-topic').index(); //第几个大类型
  817. if(index==0 || index==1){
  818. TopicType[index].push([4,'',0]); //对应数据初始化对应题型,题号,样式三种数据
  819. }else if(index==2){
  820. $style=$('.line-type input:radio:checked').parent().index()+1;
  821. TopicType[index].push([0,'',$style]); //对应数据初始化对应题型,题号,样式三种数据
  822. }else if(index==3){
  823. TopicType[index].push([0,'',0]); //对应数据初始化对应题型,题号,样式三种数据
  824. }
  825. temp.find("input[type='radio']").eq(0).click()
  826. delTopicType($(this).closest(".add-type").siblings(".ques-topic-list"));
  827. })
  828. // 显示隐藏主观题横线行数
  829. initTopicType($(".ques-topic-item input[type='radio']"))
  830. function initTopicType(obj){
  831. if(obj.val() == 2){
  832. obj.closest("label").siblings(".line-control").show();
  833. }else{
  834. obj.closest("label").siblings(".line-control").hide();
  835. }
  836. }
  837. // 删除题型
  838. function delTopicType(obj){
  839. obj.find(".ques-item-del").show();
  840. obj.eq(0).find(".ques-item-del").hide();
  841. }
  842. $("body").delegate(".ques-item-del","click",function(){
  843. var index=$(this).closest('.ques-topic').index(); //大题型索引
  844. var topic_index=$(this).closest('.ques-topic-list').index()-1;//子题型索引
  845. TopicType[index].splice(topic_index,1);
  846. console.log(TopicType[index]);
  847. $(this).closest(".ques-topic-list").remove();
  848. })
  849. // 主观题样式切换
  850. $("body").delegate(".ques-topic-item input[type='radio']","click",function(){
  851. initTopicType($(this));
  852. var index=$(this).closest('.ques-topic').index(); //大题型索引
  853. var topic_index=$(this).closest('.ques-topic-list').index()-1;//子题型索引
  854. if($(this).val()==2){
  855. TopicType[index][topic_index][0]=$(this).val()+'///'+$(this).closest('.ques-topic-item').find('.line-control input').val();
  856. }else{
  857. TopicType[index][topic_index][0]=$(this).val();
  858. }
  859. console.log(TopicType);
  860. });
  861. // 主观题样式图片显示隐藏
  862. $("body").delegate(".ques-topic-item em","mouseenter",function(){
  863. $(this).find("img").show();
  864. });
  865. $("body").delegate(".ques-topic-item em","mouseleave",function(){
  866. $(this).find("img").hide();
  867. });
  868. // 主观题横线行数加减
  869. $("body").delegate(".line-control .add","click",function(){
  870. $(this).siblings("input").val(Number($(this).siblings("input").val())+1);
  871. var index=$(this).closest('.ques-topic').index(); //大题型索引
  872. var topic_index=$(this).closest('.ques-topic-list').index()-1;//子题型索引
  873. TopicType[index][topic_index][0]='2///'+$(this).siblings("input").val();
  874. });
  875. $("body").delegate(".line-control .del","click",function(){
  876. if(Number($(this).siblings("input").val()) > 1){
  877. $(this).siblings("input").val(Number($(this).siblings("input").val())-1);
  878. var index=$(this).closest('.ques-topic').index(); //大题型索引
  879. var topic_index=$(this).closest('.ques-topic-list').index()-1;//子题型索引
  880. TopicType[index][topic_index][0]='2///'+$(this).siblings("input").val();
  881. }
  882. });
  883. // 校验文本框输入
  884. $("body").delegate(".topic-num input","keyup",function(){
  885. $(this).val($(this).val().replace(/[^\d-,]+/g,""));
  886. });
  887. $(".choose-topic-num input").keyup(function(){
  888. $(this).val($(this).val().replace(/[^\d]+/g,""));
  889. })
  890. //题号变化,修改数据
  891. $('.ques-topic-num').on('change','.topic-num input',function(){
  892. var index=$(this).closest('.ques-topic').index(); //大题型索引
  893. var topic_index=$(this).closest('.ques-topic-list').index()-1;//子题型索引
  894. var text=0;
  895. if($(this).val()!='' && $(this).val()!=undefined){
  896. text=$(this).val();
  897. }
  898. TopicType[index][topic_index][1]=text;
  899. console.log(TopicType);
  900. });
  901. //主观题样式变化,修改数据
  902. $('.line-type label').click(function(){
  903. //alert($(this).index());
  904. for(var i=0;i<TopicType[2].length;i++){
  905. TopicType[2][i][2]=$(this).index()+1;
  906. }
  907. console.log(TopicType);
  908. });
  909. //选做题
  910. //题号
  911. $('.ques-topic').on('change','.choose-topic-num input',function(){
  912. //alert($(this).index());
  913. var text='';
  914. if($(this).index()==0){
  915. text=$(this).val()+'///'+$(this).next().val();
  916. }else{
  917. text=$(this).prev().val()+'///'+$(this).val();
  918. }
  919. var index=$(this).closest('.ques-topic').index(); //大题型索引
  920. var topic_index=$(this).closest('.ques-topic-list').index()-1;//子题型索引
  921. TopicType[index][topic_index][0]=text;
  922. console.log(TopicType);
  923. });
  924. //样式
  925. $('.ques-topic').on('click','.choose-topic input:radio',function(){
  926. var index=$(this).closest('.ques-topic').index(); //大题型索引
  927. var topic_index=$(this).closest('.ques-topic-list').index()-1;//子题型索引
  928. TopicType[index][topic_index][2]=$(this).val();
  929. });
  930. function hideDel(obj){
  931. if(obj.length > 2){
  932. obj.closest(".ques-topic-item-edit").find("b").css("display","inline");
  933. }else{
  934. obj.closest(".ques-topic-item-edit").find("b").hide()
  935. }
  936. }
  937. })
  938. function show_version() {
  939. layer.msg('你的客户端版本太低,请升最新版本');
  940. }
  941. </script>
  942. <style>
  943. .template-flag-box{padding-left:50px;}
  944. .template-flag-box a{display:inline-block;color:#fff;text-decoration:none;border-radius:3px;width: 100px;text-align: center;background: #1FBF86;height: 30px;margin-right:20px;line-height:30px}
  945. .teamplate-list-box{margin:20px;border:1px solid #ccc;display: none;}
  946. .teamplate-list-box .mcp-fl-btns{padding-left:50px; text-align: left}
  947. .card-setting{width: 100%;}
  948. .card-setting td{padding:0 20px 30px 20px; font-size: 14px;}
  949. .card-setting td label{display: inline-block; width:100px;font-weight: normal}
  950. .card-setting td .special-type{width: 150px;}
  951. .card-setting td input[type="radio"],.ques-type input[type="checkbox"]{margin-right: 3px;margin-bottom: 4px; width: 14px;height: 14px;vertical-align: middle;}
  952. .card-setting th{vertical-align: top; text-align: right;font-weight: normal;font-size: 14px;width: 110px;}
  953. .card-setting label{cursor: pointer;}
  954. .ques-type input[type="text"]{padding-left: 5px; width:80px;height: 34px;border:1px solid #15a55d;border-radius: 3px;outline: none;}
  955. .topic-num input[type="text"]{width: 380px;}
  956. .ques-type p{margin-top:3px; color: #888;font-size: 14px;}
  957. /*.ques-type div{margin-bottom:50px;}*/
  958. .ques-print{padding-left: 30px;}
  959. .ques-print a{display: inline-block;margin-left: 30px; width: 100px;line-height: 30px;text-decoration: none;text-align: center;border-radius: 3px;color: #fff;background-color: #15a55d;}
  960. .ques-print a:hover{background-color: #098346;}
  961. .ques-topic-num{margin-top:30px;}
  962. .ques-topic{margin-bottom: 20px; border:1px solid #ccc;border-radius: 5px; display: none;}
  963. .ques-topic h3{position: relative; padding:0 10px;line-height: 36px;border-bottom: 1px solid #ccc;background-color: #f2f2f2;border-radius: 5px 5px 0 0 ;}
  964. .ques-topic h3:before{content:"";position: absolute;left: 0;top:50%;width: 0;height: 16px;border-left:4px solid #15a55d;transform:translateY(-50%);}
  965. .ques-topic-list{position:relative; padding:10px;border-bottom:1px solid #ccc;}
  966. .ques-topic-item{line-height: 34px;}
  967. .ques-item-del{position: absolute;right:10px;top:10px;width: 20px;cursor:pointer}
  968. /*.ques-topic-item label{font-size: 14px;}*/
  969. .ques-topic-item-edit b{background: url(/css/third/img/del.png) no-repeat;position: absolute;right: 0;top:0;width: 10px;height: 10px;transform: translateX(-40%);-webkit-background-size: cover;background-size: cover;cursor: pointer;}
  970. .ques-topic-item a{padding:2px 10px;font-size: 12px; text-decoration: none;background-color: #15a55d;color: #fff;border-radius: 3px;}
  971. .ques-topic-item s{width: 20px;height: 20px;margin-bottom:-5px;margin-right:5px; background: url(/css/third/img/add.png) no-repeat left center;-webkit-background-size: 20px;background-size: 20px;cursor: pointer;display: none;}
  972. .ques-topic-item-edit s{display: inline-block;}
  973. .add-type img{margin-right: 10px; width: 50px;}
  974. .add-type a{margin:10px; display: inline-block;font-size: 14px;text-decoration: none;}
  975. /*.ques-topic3 .ques-topic-list{border-bottom:0;}*/
  976. .line-type{margin-left:30px;font-size: 14px;}
  977. .line-control{display: inline-block;font-size: 12px;margin:0 60px 0 -40px; }
  978. .line-control input[type="text"]{height: 21px;width: 60px;text-align: center; border-color: #ccc; border-radius: 0;}
  979. .line-control b{display: inline-block;margin-bottom: -5px; width: 20px;height: 20px;line-height: 20px;text-align: center;font-size: 16px; border:1px solid #ccc;background-color: #eee;overflow: hidden;cursor: pointer;}
  980. .ques-topic-item em{position: relative;cursor: pointer;}
  981. .ques-topic-item em img{position: absolute;left: 18px;top:18px;width: 360px; box-shadow: 0 0 15px rgba(0,0,0,.2);display: none;z-index: 2;}
  982. .ques-topic3 .ques-topic-item em:before{content: "?";display: inline-block;margin-right: 3px; width: 20px;height: 20px;line-height: 20px;text-align: center; background: #aaa;border-radius: 50%;color: #fff;}
  983. .choose-topic{border:0;}
  984. .choose-topic div{margin:14px 0;}
  985. </style>