Subversion Repositories wimsdev

Rev

Rev 16006 | Rev 17335 | Go to most recent revision | 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_shstatus[$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.  
  61.     !!Expiration Date
  62.     <div class="field box halfwidth">
  63.         <label for="expdate">$(name_shinfo[4])</label>
  64.         !read adm/datepickerform.phtml $expdate\
  65. expdate\
  66. "$class_creation","$class_expiration"
  67.       <div class="formHelp">$name_desc_expday</div>
  68.     </div>
  69.  
  70.     !!Duration
  71.     <div class="field box halfwidth">
  72.       <label for="duration">$(name_shinfo[9])</label>
  73.       !set wims_ref_class=wims_button_help float_right
  74.       !href target=wims_mhelp cmd=help&special_parm=session $wims_name_help
  75.       !default duration=$duration_default
  76.       <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>
  77.       <div class="formHelp">$name_desc_duration</div>
  78.     </div>
  79.  
  80.     !! Tries
  81.     <div class="field box halfwidth">
  82.       <label for="tries">$(name_shinfo[10])</label>
  83.       !set wims_ref_class=wims_button_help float_right
  84.       !href target=wims_mhelp cmd=help&special_parm=session $wims_name_help
  85.       !default stries=$tries_default
  86.       <input type="number" min="$tries_min" max="$tries_max" size="5" name="tries" id="tries" value="$stries" $readonly/>
  87.       <div class="formHelp">$name_desc_tries</div>
  88.     </div>
  89.  
  90.     !if $activetest>=0
  91.       !!Allow Type
  92.       !!Cut Hours
  93.       <div class="field box halfwidth">
  94.         <label for="cutt">$name_shinfo_cutt</label>
  95.         !set wims_ref_class=wims_button_help float_right
  96.         !href target=wims_mhelp cmd=help&special_parm=cutt $wims_name_help
  97.         <input name="cutt" id="cutt" value="$cutt" placeholder="20171005.10:00"/>
  98.       </div>
  99.       !if $tv_listallname!=$empty
  100.         <div class="field box">
  101.           <label for="hidden_condition">$(name_shinfo[15])</label>
  102.           !set wims_ref_class=wims_button_help float_right
  103.           !href target=wims_mhelp cmd=help&special_parm=filter $wims_name_help
  104.           <textarea name="hidden_condition" cols="20" rows="3">$hidden_condition</textarea>
  105.         </div>
  106.       !endif
  107.       <div class="field box">
  108.         <input type="hidden" name="allow" value="yes" />
  109.         <label for="allowtype">$(name_shinfo[6])</label>
  110.         !set wims_ref_class=wims_button_help float_right
  111.         !href target=wims_mhelp cmd=help&special_parm=allowtype $wims_name_help
  112.         <br class="clearall" />
  113.         <select id="allowtype" name="allowtype"
  114.                 onchange="toggle_allowtype(this,{'select': '#js_restricted_time','techvar': '#js_restricted_techvar'})"
  115.           >
  116.           !if $tv_listname=$empty
  117.             !set list_allowtype=all,simulation,none,select
  118.           !else
  119.             !set list_allowtype=all,simulation,none,select,techvar
  120.           !endif
  121.           !let nboption=!itemcnt $list_allowtype
  122.           !for i=1 to $nboption
  123.             !if $(list_allowtype[$i])=$allowtype
  124.               <option value="$(list_allowtype[$i])" selected="selected">$(name_allowtype[$i])</option>
  125.             !else
  126.               <option value="$(list_allowtype[$i])">$(name_allowtype[$i])</option>
  127.             !endif
  128.           !next i
  129.         </select>
  130.  
  131.         <div id="js_restricted_time"
  132.           !if $allowtype=select
  133.             style="display:block"
  134.           !else
  135.             style="display:none"
  136.           !endif
  137.           >
  138.           !read adm/scorerestriction html
  139.         </div>
  140.  
  141.         <div id="js_restricted_techvar"
  142.           !if $allowtype=techvar
  143.             style="display:block"
  144.           !else
  145.             style="display:none"
  146.           !endif
  147.           >
  148.           !read adm/vfilter/scoreregform.phtml
  149.         </div>
  150.         !read js/interface/ui_utils.js.phtml
  151.         !default allowshare=0
  152.  
  153.         !if $sharers!=$empty
  154.           ( $(name_shinfo[7])
  155.           !formselect allowshare list 0,1 prompt $wims_name_no,$wims_name_yes
  156.           )
  157.         !else
  158.           <input type="hidden" name="allowshare" value="0" />
  159.         !endif
  160.       </div>
  161.     !endif
  162.   </fieldset>
  163.  
  164.   <div class="wimscenter wimsform">
  165.     !ifval $activetest=-1
  166.       <input type="submit" name="save" value="$name_mkexam" />
  167.     !else
  168.       <input type="submit" name="save" value="$wims_name_tosave" />
  169.     !endif
  170.     !set wims_ref_class= wims_button wims_secondary_button
  171.     !href module=home $wims_name_giveup
  172.   </div>
  173.  
  174. !formend
  175.