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