Subversion Repositories wimsdev

Rev

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

  1. !default search_lang=$lang
  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 gotm=!lines2items $gotm
  20. !set gotm=!item 1 to 20 of $gotm
  21. !if .. isin $gotm
  22.   !reset gotm
  23. !endif
  24. !for s in $gotm
  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.   !set ops=!record 2 of $formdir/$s.def
  35.   !set submits=!record 3 of $formdir/$s.def
  36.   !set content=!record 4 of $formdir/$s.def
  37.   !set ops=!nonempty lines $ops
  38.   !set ocnt=!linecnt $ops
  39.   !reset oplist
  40.   !for op=1 to $ocnt
  41.     !set ol=!line $op of $ops
  42.     !distribute items $ol into n_,v_,w_
  43.     !set n_=!word 1 of $n_
  44.     !if $n_!=$empty and $w_$v_!=$empty
  45.       !set op_$n_=$v_
  46.       !if $w_!=
  47.         !set op_$n_=$(op_n_),$w_
  48.       !endif
  49.       !set oplist=!append item $n_ to $oplist
  50.     !endif
  51.   !next op
  52.   !set oplist=!listcomplement module,size,color,precision in $oplist
  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_,w_
  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" value="$v_" $jsdef>
  67.      !if $w_!=$empty
  68.        !set submit$su=$(submit$su)\
  69.        <input type="hidden" $N_ value="$v_,$w_">
  70.      !endif
  71.    !endif
  72.  !next su
  73.  !default op_size=$default_size
  74.  !default op_module=$default_module
  75.  !default op_color=$default_color
  76.  !default op_precision=$default_precision
  77.  !set content=!nonempty lines $content
  78.  <!--     Independent calculator form: $s     -->
  79.  <form target="$winname" name="calcform" action="$wims_ref_name">
  80.  <div style="background-color:$op_color;padding:10pt;
  81.   border-collapse:collapse; border:1px solid gray;margin:10px;width:90%">
  82.  <input type="hidden" name="session" value="popup"> $sizeinput
  83.  <input type="hidden" name="module" value="$op_module">
  84.  <input type="hidden" name="precision" value="$op_precision">
  85.  !for o in $oplist
  86.    <input type="hidden" name="$o" value="$(op_$o)">
  87.  !next o
  88.   $content
  89.  </div></form>
  90.  !reset op_module, op_color, op_size, op_precision
  91. !next s
  92. <!--     End of Independent calculator form     -->
  93.  
  94. !if noremark notwordof $wims_read_parm
  95.  <span class="wims_warning">Remark.</span>
  96.  All the above forms are independent from the Wims server
  97.  and from each other. So that they will also work within your own web pages
  98.  (but only online). You can save this page, open its source, and copy the forms
  99.  you want into your own page, possibly with modifications.
  100. !endif
  101.