Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
a99b891d
Commit
a99b891d
authored
Jun 24, 2020
by
刘海龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
1957c6a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
397 additions
and
362 deletions
+397
-362
apps/classroom/Tpl/default/Index/find_w3g.html
+1
-1
apps/exams/Tpl/default/Index/examsresult_w3g.html
+396
-361
No files found.
apps/classroom/Tpl/default/Index/find_w3g.html
View file @
a99b891d
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
},
},
methods
:
{
methods
:
{
onChange
:
function
(
tab
)
{
onChange
:
function
(
tab
)
{
console
.
log
(
tab
)
//
console.log(tab)
switch
(
tab
){
switch
(
tab
){
case
0
:
case
0
:
window
.
location
.
href
=
"{:U('classroom/Index/index')}"
window
.
location
.
href
=
"{:U('classroom/Index/index')}"
...
...
apps/exams/Tpl/default/Index/examsresult_w3g.html
View file @
a99b891d
<!DOCTYPE html>
<!DOCTYPE html>
<include
file=
"__THEME__/public_header_w3g"
/>
<include
file=
"__THEME__/public_header_w3g"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{$Think.APPS_URL}/exams/_static/css/public.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{$Think.APPS_URL}/exams/_static/css/public.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{$Think.APPS_URL}/exams/_static/icon/iconfont.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{$Think.APPS_URL}/exams/_static/icon/iconfont.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{$Think.APPS_URL}/exams/_static/css/public_header_footer_media.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{$Think.APPS_URL}/exams/_static/css/public_header_footer_media.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{$Think.APPS_URL}/exams/_static/css/exam_2.0.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{$Think.APPS_URL}/exams/_static/css/exam_2.0.css"
>
<style
type=
"text/css"
>
<style
type=
"text/css"
>
.static-exam
dl
.operation
.analysis
{
display
:
block
;}
.static-exam
dl
.operation
.analysis
{
display
:
block
;
}
</style>
</style>
<div
class=
"min-height-wrap"
>
<div
class=
"min-height-wrap"
>
<div
class=
"cstlayer exams_top"
>
<div
class=
"cstlayer exams_top"
>
<div
class=
"cstlayer-header"
>
<div
class=
"cstlayer-header"
>
<a
href=
"{:U('home/Home/exams')}"
><i
class=
"icon icon-zuojiantou"
></i></a>
<a
href=
"{:U('home/Home/exams')}"
><i
class=
"icon icon-zuojiantou"
></i></a>
<h3>
{$paper.exams_paper_title}
</h3>
<h3>
{$paper.exams_paper_title}
</h3>
</div>
</div>
<div
class=
"cstlayer-content"
>
{$answerData.score|default='0'}
</div>
<div
class=
"cstlayer-content"
>
{$answerData.score|default='0'}
</div>
<p
class=
"cstlayer-txt"
></p>
<!--本卷平均分{$avg.avg|default='0'}分,超过{$avg.transcend_rate}的人-->
<p
class=
"cstlayer-txt"
></p>
<php>
if($answerData['exams_mode'] != 3
&&
$answerData['exams_mode'] != 4){
</php>
<!--本卷平均分{$avg.avg|default='0'}分,超过{$avg.transcend_rate}的人-->
<a
href=
"{:U('exams/index/examsroom',['paper_id'=>$paper['exams_paper_id'],'joinType'=>$answerData['exams_mode']])}"
class=
"add-eaxm"
>
再次挑战
</a>
<php>
if($answerData['exams_mode'] != 3
&&
$answerData['exams_mode'] != 4){
</php>
<php>
}else if($answerData['exams_mode'] == 4){
</php>
<a
href=
"{:U('exams/index/examsroom',['paper_id'=>$paper['exams_paper_id'],'joinType'=>$answerData['exams_mode']])}"
<a
href=
"{:U('exams/Index/wrongExamsroom',['joinType'=>1,'paper_id'=>$paper['exams_paper_id'],'temp'=>$answerData['exams_users_id'],'is_highwrong'=>1])}"
class=
"add-eaxm"
>
再次挑战
</a>
class=
"add-eaxm"
>
再次挑战
</a>
<php>
}else{
</php>
<php>
}else if($answerData['exams_mode'] == 4){
</php>
<a
href=
"{:U('exams/Index/wrongExamsroom',['joinType'=>1,'paper_id'=>$paper['exams_paper_id'],'temp'=>$answerData['pid']])}"
class=
"add-eaxm"
>
再次挑战
</a>
<a
href=
"{:U('exams/Index/wrongExamsroom',['joinType'=>1,'paper_id'=>$paper['exams_paper_id'],'temp'=>$answerData['exams_users_id'],'is_highwrong'=>1])}"
<php>
}
</php>
class=
"add-eaxm"
>
再次挑战
</a>
<dl
class=
"business-card"
>
<php>
}else{
</php>
<dt>
排名
<h1>
{$rank.now.rank|default='1'}
</h1></dt>
<a
href=
"{:U('exams/Index/wrongExamsroom',['joinType'=>1,'paper_id'=>$paper['exams_paper_id'],'temp'=>$answerData['pid']])}"
<dd>
class=
"add-eaxm"
>
再次挑战
</a>
<a
href=
"javascript:void(0);"
><img
src=
"{:getUserFace($mid)}"
/></a>
<php>
}
</php>
<span>
<dl
class=
"business-card"
>
<h4>
{:getUsername($mid)}
</h4>
<dt>
排名
<h1>
{$rank.now.rank|default='1'}
</h1></dt>
<b>
用时
<em>
{:floor($answerData['anser_time']/60)}'{:$answerData['anser_time'] % 60}
</em></b><b>
得分
<em>
{$answerData.score|default='0'}
</em></b>
<dd>
</span>
<a
href=
"javascript:void(0);"
><img
src=
"{:getUserFace($mid)}"
/></a>
</dd>
<span>
</dl>
<h4>
{:getUsername($mid)}
</h4>
</div>
<b>
用时
<em>
{:floor($answerData['anser_time']/60)}'{:$answerData['anser_time'] % 60}
</em></b><b>
得分
<em>
{$answerData.score|default='0'}
</em></b>
</span>
</dd>
</dl>
</div>
<!--排名表-->
<!--排名表-->
<table
class=
"ranking-all exams_top"
>
<table
class=
"ranking-all exams_top"
>
<tr>
<tr>
<th>
排名
</th>
<th>
排名
</th>
<th></th>
<th></th>
<th>
用时
</th>
<th>
用时
</th>
<th>
得分
</th>
<th>
得分
</th>
</tr>
</tr>
<volist
name=
"rank.list"
id=
"item"
>
<volist
name=
"rank.list"
id=
"item"
>
<tr>
<tr>
<td><h6>
{$i}
</h6></td>
<td>
<td><a
href=
"{:U('home/UserShow/index',['uid'=>$item['uid']])}"
><img
src=
"{:getUserFace($item['uid'])}"
></a><small>
{:getUsername($item['uid'])}
</small></td>
<h6>
{$i}
</h6>
<td><em>
{:floor($item['anser_time']/60)}'{:$item['anser_time'] % 60}
</em></td>
</td>
<td><h6>
{$item.score|default="0"}
</h6></td>
<td><a
href=
"{:U('home/UserShow/index',['uid'=>$item['uid']])}"
><img
src=
"{:getUserFace($item['uid'])}"
></a><small>
{:getUsername($item['uid'])}
</small></td>
</tr>
<td><em>
{:floor($item['anser_time']/60)}'{:$item['anser_time'] % 60}
</em></td>
</volist>
<td>
</table>
<h6>
{$item.score|default="0"}
</h6>
</td>
</tr>
</volist>
</table>
<!--footer解析-->
<!--footer解析-->
<div
class=
"error-box-go exams_top"
>
<div
class=
"error-box-go exams_top"
>
<a
href=
"javascript:;"
data-type=
"all"
class=
"show_analysis"
>
全部解析
</a>
<a
href=
"javascript:;"
data-type=
"all"
class=
"show_analysis"
>
全部解析
</a>
<a
href=
"javascript:;"
data-type=
"wrong"
class=
"show_analysis"
>
错题解析
</a>
<a
href=
"javascript:;"
data-type=
"wrong"
class=
"show_analysis"
>
错题解析
</a>
</div>
</div>
<div
class=
"exam-header exams_questions clearfix"
>
<div
class=
"exam-header exams_questions clearfix"
>
<div
class=
"back-date"
>
<div
class=
"back-date"
>
<i
class=
"icon icon-fanhui1"
style=
"display: none;"
></i>
<i
class=
"icon icon-fanhui1"
style=
"display: none;"
></i>
</div>
</div>
<div
class=
"view-stop"
>
<div
class=
"view-stop"
>
<a
href=
"javascript:;"
id=
"show-answer-card"
><i
class=
"icon icon-datiqia"
></i></a>
<a
href=
"javascript:;"
id=
"show-answer-card"
><i
class=
"icon icon-datiqia"
></i></a>
</div>
</div>
</div>
</div>
<!--解析题卡分为全部解析 or 错题解析-->
<!--解析题卡分为全部解析 or 错题解析-->
<div
class=
"answer-card"
style=
"display: none;"
>
<div
class=
"answer-card"
style=
"display: none;"
>
<php>
$question_num = 1;
</php>
<php>
$question_num = 1;
</php>
<volist
name=
"paper_options.options_type"
id=
"options_type"
>
<volist
name=
"paper_options.options_type"
id=
"options_type"
>
<php>
<php>
if(!$paper_options['options_questions_data'][$options_type['question_type']]){
if(!$paper_options['options_questions_data'][$options_type['question_type']]){
break;
break;
}
}
</php>
</php>
<dl>
<dl>
<dt><h6>
{$options_type.type_info.question_type_title}
</h6></dt>
<dt>
<dd>
<h6>
{$options_type.type_info.question_type_title}
</h6>
<volist
name=
"paper_options['options_questions_data'][$options_type['question_type']]"
id=
"question"
>
</dt>
<php>
if($_GET['joinType'] == 3
&&
!in_array($question['exams_question_id'],$inQuestions)) continue;
</php>
<dd>
<a
id=
"card{$question_num}"
href=
"javascript:;"
data-question_num=
"{$question_num}"
class=
"go_question <php>if(in_array($question['exams_question_id'],$wrongList)){</php>err<php>}</php>"
>
{$question_num}
</a>
<volist
name=
"paper_options['options_questions_data'][$options_type['question_type']]"
id=
"question"
>
<php>
$question_num++;
</php>
<php>
if($_GET['joinType'] == 3
&&
!in_array($question['exams_question_id'],$inQuestions)) continue;
</php>
</volist>
<a
id=
"card{$question_num}"
href=
"javascript:;"
data-question_num=
"{$question_num}"
class=
"go_question <php>if(in_array($question['exams_question_id'],$wrongList)){</php>err<php>}</php>"
>
{$question_num}
</a>
</dd>
<php>
$question_num++;
</php>
</dl>
</volist>
</volist>
</dd>
</div>
</dl>
</volist>
</div>
<div
class=
"static-exam exams_questions"
>
<div
class=
"static-exam exams_questions"
>
<php>
$question_num = 1;
</php>
<php>
$question_num = 1;
</php>
<volist
name=
"paper_options.options_type"
id=
"options_type"
>
<volist
name=
"paper_options.options_type"
id=
"options_type"
>
<switch
name=
"options_type.question_type_key"
>
<switch
name=
"options_type.question_type_key"
>
<case
value=
"radio|judge|multiselect"
>
<case
value=
"radio|judge|multiselect"
>
<!-- 单选题 -->
<!-- 单选题 -->
<volist
name=
"paper_options['options_questions_data'][$options_type['question_type']]"
id=
"question"
>
<volist
name=
"paper_options['options_questions_data'][$options_type['question_type']]"
id=
"question"
>
<php>
if($_GET['joinType'] == 3
&&
!in_array($question['exams_question_id'],$inQuestions)) continue;
</php>
<php>
if($_GET['joinType'] == 3
&&
!in_array($question['exams_question_id'],$inQuestions)) continue;
</php>
<dl
<
php
>
if(in_array($question['exams_question_id'],$wrongList)){
</php>
class="wrong"
<php>
}
</php>
id="ex{$question_num}" data-type="{$options_type.question_type_key}" data-question_num="{$question_num}">
<dl
<
php
>
if(in_array($question['exams_question_id'],$wrongList)){
</php>
class="wrong"
<php>
}
</php>
<dt>
id="ex{$question_num}" data-type="{$options_type.question_type_key}" data-question_num="{$question_num}">
<h5><small>
{$question_num}
</small>
/{$answerData['right_count']+$answerData['wrong_count']}
<!-- {$paper_options.questions_count} -->
<strong>
{$options_type.type_info.question_type_title}
</strong></h5>
<dt>
<h3>
{$question.content}
</h3>
<h5><small>
{$question_num}
</small>
/{$answerData['right_count']+$answerData['wrong_count']}
</dt>
<!-- {$paper_options.questions_count} -->
<strong>
{$options_type.type_info.question_type_title}
</strong></h5>
<dd>
<h3>
{$question.content}
</h3>
<volist
name=
"question.answer_options"
id=
"answer"
>
</dt>
<div
class=
"answer_box"
>
<dd>
<p
data-answer=
"{$key}"
><em>
{$key}
</em>
{$answer}
</p>
<volist
name=
"question.answer_options"
id=
"answer"
>
</div>
<div
class=
"answer_box"
>
</volist>
<p
data-answer=
"{$key}"
><em>
{$key}
</em>
{$answer}
</p>
</dd>
</div>
<a
href=
"javascript:;"
data-question_num=
"{$question_num}"
class=
"next next_question"
>
下一题
</a>
</volist>
<div
class=
"operation"
>
</dd>
<!--答案解析-->
<a
href=
"javascript:;"
data-question_num=
"{$question_num}"
class=
"next next_question"
>
下一题
</a>
<php>
<div
class=
"operation"
>
$content = isset($answerData['content'][$question['exams_question_id']]) ? $answerData['content'][$question['exams_question_id']] : [];
<!--答案解析-->
</php>
<php>
<div
class=
"analysis"
>
$content = isset($answerData['content'][$question['exams_question_id']]) ?
<table
class=
"analysis-pic"
>
$answerData['content'][$question['exams_question_id']] : [];
<td>
</php>
<h6>
正确答案
</h6>
<div
class=
"analysis"
>
<abbr><volist
name=
"question.answer_true_option"
id=
"answer_true"
>
{$answer_true}
</volist></abbr>
<table
class=
"analysis-pic"
>
</td>
<td>
<td>
<h6>
正确答案
</h6>
<h6>
我的答案
</h6>
<abbr>
<em><php>
if(!$content){
</php>
未作答
<php>
}
</php><volist
name=
"content"
id=
"ans"
>
{$ans|default='未作答'}
</volist></em>
<volist
name=
"question.answer_true_option"
id=
"answer_true"
>
{$answer_true}
</volist>
</td>
</abbr>
</table>
</td>
<div
class=
"analysis-txt"
>
<td>
<h6>
解析
</h6>
<h6>
我的答案
</h6>
<p>
{$question.analyze}
</p>
<em>
</div>
<php>
if(!$content){
</php>
未作答
<php>
}
</php>
</div>
<volist
name=
"content"
id=
"ans"
>
{$ans|default='未作答'}
</volist>
</div>
</em>
<div
class=
"collect_hidden"
>
</td>
<php>
if($question['is_collect'] == 1){
</php>
</table>
<i
data-question_num=
"{$question_num}"
data-question_id=
"{$question.exams_question_id}"
data-action=
"0"
class=
"icon icon-shoucang2"
style=
"color:#F7B659;"
></i>
<div
class=
"analysis-txt"
>
<php>
}else{
</php>
<h6>
解析
</h6>
<i
data-question_num=
"{$question_num}"
data-question_id=
"{$question.exams_question_id}"
data-action=
"1"
class=
"icon icon-shoucang2"
></i>
<p>
{$question.analyze}
</p>
<php>
}
</php>
</div>
</div>
</div>
</dl>
</div>
<php>
$question_num++;
</php>
<div
class=
"collect_hidden"
>
</volist>
<php>
if($question['is_collect'] == 1){
</php>
</case>
<i
data-question_num=
"{$question_num}"
data-question_id=
"{$question.exams_question_id}"
data-action=
"0"
<case
value=
"completion"
>
class=
"icon icon-shoucang2"
style=
"color:#F7B659;"
></i>
<!-- 填空题 -->
<php>
}else{
</php>
<volist
name=
"paper_options['options_questions_data'][$options_type['question_type']]"
id=
"question"
>
<i
data-question_num=
"{$question_num}"
data-question_id=
"{$question.exams_question_id}"
data-action=
"1"
<php>
if($_GET['joinType'] == 3
&&
!in_array($question['exams_question_id'],$inQuestions)) continue;
</php>
class=
"icon icon-shoucang2"
></i>
<dl
<
php
>
if(in_array($question['exams_question_id'],$wrongList)){
</php>
class="wrong"
<php>
}
</php>
id="ex{$question_num}" data-type="{$options_type.question_type_key}" data-question_num="{$question_num}">
<php>
}
</php>
<dt>
</div>
<h5><small>
{$question_num}
</small>
/{$answerData['right_count']+$answerData['wrong_count']}
<!-- {$paper_options.questions_count} -->
<strong>
{$options_type.type_info.question_type_title}
</strong></h5>
</dl>
<h3>
{$question.content}
</h3>
<php>
$question_num++;
</php>
</dt>
</volist>
<dd>
</case>
<php>
<case
value=
"completion"
>
$content = isset($answerData['content'][$question['exams_question_id']]) ? $answerData['content'][$question['exams_question_id']] : [];
<!-- 填空题 -->
</php>
<volist
name=
"paper_options['options_questions_data'][$options_type['question_type']]"
id=
"question"
>
<volist
name=
"question.answer_true_option"
id=
"answer"
>
<php>
if($_GET['joinType'] == 3
&&
!in_array($question['exams_question_id'],$inQuestions)) continue;
</php>
<label>
{$i}、
<input
type=
"text"
class=
"anserItem"
<
php
>
if($content){
</php>
value="{$content[$i-1]}"
<php>
}
</php>
>
</label>
<dl
<
php
>
if(in_array($question['exams_question_id'],$wrongList)){
</php>
class="wrong"
<php>
}
</php>
</volist>
id="ex{$question_num}" data-type="{$options_type.question_type_key}" data-question_num="{$question_num}">
</dd>
<dt>
<a
href=
"javascript:;"
data-question_num=
"{$question_num}"
class=
"next next_question"
>
下一题
</a>
<h5><small>
{$question_num}
</small>
/{$answerData['right_count']+$answerData['wrong_count']}
<div
class=
"operation"
>
<!-- {$paper_options.questions_count} -->
<strong>
{$options_type.type_info.question_type_title}
</strong></h5>
<!--答案解析-->
<h3>
{$question.content}
</h3>
<div
class=
"analysis"
>
</dt>
<div
class=
"analysis-pic"
>
<dd>
<h5>
正确答案
</h5>
<php>
<ul>
$content = isset($answerData['content'][$question['exams_question_id']]) ?
<volist
name=
"question.answer_true_option"
id=
"answer_true"
>
$answerData['content'][$question['exams_question_id']] : [];
<li>
{$i}、{$answer_true}
</li>
</php>
</volist>
<volist
name=
"question.answer_true_option"
id=
"answer"
>
</ul>
<label>
{$i}、
<input
type=
"text"
class=
"anserItem"
<
php
>
if($content){
</php>
value="{$content[$i-1]}"
<php>
}
</php>
>
</label>
</volist>
</dd>
<a
href=
"javascript:;"
data-question_num=
"{$question_num}"
class=
"next next_question"
>
下一题
</a>
<div
class=
"operation"
>
<!--答案解析-->
<div
class=
"analysis"
>
<div
class=
"analysis-pic"
>
<h5>
正确答案
</h5>
<ul>
<volist
name=
"question.answer_true_option"
id=
"answer_true"
>
<li>
{$i}、{$answer_true}
</li>
</volist>
</ul>
</div>
</div>
<div
class=
"analysis-txt"
>
<div
class=
"analysis-txt"
>
<h6>
解析
</h6>
<h6>
解析
</h6>
<p>
{$question.analyze}
</p>
<p>
{$question.analyze}
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"collect_hidden"
>
<div
class=
"collect_hidden"
>
<php>
if($question['is_collect'] == 1){
</php>
<php>
if($question['is_collect'] == 1){
</php>
<i
data-question_num=
"{$question_num}"
data-question_id=
"{$question.exams_question_id}"
data-action=
"0"
class=
"icon icon-shoucang2"
style=
"color:#F7B659;"
></i>
<i
data-question_num=
"{$question_num}"
data-question_id=
"{$question.exams_question_id}"
data-action=
"0"
<php>
}else{
</php>
class=
"icon icon-shoucang2"
style=
"color:#F7B659;"
></i>
<i
data-question_num=
"{$question_num}"
data-question_id=
"{$question.exams_question_id}"
data-action=
"1"
class=
"icon icon-shoucang2"
></i>
<php>
}else{
</php>
<php>
}
</php>
<i
data-question_num=
"{$question_num}"
data-question_id=
"{$question.exams_question_id}"
data-action=
"1"
</div>
class=
"icon icon-shoucang2"
></i>
</dl>
<php>
}
</php>
<php>
$question_num++;
</php>
</div>
</volist>
</dl>
</case>
<php>
$question_num++;
</php>
<case
value=
"essays"
>
</volist>
<!-- 简述题-->
</case>
<volist
name=
"paper_options['options_questions_data'][$options_type['question_type']]"
id=
"question"
>
<case
value=
"essays"
>
<php>
if($_GET['joinType'] == 3
&&
!in_array($question['exams_question_id'],$inQuestions)) continue;
</php>
<!-- 简述题-->
<dl
<
php
>
if(in_array($question['exams_question_id'],$wrongList)){
</php>
class="wrong"
<php>
}
</php>
id="ex{$question_num}" data-type="{$options_type.question_type_key}" data-question_num="{$question_num}">
<volist
name=
"paper_options['options_questions_data'][$options_type['question_type']]"
id=
"question"
>
<dt>
<php>
if($_GET['joinType'] == 3
&&
!in_array($question['exams_question_id'],$inQuestions)) continue;
</php>
<h5><small>
{$question_num}
</small>
/{$answerData['right_count']+$answerData['wrong_count']}
<!-- {$paper_options.questions_count} -->
<strong>
{$options_type.type_info.question_type_title}
</strong></h5>
<dl
<
php
>
if(in_array($question['exams_question_id'],$wrongList)){
</php>
class="wrong"
<php>
}
</php>
<h3>
{$question.content}
</h3>
id="ex{$question_num}" data-type="{$options_type.question_type_key}" data-question_num="{$question_num}">
</dt>
<dt>
<dd>
<h5><small>
{$question_num}
</small>
/{$answerData['right_count']+$answerData['wrong_count']}
<php>
<!-- {$paper_options.questions_count} -->
<strong>
{$options_type.type_info.question_type_title}
</strong></h5>
$content = isset($answerData['content'][$question['exams_question_id']]) ? $answerData['content'][$question['exams_question_id']] : [];
<h3>
{$question.content}
</h3>
</php>
</dt>
<textarea
class=
"anserItem"
>
{$content[0]|default=''}
</textarea>
<dd>
</dd>
<php>
<a
href=
"javascript:;"
data-question_num=
"{$question_num}"
class=
"next next_question"
>
下一题
</a>
$content = isset($answerData['content'][$question['exams_question_id']]) ?
<div
class=
"operation"
>
$answerData['content'][$question['exams_question_id']] : [];
<!--答案解析-->
</php>
<div
class=
"analysis"
>
<textarea
class=
"anserItem"
>
{$content[0]|default=''}
</textarea>
<div
class=
"analysis-txt"
>
</dd>
<h6>
解析
</h6>
<a
href=
"javascript:;"
data-question_num=
"{$question_num}"
class=
"next next_question"
>
下一题
</a>
<p>
{$question.analyze}
</p>
<div
class=
"operation"
>
</div>
<!--答案解析-->
</div>
<div
class=
"analysis"
>
</div>
<div
class=
"analysis-txt"
>
<div
class=
"collect_hidden"
>
<h6>
解析
</h6>
<php>
if($question['is_collect'] == 1){
</php>
<p>
{$question.analyze}
</p>
<i
data-question_num=
"{$question_num}"
data-question_id=
"{$question.exams_question_id}"
data-action=
"0"
class=
"icon icon-shoucang2"
style=
"color:#F7B659;"
></i>
</div>
<php>
}else{
</php>
</div>
<i
data-question_num=
"{$question_num}"
data-question_id=
"{$question.exams_question_id}"
data-action=
"1"
class=
"icon icon-shoucang2"
></i>
</div>
<php>
}
</php>
<div
class=
"collect_hidden"
>
</div>
<php>
if($question['is_collect'] == 1){
</php>
</dl>
<i
data-question_num=
"{$question_num}"
data-question_id=
"{$question.exams_question_id}"
data-action=
"0"
<php>
$question_num++;
</php>
class=
"icon icon-shoucang2"
style=
"color:#F7B659;"
></i>
</volist>
<php>
}else{
</php>
</case>
<i
data-question_num=
"{$question_num}"
data-question_id=
"{$question.exams_question_id}"
data-action=
"1"
</switch>
class=
"icon icon-shoucang2"
></i>
</dl>
<php>
}
</php>
</volist>
</div>
</div>
</dl>
<php>
$question_num++;
</php>
</volist>
</case>
</switch>
</dl>
</volist>
</div>
</div>
</div>
<!--<!– 统计代码–>-->
<!--<!– 统计代码–>-->
<div
id=
"site_analytics_code"
style=
"display:none;"
>
<div
id=
"site_analytics_code"
style=
"display:none;"
>
{$site.site_analytics_code|base64_decode}
{$site.site_analytics_code|base64_decode}
</div>
</div>
<eq
name=
'site.site_online_count'
value=
'1'
>
<eq
name=
'site.site_online_count'
value=
'1'
>
<script
src=
"{:SITE_URL}/online_check.php?uid={$mid}&uname={$user.uname}&mod={:MODULE_NAME}&app={:APP_NAME}&act={:ACTION_NAME}&action=trace"
></script>
<script
src=
"{:SITE_URL}/online_check.php?uid={$mid}&uname={$user.uname}&mod={:MODULE_NAME}&app={:APP_NAME}&act={:ACTION_NAME}&action=trace"
></script>
</eq>
</eq>
<script
src=
"__THEMEW3G__/js/script.js"
></script>
<script
src=
"__THEMEW3G__/js/script.js"
></script>
...
@@ -247,154 +279,157 @@
...
@@ -247,154 +279,157 @@
</html>
</html>
<script
src=
"{$Think.APPS_URL}/exams/_static/js/public_header_footer_media.js"
></script>
<script
src=
"{$Think.APPS_URL}/exams/_static/js/public_header_footer_media.js"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
$
(
function
()
{
$
(
function
()
{
// 显示的解析类型
// 显示的解析类型
window
.
type
=
1
;
window
.
type
=
1
;
// 下一题
// 下一题
$
(
".next_question,.go_question"
).
click
(
function
()
{
$
(
".next_question,.go_question"
).
click
(
function
()
{
if
(
$
(
this
).
hasClass
(
"go_question"
))
{
if
(
$
(
this
).
hasClass
(
"go_question"
))
{
var
question_num
=
parseInt
(
$
(
this
).
data
(
"question_num"
));
var
question_num
=
parseInt
(
$
(
this
).
data
(
"question_num"
));
}
else
if
(
window
.
type
==
2
)
{
}
else
if
(
window
.
type
==
2
)
{
// 获取下一个错题
// 获取下一个错题
var
next_obj
=
$
(
this
).
parents
(
"dl"
).
nextAll
(
".wrong"
).
first
();
var
next_obj
=
$
(
this
).
parents
(
"dl"
).
nextAll
(
".wrong"
).
first
();
var
question_num
=
next_obj
.
length
>
0
?
next_obj
.
data
(
"question_num"
)
:
0
;
var
question_num
=
next_obj
.
length
>
0
?
next_obj
.
data
(
"question_num"
)
:
0
;
}
else
{
}
else
{
var
question_num
=
parseInt
(
$
(
this
).
data
(
"question_num"
))
+
1
;
var
question_num
=
parseInt
(
$
(
this
).
data
(
"question_num"
))
+
1
;
}
}
$
(
".answer-card"
).
hide
();
$
(
".answer-card"
).
hide
();
if
(
$
(
"#ex"
+
question_num
).
length
>
0
)
{
if
(
$
(
"#ex"
+
question_num
).
length
>
0
)
{
$
(
"#ex"
+
question_num
).
show
().
siblings
().
hide
();
$
(
"#ex"
+
question_num
).
show
().
siblings
().
hide
();
}
else
{
}
else
{
ui
.
confirm
(
'已经是最后一题了,是否返回第一题?'
,
{
ui
.
confirm
(
'已经是最后一题了,是否返回第一题?'
,
{
yes
:
function
()
{
yes
:
function
()
{
if
(
window
.
type
==
2
)
{
if
(
window
.
type
==
2
)
{
$
(
".static-exam .wrong"
).
first
().
show
().
siblings
().
hide
();
$
(
".static-exam .wrong"
).
first
().
show
().
siblings
().
hide
();
}
else
{
}
else
{
$
(
"#ex1"
).
show
().
siblings
().
hide
();
$
(
"#ex1"
).
show
().
siblings
().
hide
();
}
}
question_num
=
1
;
question_num
=
1
;
}
}
});
});
}
}
// 添加搜藏标识
// 添加搜藏标识
var
html
=
$
(
"#ex"
+
question_num
).
find
(
".collect_hidden"
).
html
();
var
html
=
$
(
"#ex"
+
question_num
).
find
(
".collect_hidden"
).
html
();
$
(
".exam-header .view-stop>i"
).
remove
();
$
(
".exam-header .view-stop>i"
).
remove
();
$
(
".exam-header .view-stop a"
).
before
(
html
);
$
(
".exam-header .view-stop a"
).
before
(
html
);
if
(
question_num
<=
1
)
{
if
(
question_num
<=
1
)
{
$
(
".back-date i"
).
hide
();
$
(
".back-date i"
).
hide
();
}
else
{
}
else
{
$
(
".back-date i"
).
show
();
$
(
".back-date i"
).
show
();
}
}
$
(
".static-exam,.footer"
).
show
();
$
(
".static-exam,.footer"
).
show
();
});
});
/** 查看解析 **/
/** 查看解析 **/
$
(
".show_analysis"
).
click
(
function
()
{
$
(
".show_analysis"
).
click
(
function
()
{
var
type
=
$
(
this
).
data
(
"type"
);
var
type
=
$
(
this
).
data
(
"type"
);
$
(
".static-exam dl"
).
hide
();
$
(
".static-exam dl"
).
hide
();
if
(
type
==
'wrong'
)
{
if
(
type
==
'wrong'
)
{
$
(
".static-exam .wrong"
).
first
().
show
();
$
(
".static-exam .wrong"
).
first
().
show
();
window
.
type
=
2
;
window
.
type
=
2
;
// 添加搜藏标识
// 添加搜藏标识
var
html
=
$
(
".static-exam .wrong"
).
first
().
find
(
".collect_hidden"
).
html
();
var
html
=
$
(
".static-exam .wrong"
).
first
().
find
(
".collect_hidden"
).
html
();
}
else
{
}
else
{
$
(
".static-exam dl"
).
first
().
show
();
$
(
".static-exam dl"
).
first
().
show
();
window
.
type
=
1
;
window
.
type
=
1
;
// 添加搜藏标识
// 添加搜藏标识
var
html
=
$
(
".static-exam dl"
).
first
().
find
(
".collect_hidden"
).
html
();
var
html
=
$
(
".static-exam dl"
).
first
().
find
(
".collect_hidden"
).
html
();
}
}
$
(
".exam-header .view-stop>i"
).
remove
();
$
(
".exam-header .view-stop>i"
).
remove
();
$
(
".exam-header .view-stop a"
).
before
(
html
);
$
(
".exam-header .view-stop a"
).
before
(
html
);
$
(
".exams_questions"
).
show
();
$
(
".exams_questions"
).
show
();
$
(
".exams_top"
).
hide
();
$
(
".exams_top"
).
hide
();
});
});
// 显示答题面板
// 显示答题面板
$
(
"#show-answer-card"
).
click
(
function
()
{
$
(
"#show-answer-card"
).
click
(
function
()
{
if
(
$
(
".answer-card"
).
is
(
":hidden"
))
{
if
(
$
(
".answer-card"
).
is
(
":hidden"
))
{
$
(
".static-exam,.footer"
).
hide
();
$
(
".static-exam,.footer"
).
hide
();
$
(
".answer-card"
).
show
();
$
(
".answer-card"
).
show
();
}
else
{
}
else
{
$
(
".static-exam,.footer"
).
show
();
$
(
".static-exam,.footer"
).
show
();
$
(
".answer-card"
).
hide
();
$
(
".answer-card"
).
hide
();
}
}
});
});
/** 返回前一题 **/
/** 返回前一题 **/
$
(
".back-date i"
).
click
(
function
()
{
$
(
".back-date i"
).
click
(
function
()
{
if
(
window
.
type
==
2
)
{
if
(
window
.
type
==
2
)
{
// 获取下一个错题
// 获取下一个错题
var
prev_obj
=
$
(
".static-exam dl:visible"
).
prev
(
".wrong"
);
var
prev_obj
=
$
(
".static-exam dl:visible"
).
prev
(
".wrong"
);
var
question_num
=
prev_obj
.
length
>
0
?
prev_obj
.
data
(
"question_num"
)
:
0
;
var
question_num
=
prev_obj
.
length
>
0
?
prev_obj
.
data
(
"question_num"
)
:
0
;
}
else
{
}
else
{
var
question_num
=
$
(
".static-exam dl:visible"
).
data
(
"question_num"
)
-
1
;
var
question_num
=
$
(
".static-exam dl:visible"
).
data
(
"question_num"
)
-
1
;
}
}
if
(
question_num
<=
1
)
{
if
(
question_num
<=
1
)
{
if
(
window
.
type
==
2
)
{
if
(
window
.
type
==
2
)
{
$
(
".static-exam .wrong"
).
first
().
show
().
siblings
().
hide
();
$
(
".static-exam .wrong"
).
first
().
show
().
siblings
().
hide
();
}
else
{
}
else
{
$
(
"#ex1"
).
show
().
siblings
().
hide
();
$
(
"#ex1"
).
show
().
siblings
().
hide
();
}
}
$
(
".back-date i"
).
hide
();
$
(
".back-date i"
).
hide
();
// 添加搜藏标识
// 添加搜藏标识
var
html
=
$
(
".static-exam dl"
).
first
().
find
(
".collect_hidden"
).
html
();
var
html
=
$
(
".static-exam dl"
).
first
().
find
(
".collect_hidden"
).
html
();
$
(
".exam-header .view-stop>i"
).
remove
();
$
(
".exam-header .view-stop>i"
).
remove
();
$
(
".exam-header .view-stop a"
).
before
(
html
);
$
(
".exam-header .view-stop a"
).
before
(
html
);
}
else
{
}
else
{
if
(
$
(
"#ex"
+
question_num
).
length
>
0
)
{
if
(
$
(
"#ex"
+
question_num
).
length
>
0
)
{
$
(
"#ex"
+
question_num
).
show
().
siblings
().
hide
();
$
(
"#ex"
+
question_num
).
show
().
siblings
().
hide
();
$
(
".back-date i"
).
show
();
$
(
".back-date i"
).
show
();
// 添加搜藏标识
// 添加搜藏标识
var
html
=
$
(
"#ex"
+
question_num
).
find
(
".collect_hidden"
).
html
();
var
html
=
$
(
"#ex"
+
question_num
).
find
(
".collect_hidden"
).
html
();
$
(
".exam-header .view-stop>i"
).
remove
();
$
(
".exam-header .view-stop>i"
).
remove
();
$
(
".exam-header .view-stop a"
).
before
(
html
);
$
(
".exam-header .view-stop a"
).
before
(
html
);
}
}
}
}
});
});
// 搜藏
// 搜藏
$
(
".exam-header .view-stop>i"
).
die
(
"click"
).
live
(
"click"
,
function
(){
$
(
".exam-header .view-stop>i"
).
die
(
"click"
).
live
(
"click"
,
function
()
{
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
var
action
=
_this
.
data
(
'action'
);
var
action
=
_this
.
data
(
'action'
);
var
question_id
=
_this
.
data
(
'question_id'
);
var
question_id
=
_this
.
data
(
'question_id'
);
// 后台
// 后台
$
.
post
(
U
(
'exams/Index/collect'
),{
action
:
action
,
source_id
:
question_id
},
function
(
res
){
$
.
post
(
U
(
'exams/Index/collect'
),
{
if
(
typeof
(
res
)
!=
'object'
){
action
:
action
,
try
{
source_id
:
question_id
var
res
=
JSON
.
parse
(
res
);
},
function
(
res
)
{
}
catch
(
e
){
if
(
typeof
(
res
)
!=
'object'
)
{
ui
.
error
(
"处理异常,请重新尝试"
);
try
{
return
false
;
var
res
=
JSON
.
parse
(
res
);
}
}
catch
(
e
)
{
}
ui
.
error
(
"处理异常,请重新尝试"
);
return
false
;
}
}
if
(
res
.
status
==
1
)
{
if
(
res
.
status
==
1
)
{
if
(
action
==
1
)
{
if
(
action
==
1
)
{
_this
.
css
(
"color"
,
"#F7B659"
);
_this
.
css
(
"color"
,
"#F7B659"
);
_this
.
data
(
'action'
,
0
);
_this
.
data
(
'action'
,
0
);
var
question_num
=
_this
.
data
(
"question_num"
);
var
question_num
=
_this
.
data
(
"question_num"
);
var
collect_hidden
=
$
(
"#ex"
+
question_num
).
find
(
".collect_hidden i"
);
var
collect_hidden
=
$
(
"#ex"
+
question_num
).
find
(
".collect_hidden i"
);
collect_hidden
.
css
(
"color"
,
"#F7B659"
);
collect_hidden
.
css
(
"color"
,
"#F7B659"
);
collect_hidden
.
attr
(
'data-action'
,
0
);
collect_hidden
.
attr
(
'data-action'
,
0
);
}
else
{
}
else
{
// 取消收藏
// 取消收藏
_this
.
css
(
"color"
,
"#888"
);
_this
.
css
(
"color"
,
"#888"
);
_this
.
data
(
'action'
,
1
);
_this
.
data
(
'action'
,
1
);
var
question_num
=
_this
.
data
(
"question_num"
);
var
question_num
=
_this
.
data
(
"question_num"
);
var
collect_hidden
=
$
(
"#ex"
+
question_num
).
find
(
".collect_hidden i"
);
var
collect_hidden
=
$
(
"#ex"
+
question_num
).
find
(
".collect_hidden i"
);
collect_hidden
.
css
(
"color"
,
"#888"
);
collect_hidden
.
css
(
"color"
,
"#888"
);
collect_hidden
.
attr
(
'data-action'
,
1
);
collect_hidden
.
attr
(
'data-action'
,
1
);
}
}
return
true
;
return
true
;
}
else
{
}
else
{
ui
.
error
(
res
.
message
);
ui
.
error
(
res
.
message
);
return
false
;
return
false
;
}
}
});
});
});
});
});
});
</script>
</script>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment