Subversion Repositories wimsdev

Rev

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