Rev 9957 | Rev 10477 | 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 | |||
8903 | czzmrn | 36 | !if $job=exo or $job=cpsheet or $job=cpexam |
23 | reyssat | 37 | !read $job.phtml |
38 | !goto end |
||
39 | !endif |
||
40 | |||
9957 | obado | 41 | <div id="exam_management"> |
42 | !if $jquery_defined=yes |
||
43 | <script type="text/javascript"> |
||
44 | /*<![CDATA[*/ |
||
45 | jQuery(function($$) { |
||
46 | // Get in sessionStorage if a tab was previously selected, and activate it. |
||
47 | var selectedTabId = sessionStorage.getItem("exam_management_selectedTab"); |
||
48 | selectedTabId = selectedTabId === null ? 0 : selectedTabId; //default tab = 0 |
||
49 | $$("#exam_management").tabs({ |
||
50 | active: selectedTabId, |
||
51 | activate : function( event, ui ) { |
||
52 | selectedTabId = $$("#exam_management").tabs("option", "active"); |
||
53 | sessionStorage.setItem("exam_management_selectedTab", selectedTabId); |
||
54 | } |
||
55 | }); |
||
56 | }); |
||
57 | /*]]>*/ |
||
58 | </script> |
||
59 | <ul> |
||
60 | <li><a href="#examinfo">$name_info</a></li> |
||
61 | !ifval $activetest!=-1 |
||
62 | <li><a href="#examcontent">$name_content</a></li> |
||
63 | !endif |
||
64 | </ul> |
||
65 | <div id="examinfo"> |
||
66 | !read examinfo.phtml |
||
67 | </div> |
||
68 | !else |
||
69 | !if $wims_infoshow=no |
||
70 | <fieldset class="property_fields blockcenter"> |
||
71 | <legend> $name_info [ |
||
72 | !href cmd=resume&infoshow=yes $wims_name_showall |
||
73 | ] |
||
74 | </legend> |
||
75 | </fieldset> |
||
76 | !else |
||
77 | !read examinfo.phtml |
||
78 | !endif |
||
79 | !endif |
||
23 | reyssat | 80 | |
81 | !ifval $activetest=-1 |
||
82 | !goto end |
||
83 | !endif |
||
84 | |||
85 | :end1 |
||
9957 | obado | 86 | <div id="examcontent"> |
87 | |||
23 | reyssat | 88 | !if $exocnt=0 |
8903 | czzmrn | 89 | <p>$name_warning |
90 | !set nex=!itemcnt $aexams |
||
91 | !if $nex > 0 |
||
92 | !set wims_ref_class=wims_button_help |
||
93 | !href cmd=reply&job=cpexam $wims_name_cpexam |
||
9011 | czzmrn | 94 | !let wims_menu_items=!append line cpexam,1,cmd=reply&job=cpexam to $wims_menu_items |
8903 | czzmrn | 95 | !endif |
96 | </p> |
||
23 | reyssat | 97 | !else |
9957 | obado | 98 | !read examcontent.phtml |
23 | reyssat | 99 | !endif |
100 | |||
2329 | guerimand | 101 | !if $activetest=0 |
102 | !let wims_menu_items=!append line addexo,1,cmd=reply&job=exo&exo=$[$exocnt+1]\ |
||
103 | addsexo,1,cmd=reply&job=cpsheet to $wims_menu_items |
||
23 | reyssat | 104 | !endif |
105 | |||
9810 | bpr | 106 | !if $wims_user=supervisor and $exocnt>0 |
107 | !let wims_menu_items=!append line itemsep,0,\ |
||
108 | duplicateexam,1,cmd=reply&job=duplicate to $wims_menu_items |
||
109 | !endif |
||
110 | |||
23 | reyssat | 111 | !if $activetest>=0 |
9810 | bpr | 112 | !let wims_menu_items=!append line itemsep,0,\ |
2329 | guerimand | 113 | participantview,1,cmd=reply&job=student to $wims_menu_items |
23 | reyssat | 114 | !endif |
9957 | obado | 115 | </div> |
2329 | guerimand | 116 | |
23 | reyssat | 117 | :end |
9957 | obado | 118 | </div> |
23 | reyssat | 119 | !tail |
120 | |||
121 | !reset job,echoose,eweight,ename,edep,eopt,source |
||
8904 | czzmrn | 122 |