Subversion Repositories wimsdev

Rev

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

  1. !if $cdt_supervise=no
  2.   <div class="wims_msg info">
  3.     !if $wims_user=supervisor
  4.       $name_nosupervise
  5.     !else
  6.       $name_nosuperviseforuser
  7.     !endif
  8.   </div>
  9. !endif
  10. !if $cdt_description!=$empty
  11.   <br>$cdt_description
  12. !endif
  13. !read proc/searchform.phtml
  14.  
  15. <div class="wims_content">
  16. <div class="wimscenter bold">
  17.  $name_workdone
  18. !if $jour_begin!=$jour_end
  19.   $name_between <span class="wims_emph">
  20.   !read date.phtml $jour_begin,notime
  21.   </span>
  22.   $name_and <span class="wims_emph">
  23.   !read date.phtml $jour_end,notime
  24.   </span>
  25. !else
  26.   $name_the <span class="wims_emph">
  27.   !read date.phtml $jour_begin,notime
  28.   </span>
  29. !endif
  30. </div>
  31.  
  32.  
  33. <br class="spacer">
  34.  
  35. !if $cdt_nbdate=0
  36.   $name_noinfo1.
  37.   !goto end
  38. !else
  39.   !if $nbligne=0
  40.     !if $jour_begin=$jour_end
  41.       $name_noinfo2.
  42.     !else
  43.       $name_noinfo3.
  44.     !endif
  45.     !goto end
  46.   !endif
  47. !endif
  48.  
  49. !set table_class=sortable
  50. !set table_id=TABLE_cdt_work
  51. $table_header
  52. <thead>
  53.   $table_hdtr
  54.     <th>$name_Day</th>
  55.     !if no isin $cdt_supervise
  56.       <th>$name_discipline</th>
  57.     !endif
  58.     <th>$name_inclass</th><th>$name_worktodo</th><th style="width:30px">$name_for</th>
  59.     !if $wims_user=supervisor and yes isin $cdt_supervise
  60.       <th>$wims_name_action</th>
  61.     !endif
  62.   </tr>
  63. </thead>
  64. <tbody>
  65. !for i=1 to $nbligne
  66.   !!  !let mem_tr=$table_tr
  67.   !if $cdt_reversedate=1
  68.     !let don=!line $nbligne+1-$i of $list
  69.   !else
  70.     !let don=!line $i of $list
  71.   !endif
  72.   !distribute item $don into jour,file,matiere
  73.   !let m_filedir=$wims_ref_name?session=$wims_session&cmd=getfile&special_parm=cdt/$file
  74.   !let file=wimshome/log/classes/$file/cdt/def/$jour
  75.   !read $file
  76.   !let nbtodo=!itemcnt $date_todo
  77.   !let snbtodo=$[max(1,$nbtodo)]
  78.   <tr class="$(table_colors[$i%2+1])">
  79.    <td rowspan="$snbtodo">
  80.     !read adm/lang/datemenu.phtml.$moduclass_lang 5,$jour,$dateoption
  81.    </td>
  82.   !if no isin $cdt_supervise
  83.     <td rowspan="$snbtodo">$matiere</td>
  84.   !endif
  85.   <td rowspan="$snbtodo" valign="top">
  86.     !read $file content
  87.   </td>
  88.   !if $nbtodo>0
  89.     <td valign="top">
  90.       !read $file todo1
  91.     </td>
  92.     <td>
  93.       !read adm/lang/datemenu.phtml.$moduclass_lang 5,$date_todo,$dateoption
  94.     </td>
  95.   !else
  96.     <td>&nbsp;</td><td>&nbsp;</td>
  97.   !endif
  98.   !if $wims_user=supervisor and yes isin $cdt_supervise
  99.     <td rowspan="$snbtodo">
  100.     !set wims_ref_class=wims_button
  101.     !href cmd=new&job=adddate&filename=$jour $wims_name_change
  102.     $
  103.     !set wims_ref_class=wims_button wims_warning
  104.     !href cmd=new&job=del&filename=$jour $wims_name_erase
  105.     </td>
  106.   !endif
  107.   </tr>
  108.   !if $nbtodo>1
  109.     !let bgcolor=!positionof char # in $mem_tr
  110.    !let bgcolor=!char $bgcolor to $[$bgcolor+6] of $mem_tr
  111.     !for j=2 to $nbtodo
  112.       <tr class="$(table_colors[$i%2+1])">
  113.       <td valign="top">
  114.       !read $file todo$j
  115.       </td>
  116.       <td>
  117.       !let tmp=!item $j of $date_todo
  118.       !read adm/lang/datemenu.phtml.$moduclass_lang 5,$tmp,$dateoption
  119.       </td>
  120.       </tr>
  121.     !next j
  122.   !endif
  123. !next i
  124. </tbody>
  125. $table_end
  126. !read tablesort.phtml
  127.  
  128. !if $nbligne>0
  129.   <p class="wimscenter">
  130.   !set wims_ref_class=wims_button
  131.   !href target=wims_new module=$module&cmd=new&job=work&job2=print&jdate=$jdate&jdate2=$jdate2 $wims_name_print
  132.   </p>
  133.   !set wims_menu_items=!append line printable,1,module=$module&cmd=new&job=work&job2=print&jdate=$jdate&jdate2=$jdate2\
  134.   itemsep,0,\
  135.   to $wims_menu_items
  136. !endif
  137.  
  138. :end
  139. <hr style="width:40%;">
  140. </div>
  141. !tail
  142.