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
0efa0923
Commit
0efa0923
authored
Jun 15, 2020
by
刘海龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
222
parent
72a66404
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
316 additions
and
2 deletions
+316
-2
apps/exams/Tpl/default/Index/examsroom_w3g - 副本.html
+311
-0
apps/exams/Tpl/default/Index/examsroom_w3g.html
+5
-2
No files found.
apps/exams/Tpl/default/Index/examsroom_w3g - 副本.html
0 → 100644
View file @
0efa0923
<include
file=
"__THEME__/public_header_w3g"
/>
<include
file=
"__THEME__/public_header_w3g"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__APP__/css/public.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__APP__/icon/iconfont.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__APP__/css/public_header_footer_media.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__APP__/css/exam_2.0.css"
>
<style
type=
"text/css"
>
</style>
<div
class=
"cover"
></div>
<div
class=
"min-height-wrap"
>
<div
class=
"exam-header"
>
<div
class=
"back-date"
>
<i
class=
"icon icon-fanhui1"
style=
"display: none;"
></i>
<small>
<php>
if($paper['reply_time']){
</php>
<span
id=
"time_hh"
>
-
</span>
:
<span
id=
"time_mm"
>
-
</span>
:
<span
id=
"time_ss"
>
-
</span>
<php>
}else{
</php>
<span>
不限时
</span>
<php>
}
</php>
</small>
</div>
<div
class=
"view-stop"
>
<i
class=
"icon"
onclick=
"changeCollect()"
style=
"margin-top: 0.8rem;font-size: 16px;"
>
<img
id =
"collectImage"
src=
""
class=
"van-icon__image"
>
</i>
<neq
name=
"Think.get.joinType"
value=
"2"
><i
class=
"icon icon-zanting"
></i></neq>
<a
href=
"javascript:;"
id=
"show-answer-card"
><i
class=
"icon icon-datiqia"
></i></a>
</div>
<neq
name=
"Think.get.joinType"
value=
"2"
>
<ul
class=
"the-stop"
>
<li>
继续
</li>
<if
condition=
"$paper['assembly_type'] neq 1"
><li
id=
"progressExams"
>
下次再做
</li></if>
</ul>
</neq>
</div>
<div
class=
"answer-card"
>
<php>
$question_num = 1;
</php>
<volist
name=
"paper_options.options_type"
id=
"options_type"
>
<php>
if(!$paper_options['options_questions_data'][$options_type['question_type']]){
break;
}
</php>
<dl>
<dt><h6>
{$options_type.type_info.question_type_title}
</h6></dt>
<dd>
<volist
name=
"paper_options['options_questions_data'][$options_type['question_type']]"
id=
"question"
>
<a
id=
"card{$question_num}"
<
php
>
if(isset($tempData['content'][$question['exams_question_id']])){ echo "class='on go_question'";}
</php>
href="javascript:;" data-question_num="{$question_num}" class="go_question">{$question_num}
</a>
<php>
$question_num++;
</php>
</volist>
</dd>
</dl>
</volist>
<div
class=
"btns-complete"
>
<a
href=
"javascript:void(0)"
style=
"color:#fff;"
class=
"assignment"
>
交卷
</a>
</div>
</div>
<input
type=
"hidden"
name=
"reply_time"
value=
"{$paper.reply_time|default='0'}"
/>
<form
name=
"answers"
method=
"POST"
action=
"{:U('exams/Index/doHaddleExams')}"
>
<input
type=
"hidden"
name=
"anser_time"
id=
"anser_time"
value=
"{$tempData.anser_time|default='0'}"
>
<input
type=
"hidden"
name=
"exams_mode"
value=
"{$Think.get.joinType|default=1}"
>
<input
type=
"hidden"
name=
"paper_id"
value=
"{$paper.exams_paper_id}"
>
<input
type=
"hidden"
name=
"ch_id"
value=
"{$_GET['s_id']}"
>
<input
type=
"hidden"
name=
"view_url"
value=
"{$_GET['view']}"
>
<input
type=
"hidden"
name=
"is_timeout"
value=
"0"
>
<php>
if($tempData){
</php>
<input
type=
"hidden"
name=
"exams_users_id"
value=
"{$tempData.exams_users_id}"
>
<php>
}
</php>
<input
type=
"hidden"
name=
"paper_options_id"
value=
"{$paper_options.exams_paper_options_id}"
>
<div
class=
"static-exam"
>
<php>
$question_num = 1;
</php>
<volist
name=
"paper_options.options_type"
id=
"options_type"
>
<switch
name=
"options_type.question_type_key"
>
<case
value=
"radio|judge|multiselect"
>
<!-- 单选题 -->
<volist
name=
"paper_options['options_questions_data'][$options_type['question_type']]"
id=
"question"
>
<dl
id=
"ex{$question_num}"
data-type=
"{$options_type.question_type_key}"
data-question_num=
"{$question_num}"
>
<dt>
<h5><small>
{$question_num}
</small>
/{$paper_options.questions_count}
<strong>
{$options_type.type_info.question_type_title}
</strong></h5>
<h3>
{$question.content}
</h3>
</dt>
<dd>
<php>
if($tempData){
$content = isset($tempData['content'][$question['exams_question_id']]) ? $tempData['content'][$question['exams_question_id']] : [];
}else{
$content = [];
}
</php>
<volist
name=
"question.answer_options"
id=
"answer"
>
<div
class=
"answer_box"
>
<p
class=
"answer_p<php>if(in_array($key,$content)){</php> on<php>}</php>"
data-answer=
"{$key}"
><em>
{$key}
</em>
{$answer}
</p>
</div>
</volist>
<div
class=
"user_answer_hidden"
>
<input
type=
"hidden"
name=
"user_answer[{$question.exams_question_id}]"
value=
"{:implode(',',$content)}"
>
</div>
</dd>
<a
href=
"javascript:;"
data-question_num=
"{$question_num}"
class=
"next next_question"
>
下一题
</a>
<div
class=
"operation"
>
<div
class=
"operation-tit"
>
<eq
name=
"isPractice"
value=
"1"
><strong><small>
查看解析
</small><i
class=
"icon icon-arrowDown"
></i></strong></eq>
<php>
if($question['is_collect'] == 1){
</php>
<b
data-question_id=
"{$question.exams_question_id}"
data-action=
"0"
>
<i
class=
"icon icon-shoucang2"
style=
"color:#F7B659;"
></i><small>
已收藏
</small>
</b>
<php>
}else{
</php>
<b
data-question_id=
"{$question.exams_question_id}"
data-action=
"1"
>
<i
class=
"icon icon-area1"
></i><span>
考点:{$question.exams_point_title}
</span>
<i
class=
"icon icon-shoucang2"
></i><small>
收藏习题
</small>
</b>
<php>
}
</php>
</div>
<eq
name=
"isPractice"
value=
"1"
>
<!--答案解析-->
<div
class=
"analysis"
>
<div
class=
"analysis-pic"
>
<h6>
正确答案
</h6><abbr><volist
name=
"question.answer_true_option"
id=
"answer_true"
>
{$answer_true}
</volist></abbr>
</div>
<div
class=
"analysis-txt"
>
<h6>
解析
</h6>
<p>
{$question.analyze}
</p>
</div>
</div>
</eq>
</div>
</dl>
<php>
$question_num++;
</php>
</volist>
</case>
<case
value=
"completion"
>
<!-- 填空题 -->
<volist
name=
"paper_options['options_questions_data'][$options_type['question_type']]"
id=
"question"
>
<dl
id=
"ex{$question_num}"
data-type=
"{$options_type.question_type_key}"
data-question_num=
"{$question_num}"
>
<dt>
<h5><small>
{$question_num}
</small>
/{$paper_options.questions_count}
<strong>
{$options_type.type_info.question_type_title}
</strong></h5>
<h3>
{$question.content}
</h3>
</dt>
<dd>
<php>
if($tempData){
$content = isset($tempData['content'][$question['exams_question_id']]) ? $tempData['content'][$question['exams_question_id']] : [];
}else{
$content = [];
}
</php>
<volist
name=
"question.answer_true_option"
id=
"answer"
>
<label>
{$i}、
<input
type=
"text"
class=
"anserItem"
<
php
>
if($content){
</php>
value="{$content[$i-1]}"
<php>
}
</php>
name="user_answer[{$question.exams_question_id}][]">
</label>
</volist>
</dd>
<a
href=
"javascript:;"
data-question_num=
"{$question_num}"
class=
"next next_question"
>
下一题
</a>
<div
class=
"operation"
>
<div
class=
"operation-tit"
>
<eq
name=
"isPractice"
value=
"1"
><strong><small>
查看解析
</small><i
class=
"icon icon-arrowDown"
></i></strong></eq>
<php>
if($question['is_collect'] == 1){
</php>
<b
data-question_id=
"{$question.exams_question_id}"
data-action=
"0"
><i
class=
"icon icon-shoucang2"
style=
"color:#F7B659;"
></i><small>
已收藏
</small></b>
<php>
}else{
</php>
<b
data-question_id=
"{$question.exams_question_id}"
data-action=
"1"
>
<i
class=
"icon icon-area1"
></i><span>
考点:{$question.exams_point_title}
</span>
<i
class=
"icon icon-shoucang2"
></i><small>
收藏习题
</small>
</b>
<php>
}
</php>
</div>
<eq
name=
"isPractice"
value=
"1"
>
<!--答案解析-->
<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
class=
"analysis-txt"
>
<h6>
解析
</h6>
<p>
{$question.analyze}
</p>
</div>
</div>
</eq>
</div>
</dl>
<php>
$question_num++;
</php>
</volist>
</case>
<case
value=
"essays"
>
<!-- 简述题-->
<volist
name=
"paper_options['options_questions_data'][$options_type['question_type']]"
id=
"question"
>
<dl
id=
"ex{$question_num}"
data-type=
"{$options_type.question_type_key}"
data-question_num=
"{$question_num}"
>
<dt>
<h5><small>
{$question_num}
</small>
/{$paper_options.questions_count}
<strong>
{$options_type.type_info.question_type_title}
</strong></h5>
<h3>
{$question.content}
</h3>
</dt>
<dd>
<php>
if($tempData){
$content = isset($tempData['content'][$question['exams_question_id']]) ? $tempData['content'][$question['exams_question_id']] : [];
}else{
$content = [];
}
</php>
<textarea
class=
"anserItem"
name=
"user_answer[{$question.exams_question_id}]"
>
{$content[0]|default=''}
</textarea>
</dd>
<a
href=
"javascript:;"
data-question_num=
"{$question_num}"
class=
"next next_question"
>
下一题
</a>
<div
class=
"operation"
>
<div
class=
"operation-tit"
>
<eq
name=
"isPractice"
value=
"1"
><strong><small>
查看解析
</small><i
class=
"icon icon-arrowDown"
></i></strong></eq>
<php>
if($question['is_collect'] == 1){
</php>
<b
data-question_id=
"{$question.exams_question_id}"
data-action=
"0"
><i
class=
"icon icon-shoucang2"
style=
"color:#F7B659;"
></i><small>
已收藏
</small></b>
<php>
}else{
</php>
<b
data-question_id=
"{$question.exams_question_id}"
data-action=
"1"
>
<i
class=
"icon icon-area1"
></i><span>
考点:{$question.exams_point_title}
</span>
<i
class=
"icon icon-shoucang2"
></i><small>
收藏习题
</small>
</b>
<php>
}
</php>
</div>
<eq
name=
"isPractice"
value=
"1"
>
<!--答案解析-->
<div
class=
"analysis"
>
<div
class=
"analysis-txt"
>
<h6>
解析
</h6>
<p>
{$question.analyze}
</p>
</div>
</div>
</eq>
</div>
</dl>
<php>
$question_num++;
</php>
</volist>
</case>
</switch>
</volist>
</div>
</form>
</div>
<include
file=
"__THEME__/public_footer_w3g"
/>
<script
src=
"__APP__/js/public_header_footer_media.js"
></script>
<script
src=
"__APP__/js/public_exam_3g.js"
></script>
<script
type=
"text/javascript"
>
if
(
"{$_GET['examsresult']}"
){
var
re
=
"{:jiemi($_GET['examsresult'])}"
,
ve
=
"{:jiemi($_GET['view'])}"
;
layer
.
open
({
content
:
'课时考试'
,
btn
:
[
'查看结果'
,
'返回课程'
],
yes
:
function
(){
window
.
location
.
href
=
re
;
},
no
:
function
(){
window
.
location
.
href
=
ve
;
}
});
}
var
isCollect
=
"{$paper['iscollect']}"
>
0
?
1
:
0
;
function
changeCollect
()
{
if
(
isCollect
)
{
isCollect
=
0
;
}
else
{
isCollect
=
1
;
}
if
(
MID
<=
0
)
{
ui
.
confirm
(
'请先登录'
,
{
yes
:
function
()
{
window
.
location
.
href
=
"{:U('basic/Passport/login')}"
;
}
});
return
false
;
}
$
.
ajax
({
type
:
'POST'
,
url
:
"{:U('exams/Index/collect2')}"
,
data
:
{
action
:
isCollect
,
source_id
:
"{$paper.exams_paper_id}"
,
},
dataType
:
"json"
,
cache
:
false
,
success
:
function
(
data
)
{
if
(
data
.
status
==
'0'
)
{
ui
.
error
(
data
.
message
);
}
else
{
ui
.
success
(
data
.
data
.
info
);
iscollect
(
isCollect
);
}
},
});
}
function
iscollect
(
type
)
{
var
image
=
''
;
if
(
type
)
{
image
=
"__THEME__/img/share_star.png"
;
}
else
{
image
=
"__THEME__/img/share_unstar.png"
;
}
$
(
'#collectImage'
).
attr
(
'src'
,
image
);
}
$
(
function
()
{
iscollect
(
isCollect
);
});
</script>
apps/exams/Tpl/default/Index/examsroom_w3g.html
View file @
0efa0923
...
@@ -3,6 +3,9 @@
...
@@ -3,6 +3,9 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__APP__/icon/iconfont.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__APP__/icon/iconfont.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__APP__/css/public_header_footer_media.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__APP__/css/public_header_footer_media.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__APP__/css/exam_2.0.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"__APP__/css/exam_2.0.css"
>
<style
type=
"text/css"
>
.static-exam
dl
dt
{
background
:
#fff
;
border-bottom
:
0rem
;
}
</style>
<div
class=
"cover"
></div>
<div
class=
"cover"
></div>
<div
class=
"min-height-wrap"
>
<div
class=
"min-height-wrap"
>
<div
class=
"exam-header"
>
<div
class=
"exam-header"
>
...
@@ -17,9 +20,9 @@
...
@@ -17,9 +20,9 @@
</small>
</small>
</div>
</div>
<div
class=
"view-stop"
>
<div
class=
"view-stop"
>
<i
class=
"icon"
onclick=
"changeCollect()"
style=
"margin-top: 0.8rem;font-size: 16px;"
>
<
!-- <
i class="icon" onclick="changeCollect()" style="margin-top: 0.8rem;font-size: 16px;">
<img id = "collectImage" src="" class="van-icon__image">
<img id = "collectImage" src="" class="van-icon__image">
</i>
</i>
-->
<neq
name=
"Think.get.joinType"
value=
"2"
><i
class=
"icon icon-zanting"
></i></neq>
<neq
name=
"Think.get.joinType"
value=
"2"
><i
class=
"icon icon-zanting"
></i></neq>
<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>
...
...
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