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