Subversion Repositories wimsdev

Rev

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

  1. !! Modify informations on the exercises in a sheet
  2. !!
  3. !distribute lines $wims_read_parm into directory_,parm_,require_,weight_,title_,desc_,dep_,comment_,feedback_,attribut_
  4. !! !set orgtit_=!module title $directory_
  5. !set wims_form_method=post
  6. !form reply
  7. !reset table_center
  8. <input type="hidden" name="modif" value="$ex_" />
  9. <input type="hidden" name="job" value="modify" />
  10. <fieldset class="property_fields blockcenter">
  11.   <legend>$wims_name_properties</legend>
  12.   <div class="field box">
  13. !! if the sheet is active, the fields that may be changed are
  14. !! title, description, comment, feedback, attribut
  15.     <label for="mod_title">$wims_name_title</label>
  16. !!($name_oldtitle <em>$orgtit</em>)
  17.     <input size="50" name="mod_title" id="mod_title" value="$title_" />
  18.   </div>
  19.   <div class="field box fullwidth">
  20.     <label for="mod_desc">$wims_name_Description</label>
  21.     <textarea name="mod_desc" id="mod_desc" class="iEdit" maxlength="$edesc_limit">$desc_</textarea>
  22.     <div class="formHelp">(&lt; $edesc_limit)</div>
  23.   </div>
  24.   <div class="field box">
  25.     !read adm/class/attribut.phtml
  26.   </div>
  27.   <div class="field box fullwidth">
  28.     <label for="mod_comment">$(name_shtab[7])</label>
  29.     <textarea name="mod_comment" id="mod_comment" class="iEdit" maxlength="$edesc_limit">$comment_</textarea>
  30.     <div class="formHelp">$name_desc_comment (&lt; $edesc_limit)</div>
  31.   </div>
  32. !if $activetest <= 0
  33.   <div class="field box">
  34.     <label for="mod_require">$name_pointsasked</label>
  35.     <select name="mod_require" id="mod_require">
  36.   !for i=0 to $require_limit
  37.     !if $i=$[$require_/10]
  38.       <option value="$[10*$i]" selected="selected">$[10*$i]</option>
  39.     !else
  40.       <option value="$[10*$i]">$[10*$i]</option>
  41.     !endif
  42.   !next
  43.   </select>
  44.   </div>
  45.   !set mod_exotrymax=$get_exotrymax
  46.   <div class="field box">
  47.     <label for="exotrymax">$name_exotrymax</label>
  48.     <input size="2" maxlength="2" name="mod_exotrymax" value="$mod_exotrymax" id="exotrymax" />
  49.   !set wims_ref_class=wims_button_help float_right
  50.   !href target=wims_mhelp cmd=help&special_parm=exotrymax $wims_name_help
  51.       </div>
  52.       <div class="field box">
  53.         <label for="mod_weight">$name_weight</label>
  54.         <input size="4" name="mod_weight" id="mod_weight" value="$weight_" />
  55.   !set wims_ref_class=wims_button_help float_right
  56.   !href target=wims_mhelp cmd=help&special_parm=weightexo $wims_name_help
  57.       </div>
  58.       <div class="field box">
  59.         <label for="mod_dep">$(name_shtab[6])</label>
  60.         <input size="40" name="mod_dep" id="mod_dep" value="$dep_" />
  61.   !set wims_ref_class=wims_button_help float_right
  62.   !href target=wims_mhelp cmd=help&special_parm=dependancies $wims_name_help
  63.   !reset mod_dep
  64.       </div>
  65. !endif
  66. <div class="field box">
  67.   <label for="mod_feedback">$(name_shtab[10])</label>
  68.   <textarea name="mod_feedback" id="mod_feedback" rows="1" cols="60" class="nowrap">$feedback_</textarea>
  69. !set wims_ref_class=wims_button_help float_right
  70. !href target=wims_mhelp cmd=help&special_parm=feedback $wims_name_help
  71. </div>
  72. !if $activetest <= 0
  73.   !let oef=!defof category in wimshome/public_html/modules/$directory_/INDEX
  74.   !default oef=!defof category in wimshome/public_html/modules/$directory_/index
  75.   !if oef isitemof $oef
  76.     <div class="field box">
  77.     <strong>$(name_shtab[9])</strong>
  78.     !set parm__=$parm_
  79.     !let parm_=!replace internal & by ; in $parm_;
  80.     !let parm_=!replace internal scoredelay=; by scoredelay=0; in $parm_
  81.     !let parm_=!replace internal exo=; by exo=0; in $parm_
  82.     !let tmp_=!replace internal = by , in $parm_
  83.     !let tmp2_=!column 1 of $tmp_
  84.     !let tmp2_=!positionof item exo in $tmp2_
  85.     !let tmp_=!column 2 of $tmp_
  86.     !let tmp_=!item $tmp2_ of $tmp_
  87.     !let tmp_=!nospace $tmp_
  88.     !set wims_ref_class=wims_button float_right
  89.     !href cmd=intro&module=$directory_&special_parm=&special_parm2=&special_parm3=exo=$tmp_;$parm_&special_parm4=$sheet,$modif $(seriesaction[1])
  90.     <pre>$directory_
  91. $parm_</pre>
  92.         </div>
  93.         <div class="field box">
  94.     !read getparm $parm__ exo qnum random
  95.     !set exocnt_=!itemcnt $get_exo
  96.         </div>
  97.  
  98.     !if $get_qnum=$exocnt_ and $get_random=0 and $get_qnum>1
  99.       <div class="field box">
  100.       !set wims_ref_class=wims_button_help float_right
  101.       !href target=wims_mhelp cmd=help&special_parm=series $wims_name_help
  102.  
  103.         <table class="wimstable">
  104.           <caption>$name_order</caption>
  105.       !for ex = 1 to $exocnt_
  106.         !! ne fonctionne pas dans une classe
  107.         !set tt_ex=!lookup $(get_exo[$ex]) in wimshome/public_html/modules/$directory_/Extitles
  108.         !default tt_ex= $(get_exo[$ex])
  109.         <tr>
  110.           <td><label for="update_ex$ex">$tt_ex</label></td>
  111.           <td><input name="update_ex$ex" id="update_ex$ex" size="5" value="$ex" type="number" /></td>
  112.         </tr>
  113.       !next
  114.         </table>
  115.           </div>
  116.     !endif
  117.   !endif
  118. !endif activetest = 0
  119.   </fieldset>
  120.  
  121.   <div class="wimscenter wimsform">
  122.     <input type="submit" value="$wims_name_tosave" /> &nbsp;
  123. !set wims_ref_class=wims_button wims_secondary_button
  124. !href cmd=resume $wims_name_giveup
  125.   </div>
  126. !formend
  127.