Subversion Repositories wimsdev

Rev

Rev 14088 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
!set wims_form_method=post
11105 bpr 2
!set tmp=!defof DF_SEVERITY in wimshome/public_html/bases/sys/define.conf
3
!distribute words $tmp into tmp_w,tmp_s,tmp_ss
4
 
1587 bpr 5
!read adm/title.phtml 1\
6
$classname\
7
$name_severitylevels
23 reyssat 8
 
9
!form reply
17180 bpr 10
<input type="hidden" name="job" value="formula">
1587 bpr 11
$name_formula_comment
17180 bpr 12
<input type="number" min="$min_maxscore" max="$max_maxscore" size="5" name="maxscore" value="$scoremax">.
1293 bpr 13
$table_header
8467 bpr 14
<caption>$wims_name_Sheets</caption>
10689 bpr 15
$table_hdtr<th scope="col">$(name_formula[1])</th><th scope="col">$wims_name_title</th><th scope="col">$wims_name_Status</th>
16
  <th scope="col">$(name_formula[2])</th><th scope="col">$(name_formula[3])</th></tr>
23 reyssat 17
!for i=1 to $totsheets
12465 bpr 18
  !set t_=!record $i of wimshome/log/classes/$wims_class/sheets/.sheets
19
  !set k_=!line $i of $defaultformula
20
  !distribute word $k_ into w$i,s$i,ss$i
21
  !bound w$i between $min_weight and $max_weight default $tmp_w
22
  !bound s$i between integer 0 and 6 default $tmp_s
23
  !bound ss$i between integer 0 and 2 default $tmp_ss
24
  !distribute line $t_ into a_,b_,c_,d_
25
  !set a_=!char 1 of $a_
26
  !set S_=!item $a_+1 of $name_sheetstatut
1603 bpr 27
 
12465 bpr 28
  $table_tr<td>$i</td>
29
  <td>$c_</td><td>$S_</td>
17180 bpr 30
  <td><input type="number" min="$min_weight" max="$max_weight" step="any" size="5" name="w$i" value="$(w$i)"></td>
12465 bpr 31
  <td>
32
  !set formula_list=!record 0 of adm/class/sheetformula
33
  !formselect s$i list 0,1,2,3,4,5,6 prompt $formula_list
34
  I=
35
  !formselect ss$i list 0,1,2 prompt I0,I1,I2
36
  </td></tr>
23 reyssat 37
!next i
8467 bpr 38
$table_end
39
$table_header
40
<caption>$wims_name_Examens</caption>
41
$table_hdtr<th>$(name_formula[1])</th><th>$wims_name_title</th><th>$wims_name_Status</th>
11114 obado 42
  <th>$(name_formula[2])</th></tr>
23 reyssat 43
!for i=1 to $totexams
12465 bpr 44
  !set ew$i=!line $i of $examweights
45
  !default ew$i=1
46
  !set t_=!record $i of wimshome/log/classes/$wims_class/exams/.exams
47
  !set a_=!word 1 of $t_
48
  !set c_=!line 4 of $t_
49
  !set S_=!item $a_+1 of $name_sheetstatut
7612 bpr 50
 
12465 bpr 51
  $table_tr<td>$name_Exam $i</td>
52
  <td>$c_</td><td>$S_</td>
17180 bpr 53
  <td><input type="number" min="$min_weight" max="$max_weight" step="any" size="5" name="ew$i" value="$(ew$i)"></td>
12465 bpr 54
  </tr>
23 reyssat 55
!next i
5953 bpr 56
$table_end
57
<div class="wimscenter wimsform">
17180 bpr 58
<input type="submit" name="formula" value="$wims_name_tosave">
59
$ $ <input class="wims_secondary_button" type="submit" value="$wims_name_giveup">
5953 bpr 60
</div>
23 reyssat 61
 
5926 bpr 62
!formend
9115 bpr 63
!set wims_menu_items=!append line back2,1,cmd=resume\
12465 bpr 64
  to $wims_menu_items
11105 bpr 65
!reset formula tmp tmp_w tmp_s tmp_ss