Subversion Repositories wimsdev

Rev

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

  1.  
  2. !goto $gstep
  3.  
  4. :1
  5. !reset table_center
  6. <fieldset class="property_fields blockcenter">
  7.   <legend>$name_create_or_edit</legend>
  8.   <div class="field box">
  9.   !if $vote_status>0
  10.      <strong>$name_namevar <span class="field_required">*</span></strong>
  11.     $namevar
  12.   !else
  13.     <label for="up_namevar">$name_namevar <span class="field_required">*</span></label>
  14.     !let up_codevar=$codevar
  15.     !formselect up_codevar list $tv_listlocalcode prompt $tv_listlocalname
  16.   !endif
  17.   <div class="formHelp">$(name_$(reg_model)_help)</div>
  18.   </div>
  19.   <div class="field box">
  20.   !if $vote_status>0
  21.     <strong>$name_textconnip</strong>
  22.     $defconnip
  23.   !else
  24.     <label for="defconnip">$name_textconnip</label>
  25.     <input size="12" name="up_defconnip" id="defconnip" value="$defconnip">
  26.   !endif
  27.     <div class="formHelp">$name_textconnip2</div>
  28.   </div>
  29. </fieldset>
  30. <input type="hidden" name="gstep" value="2">
  31.  
  32. !exit
  33. :2
  34. <p>$name_introtext ($name_introtext2)</p>
  35. !!<div class="wimscenter">
  36. <textarea class="iEdit" id="testointro" rows="10" cols="80" name="up_testointro">
  37. !replace internal \( by &#92;( in $testointro
  38. </textarea>
  39. !!</div>
  40.  
  41. <p>$name_session_select</p>
  42. !reset table_center
  43. $table_header
  44. $table_hdtr
  45.  
  46. !! needed by datemenu.phtml.$lang
  47. !default creyear=!char 1 to 4 of $class_creation
  48. !default expyear=!char 1 to 4 of $class_expiration
  49.  
  50. !if $jyear=$empty
  51.   !let jyear=!char 1 to 4 of $wims_now
  52.   !let jmonth=!char 5 to 6 of $wims_now
  53.   !let jday=!char 7 to 8 of $wims_now
  54. !endif
  55.   <th>$name_group1</th>
  56.   <th>$name_numstud</th>
  57.   <th>$name_sessiondate</th>
  58.   <th>$name_begintime</th>
  59.   <th>$name_endtime</th>
  60.   <th>$name_connip</th>
  61.   <th>$name_extra</th>
  62.  </tr>
  63. !for i=1 to $numsess
  64.   $table_tr
  65.   <td>$(listval[$i])
  66.   <td>
  67.     <input size="4" name="up_nstud$i" id="nstud$i" value="$(nstud$i)">
  68.   </td>
  69.   <td>
  70.     !if $vote_status=0
  71.       !default byear$i=!char 1 to 4 of $wims_now
  72.       !default bmonth$i=!char 5 to 6 of $wims_now
  73.       !default bday$i=!char 7 to 8 of $wims_now
  74.       !read adm/datepickerform.phtml $(byear$i)$(bmonth$i)$(bday$i)\
  75. up_bdate$i\
  76. "$class_creation","$class_expiration"
  77.     !else
  78.       !read date.phtml $(bdate$i),notime
  79.     !endif
  80.   </td>
  81.   <td>
  82.   !if $vote_status=0
  83.     <input type="time" size="5" name="up_btime$i" id="btime$i" value="$(bhour$i):$(bmin$i)">
  84.   !else
  85.     $(bhour$i):$(bmin$i)
  86.   !endif
  87.   </td>
  88.   <td>
  89.   !if $vote_status=0
  90.     <input type="time" size="5" name="up_etime$i" id="etime$i" value="$(ehour$i):$(emin$i)">
  91.   !else
  92.     $(ehour$i):$(emin$i)
  93.   !endif
  94.   </td>
  95.   <td>
  96.   !if $vote_status=0
  97.     !default up_exconnip$i=$defconnip
  98.     <input size="10" name="up_exconnip$i" id="exconnip$i" value="$(up_exconnip$i)">
  99.   !else
  100.     $(exconnip$i)
  101.   !endif
  102.   </td>
  103.   <td>
  104.    <input size="10" name="up_testoextra$i" id="testoextra$i" value="$(testoextra$i)">
  105.   </td>
  106.   </tr>
  107.  !next i
  108.  $table_end
  109.  <div class="formHelp">$name_remark_numstud</div>
  110.  <input type="hidden" name="gstep" value="3">
  111. !exit
  112.  
  113. :3
  114. $name_describesource
  115. <p>$name_yourvariable.</p>
  116. <pre>
  117. $reg_src
  118. </pre>
  119. $(name_$(reg_model)_instr)
  120. <input type="hidden" name="gstep" value="0">
  121.