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