Subversion Repositories wimsdev

Rev

Rev 11928 | Rev 12988 | 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.      $(wims_name_shstatus[$activetest+1])
  34.       !read adm/sheet/sheetaction.phtml exam,$exam,$activetest,0
  35.     </div>
  36.   !endif
  37.   !!Description
  38.   <div class="field box fullwidth">
  39.    <label for="desc">$(name_shinfo[3])</label>
  40.    <div class="formHelp">$name_desc_desc</div>
  41.    <textarea id="desc" class="iEdit" rows="6" cols="65" name="desc">$desc</textarea>
  42.   </div>
  43.  
  44.   !!Comments
  45.   <div class="field box fullwidth">
  46.    <label for="comment">$(name_shinfo[8])</label>
  47.    <div class="formHelp">$name_desc_comment</div>
  48.    <textarea id="comment" class="iEdit" rows="6" cols="65" name="comment">$comment</textarea>
  49.   </div>
  50.   !! score weight
  51.   <div class="field box fullwidth">
  52.         <label for="weight">$(name_shinfo[11])</label>
  53.         <input type="number" min="$min_weight" max="$max_weight" step="any" size="5" name="weight" value="$weight" />
  54.   </div>
  55.  
  56.   !!Expiration Date
  57.   <div class="field box halfwidth">
  58.         !if $jquery_defined!=yes
  59.             <label for="expday">$(name_shinfo[4])</label>
  60.                 !distribute item $[$expday],$[$expmon] into expday,expmon
  61.                 !formselect expday from 1 to 31
  62.                 !formselect expmon from 1 to 12 prompt $months
  63.                 !formselect expyear from $thisyear to $thisyear+1
  64.         !else
  65.            <label for="expdate">$(name_shinfo[4])</label>
  66.                 !default expdate=$(expyear)$(expmon)$(expday)
  67.                 !read adm/datepickerform.phtml $expdate\
  68. expdate\
  69. "$class_creation","$class_expiration"
  70.         !endif
  71.   <div class="formHelp">$name_desc_expday</div>
  72.   </div>
  73.   !!Duration
  74.   <div class="field box halfwidth">
  75.        <label for="duration">$(name_shinfo[9])</label>
  76.        !set wims_ref_class=wims_button_help float_right
  77.        !href target=wims_mhelp cmd=help&special_parm=session $wims_name_help
  78.        <input 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>
  79.        <div class="formHelp">$name_desc_duration</div>
  80.   </div>
  81.  
  82.   !! Tries
  83.   <div class="field box halfwidth">
  84.        <label for="tries">$(name_shinfo[10])</label>
  85.         !set wims_ref_class=wims_button_help float_right
  86.        !href target=wims_mhelp cmd=help&special_parm=session $wims_name_help
  87.        <input type="number" min="$tries_min" max="$tries_max" size="5" name="tries" id="tries" value="$stries" $readonly/>
  88.        <div class="formHelp">$name_desc_tries</div>
  89.   </div>
  90.  
  91.   !if $activetest>=0
  92.     !!Allow Type
  93.     !!Cut Hours
  94.     <div class="field box halfwidth">
  95.       <label for="cutt">$name_shinfo_cutt</label>
  96.       !set wims_ref_class=wims_button_help float_right
  97.        !href target=wims_mhelp cmd=help&special_parm=cutt $wims_name_help
  98.       <input name="cutt" id="cutt" value="$cutt" placeholder="20171005.10:00"/>
  99.     </div>
  100.  
  101.     <div class="field box">
  102.      <input type="hidden" name="allow" value="yes" />
  103.      <label for="allowtype">$(name_shinfo[6])</label>
  104.       !set wims_ref_class=wims_button_help float_right
  105.       !href target=wims_mhelp cmd=help&special_parm=allowtype $wims_name_help
  106.      <br class="clearall" />
  107.      <select id="allowtype" name="allowtype" onchange="submit()">
  108.         !if $tv_listname=$empty
  109.             !set list_allowtype=all,simulation,none,select
  110.         !else
  111.             !set list_allowtype=all,simulation,none,select,techvar
  112.         !endif
  113.         !let nboption=!itemcnt $list_allowtype
  114.         !for i=1 to $nboption
  115.          !if $(list_allowtype[$i])=$allowtype
  116.           <option value="$(list_allowtype[$i])" selected="selected">$(name_allowtype[$i])</option>
  117.          !else
  118.           <option value="$(list_allowtype[$i])">$(name_allowtype[$i])</option>
  119.          !endif
  120.         !next i
  121.      </select>
  122.      !if $allowtype=select
  123.             !read adm/scorerestriction html
  124.      !endif
  125.      !if $allowtype=techvar
  126.         !read adm/vfilter/scoreregform.phtml
  127.      !endif
  128.  
  129.      !default allowshare=0
  130.  
  131.      !if $sharers!=$empty
  132.       ( $(name_shinfo[7])
  133.       !formselect allowshare list 0,1 prompt $wims_name_no,$wims_name_yes
  134.       )
  135.      !else
  136.       <input type="hidden" name="allowshare" value="0" />
  137.      !endif
  138.     </div>
  139.   !endif
  140.   </fieldset>
  141.  
  142.   <div class="wimscenter wimsform">
  143.     !ifval $activetest=-1
  144.      <input type="submit" name="save" value="$name_mkexam" />
  145.     !else
  146.      <input type="submit" name="save" value="$wims_name_tosave" />
  147.     !endif
  148.   </div>
  149.  
  150. !formend
  151.