Subversion Repositories wimsdev

Rev

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

  1. !!!### language independant
  2. !!
  3. !! Tableau d'information générale de la feuille d'examen
  4. !if $activetest>0
  5.   !set readonly=disabled="disabled"
  6. !else
  7.   !set readonly=
  8. !endif
  9. !form reply
  10.   <input type="hidden" name="job" value="text">
  11.  
  12.   <fieldset class="property_fields blockcenter">
  13.  
  14.     <legend>$name_info
  15.       !if $jquery_defined!=yes and $exam<=$scnt
  16.         [
  17.         !href cmd=resume&infoshow=no $wims_name_hide
  18.         ]
  19.       !endif
  20.     </legend>
  21.  
  22.     !!Title
  23.     <div class="field box fullwidth">
  24.       <label for="title">$(name_shinfo[1])</label>
  25.       <input size="65" name="title" id="title" value="$title" required="required">
  26.       <div class="formHelp">$name_desc_title</div>
  27.     </div>
  28.  
  29.     !!Status
  30.     !if $activetest>-1
  31.       <div class="field box">
  32.         <strong>$(name_shinfo[2])</strong> &nbsp;
  33.         <span class="wims_status wims_status_$activetest">$(wims_name_exstatus[$activetest+1])</span>
  34.         !read adm/sheet/sheetaction.phtml exam,$exam,$activetest,0
  35.       </div>
  36.     !endif
  37.  
  38.     !!Description
  39.     <div class="field box fullwidth">
  40.       <label for="desc">$(name_shinfo[3])</label>
  41.       <div class="formHelp">$name_desc_desc</div>
  42.       <textarea id="desc" class="iEdit" rows="6" cols="65" name="desc">$desc</textarea>
  43.     </div>
  44.  
  45.     !!Comments
  46.     <div class="field box fullwidth">
  47.       <label for="comment">$(name_shinfo[8])</label>
  48.       <div class="formHelp">$name_desc_comment</div>
  49.       <textarea id="comment" class="iEdit" rows="6" cols="65" name="comment">$comment</textarea>
  50.     </div>
  51.  
  52.     !!Score weight
  53.       <div class="field box fullwidth">
  54.      <label for="weight">$(name_shinfo[11])</label>
  55.      !default weight=$df_weight
  56.      <input type="number" min="$min_weight" max="$max_weight" step="any" size="5" name="weight" value="$weight">
  57.      !set wims_ref_class=wims_button_help float_right
  58.      !href target=wims_mhelp cmd=help&special_parm=weight $wims_name_help
  59.     </div>
  60.     !!Expiration Date
  61.     <div class="field box halfwidth">
  62.         <label for="expdate">$(name_shinfo[4])</label>
  63.         !read adm/datepickerform.phtml $expdate\
  64. expdate\
  65. "$class_creation","$class_expiration"
  66.       <div class="formHelp">$name_desc_expday</div>
  67.     </div>
  68.  
  69.     !!Duration
  70.     <div class="field box halfwidth">
  71.       <label for="duration">$(name_shinfo[9])</label>
  72.       !set wims_ref_class=wims_button_help float_right
  73.       !href target=wims_mhelp cmd=help&special_parm=session $wims_name_help
  74.       !default duration=$duration_default
  75.       <input class="inline" type="number" min="$duration_min" max="$duration_max" size="5" name="duration" id="duration" value="$duration" style="text-align:right;" $readonly> <span class="units">$name_units_duration</span>
  76.       <div class="formHelp">$name_desc_duration</div>
  77.     </div>
  78.  
  79.     !! Tries
  80.     <div class="field box halfwidth">
  81.       <label for="tries">$(name_shinfo[10])</label>
  82.       !set wims_ref_class=wims_button_help float_right
  83.       !href target=wims_mhelp cmd=help&special_parm=session $wims_name_help
  84.       !default stries=$tries_default
  85.       <input type="number" min="$tries_min" max="$tries_max" size="5" name="tries" id="tries" value="$stries" $readonly>
  86.       <div class="formHelp">$name_desc_tries</div>
  87.     </div>
  88.  
  89.     !if $activetest>=0
  90.       !!Allow Type
  91.       !!Cut Hours
  92.       <div class="field box halfwidth">
  93.         <label for="cutt">$name_shinfo_cutt</label>
  94.         !set wims_ref_class=wims_button_help float_right
  95.         !href target=wims_mhelp cmd=help&special_parm=cutt $wims_name_help
  96.         <input name="cutt" id="cutt" value="$cutt" placeholder="20171005.10:00">
  97.       </div>
  98.       !if $tv_listallname!=$empty or $hidden_condition!=$empty
  99.         <div class="field box">
  100.           <label for="hidden_condition">$(name_shinfo[15])</label>
  101.           !set wims_ref_class=wims_button_help float_right
  102.           !href target=wims_mhelp cmd=help&special_parm=filter $wims_name_help
  103.           <textarea name="hidden_condition" cols="20" rows="3">$hidden_condition</textarea>
  104.         </div>
  105.       !endif
  106.       <div class="field box halfwidth">
  107.         !if $activetest=0
  108.           <label for="mode">$(name_shinfo[16])</label>
  109.           !formselect mode list 0,1 prompt $name_exammode_list
  110.         !else
  111.           <strong>$(name_shinfo[16])</strong> $(name_exammode_list[$mode+1])
  112.         !endif
  113.         !set wims_ref_class=wims_button_help float_right
  114.         !href target=wims_mhelp cmd=help&special_parm=exammode $wims_name_help
  115.         !if $exam_mode=1
  116.           <div>
  117.           <label for="minscore">$(name_shinfo[17])</label>
  118.           <input type="number" min="$minscore_min" max="$minscore_max" step="any" size="5" name="minscore" value="$minscore" $readonly>
  119.           </div>
  120.         !endif
  121.       </div>
  122.       <div class="field box">
  123.         <input type="hidden" name="allow" value="yes">
  124.         <label for="allowtype">$(name_shinfo[6])</label>
  125.         !set wims_ref_class=wims_button_help float_right
  126.         !href target=wims_mhelp cmd=help&special_parm=allowtype $wims_name_help
  127.         <br class="clearall">
  128.         <select id="
  129.        " name="allowtype"
  130.                 onchange="toggle_allowtype(this,{'select': '#js_restricted_time','techvar': '#js_restricted_techvar'})"
  131.           >
  132.           !if $tv_listname=$empty
  133.             !set list_allowtype=all,simulation,none,select
  134.           !else
  135.             !set list_allowtype=all,simulation,none,select,techvar
  136.           !endif
  137.           !let nboption=!itemcnt $list_allowtype
  138.           !for i=1 to $nboption
  139.             !if $(list_allowtype[$i])=$allowtype
  140.               <option value="$(list_allowtype[$i])" selected="selected">$(name_allowtype[$i])</option>
  141.             !else
  142.               <option value="$(list_allowtype[$i])">$(name_allowtype[$i])</option>
  143.             !endif
  144.           !next i
  145.         </select>
  146.  
  147.         <div id="js_restricted_time"
  148.           !if $allowtype=select
  149.             style="display:block"
  150.           !else
  151.             style="display:none"
  152.           !endif
  153.           >
  154.           !read adm/scorerestriction html
  155.         </div>
  156.  
  157.         !if $tv_listname!=$empty
  158.           !! Since the allowtype selectbox not works yet well without
  159.           !! reloading the page, it reloads the page when "techvars" are selected */
  160.           !if $allowtype=techvar
  161.             <div id="js_restricted_techvar">
  162.               !read adm/vfilter/scoreregform.phtml
  163.             </div>
  164.           !endif
  165.         !endif
  166.         <script src="scripts/js/interface/ui_utils.js"></script>
  167.         !default allowshare=0
  168.  
  169.         !if $sharers!=$empty
  170.           ( $(name_shinfo[7])
  171.           !formselect allowshare list 0,1 prompt $wims_name_no,$wims_name_yes
  172.           )
  173.         !else
  174.           <input type="hidden" name="allowshare" value="0">
  175.         !endif
  176.       </div>
  177.     !endif
  178.   </fieldset>
  179.  
  180.   <div class="wimscenter wimsform">
  181.     !ifval $activetest=-1
  182.       <input type="submit" name="save" value="$name_mkexam">
  183.     !else
  184.       <input type="submit" name="save" value="$wims_name_tosave">
  185.     !endif
  186.     !set wims_ref_class= wims_button wims_secondary_button
  187.     !href module=home $wims_name_giveup
  188.   </div>
  189.  
  190. !formend
  191.