Subversion Repositories wimsdev

Rev

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

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