Subversion Repositories wimsdev

Rev

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