123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>试题编辑</title>
- <link rel="stylesheet" type="text/css" href="/css/base.css">
- <script type="text/javascript" src="/js/jquery.min.js"></script>
- <script src="/js/layer/layer.js"></script>
- <style type="text/css">
- /*.topic-content*/
- .choose-topic{padding:10px;margin:5px;}
- .choose-topic h3,.filling-topic h3,.answer-topic h3{font-weight: 700;font-size: 14px;line-height: 34px;}
- .topic{font-size:14px;text-align: justify;line-height: 22px;}
- .topic a{margin:0 5px; color: #4395ff}
- .topic p{display: inline;}
- /*.topic .score{color: #f00;}*/
- .score input,.right-answer{width: 30px;text-align: center; background: #fff;border:0;color: #50d2c2}
- .score input:focus,.right-answer:focus{border:1px solid #50d2c2;outline: none;}
- /*.right-answer{color: #f40;}*/
- .topic-answer input{width: 60px;}
- .words{position: relative;padding-left: 25px; width: 70%;box-sizing: border-box;cursor:pointer;}
- .controls{width: 30%;}
- .options{padding-left: 35px;}
- .options li{margin-top: 10px; list-style:upper-latin;}
- .listType_1{width: 25%;}
- .topic-answer,.topic-explain{padding-left: 20px;margin:10px 0;background:#eee;}
- .topic-detail{padding-left:20px;}
- .topic-detail ul {padding:0;margin:0;padding-left:40px;}
- .topic-detail ul li{list-style:upper-latin;width:100%}
- h3{font-weight: bold;margin-top:15px;clear:both;}
- .batch_topic{padding-left: 30px; font-size:14px;text-align: justify;line-height: 22px;}
- .batch_topic a{margin:0 5px; color: #4395ff}
- .batch_topic p{display: inline;}
- .answer-tit{
- background-color: #eee;
- padding:15px 10px;
- }
- .score_l{display: inline-block;float: left;width:5%;margin-top:5px;}
- .div_hide{display:none;}
- .div_hide_has_slave{display:none;}
- .c-red{color:red !important;}
- .gray{background:#ccc;color:#fff}
- </style>
- <script>
- $(function () {
- /* 点击展开试题解析*/
- $("body").delegate('.topic-content', 'click', function(event) {
- $(this).closest(".choose-topic").find('.div_hide').slideToggle();
- });
- $("body").delegate('.topic_content_large', 'click', function(event) {
- $(this).closest(".topic-large").find('.div_hide_has_slave').slideToggle();
- });
- $('.operate').click(function(){
- window.location.href='<?php echo $this->createUrl('allSubject/operate?eid='.$exam_id)?>'
- });
- })
- </script>
- </head>
- <body>
- <a href="<?php echo Yii::app()->createUrl('paper/recover',array('exam_id'=>$exam_id))?>" class="<?php if( isset(Yii::app()->session['testFlag'])&&(Yii::app()->session['testFlag']==1)) {
- }else{ echo 'dn';}?>"><h3 style="color:#ff7800">恢复考试状态</h3></a>
- <input type="hidden" name="exam_id" value="<?php echo $exam_id?>">
- <input type="hidden" name="paper_id" value="<?php echo $paper_id?>">
- <button type="button" class="operate" style="width: 100px;float: right">修改答案分值</button>
- <?php
- if(!$topic) exit();
- foreach ($topic as $item){ ?>
- <!--题型说明-->
- <div class="large_title">
- <h3><?php echo $item['questionNumber'].'、'.$item['type_name']?>(<?php echo $item['tips']?>)</h3>
- </div>
- <div class="topic_list">
- <!--循环大题列表-->
- <?php foreach ($item['topic'] as $value){ ?>
- <div class="choose-topic">
- <!--试题开始-->
- <?php if(isset($value['slave']) && $value['slave']){ ?>
- <!--有二级子题-->
- <?php
- $answers=array();
- $parses=array();
- $updateAnswers=array();
- ?>
- <div class="topic-large">
- <?php if($value['title']){?>
- <div class="topic-content topic_content_large clearfix">
- <div class="words fl">
- <span style="display: inline-block;float: left;margin-right:10px;">[<?php echo $value['id']?>]</span> <?php echo ''.$value['title']?>
- </div>
- </div>
- <?php }?>
- <!--循环子题开始-->
- <?php foreach ($value['slave'] as $slave){ ?>
- <?php if(isset($slave['slave']) && $slave['slave']){?>
- <?php if($slave['title']){?>
- <div class="topic-content topic_content_large clearfix">
- <div class="words fl">
- <?php echo ''.$slave['title']?>
- </div>
- </div>
- <?php }?>
- <!--三级子题循环开始-->
- <?php foreach ($slave['slave'] as $thirdSlave){ ?>
- <?php
- if(isset($thirdSlave['alias'])){
- $answers[$thirdSlave['alias']]=$thirdSlave['answer'];
- if(isset($thirdSlave['parse_content'])){
- $parses[$thirdSlave['alias']]=$thirdSlave['parse_content'];
- }
- $order=$thirdSlave['alias'];
- }else{
- $answers[$thirdSlave['order']]=$thirdSlave['answer'];
- if(isset($thirdSlave['parse_content'])){
- $parses[$thirdSlave['order']]=$thirdSlave['parse_content'];
- }
- $order=$thirdSlave['order'];
- }
- if(isset($update_answer[$thirdSlave['order']])){
- $updateAnswers[$thirdSlave['order']]=$update_answer[$thirdSlave['order']]['update_answer'];
- }
- if(isset($new_rules[$thirdSlave['order']]) && $new_rules[$thirdSlave['order']]['rule_answer']){
- $updateAnswers[$thirdSlave['order']]=$new_rules[$thirdSlave['order']]['rule_answer'];
- }
- ?>
- <div class="topic" id="<?php echo $thirdSlave['topic_slave_id']?>">
- <div class="topic-content clearfix <?php if(!in_array($value['basic_type_id'],$multipleChoices) && !in_array($value['basic_type_id'],$multipleChoices)) echo " topic_content_large" ?>">
- <?php if($thirdSlave['is_show']){?>
- <?php if($value['slave_stem_editor']){?>
- <div class="words fl">
- <?php if($thirdSlave['title']): ?>
- <span class="order" order_id="<?php echo $order?>"> <?php echo $order?></span>. (<span class="green"> <?php echo $thirdSlave['score']?></span>分 ) <?php echo $thirdSlave['title']?>
- <?php else:?>
- <span class="order" order_id="<?php echo $order?>"> <?php echo $order?></span>.
- <?php endif;?>
- </div>
- <?php }elseif($value['slave_option_editor']){?>
- <span class="order" order_id="<?php echo $order?>"> <?php echo $order?></span>.
- <?php }?>
- <?php }?>
- <!--操作区-->
- <!--
- <div class="controls fr clearfix ">
- <?php
- if($thirdSlave['answer_type_id']==1 && $thirdSlave['is_checkbox']==0){
- $sendPointArr=array();
- $sendPointArr[1]='';
- $sendPointArr[2]='';
- $isSend=false;
- if(isset($send_points[$thirdSlave['order']])){
- if($send_points[$thirdSlave['order']]['actionType']==1){
- $sendPointArr[1]='fr c-red';
- $sendPointArr[2]='fr ';
- }elseif($send_points[$thirdSlave['order']]['actionType']==2){
- $sendPointArr[2]='fr c-red';
- $sendPointArr[1]='fr ';
- }
- }else{
- $sendPointArr[1]='fr sendPoints';
- $sendPointArr[2]='fr sendPoints';
- }
- if(!$isSend){
- ?>
- <a href="javascript:;" score="0" topic="<?php echo $thirdSlave['topic_slave_id']?>" type="1" class="fr change-score">更改分值</a>
- <a href="javascript:;" score="0" topic="<?php echo $thirdSlave['topic_slave_id']?>" type="<?php if($value['basic_type_id']==12){echo 12;}else{echo 1;}?>" class="fr change-answer">更改答案</a>
- <?php }
- if( isset(Yii::app()->session['testFlag'])&&(Yii::app()->session['testFlag']==1)) {
- ?>
- <a href="javascript:;" class="<?php echo $sendPointArr[1]?>" action_type="1" paper_id="<?php echo $paper_id ?>" topic="<?php echo $thirdSlave['topic_slave_id']?>" type="1" >送分题</a>
- <a href="javascript:;" class="<?php echo $sendPointArr[2]?>" action_type="2" paper_id="<?php echo $paper_id ?>" topic="<?php echo $thirdSlave['topic_slave_id']?>" type="1" >0分题</a>
- <?php
- }
- }elseif($thirdSlave['answer_type_id']==1 && $thirdSlave['is_checkbox']==1){
- ?>
- <a href="javascript:;" score="<?php echo $thirdSlave['score']?>" topic="<?php echo $thirdSlave['topic_slave_id']?>" type="2" class="fr change_multi_answer" step="1">更改判分规则</a>
- <a href="javascript:;" score="<?php echo $thirdSlave['score']?>" topic="<?php echo $thirdSlave['topic_slave_id']?>" type="2" class="fr change_multi_answer" step="3">更改分值</a>
- <a href="javascript:;" score="<?php echo $thirdSlave['score']?>" topic="<?php echo $thirdSlave['topic_slave_id']?>" type="2" class="fr change_multi_answer" step="2">更改答案</a>
- <?php
- }else{
- ?>
- <a href="javascript:;" class="fr change-score" paper_id="<?php echo $paper_id ?>" topic="<?php echo $thirdSlave['topic_slave_id']?>" type="5" >更改分值</a>
- <?php if(in_array($subject,array(18,19))):?>
- <a href="javascript:;" class="fr change-topic-subject" subject-name="<?php if(isset($topic_subject_data[$thirdSlave['order']]) && isset($subjects[$topic_subject_data[$thirdSlave['order']]])){echo $subjects[$topic_subject_data[$thirdSlave['order']]];}?>" subject="<?php if(isset($topic_subject_data[$thirdSlave['order']])){echo $topic_subject_data[$thirdSlave['order']];}?>" paper_id="<?php echo $paper_id ?>" topic="<?php echo $thirdSlave['topic_slave_id']?>" type="1" >更改试题科目</a>
- <?php endif;?>
- <?php
- }
- ?>
- </div>
- -->
- <!--操作区end-->
- <?php if($thirdSlave['is_show']){?>
- <!--选项-->
- <?php
- if($thirdSlave['answer_type_id']==1 && $thirdSlave['is_checkbox']==1){
- $ruleAnswer='';
- $ruleType=2; //默认规则
- $ruleScoreHalf=0;
- if(isset($new_rules[$thirdSlave['order']])){
- $ruleAnswer=$new_rules[$thirdSlave['order']]['rule_answer'];
- if($new_rules[$thirdSlave['order']]['rule_type']){
- $ruleType=$new_rules[$thirdSlave['order']]['rule_type'];
- }
- $ruleScoreHalf=$new_rules[$thirdSlave['order']]['rule_score_half'];
- }
- echo '<input type="hidden" name="rule_answer" class="rule_answer" value="'.$ruleAnswer.'">';
- echo '<input type="hidden" name="rule_type" class="rule_type" value="'.$ruleType.'">';
- echo '<input type="hidden" name="rule_score_half" class="rule_score_half" value="'.$ruleScoreHalf.'">';
- echo '<input type="hidden" name="right-answer" class="right-answer" value="'.$thirdSlave['answer'].'">';
- }
- ?>
- <?php if($thirdSlave['answer_type_id']==1){ ?>
- <div class="topic-detail div_hide_has_slave">
- <ul class="options clearfix">
- <?php
- if($thirdSlave['items']){
- foreach ($thirdSlave['items'] as $v){
- echo '<li class="listType_1 fl">'.$v['content'].'</li>';
- }
- }
- $allAnswer[$order]="【".$order."】".$thirdSlave['answer'];
- $allParseContent[$order]="【".$order."】".$thirdSlave['parse_content'];
- ?>
- </ul>
- </div>
- <?php }?>
- <!--选项end-->
- <?php }?>
- </div>
- </div>
- <?php } ?>
- <!--三级子题end-->
- <?php }else{ ?>
- <?php
- if(isset($slave['alias'])){
- $answers[$slave['alias']]=$slave['answer'];
- $parses[$slave['alias']]=$slave['parse_content'];
- $order=$slave['alias'];
- }else{
- $answers[$slave['order']]=$slave['answer'];
- $parses[$slave['order']]=$slave['parse_content'];
- $order=$slave['order'];
- }
- if(isset($update_answer[$slave['order']])){
- $updateAnswers[$slave['order']]=$update_answer[$slave['order']]['update_answer'];
- }
- if(isset($new_rules[$slave['order']]) && $new_rules[$slave['order']]['rule_answer']){
- $updateAnswers[$slave['order']]=$new_rules[$slave['order']]['rule_answer'];
- }
- ?>
- <div class="topic" id="<?php echo $slave['topic_slave_id']?>">
- <div class="topic-content clearfix <?php if(!in_array($value['basic_type_id'],$multipleChoices) && !in_array($value['basic_type_id'],$multipleChoices)) echo " topic_content_large" ?>">
- <?php if($slave['is_show']){?>
- <?php if($value['slave_stem_editor']){?>
- <div class="words fl">
- <?php if($slave['title']): ?>
- <span class="order" order_id="<?php echo $order?>"> <?php echo $order?></span>. (<span class="green"> <?php echo $slave['score']?></span>分 ) <?php echo $slave['title']?>
- <?php else:?>
- <span class="order" order_id="<?php echo $order?>"> <?php echo $order?></span>.
- <?php endif;?>
- </div>
- <?php }elseif($value['slave_option_editor']){?>
- <span class="order" order_id="<?php echo $order?>"> <?php echo $order?></span>.
- <?php }?>
- <?php }?>
- <!--二级子题操作区-->
- <!--
- <div class="controls fr clearfix ">
- <?php
- if(in_array($value['basic_type_id'],$singleChoice) || ($slave['answer_type_id']==1 && $slave['is_checkbox']==0) ){
- $sendPointArr=array();
- $sendPointArr[1]='';
- $sendPointArr[2]='';
- if(isset($send_points[$slave['order']])){
- if($send_points[$slave['order']]['actionType']==1){
- $sendPointArr[1]='fr c-red';
- $sendPointArr[2]='fr ';
- }elseif($send_points[$slave['order']]['actionType']==2){
- $sendPointArr[2]='fr c-red';
- $sendPointArr[1]='fr ';
- }
- }else{
- $sendPointArr[1]='fr sendPoints';
- $sendPointArr[2]='fr sendPoints';
- }
- if( isset(Yii::app()->session['testFlag'])&&(Yii::app()->session['testFlag']==1)) {
- ?>
- <a href="javascript:;" class="<?php echo $sendPointArr[1]?>" action_type="1" paper_id="<?php echo $paper_id ?>" topic="<?php echo $slave['topic_slave_id']?>" type="1" >送分题</a>
- <a href="javascript:;" class="<?php echo $sendPointArr[2]?>" action_type="2" paper_id="<?php echo $paper_id ?>" topic="<?php echo $slave['topic_slave_id']?>" type="1" >0分题</a>
- <?php
- }
- }elseif(in_array($value['basic_type_id'],$multipleChoices) || ($slave['answer_type_id']==1 && $slave['is_checkbox']==1)){
- ?>
- <a href="javascript:;" score="<?php echo $slave['score']?>" topic="<?php echo $slave['topic_slave_id']?>" type="2" class="fr change_multi_answer" step="1">更改判分规则</a>
- <a href="javascript:;" score="<?php echo $slave['score']?>" topic="<?php echo $slave['topic_slave_id']?>" type="2" class="fr change_multi_answer" step="3">更改分值</a>
- <a href="javascript:;" score="<?php echo $slave['score']?>" topic="<?php echo $slave['topic_slave_id']?>" type="2" class="fr change_multi_answer" step="2">更改答案</a>
- <?php
- }else{
- ?>
- <?php if(in_array($subject,array(18,19))):?>
- <a href="javascript:;" class="fr change-topic-subject" subject-name="<?php if(isset($topic_subject_data[$slave['order']]) && isset($subjects[$topic_subject_data[$slave['order']]])){echo $subjects[$topic_subject_data[$slave['order']]];}?>" subject="<?php if(isset($topic_subject_data[$slave['order']])){echo $topic_subject_data[$slave['order']];}?>" paper_id="<?php echo $paper_id ?>" topic="<?php echo $slave['topic_slave_id']?>" type="1" >更改试题科目</a>
- <?php endif;?>
- <a href="javascript:;" class="fr change-score" paper_id="<?php echo $paper_id ?>" topic="<?php echo $slave['topic_slave_id']?>" type="5" >更改分值</a>
- <?php } ?>
- </div>
- -->
- <!--二级子题操作区end-->
- </div>
- <!--选项-->
- <?php if($slave['is_show']){?>
- <?php
- if(in_array($value['basic_type_id'],$multipleChoices) || ($slave['answer_type_id']==1 && $slave['is_checkbox']=1) ){
- $ruleAnswer='';
- $ruleType=2; //默认规则
- $ruleScoreHalf=0;
- if(isset($new_rules[$slave['order']])){
- $ruleAnswer=$new_rules[$slave['order']]['rule_answer'];
- if($new_rules[$slave['order']]['rule_type']){
- $ruleType=$new_rules[$slave['order']]['rule_type'];
- }
- $ruleScoreHalf=$new_rules[$slave['order']]['rule_score_half'];
- }
- echo '<input type="hidden" name="rule_answer" class="rule_answer" value="'.$ruleAnswer.'">';
- echo '<input type="hidden" name="rule_type" class="rule_type" value="'.$ruleType.'">';
- echo '<input type="hidden" name="rule_score_half" class="rule_score_half" value="'.$ruleScoreHalf.'">';
- echo '<input type="hidden" name="right-answer" class="right-answer" value="'.$slave['answer'].'">';
- }
- ?>
- <?php if((in_array($value['basic_type_id'],$multipleChoices) || in_array($value['basic_type_id'],$singleChoice) || $slave['answer_type_id']==1) && $value['slave_option_editor']){ ?>
- <div class="topic-detail div_hide_has_slave">
- <ul class="options clearfix">
- <?php
- if($slave['items'] && $value['slave_option_editor']){
- foreach ($slave['items'] as $v){
- echo '<li class="listType_1 fl">'.$v['content'].'</li>';
- }
- }
- $allAnswer[$order]="【".$order."】".$slave['answer'];
- $allParseContent[$order]="【".$order."】".$slave['parse_content'];
- ?>
- </ul>
- </div>
- <?php }?>
- <!--选项end-->
- <?php } ?>
- </div>
- <?php } ?>
- <?php } ?>
- <!--循环子题end-->
- <!--答案解析显示-->
- <div class='div_hide_has_slave'>
- <?php
- if($answers){
- echo '<div class="topic-explain">';
- echo '试题答案';
- foreach ($answers as $k =>$v){
- echo '【'.$k.'】'.$v;
- }
- echo '</div>';
- }
- if($updateAnswers){
- echo '<div class="topic-explain">';
- echo '更新答案';
- foreach ($updateAnswers as $k =>$v){
- echo '【'.$alias[$k].'】'.$v;
- }
- echo '</div>';
- }
- if($parses){
- echo '<div class="topic-explain">';
- echo '试题解析';
- foreach ($parses as $k =>$v){
- if($v){
- echo '【'.$k.'】'.$v.'<br>';
- }
- }
- echo '</div>';
- }
- ?>
- <?php if(isset($value['parse_content']) && $value['parse_content'] ):?>
- <div class="topic-explain">
- 大题解析:<?php echo $value['parse_content']?>
- </div>
- <?php endif;?>
- </div>
- <!--答案解析显示end-->
- </div>
- <?php }else{ ?>
- <!--没有子题-->
- <?php
- if(isset($value['alias'])){
- $order=$value['alias'];
- }else{
- $order=$value['order'];
- }
- ?>
- <div class="topic" id="<?php echo $value['id']?>">
- <div class="topic-content clearfix">
- <div class="words fl">
- <span class="order" order_id="<?php echo $order?>"> <?php echo $order?></span>. (<span class="green"><?php echo $value['score']?></span>分)[ID:<?php echo $value['id']?>] <?php echo $value['title']?>
- </div>
- <!--
- <div class="controls fr clearfix ">
- <?php
- if(in_array($value['basic_type_id'],$singleChoice) || ($value['answer_type_id']==1 && $value['is_checkbox']==0)){
- $sendPointArr=array();
- $sendPointArr[1]='';
- $sendPointArr[2]='';
- if(isset($send_points[$value['order']])){
- if($send_points[$value['order']]['actionType']==1){
- $sendPointArr[1]='fr c-red';
- $sendPointArr[2]='fr ';
- }elseif($send_points[$value['order']]['actionType']==2){
- $sendPointArr[2]='fr c-red';
- $sendPointArr[1]='fr ';
- }
- }else{
- $sendPointArr[1]='fr sendPoints';
- $sendPointArr[2]='fr sendPoints';
- }
- if( isset(Yii::app()->session['testFlag'])&&(Yii::app()->session['testFlag']==1)) {
- ?>
- <a href="javascript:;" class="<?php echo $sendPointArr[1]?>" action_type="1" paper_id="<?php echo $paper_id ?>" topic="<?php echo $value['id']?>" type="1" >送分题</a>
- <a href="javascript:;" class="<?php echo $sendPointArr[2]?>" action_type="2" paper_id="<?php echo $paper_id ?>" topic="<?php echo $value['id']?>" type="1" >0分题</a>
- <?php
- }
- }elseif(in_array($value['basic_type_id'],$multipleChoices) || ($value['answer_type_id']==1 && $value['is_checkbox']==1)){
- ?>
- <a href="javascript:;" score="<?php echo $value['score']?>" topic="<?php echo $value['id']?>" type="2" class="fr change_multi_answer" step="1">更改判分规则</a>
- <a href="javascript:;" score="<?php echo $value['score']?>" topic="<?php echo $value['id']?>" type="2" class="fr change_multi_answer" step="3">更改分值</a>
- <a href="javascript:;" score="<?php echo $value['score']?>" topic="<?php echo $value['id']?>" type="2" class="fr change_multi_answer" step="2">更改答案</a>
- <?php
- }else{
- ?>
- <?php if( isset(Yii::app()->session['testFlag'])&&(Yii::app()->session['testFlag']==1)) { ?>
- <a href="javascript:;" class="fr change-score" paper_id="<?php echo $paper_id ?>" topic="<?php echo $value['id']?>" type="5" >更改分值</a>
- <?php }?>
- <?php
- }
- ?>
- </div>
- -->
- </div>
- <div class="topic-detail div_hide">
- <?php
- if($value['basic_type_id']==13 || (in_array($value['basic_type_id'],$singleChoice) || in_array($value['basic_type_id'],$multipleChoices))){
- ?>
- <!--选项答案解析-->
- <ul class="options clearfix">
- <?php
- $ruleAnswer='';
- $ruleType=2; //默认规则
- $ruleScoreHalf=0;
- if(isset($new_rules[$value['order']])){
- $ruleAnswer=$new_rules[$value['order']]['rule_answer'];
- if($new_rules[$value['order']]['rule_type']){
- $ruleType=$new_rules[$value['order']]['rule_type'];
- }
- $ruleScoreHalf=$new_rules[$value['order']]['rule_score_half'];
- }
- echo '<input type="hidden" name="rule_answer" class="rule_answer" value="'.$ruleAnswer.'">';
- echo '<input type="hidden" name="rule_type" class="rule_type" value="'.$ruleType.'">';
- echo '<input type="hidden" name="rule_score_half" class="rule_score_half" value="'.$ruleScoreHalf.'">';
- if($value['items'] && $value['basic_type_id']!=12){
- foreach ($value['items'] as $v){
- echo '<li class="listType_1 fl">'.$v['content'].'</li>';
- }
- }
- ?>
- </ul>
- <div class="topic-answer clearfix">
- <div class=" answer-tit">
- 试题答案 :<?php
- if($subject!=8){
- if($value['answer']=='T'){
- echo '√';
- }elseif($value['answer']=='F'){
- echo '×';
- }else{
- echo $value['answer'] ;
- }
- }else{
- echo $value['answer'];
- }
- ?>
- <input type="hidden" value="<?php echo $value['answer'] ?>" class="right-answer" disabled="">
- </div>
- </div>
- <?php
- $updateAnswer='';
- if(isset($update_answer[$value['order']])){
- $updateAnswer=$update_answer[$value['order']]['update_answer'];
- }elseif(isset($new_rules[$value['order']])){
- $updateAnswer=$new_rules[$value['order']]['rule_answer'];
- }
- if($updateAnswer):
- ?>
- <div class="topic-answer clearfix">
- <div class=" answer-tit">
- 更新答案 :<?php
- if($subject!=8){
- if($updateAnswer=='T'){
- echo '√';
- }elseif($updateAnswer=='F'){
- echo '×';
- }else{
- echo $updateAnswer ;
- }
- }else{
- echo $updateAnswer;
- }
- ?>
- <input type="hidden" value="<?php echo $updateAnswer ?>" class="right-answer" disabled="">
- </div>
- </div>
- <?php endif;?>
- <div class="topic-explain">
- <div class="answer-tit">
- 试题解析:
- <?php echo $value['parse_content']?>
- </div>
- </div>
- <?php
- }else{
- ?>
- <div class="topic-answer clearfix">
- <div class="answer-tit">
- 试题答案:<?php echo $value['answer'] ?>
- </div>
- </div>
- <div class="topic-explain">
- <div class="answer-tit">
- 试题解析:
- <?php echo $value['parse_content']?>
- </div>
- </div>
- <?php
- }
- ?>
- </div>
- </div>
- <?php } ?>
- <!--试题内容结束-->
- </div>
- <?php } ?>
- <!--循环大题列表end-->
- </div>
- <?php } ?>
- <?php include_once '_popup.php'?>
- </body>
- </html>
|