Subversion Repositories wimsdev

Rev

Rev 17538 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !if $wims_user=supervisor
  2. <div class="box_content">
  3.   <div class="title_box">
  4.       <h2 class="wims_title">$(name_choose)</h2>
  5.   </div>
  6.   <div class="box_content">
  7.     !for k=1 to $nbuser
  8.       !set wims_ref_class=wims_button
  9.       !distribute item $(llist[$k]),$(flist[$k]) into lastname,fistname
  10.       !href cmd=reply&+module=adm/class/activity&+user=$(ulist[$k]) $name_studentname
  11.     !next k
  12.   </div>
  13. </div>
  14. !endif
  15.  
  16. !if $user=$empty
  17.   !exit
  18. !endif
  19. <div class="box_content">
  20. !if $wims_user=supervisor
  21.   <div class="title_box">
  22.     !let k=!positionof item $user in $ulist
  23.     !distribute item $(llist[$k]),$(flist[$k]) into lastname,fistname
  24.     <h2 class="wims_title">$(name_activityof) $name_studentname</h2>
  25.   </div>
  26. !endif
  27. !if $lt_month=$empty
  28.   <div class="wims_msg info">
  29.     !!<strong>$wims_name_Error:</strong>
  30.     !read msg.phtml noactivity
  31.   </div>
  32.   !exit
  33. !endif
  34. !if $wims_class!=$statclass
  35.   !readproc date.phtml $newccsum,notime noprint
  36.   <div class="wims_msg info">
  37.     $name_notsingleclass
  38.   </div>
  39. !endif
  40. <div class="table-scroll">
  41. <table class="wimstable border">
  42.   <head>
  43.     <tr>
  44.       <th></th>
  45.       !let nb=!linecnt $lt_month
  46.       !for k=1 to $nb
  47.         !let dl=!line $k of $lt_month
  48.         !distribute item $dl into wnum,m,yy
  49.         <th colspan="$wnum">$(months[$[$m]]) $yy</th>
  50.       !next k
  51.     </tr>
  52.   </head>
  53.   <body>
  54.       !for k=1 to 7
  55.         <tr>
  56.           <th>$(name_listdays[$k])</th>
  57.           !for j=1 to $nb_dtl
  58.             <td>
  59.               !let tmp=$(data[$j;$k])
  60.               !if $tmp!=.
  61.                 !distribute word $tmp into col,date,activity
  62.                 !readproc date.phtml $date,notime
  63.                 !if $col!=1
  64.                   !let activity=$activity $name_min
  65.                 !endif
  66.                 <div class="wims_seed_item" style="background-color:$(wtime_ltcolor[$col])" title="$slib_out : $activity"></div>
  67.               !endif
  68.             </td>
  69.           !next j
  70.         </tr>
  71.       !next k
  72.   </body>
  73. </table>
  74. </div>
  75. </div>
  76. <div class="box_content">
  77.   <div class="title_box">
  78.       <h2 class="wims_title">$wims_name_legend</h2>
  79.   </div>
  80. <div class="wims_score_bar">
  81.   <div class="inline wims_score_column">
  82.     <div class="inline wims_seed_item" style="background-color:$(wtime_ltcolor[1])" title=""></div>$(name_lgword[5])
  83.   </div>
  84.   <div class="inline wims_score_column">
  85.     <div class="inline wims_seed_item" style="background-color:$(wtime_ltcolor[2])" title=""> </div>$(name_lgword[1]) $(wtime_subval) $name_min
  86.   </div>
  87.   !for k=2 to $wtime_nbsub-1
  88.     <div class="inline wims_score_column">
  89.       <div class="inline wims_seed_item" style="background-color:$(wtime_ltcolor[$k+1])" title=""> </div>$(name_lgword[2]) $[$wtime_subval*($k-1)] $name_min $(name_lgword[3]) $[$k*$wtime_subval] $name_min
  90.     </div>
  91.   !next k
  92.   <div class="inline wims_score_column">
  93.     <div class="inline wims_seed_item" style="background-color:$(wtime_ltcolor[$wtime_nbsub+1])" title=""> </div>$(name_lgword[4]) $[($wtime_nbsub-1)*$wtime_subval] $name_min
  94.   </div>
  95. </div>
  96. </div>
  97.