Rev 17429 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8504 | bpr | 1 | |
17412 | guerimand | 2 | !if $wims_exam_remain!=$empty |
3 | !set wims_html_onload=clockid($wims_exam_remain,'exam_clock');$wims_html_onload |
||
4 | !set wims_html_header=!append line <script src="scripts/js/chronoid.js"></script> to $wims_html_header |
||
5 | !endif |
||
2789 | guerimand | 6 | !if $job=exo |
13495 | obado | 7 | !set js=<script src="scripts/js/chooselist.js"></script> |
8 | !set wims_html_header=!append line $js to $wims_html_header |
||
2789 | guerimand | 9 | !endif |
17429 | guerimand | 10 | !if $job=coursewatch |
11 | !set wims_html_header=!append line $local_html_header to $wims_html_header |
||
12 | !endif |
||
1170 | bpr | 13 | !read adm/css.phtml |
13603 | obado | 14 | |
15 | !read js/external/tinymce.phtml .iEdit |
||
1092 | bpr | 16 | !header1 |
1078 | bpr | 17 | |
17429 | guerimand | 18 | !if $job iswordof student score scorereg coursewatch |
15494 | bpr | 19 | !changeto $job.phtml |
23 | reyssat | 20 | !endif |
4039 | bpr | 21 | !read adm/class/classname.phtml $wims_classname\ |
4021 | bpr | 22 | $wims_institutionname |
23 | reyssat | 23 | |
1348 | bpr | 24 | !read adm/title.phtml 1\ |
4021 | bpr | 25 | $classname\ |
1897 | bpr | 26 | $name_title $exam |
23 | reyssat | 27 | |
28 | !if $error!=$empty |
||
15494 | bpr | 29 | <div class="wims_msg alert"> |
30 | !read lang/msg.phtml.$moduclass_lang |
||
31 | </div> |
||
2333 | bpr | 32 | |
16195 | guerimand | 33 | !if $error iswordof prep_noexercise or badtechvarname isin $error |
15494 | bpr | 34 | !set wims_menu_items=!append line back2,1,cmd=resume&error=$empty \ |
35 | to $wims_menu_items |
||
36 | !reset save |
||
37 | !else |
||
38 | !set wims_menu_items=!append line back2,1,module=home \ |
||
39 | to $wims_menu_items |
||
40 | !endif |
||
17328 | guerimand | 41 | !if $display!=1 |
42 | !goto end |
||
43 | !endif |
||
23 | reyssat | 44 | !endif |
45 | |||
10477 | guerimand | 46 | !if $msg_info!=$empty |
15494 | bpr | 47 | <div class="wims_msg info"> |
48 | !set error=$msg_info |
||
49 | !read lang/msg.phtml.$moduclass_lang |
||
50 | </div> |
||
10477 | guerimand | 51 | !endif |
52 | |||
8903 | czzmrn | 53 | !if $job=exo or $job=cpsheet or $job=cpexam |
15494 | bpr | 54 | !read $job.phtml |
55 | !goto end |
||
23 | reyssat | 56 | !endif |
57 | |||
9957 | obado | 58 | <div id="exam_management"> |
59 | !if $jquery_defined=yes |
||
15494 | bpr | 60 | <script> |
61 | /*<![CDATA[*/ |
||
62 | jQuery(function($$) { |
||
63 | // Get in sessionStorage if a tab was previously selected, and activate it. |
||
64 | var selectedTabId = sessionStorage.getItem("exam_management_selectedTab"); |
||
65 | selectedTabId = selectedTabId === null ? 0 : selectedTabId; //default tab = 0 |
||
66 | $$("#exam_management").tabs({ |
||
67 | active: selectedTabId, |
||
68 | activate : function( event, ui ) { |
||
69 | selectedTabId = $$("#exam_management").tabs("option", "active"); |
||
70 | sessionStorage.setItem("exam_management_selectedTab", selectedTabId); |
||
71 | } |
||
9957 | obado | 72 | }); |
15494 | bpr | 73 | }); |
74 | /*]]>*/ |
||
75 | </script> |
||
76 | <ul> |
||
77 | <li><a href="#examinfo">$name_info</a></li> |
||
78 | !ifval $activetest!=-1 |
||
79 | <li><a href="#examcontent">$name_content</a></li> |
||
80 | !endif |
||
81 | </ul> |
||
82 | <div id="examinfo"> |
||
17529 | obado | 83 | !read examinfo.phtml |
15494 | bpr | 84 | </div> |
9957 | obado | 85 | !else |
86 | !if $wims_infoshow=no |
||
15494 | bpr | 87 | <fieldset class="property_fields blockcenter"> |
88 | <legend> $name_info [ |
||
89 | !href cmd=resume&infoshow=yes $wims_name_showall |
||
90 | ] |
||
91 | </legend> |
||
92 | </fieldset> |
||
9957 | obado | 93 | !else |
15494 | bpr | 94 | !read examinfo.phtml |
9957 | obado | 95 | !endif |
96 | !endif |
||
23 | reyssat | 97 | |
98 | !ifval $activetest=-1 |
||
15494 | bpr | 99 | !goto end |
23 | reyssat | 100 | !endif |
101 | |||
102 | :end1 |
||
9957 | obado | 103 | <div id="examcontent"> |
104 | |||
23 | reyssat | 105 | !if $exocnt=0 |
15494 | bpr | 106 | <p>$name_warning</p> |
107 | !set nex=!itemcnt $aexams |
||
108 | !if $nex>0 |
||
109 | !! !set wims_ref_class=wims_button_help |
||
110 | !! !href cmd=reply&job=cpexam $wims_name_cpexam |
||
111 | !let wims_menu_items=!append line cpexam,1,cmd=reply&job=cpexam to $wims_menu_items |
||
112 | !endif |
||
23 | reyssat | 113 | !else |
9957 | obado | 114 | !read examcontent.phtml |
23 | reyssat | 115 | !endif |
116 | |||
2329 | guerimand | 117 | !if $activetest=0 |
15494 | bpr | 118 | !let wims_menu_items=!append line addexo,1,cmd=reply&job=exo&exo=$[$exocnt+1]\ |
2329 | guerimand | 119 | addsexo,1,cmd=reply&job=cpsheet to $wims_menu_items |
23 | reyssat | 120 | !endif |
121 | |||
9810 | bpr | 122 | !if $wims_user=supervisor and $exocnt>0 |
15494 | bpr | 123 | !let wims_menu_items=!append line itemsep,0,\ |
9810 | bpr | 124 | duplicateexam,1,cmd=reply&job=duplicate to $wims_menu_items |
125 | !endif |
||
126 | |||
23 | reyssat | 127 | !if $activetest>=0 |
15494 | bpr | 128 | !let wims_menu_items=!append line itemsep,0,\ |
2329 | guerimand | 129 | participantview,1,cmd=reply&job=student to $wims_menu_items |
17429 | guerimand | 130 | !if $exam_mode=1 and $activetest>=1 |
131 | !let wims_menu_items=!append line coursewatch,1,cmd=reply&+job=coursewatch to $wims_menu_items |
||
132 | !endif |
||
23 | reyssat | 133 | !endif |
9957 | obado | 134 | </div> |
2329 | guerimand | 135 | |
23 | reyssat | 136 | :end |
9957 | obado | 137 | </div> |
23 | reyssat | 138 | !tail |
139 | |||
140 | !reset job,echoose,eweight,ename,edep,eopt,source |