Subversion Repositories wimsdev

Rev

Rev 15763 | Rev 15823 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5648 obado 1
<!-- adm/sheet/class.phtml START -->
7899 bpr 2
!readdef wimshome/log/classes/$wims_class/.def
1510 bpr 3
!read adm/css.phtml
1051 bpr 4
!header1
23 reyssat 5
 
6
!if $sheet_docpage!=$empty
12313 bpr 7
  !changeto docpage.phtml
23 reyssat 8
!endif
4039 bpr 9
!read adm/class/classname.phtml $wims_classname\
4031 bpr 10
$wims_institutionname
11
 
14531 bpr 12
!if $seq=$empty and $wims_sequence=$empty
7309 bpr 13
  !read adm/title.phtml 1\
4031 bpr 14
$classname\
7309 bpr 15
$sheet_title \
3850 obado 16
$name_title
7309 bpr 17
!else
18
  !read adm/title.phtml 1\
19
$classname\
20
$sheet_title
21
!endif
1341 bpr 22
 
15763 guerimand 23
!! -------- manage multiple view for supervisor in case of individualisation techvar
24
  !if $wims_user=supervisor and $sheet_indivtechvar!=$empty
25
    <div class="wims_msg info">
26
    $name_indivsupervisor
27
    !form reply
28
      <div class="field box">
29
        <label for="choosevalue">$name_choosevalue:</label>
30
        <select id="choosevalue" name="choosevalue" onchange="submit()">
31
          !if $choosevalue=EMPTY
32
              <option value="EMPTY" selected="selected">$name_novalue</option>
33
          !else
34
              <option value="EMPTY">$name_novalue</option>
35
          !endif
36
          !for val in $techvarlistval
37
            !if $choosevalue=$val
38
              <option value="$val" selected="selected">$val</option>
39
            !else
40
              <option value="$val">$val</option>
41
            !endif
42
          !next i
43
        </select>
44
      </div>
45
    !formend
46
    </div>
47
  !endif
48
!! --------- end of manage of indiv
49
 
50
 
3205 bpr 51
<div class="wims_sheet_desc">$sheet_desc</div>
5603 guerimand 52
!let class_showlivret=!defof class_showlivret in wimshome/log/classes/$wims_class/.def
53
!let tmp=!record $sh of wimshome/log/classes/$wims_class/livret/sheetindex.rc
54
!if $class_showlivret=yes and $tmp!=$empty
12313 bpr 55
  <div class="wims_sheet_desc">
7933 bpr 56
  $name_skillbullet $tmp
12313 bpr 57
  </div>
5603 guerimand 58
!endif
4623 bpr 59
!!expiration date in a variable
60
!set expir_user=!record 0 of wimshome/log/classes/$wims_class/.$sh
7081 bpr 61
 
10904 guerimand 62
!set cle=!word 1 of $expir_user
63
!! process for technical variable definition (replace expir_user by value decide by the technical variable)
64
!if \ isin $cle
12313 bpr 65
  !set idtechvar=!line 1 of $expir_user
66
  !set idtechvar=!char 2 to -1 of $idtechvar
67
  !readproc adm/class/userdef ,$wims_class,$wims_user
68
  !set val=!defof user_techvar_$(idtechvar) in $userdef
69
  !default val=EMPTY
70
  !reset expir_user
71
  !set expir_user=!defof techvar_$val in wimshome/log/classes/$wims_class/.$sh
72
  !default expir_user=none
10904 guerimand 73
!endif
74
!! end process technical variable
75
 
8434 bpr 76
!if $expir_user=none
12313 bpr 77
  <div class="wims_msg warning" id="name_student5">
8434 bpr 78
  <span class="wims_warning">$wims_name_warning</span>.
9593 bpr 79
  $name_student5
12313 bpr 80
  </div>
81
  !goto none
8434 bpr 82
!endif
10904 guerimand 83
 
10062 guerimand 84
!if $expir_user!=$empty
85
  !set cle=!word 1 of $expir_user
12476 bpr 86
  !!! a corriger
10904 guerimand 87
  !set expir_user=!words2items $expir_user
12313 bpr 88
  !for l_ in $expir_user
89
    !set l_=!replace internal < by ?, in $l_
90
    !if ? isitemof $l_
7081 bpr 91
      !set sheet_expiration_user=$(l_[2])
12313 bpr 92
    !endif
93
  !next
94
  !for l_ in $expir_user
95
    !set l_=!replace internal > by ?, in $l_
96
    !if ? isitemof $l_
7081 bpr 97
      !set sheet_beginning_user=$(l_[2])
12313 bpr 98
    !endif
99
  !next
10904 guerimand 100
!endif
101
 
102
!if $sheet_beginning_user!=$empty and $sheet_active=1
7081 bpr 103
  !set expday=!char 7,8 of $sheet_beginning_user
104
  !set expmon=!char 5,6 of $sheet_beginning_user
105
  !set expyear=!char 1 to 4 of $sheet_beginning_user
106
  !set exphour=!char 10 to -1 of $sheet_beginning_user
107
  !if $exphour!=
108
   !set exphour=$ ($exphour)
109
  !endif
110
  !read adm/date.phtml
111
  !set expmon=!item $expmon of $months
112
  !set fromdate=$name_from $expday $expmon $expyear$exphour
10904 guerimand 113
!endif
114
 
4623 bpr 115
!default sheet_expiration_user=$sheet_expiration
116
!if $sheet_expiration_user!=$empty and $sheet_active=1
12313 bpr 117
  !set expday=!char 7,8 of $sheet_expiration_user
118
  !set expmon=!char 5,6 of $sheet_expiration_user
119
  !set expyear=!char 1 to 4 of $sheet_expiration_user
120
  !set exphour=!char 10 to -1 of $sheet_expiration_user
121
  !if $exphour!=
122
    !set exphour=$ ($exphour)
123
  !endif
124
  !read adm/date.phtml
125
  !set expmon=!item $expmon of $months
126
  <p id="name_student1">$name_student1$exphour</p>
7309 bpr 127
!endif
10904 guerimand 128
 
8434 bpr 129
:none
23 reyssat 130
!if $sheet_active=2
12313 bpr 131
  <div class="wims_msg warning" id="name_student2">
12278 obado 132
  <span class="wims_warning">$wims_name_warning</span>.
133
  $name_student2</div>
23 reyssat 134
!endif
10049 bpr 135
 
23 reyssat 136
!if $n=0
12313 bpr 137
  !if $sheet_active=$empty
138
    $name_sheetempty
139
  !else
140
    <span class="name_student4">$name_student4</span>
141
  !endif
23 reyssat 142
!else
10049 bpr 143
  !set wims_menu_items=!append line printable,1,cmd=reply&job=print\
144
  itemsep,0,\
145
to $wims_menu_items
146
  !if $exolog!=$empty
147
    !set wims_menu_items=!append line exolog,1, module=adm/class/exolog&job=llist&logsheet=$sh \
148
itemsep,0,\
149
 to $wims_menu_items
12313 bpr 150
  !endif
151
  !set scorestat=!getscorestatus sheet=$sh
152
  !if $scorestat=yes
153
    !if $authscoresuspend!=no
154
      !if $wims_scorereg!=suspend
155
        $name_scoreopen
12849 bpr 156
        !set wims_ref_class=wims_button
12313 bpr 157
        !href cmd=resume&job=suspend $wims_name_scoreclose2
158
        !set wims_menu_items=!append line scoreclose2,1,cmd=resume&job=suspend to $wims_menu_items
159
      !else
160
        !set scorestat=no
161
        $wims_name_scoresuspend
12849 bpr 162
        !set wims_ref_class=wims_button
12313 bpr 163
        !href cmd=resume&job=reopen $wims_name_scorereopen
164
        !set wims_menu_items=!append line scorereopen,1,cmd=resume&job=reopen to $wims_menu_items
165
      !endif
166
    !else
167
      $name_scoreclosesup
168
    !endif
23 reyssat 169
  !else
12813 bpr 170
    <div class="wims_msg warning">
171
      $name_scoreclose
172
    </div>
23 reyssat 173
  !endif
12313 bpr 174
  !set sevlist=!record 0 of wimshome/log/classes/$wims_class/sheets/.severity
175
  !set sev=!line $sh + 1 of $sevlist
176
  !reset s ss
177
  !set ss=!word 3 of $sev
178
  !set tmp=!defof DF_SEVERITY in wimshome/public_html/bases/sys/define.conf
179
  !set tmp=!word 3 of $tmp
180
  !bound ss between integer 0 and 2 default $tmp
181
  !reset tmp
12278 obado 182
 
12313 bpr 183
  <div class="wims_sheet">
184
   <div class="wims_title_seq">$wims_name_Exercices</div>
185
  <ol class="wims_sheet_list">
13825 bpr 186
  !reset wims_exotitle wims_exoicon wims_exodesc exodescshow
13831 bpr 187
  !set sh_=!record $sh of wimshome/log/classes/$wims_class/sheets/.sheets
188
  !set exodescshow=!line 8 of $sh_
13825 bpr 189
  !bound exodescshow between 0,1 default 0
12313 bpr 190
  !for i=1 to $n
191
    !set ex=!record $i of wimshome/log/classes/$wims_class/sheets/.sheet$sh
15763 guerimand 192
    !distribute lines $ex into di,pa,require,we,ti,de,bidon,bidon,bidon,icon,indiv
193
    !if $uservartechvalue=$empty or $uservartechvalue isitemof $indiv
15767 guerimand 194
      !set wims_listexo=!append item $i to $wims_listexo
15763 guerimand 195
      !set got=!word $i of $scores
196
      !set mean=!word $i of $means
197
      !set best=!word $i of $bests
198
      !set level=!word $i of $levels
199
      !set alltry=!word $i of $alltries
200
      !set dep=!row $i of $deps
201
      !set dep=!trim $dep
202
      !set wims_exoicon=$wims_exoicon$icon,
203
      !set wims_exotitle=!append line $ti to $wims_exotitle
204
      !if $exodescshow=1
205
        !let de=!replace internal , by &#44; in $de
206
        !let wims_exodesc=$wims_exodesc$de,
12316 bpr 207
      !endif
15763 guerimand 208
      !read getparm $pa, seedrepeat exotrymax
209
      <li class="wims_exo_item" id="ex$i">
210
      !if $dep=$empty or $scorestat!=yes
211
        !if $icon!=$empty
212
          !set wims_ref_class=text_icon icon_$icon
12313 bpr 213
        !endif
15763 guerimand 214
        !href module=$di&cmd=new&worksheet=$sh&$pa $ti
215
        !set last=!char -1 of $de
216
        !if $last notin >.!?
217
          !set de=$(de).
12313 bpr 218
        !endif
15763 guerimand 219
        <div class="wims_work_desc">$de</div>
220
        <div class="wims_user_info">
221
        !if $require>0
222
          <span class="wims_sheet_score small">
223
          $(wims_name_thsheet[7]): $[$mean]/10
224
          !if $ss=0
225
            $(wims_name_thsheet[5]): $[round(100*$got/$require)]%
226
          !endif
227
          !if $ss=1
228
            $(wims_name_thsheet[10]): $[round(100*$best/$require)]%
229
          !endif
230
          !if $ss=2
231
            $(wims_name_thsheet[13]): $[$level]/10
232
          !endif
233
          $(wims_name_thsheet[3]):$require
234
          !if $get_exotrymax>0
235
            $(wims_name_thsheet[14]):
236
            $[min($get_exotrymax,$alltry)]/$get_exotrymax
237
          !endif
238
          </span>
12313 bpr 239
        !endif
15763 guerimand 240
        </div>
241
      !else
242
        $ti, $de
243
        !if $require>0
244
          <span class="small">($name_score2)</span>
12812 bpr 245
        !endif
12313 bpr 246
      !endif
15763 guerimand 247
      !if $dep!=$empty
248
        <div class="wims_msg warning">
249
        !if , isin $dep
250
          $name_deps $dep
251
        !else
252
          $name_dep $dep
253
        !endif
254
        $name_dep2
255
          </div>
12313 bpr 256
      !endif
15763 guerimand 257
      !set seedscore=!getseedscores user=$wims_user sheet=$sh work=$i
258
    !!user, sheet, exo, seedrepeat (by default 0)
259
      !read adm/class/seedscore.phtml $seedscore,$get_seedrepeat
260
      </li>
12278 obado 261
    !endif
12313 bpr 262
  !next i
263
  !let wims_exotitle=!replace , by &#44; in $wims_exotitle
264
  !let wims_exotitle=!lines2items $wims_exotitle
265
  !setdef wims_exotitle=$wims_exotitle\
12342 bpr 266
wims_sheettitle=$sheet_title\
267
wims_exoicon=$wims_exoicon\
13825 bpr 268
wims_exodesc=$wims_exodesc\
12342 bpr 269
  in wimshome/sessions/$wims_session/var.stat
7891 obado 270
 </ol>
251 bpr 271
 </div>
12861 bpr 272
 !!!<div class="wimscenter">
273
 !!!   !read adm/class/colors 0,legend
274
 !!!   $output_legend
275
 !!!</div>
23 reyssat 276
!endif
277
 
278
!if $wims_user=supervisor
12313 bpr 279
  !set wims_menu_items=!append line sheetmanagement,1,module=adm/class/sheet&sheet=$sh\
9810 bpr 280
 itemsep,0,\
1336 bpr 281
to $wims_menu_items
23 reyssat 282
!endif
10049 bpr 283
 
9031 guerimand 284
!set wims_menu_items=!append line myscore,1,module=adm/class/userscore#sheet$sh\
3087 bpr 285
to $wims_menu_items
5648 obado 286
 
287
<!-- adm/sheet/class.phtml END -->
288
 
23 reyssat 289
!tail
15767 guerimand 290
!setdef wims_listexo=$wims_listexo in wimshome/sessions/$wims_session/var.stat
291