123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610 |
- <?php
- use yii\helpers\Url;
- use yii\helpers\Html;
- use yii\widgets\LinkPager;
- ?>
- <link rel="stylesheet" href="/css/reset.css">
- <link rel="stylesheet" href="/js/layui/css/layui.css">
- <link href="/css/mission-details.css " rel="stylesheet">
- <script src="/js/assist/drag.js" type="text/javascript"></script>
- <div class="main-content-inner">
- <style>
- p{
- word-wrap: break-word;
- word-break: break-all;
- overflow: hidden;
- }
- </style>
- <div class="mission-details">
- <div class="mission-head">
- <h3>后台协助任务详情
- <span class="highlight-err">
- <i class="layui-icon layui-icon-tips"></i>
- </span>
- <a href="javascript:history.back(-1)" class="fr" style="font-size: 14px">返回</a>
- </h3>
- <p>考试名称:<?php echo $task['exam_name']?></p>
- <p>
- <span>考试学科:<?php echo Yii::app()->params['subjectId'][$task['subject_id']]?></span>
- <span>考试时间:<?php echo $task['exam_date']?></span>
- <span>学校名称:<?php echo $task['school_name']?></span>
- <span>学校地址:<?php echo $task['address']?></span>
- <span>学管姓名:<?php echo $task['coach_name']?></span>
- <span>学管手机号:<?php echo $task['coach_mobile']?></span>
- </p>
- </div>
- <hr class="layui-bg-gray">
- <div class="mission-card-box">
- <?php
- if(isset($task) && $task['answer_sheet_task']>0){
- ?>
- <div class="card">
- <div class="card-title">
- <p>
- <span class="oblique-line">//////</span>
- <span class="card-name">答题卡</span>
- <span class="oblique-line">//////</span>
- </p>
- <?php
- if(isset($task) && $task['answer_sheet_task']>0){
- if($task['answer_sheet_task']==1){
- //echo '<img class="processing-status" src="/images/img-acceptance.png" alt="受理中">';
- }elseif($task['answer_sheet_task']==2){
- echo '<img class="processing-status" src="/images/img-acceptance.png" alt="受理中">';
- }elseif($task['answer_sheet_task']==3){
- echo '<img class="processing-status" src="/images/img-complete.png" alt="已完成">';
- }
- }
- ?>
- </div>
- <div class="card-content">
- <form action="" method="post" enctype="multipart/form-data" id="answer_card_form">
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="must">*</span>
- <span class="card-item-title-name">答题卡图片</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="请按顺序上传答题卡图片"></i>
- <label class="up-data" style="display: none">
- <span>点击上传</span>
- <input type="file" id="fileImg" name="img" accept="image/*"
- style="display: none;" />
- </label>
- </div>
- <div class="card-item-content">
- <div class="up-img-look-box" id="imgPreview">
- <?php
- if(isset($task['answer_card_img'])){
- $imgArr=explode(',',$task['answer_card_img']);
- foreach ($imgArr as $img){
- echo '<span class="img-wrap"><a href="'.$img.'" class="downLoadUrl" ><img src="'.$img.'"></a></span>';
- }
- }
- ?>
- </div>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="must">*</span>
- <span class="card-item-title-name">试卷文件</span>
- <i class="layui-icon layui-icon-about open-tips"
- tipstext="请上传考试试卷文件,后台工作人员需要以此作为模板制作的参考依据"></i>
- <label class="up-data" style="display: none">
- <span>点击上传</span>
- <input type="file" id="fileDoc" name="doc" style="display: none;" />
- <input type="hidden" name="paperDoc">
- </label>
- </div>
- <div class="card-item-title" style="margin-left: 24px">
- <span class="must"> *</span>
- <span class="">试卷文件中,需体现出</span>
- <span class="highlight-green">题型信息</span><br />
- <span class="highlight-green">(单选/多选/填空/解答/选做等)、分值信息、选项答案</span>
- </div>
- <div class="card-item-content">
- <?php
- if(isset($task['paper_file_img'])){
- if($task['paper_file_title']){
- $paperFileName=$task['paper_file_title'];
- }else{
- preg_match('/\/([^\/]+\.[a-z]+)[^\/]*$/',$task['paper_file_img'],$match);
- $paperFileName=$match[1];
- }
- echo '<a href="'.$task['paper_file_img'].'" title="'.$paperFileName.'" class="downLoadUrl" id="docName">试卷:'.$paperFileName.'</a>';
- }
- ?>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="must">*</span>
- <span class="card-item-title-name">考号类型</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="请选择您当前需要使用的考号类型"></i>
- </div>
- <div class="card-item-content">
- <?php
- $check[1]='';
- $check[2]='';
- if($task['number_type']){
- if($task['number_type']==1){
- $check[1]='checked';
- }elseif($task['number_type']==2){
- $check[2]='checked';
- }elseif($task['number_type']==3){
- $check[1]='checked';
- $check[2]='checked';
- }
- }
- ?>
- <label><input type="checkbox" class="card_type" disabled name="testNumberType" <?php echo $check[1]?> value="1" />填涂考号</label>
- <label><input type="checkbox" class="card_type" disabled name="testNumberType" <?php echo $check[2]?> value="2" />条形码</label>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="card-item-title-name">备注(选填)</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="可选择性填写对当前协助任务的说明"></i>
- </div>
- <div class="card-item-content">
- <?php
- if($task['answer_card_mark']){
- echo $task['answer_card_mark'];
- }else{
- echo '无';
- }
- ?>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="card-item-title-name">动态详情</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="跟踪当前任务的处理进展情况"></i>
- </div>
- <div class="card-item-content">
- <?php
- if($task['answer_sheet_task']){
- $status='未发送';
- switch ($task['answer_sheet_task']){
- case 1:
- $status='排队中';
- break;
- case 2:
- $status='受理中';
- break;
- case 3:
- $status='已完成';
- break;
- case 4:
- $status='已撤消';
- break;
- }
- echo '<p class="state-details">';
- echo '<span class="">状态:'.$status.'</span>';
- echo '<span class="">发送时间:'.date('Y-m-d H:i:s',$task['ast_create_time']).'</span>';
- echo '</p>';
- echo '<p class="state-details">';
- echo '<span>任务耗时:'.$task['AstConsuming'].'</span>';
- echo '<span>受理专家:'.$task['user'].'</span>';
- echo '</p>';
- }else{
- echo '<p class="state-details">';
- echo '<span class="">状态:未发送</span>';
- echo '<span class="">发送时间:--</span>';
- echo '</p>';
- echo '<p class="state-details">';
- echo '<span>任务耗时:--</span>';
- echo '<span>受理专家:--</span>';
- echo '</p>';
- }
- ?>
- </div>
- </div>
- <div class="btn-box">
- <?php
- if($our==1 && $task['answer_sheet_task']==2){
- echo '<button type="button" sheet_id="'.$task['sheet_id'].'" class="layui-btn layui-btn-radius layui-btn-primary confirm-up-analysis createSheet">去处理</button>';
- }
- ?>
- </div>
- </form>
- </div>
- </div>
- <?php
- }
- if(isset($task) && $task['paper_task']>0){
- ?>
- <div class="card">
- <div class="card-title">
- <p>
- <span class="oblique-line">//////</span>
- <span class="card-name">试卷</span>
- <span class="oblique-line">//////</span>
- </p>
- <!-- <img class="processing-status" src="./img/img-acceptance.png" alt="受理中"> -->
- <!-- <img class="processing-status" src="./img/img-complete.png" alt="已完成"> -->
- <?php
- if(isset($task) && $task['paper_task']>0){
- if($task['paper_task']==1){
- // echo '<img class="processing-status" src="/images/img-acceptance.png" alt="受理中">';
- }elseif($task['paper_task']==2){
- echo '<img class="processing-status" src="/images/img-acceptance.png" alt="受理中">';
- }elseif($task['paper_task']==3){
- echo '<img class="processing-status" src="/images/img-complete.png" alt="已完成">';
- }
- }
- ?>
- </div>
- <div class="card-content">
- <form>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="must">*</span>
- <span class="card-item-title-name">试卷图片</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="请按顺序上传试卷图片"></i>
- <label class="up-data" style="display:none;">
- <span>点击上传</span>
- <input type="file" id="testImg" name="img" accept="image/*"
- style="display: none;" />
- </label>
- </div>
- <div class="card-item-content">
- <div class="up-img-look-box" id="testImgImgPreview">
- <?php
- if(isset($task['paper_img'])){
- $imgArr=explode(',',$task['paper_img']);
- foreach ($imgArr as $img){
- echo '<span class="img-wrap"><a href="'.$img.'" class="downLoadUrl" ><img src="'.$img.'"></a></span>';
- }
- }
- ?>
- </div>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="must">*</span>
- <span class="card-item-title-name">试卷结构</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="确认答题卡切割后的试题结构"></i>
- </div>
- <div class="card-item-content">
- <?php
- if(isset($task['paper_topic']['items']) && !empty($task['paper_topic']['items'])){
- if(isset($task['paper_topic']['items'][1]) && $task['paper_topic']['items'][1]['no']){
- echo '<p>单选题:'.implode(',',$task['paper_topic']['items'][1]['no']).'</p>';
- }
- if(isset($task['paper_topic']['items'][11]) && $task['paper_topic']['items'][11]['no']){
- echo '<p>多选题:'.implode(',',$task['paper_topic']['items'][11]['no']).'</p>';
- }
- if(isset($task['paper_topic']['items'][4]) && $task['paper_topic']['items'][4]['no']){
- echo '<p>判断题:'.implode(',',$task['paper_topic']['items'][4]['no']).'</p>';
- }
- if(isset($task['paper_topic']['items'][5]) && $task['paper_topic']['items'][5]['no']){
- echo '<p>填空题:'.implode(',',$task['paper_topic']['items'][5]['no']).'</p>';
- }
- if(isset($task['paper_topic']['items'][7]) && $task['paper_topic']['items'][7]['no']){
- echo '<p>解答题:'.implode(',',$task['paper_topic']['items'][7]['no']).'</p>';
- }
- if(isset($task['paper_topic']['items'][17]) && $task['paper_topic']['items'][17]['no']){
- echo '<p>选做题:'.implode(',',$task['paper_topic']['items'][17]['no']).'</p>';
- }
- }else{
- echo '<p>答题卡设置未完成,无试题结构</p>';
- }
- ?>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="card-item-title-name">备注(选填)</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="可选择性填写对当前协助任务的说明"></i>
- </div>
- <div class="card-item-content">
- <?php
- if($task['paper_mark']){
- echo $task['paper_mark'];
- }else{
- echo '无';
- }
- ?>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="card-item-title-name">动态详情</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="跟踪当前任务的处理进展情况"></i>
- <!-- <span class="highlight-err" style="margin-left: 138px">提示:请去确认试卷切割是否正确</span> -->
- </div>
- <div class="card-item-content">
- <?php
- if($task['paper_task']){
- $status='未发送';
- switch ($task['paper_task']){
- case 1:
- $status='排队中';
- break;
- case 2:
- $status='受理中';
- break;
- case 3:
- $status='已完成';
- break;
- case 4:
- $status='已撤消';
- break;
- }
- echo '<p class="state-details">';
- echo '<span class="">状态:'.$status.'</span>';
- echo '<span class="">发送时间:'.date('Y-m-d H:i:s',$task['ppt_create_time']).'</span>';
- echo '</p>';
- echo '<p class="state-details">';
- echo '<span>任务耗时:'.$task['PptConsuming'].'</span>';
- echo '<span>受理专家:'.$task['user'].'</span>';
- echo '</p>';
- }else{
- echo '<p class="state-details">';
- echo '<span class="">状态:未发送</span>';
- echo '<span class="">发送时间:--</span>';
- echo '</p>';
- echo '<p class="state-details">';
- echo '<span>任务耗时:--</span>';
- echo '<span>受理专家:--</span>';
- echo '</p>';
- }
- ?>
- </div>
- </div>
- <div class="btn-box">
- <?php
- if($our==1 && $task['paper_task']==2){
- echo '<button type="button" template_id="'.$task['paper_template'].'" tpl_index="'.$task['tpl_index'].'" class="layui-btn layui-btn-radius layui-btn-primary confirm-up-analysis uploadPaper">去处理</button>';
- }
- ?>
- </div>
- </form>
- </div>
- </div>
- <?php
- }
- if(isset($task) && $task['parse_task']>0){
- ?>
- <div class="card">
- <div class="card-title">
- <p>
- <span class="oblique-line">//////</span>
- <span class="card-name">答案解析</span>
- <span class="oblique-line">//////</span>
- <?php
- if(isset($task) && $task['parse_task']>0){
- if($task['parse_task']==1){
- // echo '<img class="processing-status" src="/images/img-acceptance.png" alt="受理中">';
- }elseif($task['parse_task']==2){
- echo '<img class="processing-status" src="/images/img-acceptance.png" alt="受理中">';
- }elseif($task['parse_task']==3){
- echo '<img class="processing-status" src="/images/img-complete.png" alt="已完成">';
- }
- }
- ?>
- </p>
- </div>
- <div class="card-content">
- <form>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="must">*</span>
- <span class="card-item-title-name">答案解析图片</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="请按顺序上传答案解析图片"></i>
- <label class="up-data" style="display: none">
- <span>点击上传</span>
- <input type="file" id="AnswerImg" name="img" accept="image/*"
- style="display: none;" />
- </label>
- </div>
- <div class="card-item-content">
- <div class="up-img-look-box" id="AnswerImgImgPreview">
- <?php
- if(isset($task['parse_img'])){
- $imgArr=explode(',',$task['parse_img']);
- foreach ($imgArr as $img){
- echo '<span class="img-wrap"><a href="'.$img.'" class="downLoadUrl" ><img src="'.$img.'"></a></span>';
- }
- }
- ?>
- </div>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="must">*</span>
- <span class="card-item-title-name">试卷结构</span>
- </div>
- <div class="card-item-content">
- <?php
- if(isset($task['paper_topic']['items']) && !empty($task['paper_topic']['items'])){
- if(isset($task['paper_topic']['items'][1]) && $task['paper_topic']['items'][1]['no']){
- echo '<p>单选题:'.implode(',',$task['paper_topic']['items'][1]['no']).'</p>';
- }
- if(isset($task['paper_topic']['items'][11]) && $task['paper_topic']['items'][11]['no']){
- echo '<p>多选题:'.implode(',',$task['paper_topic']['items'][11]['no']).'</p>';
- }
- if(isset($task['paper_topic']['items'][4]) && $task['paper_topic']['items'][4]['no']){
- echo '<p>判断题:'.implode(',',$task['paper_topic']['items'][4]['no']).'</p>';
- }
- if(isset($task['paper_topic']['items'][5]) && $task['paper_topic']['items'][5]['no']){
- echo '<p>填空题:'.implode(',',$task['paper_topic']['items'][5]['no']).'</p>';
- }
- if(isset($task['paper_topic']['items'][7]) && $task['paper_topic']['items'][7]['no']){
- echo '<p>解答题:'.implode(',',$task['paper_topic']['items'][7]['no']).'</p>';
- }
- if(isset($task['paper_topic']['items'][17]) && $task['paper_topic']['items'][17]['no']){
- echo '<p>选做题:'.implode(',',$task['paper_topic']['items'][17]['no']).'</p>';
- }
- }else{
- echo '<p>答题卡设置未完成,无试题结构</p>';
- }
- ?>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="card-item-title-name">备注(选填)</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="可选择性填写对当前协助任务的说明"></i>
- </div>
- <div class="card-item-content">
- <?php
- if($task['parse_mark']){
- echo $task['parse_mark'];
- }else{
- echo '无';
- }
- ?>
- </div>
- </div>
- <div class="card-item">
- <div class="card-item-title">
- <i class="start-green"></i>
- <span class="card-item-title-name">动态详情</span>
- <i class="layui-icon layui-icon-about open-tips" tipstext="跟踪当前任务的处理进展情况"></i>
- </div>
- <div class="card-item-content">
- <?php
- if($task['parse_task']){
- $status='未发送';
- switch ($task['parse_task']){
- case 1:
- $status='排队中';
- break;
- case 2:
- $status='受理中';
- break;
- case 3:
- $status='已完成';
- break;
- case 4:
- $status='已撤消';
- break;
- }
- echo '<p class="state-details">';
- echo '<span class="">状态:'.$status.'</span>';
- echo '<span class="">发送时间:'.date('Y-m-d H:i:s',$task['pat_create_time']).'</span>';
- echo '</p>';
- echo '<p class="state-details">';
- echo '<span>任务耗时:'.$task['PatConsuming'].'</span>';
- echo '<span>受理专家:'.$task['user'].'</span>';
- echo '</p>';
- }else{
- echo '<p class="state-details">';
- echo '<span class="">状态:未发送</span>';
- echo '<span class="">发送时间:--</span>';
- echo '</p>';
- echo '<p class="state-details">';
- echo '<span>任务耗时:--</span>';
- echo '<span>受理专家:--</span>';
- echo '</p>';
- }
- ?>
- </div>
- </div>
- <div class="btn-box">
- <?php
- if($our==1 && $task['parse_task']==2){
- echo '<button type="button" template_id="'.$task['parse_template'].'" tpl_index="'.$task['tpl_index'].'" class="layui-btn layui-btn-radius layui-btn-primary confirm-up-analysis uploadParse">去处理</button>';
- }
- ?>
- </div>
- </form>
- </div>
- </div>
- <?php }?>
- </div>
- </div>
- <input type="hidden" name="exam_group_id" value="<?php echo $task['exam_group_id']?>">
- <input type="hidden" name="my_sign_info" value="<?php echo $task['my_sign_info']?>">
- <input type="hidden" name="subject_id" value="<?php echo $task['subject_id']?>">
- <script>
- $(function(){
- var exam_group_id=$('input[name=exam_group_id]').val(),
- my_sign_info=$('input[name=my_sign_info]').val(),
- subject_id=$('input[name=subject_id]').val();
- $('.createSheet').click(function(){
- sheet_id=$(this).attr('sheet_id');
- imgArr=[];
- $('#imgPreview img').each(function () {
- imgArr.push($(this).attr('src'));
- });
- $.ajax({
- url:'<?php echo $this->createUrl('assistTask/getSheet')?>',
- type:'POST',
- dataType:'json',
- data:{exam_group_id:exam_group_id},
- success:function(res){
- if(res.status==1){
- evaluationClient.createAnswerSheet(res.data+","+exam_group_id+","+subject_id+","+my_sign_info);
- }
- }
- })
- });
- $('.uploadPaper').click(function(){
- tempalte_id=$(this).attr('template_id');
- tplIndex=$(this).attr('tpl_index');
- imgArr=[];
- $('#testImgImgPreview img').each(function () {
- imgArr.push($(this).attr('src'));
- });
- evaluationClient.loadExamPaper(tempalte_id+','+exam_group_id+','+subject_id+','+tplIndex+","+my_sign_info);
- });
- $('.uploadParse').click(function(){
- tempalte_id=$(this).attr('template_id');
- imgArr=[];
- $('#AnswerImgImgPreview img').each(function () {
- imgArr.push($(this).attr('src'));
- });
- evaluationClient.loadAnswerParsing(tempalte_id+','+exam_group_id+','+subject_id+","+my_sign_info);
- });
-
- $('.downLoadUrl').click(function(){
- url=$(this).attr('href');
- title=$(this).attr('title');
- if(title==undefined){
- title='';
- }
- window.location.href='<?php echo $this->createUrl('assistTask/download') ?>?url='+url+'&title='+title;
- return false;
- });
- })
- </script>
|