score_import.php 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <style>
  2. /*切换选择*/
  3. .tab-con{
  4. position: relative;
  5. height: 30px;
  6. width: 200px;
  7. background: #F2F2F2;
  8. border: 1px solid #01B677;
  9. border-radius: 15px;
  10. }
  11. .sel-opt{
  12. width: 50%;
  13. position: relative;
  14. color: #01B677;
  15. line-height: 30px;
  16. text-indent: 6px;
  17. cursor: pointer;
  18. }
  19. .sel-opt:after{
  20. content: '';
  21. border-left: 6px solid transparent;
  22. border-right: 6px solid transparent;
  23. border-top: 8px solid #01B677;
  24. position: absolute;
  25. right: 12px;
  26. top: 12px;
  27. }
  28. // .sel-opt select{
  29. // width: 100%;
  30. // height: 30px;
  31. // background: #F2F2F2;
  32. // color: #01B677;
  33. // text-indent: 6px;
  34. // font-size: inherit;
  35. // border-top-right-radius: 15px;
  36. // border-bottom-right-radius: 15px;
  37. // cursor: pointer;
  38. // }
  39. // .sel-opt select option{
  40. // position: relative;
  41. // }
  42. .points{
  43. position: absolute;
  44. top: -2px;
  45. right: 0;
  46. width: 10px;
  47. height: 10px;
  48. background: #F01516;
  49. border-radius: 50%;
  50. }
  51. .sel-cons{
  52. border: 1px solid #01B677;
  53. width: 50%;
  54. position: absolute;
  55. right: 0;
  56. top: 30px;
  57. text-indent: 10px;
  58. display: none;
  59. }
  60. .sc-lis{
  61. line-height: 30px;
  62. cursor: pointer;
  63. }
  64. .sc-lis span{
  65. position: relative;
  66. }
  67. .sc-lis .points{
  68. top: 2px;
  69. right: -16px;
  70. }
  71. .click-sc:focus {
  72. color: #fff;
  73. }
  74. .click-sc:hover {
  75. color: #fff;
  76. }
  77. .create-third{
  78. position: absolute;
  79. right: 6px;
  80. top: 10px;
  81. }
  82. .tab-con-btn{
  83. height: 31px;
  84. width: 210px;
  85. background: #F2F2F2;
  86. border: 1px solid #01B677;
  87. border-radius: 15px;
  88. display: inline-block;
  89. text-align: center;
  90. }
  91. .tab_btn{
  92. display: inline-block;
  93. width:100px;
  94. padding: 0;
  95. border: 0;
  96. margin:0;
  97. background: #F2F2F2;
  98. border-radius: inherit;
  99. }
  100. .has-sel{
  101. background: #01B677;
  102. color: #fff;
  103. width: 50%;
  104. height: 30px;
  105. border-top-left-radius: 15px;
  106. border-bottom-left-radius: 15px;
  107. text-align: center;
  108. line-height: 30px;
  109. }
  110. .has-sel-1{
  111. background: #01B677;
  112. color: #fff;
  113. width: 50%;
  114. height: 30px;
  115. border-top-right-radius: 15px;
  116. border-bottom-right-radius: 15px;
  117. text-align: center;
  118. line-height: 30px;
  119. }
  120. .icon {
  121. display: inline-block;
  122. background: center/contain no-repeat;
  123. width: 25px;
  124. height: 25px;
  125. cursor: pointer;
  126. vertical-align: middle;
  127. }
  128. .icon-edit {
  129. background-image: url("/images/edit.png")
  130. }
  131. </style>
  132. <script src="/js/jquery.validate.min.js"></script>
  133. <script type="text/javascript">
  134. jQuery(document).ready(function(){
  135. jQuery("#schoolSubmit").click(function(){
  136. //var msg = '只支持全班批量导入,请看<span style="color: red">红色字</span>注意事项?';
  137. var msg = '确定导入学生成绩吗?格式是否正确?';
  138. layer.msg(msg, {
  139. time: 0,
  140. btn: ['确定', '取消'],
  141. yes: function(index){
  142. layer.close(index);
  143. jQuery(this).attr("disabled", true);
  144. jQuery("#schoolSubmit").attr("disabled", true);
  145. jQuery("#classAdd").submit();
  146. }
  147. });
  148. });
  149. jQuery(".rest").click(function(){
  150. jQuery("input[name=exname]").val('');
  151. });
  152. });
  153. </script>
  154. <div class="main-content-inner">
  155. <!-- 导航栏开始-->
  156. <?php include(Yii::app()->basePath.'/views/layouts/view_navigation.php');?>
  157. <!-- 导航栏结束-->
  158. <div class="page-content" style="margin-top:15px;">
  159. <div class="row" style="margin:0px;">
  160. <div class="col-xs-12">
  161. <!-- PAGE CONTENT BEGINS -->
  162. <form enctype="multipart/form-data" class="form-horizontal" action="<?php echo $this->createUrl('third/import');?>" method="post" id="classAdd">
  163. <div class="form-group">
  164. <label class="control-label col-xs-12 col-sm-3 no-padding-right">识别方式<span class="errorMessage">*</span>:</label>
  165. <div class="col-sm-9">
  166. <select name="card">
  167. <option value="1">系统准考证</option>
  168. <option value="2">学校准考证</option>
  169. </select>
  170. </div>
  171. </div>
  172. <div class="form-group">
  173. <label class="control-label col-xs-12 col-sm-3 no-padding-right">上传Excel<span class="errorMessage">*</span>:</label>
  174. <div class="col-sm-9">
  175. <input type="file" id="exname" name="exname" class="col-xs-10 col-sm-3" />
  176. </div>
  177. </div>
  178. <div class="form-group">
  179. <label class="control-label col-xs-12 col-sm-3 no-padding-right">&nbsp;</label>
  180. <div class="col-sm-9">
  181. <div style="margin-top:8px" class="col-sm-9"><a href="/assets/data/third_import.xlsx">下载Excel表格示例</a></div>
  182. <!--<div style="margin-top:8px" class="col-sm-9"><a href="<?php echo $this->createUrl('print/downstudentexcel');?>" target="_blank">下载Excel表格示例</a></div>-->
  183. </div>
  184. </div>
  185. <div class="clearfix form-actions">
  186. <div class="col-md-offset-3 col-md-9">
  187. <input type="hidden" name="examgroupid" value="<?php echo $exam_group_id?>">
  188. <button class="btn btn-success btn-sm" type="button" id="schoolSubmit" >
  189. <i class="ace-icon fa fa-check bigger-110"></i>
  190. 提交
  191. </button>
  192. &nbsp; &nbsp; &nbsp;
  193. <button class="btn btn-success btn-sm rest" type="button">
  194. <i class="ace-icon fa fa-undo bigger-110"></i>
  195. 重填
  196. </button>
  197. </div>
  198. </div>
  199. <div class="form-group">
  200. <div class="control-label col-xs-3 col-sm-3">
  201. </div>
  202. <div class="control-label mt15" style="text-align: left;color: red">
  203. 导入须知:<br>
  204. 1、确认导入的题号与创建的试卷题号相匹配。<br>
  205. 2、确认学生的准考证号与系统中一致。<br>
  206. 3、准考证号重复的成绩数据在导入时会被过滤掉。<br>
  207. </div>
  208. </div>
  209. </form>
  210. <!-- PAGE CONTENT ENDS -->
  211. </div>
  212. </div>
  213. </div>
  214. </div>