Subversion Repositories wimsdev

Rev

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