Rev 12654 | Rev 14441 | 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/main.phtml START --> |
2247 | bpr | 2 | |
23 | reyssat | 3 | !if $job=print |
12476 | bpr | 4 | !changeto print.phtml |
23 | reyssat | 5 | !endif |
6 | |||
7 | !if $public!=P |
||
12476 | bpr | 8 | !changeto class.phtml |
23 | reyssat | 9 | !endif |
2247 | bpr | 10 | !if $(module_title_$modu_lang)!= |
12476 | bpr | 11 | !set module_title=$(module_title_$modu_lang) |
2247 | bpr | 12 | !endif |
23 | reyssat | 13 | |
14 | !header |
||
15 | |||
16 | !if $error!=$empty |
||
12476 | bpr | 17 | <div class="wims_msg alert"> |
12654 | obado | 18 | !read lang/msg.phtml.$modu_lang |
12476 | bpr | 19 | </div> |
20 | !tail |
||
21 | !exit |
||
23 | reyssat | 22 | !endif |
23 | |||
24 | !if $wims_user=supervisor and $job=raw |
||
12476 | bpr | 25 | <p id="textsource">$name_textsource</p> |
26 | <hr /> |
||
27 | <pre> |
||
28 | !sh awk 'BEGIN {a=0};\ |
||
29 | /^:/ {a=1};\ |
||
30 | a==1 {print}' bases/sheet/$sh.def |
||
31 | </pre> |
||
32 | <hr /> |
||
1766 | bpr | 33 | |
12476 | bpr | 34 | !set wims_menu_items=!append line participantview,1,cmd=resume&job=read \ |
35 | to $wims_menu_items |
||
1766 | bpr | 36 | |
12476 | bpr | 37 | !tail |
38 | !exit |
||
23 | reyssat | 39 | !endif |
40 | |||
1924 | bpr | 41 | !set intro=!record 0 of $data |
42 | !set dur=!words2items $(intro[3;]) |
||
43 | !distribute items $dur into duration,year |
||
5195 | guerimand | 44 | !if ? notin $duration |
12476 | bpr | 45 | !let duration=- $name_duration $duration mn |
5195 | guerimand | 46 | !else |
12476 | bpr | 47 | !let duration=$empty |
5195 | guerimand | 48 | !endif |
1924 | bpr | 49 | !read adm/title.phtml 3\ |
50 | $sheet_title\ |
||
12654 | obado | 51 | $name_level : $(name_wims_level_$(intro[5;])) $duration - $year\ |
1924 | bpr | 52 | |
14374 | obado | 53 | <div class="wims_content"> |
54 | <div class="wims_sheet_desc">$sheet_desc</div> |
||
55 | <div class="wims_credits">$(intro[8;])</div> |
||
23 | reyssat | 56 | |
14374 | obado | 57 | !if $n=0 |
58 | $name_sheetempty |
||
59 | !else |
||
60 | <div class="wims_sheet"> |
||
61 | <div class="wims_title_seq">$wims_name_Exercices</div> |
||
62 | <ol class="wims_sheet_list"> |
||
63 | !for i=1 to $n |
||
64 | !set ex=!record $i of $data |
||
65 | !distribute lines $ex into di,pa,require,we,ti,de |
||
66 | !set got=!word $i of $scores |
||
67 | !set mean=!word $i of $means |
||
68 | !if .___ isin $(ti)___ |
||
69 | !set ti=!replace internal .___ by in $(ti)___ |
||
70 | !endif |
||
71 | <li class="wims_exo_item"> |
||
72 | !href module=$di&cmd=new&worksheet=$public$shn&$pa $ti |
||
73 | !if $de notsametext $empty |
||
12654 | obado | 74 | , $de |
14374 | obado | 75 | !else |
12476 | bpr | 76 | . |
14374 | obado | 77 | !endif |
78 | </li> |
||
79 | !next i |
||
80 | </ol> |
||
81 | </div> |
||
82 | !if $wims_user=supervisor |
||
83 | !set wims_menu_items=!append line import,1,cmd=reply&job=import \ |
||
84 | sheetsource,1,cmd=reply&job=raw\ |
||
85 | to $wims_menu_items |
||
86 | !endif |
||
7101 | bpr | 87 | !endif |
14374 | obado | 88 | </div> |
1544 | bpr | 89 | |
1336 | bpr | 90 | !set wims_menu_items=!append line printable,1,cmd=reply&job=print\ |
91 | to $wims_menu_items |
||
5648 | obado | 92 | <!-- adm/sheet/main.phtml END --> |
93 | |||
23 | reyssat | 94 | !tail |