Subversion Repositories wimsdev

Rev

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