Subversion Repositories wimsdev

Rev

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