Subversion Repositories wimsdev

Rev

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