Subversion Repositories wimsdev

Rev

Rev 12714 | Rev 12947 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. !if $error!=$empty
  3.   <div class="wims_msg alert">
  4.   !read msg.phtml
  5.   </div><p>
  6.   !href module=home $wims_name_class_home
  7.   </p>
  8.   !goto end
  9. !endif
  10. !if $user!=$empty
  11.   !readdef wimshome/log/classes/$wims_class/.users/$user
  12.   !distribute item $user_lastname,$user_firstname into lastname,firstname
  13. !endif
  14. !default name_student=!nosubst $lastname, $firstname
  15. !readproc var.activity.proc
  16. !if $status!=OK
  17.   !form reply
  18.   <input type="hidden" name="job" value="select" />
  19.   <input type="hidden" name="status" value="OK" />
  20.   <fieldset class="property_fields halfwidth blockcenter">
  21.     <legend>$name_title
  22.   !if $user!=$empty
  23.     ($name_student)
  24.   !endif
  25.     </legend>
  26.    <div class="field box">
  27.       <label for="showsheet">$name_showsheet</label>
  28.       <br />
  29.   !set wims_formselect_switch=multiple size="$[min($activelist_cnt,10)]"
  30.   !formselect showsheet list $activlist prompt $(shs_title[$(activlist)])
  31.     </div>
  32.     <div class="wimscenter wimsform">
  33.       <input type="submit" value="$wims_name_Show" />
  34.     </div>
  35.   !read choix.phtml
  36.    </fieldset>
  37.   !formend
  38. !else
  39.   !if $usercnt==0
  40.     $name_noparticipant
  41.   !else
  42.     !default showsheet=$activlist
  43.     !default graphics=0
  44.     !if $graphics=1
  45.       !default choice=first
  46.       !if $choice=all
  47.         !set choice=first
  48.       !endif
  49.     !else
  50.       !if $choice!=login
  51.         !reset loginlist
  52.       !endif
  53.     !endif
  54.     !set nbth=4
  55.     !if $user=$empty
  56.       <p>$name_click</p>
  57.     !endif
  58.     !if $graphics!=1
  59.       !set table_id=TABLE_userlist
  60.       !set table_class=sortable
  61.     !endif
  62.     $table_header
  63.     <thead>
  64.     <tr>
  65.     <th colspan="5"></th>
  66.     !for j in $showsheet
  67.       !if $(activ[$j])>0
  68.         <th colspan="2" class="small">$wims_name_Sheet $j <br />$(shs_title[$j])<br />($(nbexo$j) $name_exo)</th>
  69.         !increase nbth
  70.         !increase nbth
  71.       !endif
  72.     !next j
  73.     </tr>
  74.     $table_hdtr
  75.     <th scope="col">$wims_name_lastname, $wims_name_firstname</th>
  76.     <th scope="col">$name_lastconnexion</th>
  77.     <th scope="col" data-sort-method="number">$name_nbsessions</th>
  78.     <th scope="col" class="small" data-sort-method="number">$wims_name_cnt_exo<br /> ($nbexototal $name_exo)</th>
  79.     <th>$name_total</th>
  80.     !for j in $showsheet
  81.       !if $(activ[$j])>0
  82.         <th class="small" scope="col" data-sort-method="number">$name_cnt_exo</th>
  83.         <th class="small" scope="col" data-sort-method="number">$name_time</th>
  84.       !endif
  85.     !next j
  86.     </tr>
  87.     </thead>
  88.     <tbody>
  89.     !!!no efficient !
  90.     !set nbpart=0
  91.     !for m=1 to $usercnt
  92.       !if $nbpart > $limitpart and $choice!=all
  93.         !break
  94.       !endif
  95.       !set uu=!record $m of wimshome/log/classes/$wims_class/.userlist
  96.       !distribute items $uu into lastname,firstname,uu
  97.       !if $choice=first and $m=1
  98.         !default user=$uu
  99.       !endif
  100.       !if $choice=all or ($choice=login and $uu isitemof $loginlist and $user=$empty) \
  101.           or ($choice=select and $uu isitemof $select_user)\
  102.         or $uu=$user\
  103.         or ($choice=filter and $varfilter_!=$empty)
  104.       !if $varfilter_!=$empty
  105.         !reset var_filter_test
  106.         !readproc adm/vfilter/testfilter $uu\
  107. $varfilter_
  108.         !if $var_filter_test!=1
  109.           !goto enduser
  110.         !endif
  111.       !endif
  112.       !set getraw=$uu
  113.       !increase nbpart
  114.       !readproc raw.proc
  115.       $table_tr
  116.       <td>
  117.       !href module=adm/class/userscore&job=getuser&getuser=$uu#sheet$(showsheet[1]) $name_student
  118.      </td>
  119.       !for h = 1 to 2*$sheetcnt + 4
  120.         !set h1=$[($h+$h%2)/2-2]
  121.         !if $h <=4 or ($h>4 and $(activ[$h1])>0) and $h1 isitemof $showsheet
  122.           !if $h>2 and . notin $[$h/2]
  123.             !if $(data[$h])!=$empty
  124.               !let tmp=!replace internal : by , in $(data[$h])
  125.               !let tmp=$[$(tmp[1])*3600+$(tmp[2])*60+$(tmp[3])]
  126.             !else
  127.               !let tmp=-1
  128.             !endif
  129.             <td data-sort="$tmp">$(data[$h])
  130.           !else
  131.             <td data-sort="$(data[$h])">$(data[$h])
  132.           !endif
  133.           !if $h=3 and $(data[$h])!=$empty and $(data[-1])>0
  134.             <span style="color:orange">+ $(data[-1])</span>
  135.           !endif
  136.           !set h2=$[$h%2]
  137.           !if $h1 isitemof $showsheet and $h2=1
  138.             !if , isin $showsheet
  139.               !set bb=!select $databyday where column 1=$h1
  140.             !else
  141.               !set bb=$(databyday[1;])
  142.             !endif
  143.             !if $bb!=$empty
  144.               !set bb=!exec pari vecsum($(bb[6]))
  145.               <span style="color:orange">+ $bb</span>
  146.             !endif
  147.           !endif
  148.           </td>
  149.         !endif
  150.       !next
  151.       </tr>
  152.       !if $graphics=1
  153.         $table_tr
  154.         <td colspan="$[$nbth+1]" style="text-align:left;">
  155.         !read exobyday.phtml
  156.         </td></tr>
  157.       !endif
  158.     !endif
  159.   :enduser
  160.   !next
  161.   </tbody>
  162.   $table_end
  163.   !read tablesort.phtml
  164. !endif
  165.  
  166. !if $user!=$empty and $choice!=all
  167.   !distribute item scores,livret1 into sc,li
  168.   !set parmuser1=&job=getuser&getuser=$user
  169.   !set parmuser2=&job=user&user=$user
  170. !else
  171.   !distribute item Score1,livret into sc,li
  172. !endif
  173. !set wims_menu_items=!append line itemsep,0,$wims_name_Evaluation $user\
  174. back2 $user,1,cmd=new&user=$user\
  175. $sc,1,module=adm/class/userscore&job_affi=notes$parmuser1\
  176. $li,1,module=adm/class/livret$parmuser2\
  177. to $wims_menu_items
  178. !if $choice!=all
  179.   !read adm/class/getnextuser $wims_class,$user,activity,user
  180. !endif
  181. :end
  182. !tail
  183.