Subversion Repositories wimsdev

Rev

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

  1. !! --------------------  affiche le contenu de la feuille $sheet de la classe $wims_class
  2. !! langage is defined in adm/class/sheet/lang/names.phtml.$lang
  3.  
  4. $table_header
  5. <caption>$name_content</caption>
  6. <thead>
  7.   $table_hdtr
  8.     !for k=1 to 5
  9.       <th>$(name_shtab[$k])</th>
  10.     !next k
  11.     <th>$name_qnum</th>
  12.     !for k=6 to 7
  13.       <th>$(name_shtab[$k])</th>
  14.     !next k
  15.     <th>$(name_shtab[10])</th>
  16.     !if $activetest>=0
  17.       <th>$(name_shtab[8])</th>
  18.     !endif
  19.   </tr>
  20. </thead>
  21. <tbody>
  22. !for i=1 to $exocnt
  23.   !set ex=!record $i of wimshome/log/classes/$wims_class/sheets/.sheet$sheet
  24.   !distribute lines $ex into di,pa,re,we,ti,de,dep,com,feed,icone
  25.   $table_tr
  26.   <td id="td_exo_$i">$i</td>
  27.   <td>
  28.   !if $icone!=$empty
  29.     !set wims_ref_class=text_icon icon_$icone
  30.   !endif
  31.   !href cmd=new&module=$di&worksheet=$sheet&$pa $ti
  32.   </td>
  33.   <td>$de</td>
  34.   <td>$re</td>
  35.   <td>$we</td>
  36.   !set pa=!replace internal & by $ $ in $pa
  37.   !reset qnum
  38.   !!oef exercises
  39.   !set qnum=!getopt qnum in $pa
  40.   !if $qnum=
  41.    !!J.E. exercises
  42.     !set qnum=!getopt total_exos in $pa
  43.   !endif
  44.    <td>$qnum</td>
  45.    <td>
  46.   !if $dep!=$empty
  47.       $dep
  48.     !else
  49.      $
  50.   !endif
  51.    </td>
  52.    <td>$com</td>
  53.    <td>$feed</td>
  54.   !if $activetest>=0
  55.     <td>
  56.     !set wims_ref_class=wims_button
  57.     !href cmd=reply&job=prep_modify&modif=$i $(seriesaction[1])
  58.     !if $activetest=0
  59.       $
  60.       !set wims_ref_class=wims_button wims_warning
  61.       !href cmd=reply&job=delete&delete=$i#list $(seriesaction[2])
  62.      !if $i>1
  63.         $
  64.         !set wims_ref_class=wims_button wims_button_move
  65.         !href cmd=reply&job=moveup&moveup=$i#td_exo_$[$i-1] $(seriesaction[3])
  66.      !endif
  67.       !if $i<$exocnt
  68.         $
  69.         !set wims_ref_class=wims_button wims_button_move
  70.         !href cmd=reply&job=movedown&movedown=$i#td_exo_$[$i+1] $(seriesaction[4])
  71.      !endif
  72.     !endif
  73.   </td>
  74.   !endif
  75.   </tr>
  76. !next i
  77. </tbody>
  78. $table_end
  79.