123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401 |
- <style>
- /*切换选择*/
- .tab-con{
- position: relative;
- height: 30px;
- width: 200px;
- background: #F2F2F2;
- border: 1px solid #2977ff;
- border-radius: 15px;
- }
- .sel-opt{
- width: 50%;
- position: relative;
- color: #2977ff;
- 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 #2977ff;
- position: absolute;
- right: 12px;
- top: 12px;
- }
- .xdsoft_datetimepicker{
- z-index:99999999!important;
- }
- // .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 #2977ff;
- 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 #2977ff;
- 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: #2977ff;
- 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: #2977ff;
- color: #fff;
- width: 50%;
- height: 30px;
- border-top-right-radius: 15px;
- border-bottom-right-radius: 15px;
- text-align: center;
- line-height: 30px;
- }
- .layer-upload{padding:10px 20px; display:none;}
- .layer-upload p{line-height:20px;color:#aaa;}
- .upload-btn{color:#2977ff}
- .layer-upload ul{padding:10px;line-height:30px; border:1px solid #ccc;}
- .layer-upload li{border-bottom:1px solid #ccc;}
- .layer-upload li span{width:40%;}
- .layer-upload li em{width:20%;font-size:26px;text-align:center;cursor:pointer}
- .tooltip {
- position: absolute;
- display: none;
- z-index: 9900000;
- outline: none;
- padding: 5px;
- border-width: 1px;
- border-style: solid;
- border-radius: 5px;
- -moz-border-radius: 5px 5px 5px 5px;
- -webkit-border-radius: 5px 5px 5px 5px;
- border-radius: 5px 5px 5px 5px;
- }
- .table-hover>tbody>tr:hover {
- background-color: #E6F1EC
- }
- .selectSendType{width:180px;height:100px;border:1px solid #ccc;display: inline-block;text-align: center;line-height: 100px;cursor:pointer;border-radius:5px;}
- .selected{background:#aaa; }
- /* Tooltip 容器 */
- .tooltipclass {
- display: inline-block;
- }
- /* Tooltip 文本 */
- .tooltipclass .tooltiptext {
- visibility: hidden;
- width: 160px;
- background-color: #555;
- color: #fff;
- padding: 5px;
- border-radius: 6px;
- font-size:11px;
- text-align: left;
- /* 定位 */
- position: absolute;
- z-index: 1;
- }
- /* 鼠标移动上去后显示提示框 */
- .tooltipclass:hover .tooltiptext {
- visibility: visible;
- }
- .sendLabelTask{margin-left:10px;}
- </style>
- <link rel="stylesheet" href="/fonts/fpdf/iconfont.css" />
- <link rel="stylesheet" href="/css/alert.css"/>
- <link rel="stylesheet" href="/fonts/shangchuan/iconfont.css" />
- <script language="javascript" src="<?php echo Yii::app()->params['static_url_js']; ?>/js/MaskUtil.js?<?php echo Yii::app()->params['static_version']; ?>"></script>
- <div class="layer-upload">
- <p>请上传试卷及答案解析,发送给后台老师标注。支持word、PDF或图片格式</p>
- <div class="clearfix">
- <span class="fl">试卷:</span>
- <a href="javascript:;" class="fr upload-btn upload-btn-paper">+添加附件</a>
- </div>
- <ul class="upload-ul-paper">
- </ul>
- <div class="clearfix">
- <span class="fl">答案及解析:</span>
- <a href="javascript:;" class="fr upload-btn upload-btn-answer">+添加附件</a>
- </div>
- <ul class="upload-ul-answer">
- </ul>
- <input type="hidden" name="english_paper" class="english_paper_id" value="0"/>
- <p class="red">请确保试卷及答案解析完整,再发送标注,否则无法生成错题本/个性化学习宝</p>
- <p class="red">*单个文件不要超过8M</p>
- <div class="clearfix">
- <div class="mcp-form-menu fl">期望标注完成时间</div>
- <div class="mcp-form-detail fl clearfix">
- <input type="text" class='core datetimepicker8' style="width: 140px;line-height: 27px;padding-left: 5px;" name="english-print-time" id="trial_begin_time_test" autocomplete="off" readonly="readonly"/>
- </div>
- <div id="examDate"></div>
- </div>
- </div>
- <?php include(Yii::app()->basePath.'/views/layouts/parse_label.php');?>
- <div class="main-content-inner">
- <!-- 导航栏开始-->
- <?php include(Yii::app()->basePath.'/views/layouts/view_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("homework/index");?>">
- <div class="col-xs-12">
- <div class="dataTables_length margin-zy">
- <input type="hidden" name="list_type" value="<?php if(isset($list_type)){echo $list_type;}else{echo 0;}?>" />
- <input type="hidden" name="type" value="<?php echo $printType;?>" />
- <input type="checkbox" name="display" style="margin: -1px 2px 0 0;display:inline-block;vertical-align: middle;width:15px;height:15px;" value="1" <?php if($display === '1') echo "checked";?>>显示隐藏作业
- <select class="form-control" id="grade" name="grade">
- <option value="0">年级</option>
- <?php
- if(Yii::app()->params['grade_config']){
- foreach (Yii::app()->params['grade_config'] as $val){
- if($grade==$val['id']){
- echo ' <option value="'.$val['id'].'" selected >'.$val['grade_name'].'</option>';
- }else{
- echo ' <option value="'.$val['id'].'" >'.$val['grade_name'].'</option>';
- }
- }
- }
- ?>
- </select>
- <input type="text" class="form-control input-sm" placeholder="请输入作业名称/命卷人" name="name" value="<?php echo $printName;?>">
- <button class="label-primary-s bth-s" id="search" style="padding:4px 12px;">搜索</button>
- </div>
- </div>
- </form>
- </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>
- </tr>
- </thead>
- <tbody>
- <?php if(!empty($printList)):foreach($printList as $cl):?>
- <tr>
- <td style="max-width:260px">
- <?php echo $cl['exam_name']; ?>
- </td>
- <td><?php if($teachers && isset($teachers[$cl['teacher_id']])){ echo $teachers[$cl['teacher_id']];}else{echo "";}?></td>
- <td><?php echo Yii::app()->params['grade_config'][$cl['grade']]['grade_name']?></td>
- <td><?php if(!empty($cl['create_time'])){ echo date('Y-m-d H:i',$cl['create_time']);}?></td>
- <td><?php if(!empty($cl['examDate'])){ echo date('Y-m-d H:i',$cl['examDate']);}else{echo '--';}?></td>
- <td >
- <?php
- if(!isset($exam_sheets[$cl['exam_group_id']]) ){
- echo '<span class="red">待制卡</span>';
- }elseif(!$exam_sheets[$cl['exam_group_id']]){
- echo '<span class="blue">待生成</span>';
- }elseif($cl['downloaded']){
- echo '已打印/已下载';
- }else{
- echo '<span class="green">待下载/待打印</span>';
- }
- ?>
- </td>
- <td>
- <?php
- if(!isset($exam_sheets[$cl['exam_group_id']]) || !$exam_sheets[$cl['exam_group_id']]){
- ?>
- <span class="iconfont" onclick="createCard('<?php echo $cl['xb_homework_id']?>')" aria-hidden="true" title="制作答题卡" ><img src="/images/card_blue.png"></span>
- <?php
- }else{
- ?>
- <span class="iconfont " aria-hidden="true" title="制作答题卡" ><img src="/images/card_gray.png"></span>
- <?php
- }
- ?>
- <?php
- if(isset($exam_sheets[$cl['exam_group_id']]) && $exam_sheets[$cl['exam_group_id']]){
- ?>
- <span class="iconfont disabled" aria-hidden="true" onclick="downloadOnline('<?php echo $cl['exam_group_id']?>');" title="下载答题卡" ><img src="/images/hw_down_blue.png"></span>
- <span class="iconfont" aria-hidden="true" onclick="printOnline('<?php echo $exam_sheets[$cl['exam_group_id']]?>','<?php echo $cl['exam_name']?>','<?php echo $cl['exam_group_id']?>');" title="打印答题卡" ><img src="/images/print_blue.png"></span>
- <?php
- }else{
- ?>
- <span class="iconfont disabled" aria-hidden="true" title="下载答题卡" ><img src="/images/hw_down_gray.png"></span>
- <span class="iconfont" aria-hidden="true" title="打印答题卡" ><img src="/images/print_gray.png"></span>
- <?php
- }
- ?>
- <?php if($cl['is_display'] == 1):?>
- <span class="iconfont click-sc click-tc addbx" aria-hidden="true" title="恢复试卷" onclick="oprateExam('<?php echo $cl['exam_group_id'];?>',0)"></span>
- <?php else:?>
- <span class="iconfont click-sc click-delete addbx" aria-hidden="true" title="隐藏试卷" onclick="oprateExam('<?php echo $cl['exam_group_id'];?>',1)"></span>
- <?php endif;?>
- </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>
- <!--题目设置弹窗-->
- <style>
- .topic_list,.topic_class{width:100%;display: block;clear:both}
- .topic_list li{padding:0 10px;height:30px;border:1px solid #ccc;background: #fff;margin:5px;text-align: center;line-height: 30px;cursor: pointer}
- .topic_list li.active{background:#aaa}
- .topic_class li{margin:0 10px 5px 10px;padding:0;float:left}
- .topic-modal-body{margin-top:15px;max-height: 400px;overflow: auto}
- .topic_right{float:left;margin-bottom:15px;}
- .topic_right li{float:left;}
- .gray{background: #0a3e64}
- </style>
- <div class="confirmbox-mask" style="display:none;" id="fieldModalTopic">
- <div class="class-modal" style="padding: 0;width:400px;height:250px;min-height: 250px;">
- <div class="class-modal-head" ><span class="change-tpl-close" style="float: right;padding: 5px;cursor: pointer;">X</span></div>
- <form id="examSelect">
- <div class="topic-modal-body">
- <br>
- 当前考试已存在在线答题卡数据,请选择你需要的操作<br>
- 【仅切换模板】:仅删除在线答题卡扫描模板,原有试题结构及指定题目保留,<br>
- 【重新制作】:删除已有试题及模板数据,重新制作模板(仅支持未上传成绩、试卷且未发送标注考试)<br>
- <font color="red">注意:选做题含有小题的考试暂不支持切换切割模板</font>
- </div>
- <br><br>
- <p class="class_btn" style="text-align: center;">
- <input type="hidden" name="tpl_exam_group_id" value="0">
- <input type="hidden" name="tpl_qxk" value="0">
- <button type="button" class="tpl_change" style="margin-right: 10px;">仅切换模板</button>
- <button type="button" feedback="0" class="tpl_new gray">重新制作</button>
- </p>
- </form>
- </div>
- </div>
- <!--题目设置弹窗end-->
- <?php require "_third.php"?>
|