Subversion Repositories wimsdev

Rev

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

  1.  
  2. !if $gotcnt=0
  3.   !if $srch=$empty
  4.     !exit
  5.   !endif
  6.   !if $module!=home
  7.     Sorry, nothing has been found for <span class="wims_emph">
  8.     $search</span>.
  9.   !endif
  10.   <p>
  11.   This database of popup calculator forms
  12.   is still in its preliminary status. The server has
  13.   registered your failed request, so that the authors will see what people
  14.   are asking for, and add things according to the demand. Thanks for your
  15.   patience.
  16.   </p>
  17.   !exit
  18. !endif
  19. !set gotm1=!lines2items $gotm
  20. !set gotm1=!item 1 to 20 of $gotm1
  21. !if .. isin $gotm1
  22.   !reset gotm
  23. !endif
  24. !for s in $gotm1
  25.   !set vars=!record 5 of $formdir/$s.def
  26.   !set vars=!nonempty lines $vars
  27.   !if $vars!=$empty
  28.     !set n_=!linecnt $vars
  29.     !for i=1 to $n_
  30.       !set l_=!line $i of $vars
  31.       !set var_$i=!randitem $l_
  32.    !next i
  33.  !endif
  34.  
  35.  !set ops=!record 2 of $formdir/$s.def
  36.  !set submits=!record 3 of $formdir/$s.def
  37.  !set content=!record 4 of $formdir/$s.def
  38.  
  39.  !set ops=!nonempty lines $ops
  40.  !set ocnt=!linecnt $ops
  41.  !reset oplist
  42.  !for op=1 to $ocnt
  43.   !set ol=!line $op of $ops
  44.   !distribute items $ol into n_,v_
  45.   !set n_=!word 1 of $n_
  46.   !if $n_!=$empty and $v_!=$empty
  47.    !set op_$n_=$v_
  48.    !set oplist=!append item $n_ to $oplist
  49.   !endif
  50.  !next op
  51.  !set oplist=!listcomplement module,size,color,precision in $oplist
  52.  
  53.  !set submits=!translate internal " to $ $ in $submits
  54. !set submits=!nonempty lines $submits
  55. !set scnt=!linecnt $submits
  56. !for su=1 to $scnt
  57.    !set sl=!line $su of $submits
  58.    !distribute items $sl into n_,v_
  59.    !set n_=!word 1 of $n_
  60.    !if $v_!=$empty
  61.      !if $n_!=$empty
  62.        !set N_=name=$n_
  63.      !else
  64.        !reset N_
  65.      !endif
  66.      !set submit$su=<input type="submit" $N_ value="$v_" $jsdef/>
  67.    !endif
  68.  !next su
  69.  
  70.  !default op_size=$default_size
  71.  !default op_module=$default_module
  72.  !default op_color=$default_color
  73.  !default op_precision=$default_precision
  74.  !set content=!nonempty lines $content
  75.  <!--     Independent calculator form: $s     -->
  76.  <form target="$winname" name="calcform" action="$wims_ref_name">
  77.  <input type="hidden" name="session" value="popup" /> $sizeinput
  78.  <input type="hidden" name="module" value="$op_module" />
  79.  <input type="hidden" name="precision" value="$op_precision" />
  80.  !for o in $oplist
  81.    <input type="hidden" name="$o" value="$(op_$o)" />
  82.  !next o
  83.  <table width="90%" style="background-color:$op_color;padding:10pt;
  84.          border-collapse:collapse;">
  85.  <tr>$content
  86.  </td></tr></table></form>
  87.  !reset op_module, op_color, op_size, op_precision
  88. !next s
  89.  
  90. !if noremark notwordof $wims_read_parm
  91.  <p class="small"><b>Remark.</b>
  92.  All the above forms are independent from the Wims server
  93.  and from each other. So that they will also work within your own web pages
  94.  (but only online). You can save this page, open its source, and copy the forms
  95.  you want into your own page, possibly with modifications.
  96.  </p>
  97. !endif
  98.