Subversion Repositories wimsdev

Rev

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

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