to_zhixue_grade.php 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <style>
  2. .addborder{border:1px solid #ccc}
  3. .addheight{height:30px;border-radius:2px;}
  4. .addheight:focus{border-color: #66afe9;box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(102, 175, 233, 0.6);outline: 0 none;}
  5. .ace{position:relative;top:0px !important;left:0px !important;}
  6. label{font-weight:100 !important;}
  7. .diy_select{height:30px;width:260px;position:relative;font-size:12px;background:#fff;color:#000;float:left;border-radius:4px;}
  8. .diy_select:active{box-shadow:0 0 5px #66afe9;border:1px solid #66afe9}
  9. .diy_select_btn,.diy_select_txt{float:left;height:100%;line-height:30px}
  10. .diy_select,.diy_select_list{border:1px solid #ccc;}
  11. .diy_select_txt{width:200px;}
  12. .diy_select_txt,.diy_select_list li{text-indent:10px;overflow:hidden}
  13. .diy_select_btn{width:98px;background:url(/images/arrBottom.png) no-repeat center}
  14. .diy_select_list{position:absolute;top:27px;left:0px;z-index:88888;border-top:none;width:100%;display:none;_top:29px;background: #fff;max-height:300px;overflow-y:scroll;}
  15. .diy_select_list li{list-style:none;height:30px;line-height:30px;cursor:default;_background:#fff;/**padding-left: 10px;**/}
  16. .diy_select_list li.focus{background:#3399FF;color:#fff}
  17. .diy_select label{position:absolute;left:180px;width:160px;top:4px;font-size:15px;}
  18. </style>
  19. <script src="/js/jquery.validate.min.js"></script>
  20. <script type="text/javascript">
  21. jQuery(document).ready(function(){
  22. jQuery("#schoolSubmit").click(function(){
  23. var grade = $(".diy_select_txt").text();
  24. var _text = grade;
  25. var msg = '确定导入'+_text+'学生成绩吗?';
  26. layer.msg(msg, {
  27. time: 0,
  28. btn: ['确定', '取消'],
  29. yes: function(index){
  30. layer.close(index);
  31. jQuery(this).attr("disabled", true);
  32. jQuery("#classAdd").submit();
  33. }
  34. });
  35. });
  36. });
  37. </script>
  38. <div class="main-content-inner">
  39. <ul class="clearfix main-content-inner-ul">
  40. <li class="pull-left">
  41. <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>
  42. <img src="/images/line.jpg" style="height:45px;" />
  43. </li>
  44. <li class="pull-left">
  45. <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>
  46. <img src="/images/line.jpg" style="height:45px;" />
  47. </li>
  48. <li class="pull-left">
  49. <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>
  50. <img src="/images/line.jpg" style="height:45px;" />
  51. </li>
  52. <li class="pull-left">
  53. <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>
  54. <img src="/images/line.jpg" style="height:45px;" />
  55. </li>
  56. <li class="pull-left">
  57. <button onclick='location.href="<?php echo $this->createUrl("print/student_product");?>"' class="button button_normal button_group button_arrow " data-button="red">阶段复习个性化学习宝</button>
  58. <img src="/images/line.jpg" style="height:45px;" />
  59. </li>
  60. <li class="pull-left">
  61. <button onclick='location.href="<?php echo $this->createUrl("third/index");?>"' class="button button_normal button_group button_arrow" data-button="red">第三方试卷</button>
  62. <img src="/images/line.jpg" style="height:45px;" />
  63. </li>
  64. <li class="pull-left">
  65. <button onclick='location.href="<?php echo $this->createUrl("export/index");?>"' class="button button_normal button_group button_arrow" data-button="red">导出报告</button>
  66. <img src="/images/line.jpg" style="height:45px;" />
  67. </li>
  68. <li class="pull-left">
  69. <button onclick='location.href="<?php echo $this->createUrl("upload/index");?>"' class="button button_normal button_group button_arrow" data-button="red">上传试卷</button>
  70. <img src="/images/line.jpg" style="height:45px;" />
  71. </li>
  72. <li class="pull-left">
  73. <button onclick='location.href="<?php echo $this->createUrl("record/importscore"); ?>"'
  74. class="button button_normal button_group button_arrow " data-button="red">导入成绩
  75. </button>
  76. <img src="/images/line.jpg" style="height:45px;"/>
  77. </li>
  78. <li class="pull-left">
  79. <button onclick='location.href="<?php echo $this->createUrl("cylet/index");?>"' class="button button_normal button_group button_arrow" data-button="red">全学科统考</button>
  80. </li>
  81. </ul>
  82. <div class="page-content" style="margin-top:15px;">
  83. <div class="row" style="margin:0px;">
  84. <div class="col-xs-12">
  85. <!-- PAGE CONTENT BEGINS -->
  86. <form enctype="multipart/form-data" class="form-horizontal" action="<?php echo $this->createUrl('record/zhixue_import');?>" method="post" id="classAdd">
  87. <div class="form-group">
  88. <label class="control-label col-xs-12 col-sm-3 no-padding-right">选择考试<span class="errorMessage">*</span>:</label>
  89. <div class="col-sm-9">
  90. <div class='diy_select' style="width: 300px">
  91. <input type='hidden' id="exam_group_id" name="exam_group_id" class='diy_select_input' value="0" />
  92. <div class='diy_select_txt' >选择考试</div>
  93. <div class='diy_select_btn' ></div>
  94. <ul class='diy_select_list' >
  95. <?php if(isset($exam_info) && !empty($exam_info)){
  96. foreach($exam_info as $v){
  97. ?>
  98. <li val="<?php echo $v->exam_group_id?>" title="<?php echo $v->name?>"><?php echo $v->name?>(<?php echo date('Y-m-d H:i:s',$v->create_time)?>)</li>
  99. <?php
  100. }
  101. }?>
  102. </ul>
  103. </div>
  104. </div>
  105. </div>
  106. <div class="form-group">
  107. <label class="control-label col-xs-12 col-sm-3 no-padding-right">上传Excel<span class="errorMessage">*</span>:</label>
  108. <div class="col-sm-9">
  109. <input type="file" id="exname" name="exname" class="col-xs-10 col-sm-3" />
  110. </div>
  111. </div>
  112. <div class="form-group">
  113. <label class="control-label col-xs-12 col-sm-3 no-padding-right">&nbsp;</label>
  114. <div class="col-sm-9">
  115. <div style="margin-top:8px" class="col-sm-9"><a href="/assets/data/智学网考试导入成绩.xlsx">下载Excel表格示例</a></div>
  116. </div>
  117. </div>
  118. <div class="clearfix form-actions">
  119. <div class="col-md-offset-3 col-md-9">
  120. <button class="btn btn-success btn-sm" type="button" id="schoolSubmit">
  121. <i class="ace-icon fa fa-check bigger-110"></i>
  122. 导入
  123. </button>
  124. </div>
  125. </div>
  126. <div class="form-group">
  127. <div class="control-label col-xs-3 col-sm-3">
  128. </div>
  129. </div>
  130. </form>
  131. <!-- PAGE CONTENT ENDS -->
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. <script src="/js/xsgl.js"></script>