Subversion Repositories wimsdev

Rev

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