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