Subversion Repositories wimsdev

Rev

Rev 14268 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !! Display a table for modifying exo order in a serie.
  2. !! (used in adm/class/sheet/exomodify and adm/class/addmodule/exo)
  3.  
  4. !if $get_qnum=$exocnt_ and $get_random=0 and $get_qnum>1
  5.  
  6. <div class="field box fullwidth">
  7.  !set wims_ref_class=wims_button_help float_right
  8.  !href target=wims_mhelp cmd=help&special_parm=series $wims_name_help
  9.  <table class="wimstable">
  10.   <caption>$name_exo_order</caption>
  11.   <thead>
  12.     <tr>
  13.       <th>$wims_name_title</th><th>$wims_name_Position</th>
  14.     </tr>
  15.   </thead>
  16.   <tbody>
  17.   !for ex = 1 to $exocnt_
  18.     <tr><td data-id="$(get_exo[$ex])">
  19.       !if __classes/ isin __$dir
  20.         !set tt_ex=!lookup $(get_exo[$ex]) in wimshome/log/classes/$wims_class/Extitles
  21.       !else
  22.         !set tt_ex=!lookup $(get_exo[$ex]) in wimshome/public_html/modules/$dir/Extitles
  23.       !endif
  24.       !default tt_ex=$(get_exo[$ex])
  25.       <label for="update_ex$ex">$tt_ex</label>
  26.     </td><td>
  27.       <input name="update_ex$ex" id="update_ex$ex" size="5" value="$ex" type="number">
  28.     </td></tr>
  29.   !next
  30.   </tbody>
  31.  </table>
  32. </div>
  33.  
  34. !endif
  35.