123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260 |
- <style>
- /*切换选择*/
- .tab-con{
- position: relative;
- height: 30px;
- width: 200px;
- background: #F2F2F2;
- border: 1px solid #01B677;
- border-radius: 15px;
- }
- .sel-opt{
- width: 50%;
- position: relative;
- color: #01B677;
- line-height: 30px;
- text-indent: 6px;
- cursor: pointer;
- }
- .sel-opt:after{
- content: '';
- border-left: 6px solid transparent;
- border-right: 6px solid transparent;
- border-top: 8px solid #01B677;
- position: absolute;
- right: 12px;
- top: 12px;
- }
- // .sel-opt select{
- // width: 100%;
- // height: 30px;
- // background: #F2F2F2;
- // color: #01B677;
- // text-indent: 6px;
- // font-size: inherit;
- // border-top-right-radius: 15px;
- // border-bottom-right-radius: 15px;
- // cursor: pointer;
- // }
- // .sel-opt select option{
- // position: relative;
- // }
- .points{
- position: absolute;
- top: -2px;
- right: 0;
- width: 10px;
- height: 10px;
- background: #F01516;
- border-radius: 50%;
- }
- .sel-cons{
- border: 1px solid #01B677;
- width: 50%;
- position: absolute;
- right: 0;
- top: 30px;
- text-indent: 10px;
- display: none;
- }
- .sc-lis{
- line-height: 30px;
- cursor: pointer;
- }
- .sc-lis span{
- position: relative;
- }
- .sc-lis .points{
- top: 2px;
- right: -16px;
- }
- .click-sc:focus {
- color: #fff;
- }
- .click-sc:hover {
- color: #fff;
- }
- .create-third{
- position: absolute;
- right: 6px;
- top: 10px;
- }
- .tab-con-btn{
- height: 31px;
- width: 210px;
- background: #F2F2F2;
- border: 1px solid #01B677;
- border-radius: 15px;
- display: inline-block;
- text-align: center;
- }
- .tab_btn{
- display: inline-block;
- width:100px;
- padding: 0;
- border: 0;
- outline:none;
- margin:0;
- background: #F2F2F2;
- border-radius: inherit;
- }
- .has-sel{
- background: #01B677;
- color: #fff;
- width: 50%;
- height: 30px;
- border-top-left-radius: 15px;
- border-bottom-left-radius: 15px;
- text-align: center;
- line-height: 30px;
- }
- .has-sel-1{
- background: #01B677;
- color: #fff;
- width: 50%;
- height: 30px;
- border-top-right-radius: 15px;
- border-bottom-right-radius: 15px;
- text-align: center;
- line-height: 30px;
- }
- </style>
- <link rel="stylesheet" href="/fonts/fpdf/iconfont.css" />
- <link rel="stylesheet" href="/fonts/shangchuan/iconfont.css" />
- <script>
- // 扫描督学卡
- function createTemplate(exam_group_id,subject,school_id){
- if (!exam_group_id||!subject || !school_id) {
- layer.msg('未找到试卷ID');
- }
- if(school_id<100){
- school_id='9'+school_id;
- }
-
- evaluationClient.loadinspectorcard(exam_group_id+','+subject+','+school_id);
- }
- </script>
- <div class="main-content-inner">
- <!-- 导航栏开始-->
- <?php include(Yii::app()->basePath.'/views/layouts/view_production_navigation.php');?>
- <!-- 导航栏结束-->
- <div class="page-content">
- <div class="row" style="margin:0px;">
- <div class="col-xs-12">
- <!-- PAGE CONTENT BEGINS -->
- <div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline no-footer">
- <div class="row">
- <form method="get" id="form1" action="<?php echo $this->createUrl("supervise/list");?>">
- <div class="col-xs-12">
- <div class="dataTables_length margin-zy">
- <select class="form-control" id="grade" name="grade">
- <option value="">全年级</option>
- <?php $grade_arr = array(1=>'高一',2=>'高二',3=>'高三');?>
- <?php foreach($grade_arr as $_g => $_grade_name){?>
- <option <?php if($grade == $_g) echo "selected";?> value="<?php echo $_g;?>"><?php echo $_grade_name;?></option>
- <?php }?>
- </select>
- <input type="text" class="form-control input-sm" placeholder="请输入考试名称" name="name" value="<?php echo '';?>">
- <button class="label-primary-s bth-s" id="search" style="padding:4px 12px;">搜索</button>
- </div>
- </div>
- </form>
- <button class="label-primary-s bth-s create-third" data-button="red">下载个性化学习宝督学卡</button>
- </div>
- <table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" style="font-size:12px">
- <thead>
- <tr>
- <th>考试名称</th>
- <th>创建日期</th>
- <th>考试日期</th>
- <th>考试班级</th>
- <th>考试人数</th>
- <th>阅卷方式</th>
- <th>主阅卷老师</th>
- <th>个性化学习宝下载数量</th>
- <th>扫描进度</th>
- <th >操作</th>
- </tr>
- </thead>
- <tbody>
- <?php if(!empty($exam_group_list)):foreach($exam_group_list as $value):?>
- <?php $mark_type = array(0 => '线下阅卷',1 => '按题阅卷',2 => '按人阅卷',3 => '班级混合阅卷',4 => '班级单独阅卷');?>
- <tr>
- <td><?php echo $value['name'];?></td>
- <td><?php echo date('Y-m-d',$value['create_time']);?></td>
- <td><?php echo $value['exam_time'];?></td>
- <td><?php echo $value['class_count'];?></td>
- <td><?php echo $value['stu_num']?></td>
- <td><?php echo isset($mark_type[$value['mark_type']])?$mark_type[$value['mark_type']]:'';?></td>
- <td><?php echo $value['teacher_name'];?></td>
- <td><?php echo $value['isp_loaded_num'];?></td>
- <td><?php echo $value['upload_count'].'/'.$value['stu_num']?></td>
- <td><button class="label-primary-s bth-s" onclick="createTemplate('<?php echo $value['exam_group_id'];?>','<?php echo $value['subject_id'];?>','<?php echo $this->schoolId;?>')">扫描督学卡</button></td>
- </tr>
- <?php endforeach;else:?>
- <tr><td colspan="10">暂无数据!</td></tr>
- <?php endif;?>
- </tbody>
- </table>
- <?php if(!empty($page_total)):?>
- <div class="row">
- <div class="col-xs-6">
-
- </div>
- <div class="col-xs-6">
- <div class="dataTables_paginate paging_simple_numbers">
- <?php
- $this->widget('CLinkPager', array(
- 'header' => '',
- 'firstPageLabel'=> '首页',
- 'lastPageLabel' => '末页',
- 'prevPageLabel' => '上一页',
- 'nextPageLabel' => '下一页',
- 'pages' => $pages,
- 'maxButtonCount'=> 5,
- ));
- echo '共:'.$page_total.'条';
- ?>
- </div>
- </div>
- </div>
- <?php endif;?>
- </div>
- <!--上传模板弹窗-->
- <!-- PAGE CONTENT ENDS -->
- </div>
- </div>
- </div>
- </div>
- <script src="/js/jquery.ajaxfileupload.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- // 搜索事件
- $("#search").click(function(){
- $("#form1").submit();
- });
- $('.create-third').click(function(){
- evaluationClient.createinspectorcard();
- });
- })
- </script>
|