Subversion Repositories wimsdev

Rev

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

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