Subversion Repositories wimsdev

Rev

Rev 2800 | Rev 16809 | 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 <em><font color=red>
  8.   $search</font></em>.
  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.  !exit
  17. !endif
  18. !set gotm1=!lines2items $gotm
  19. !set gotm1=!item 1 to 20 of $gotm1
  20. !if .. isin $gotm1
  21.  !reset gotm
  22. !endif
  23. !for s in $gotm1
  24.  !set vars=!record 5 of $formdir/$s.def
  25.  !set vars=!nonempty lines $vars
  26.  !if $vars!=$empty
  27.   !set n_=!linecnt $vars
  28.   !for i=1 to $n_
  29.    !set l_=!line $i of $vars
  30.    !set var_$i=!randitem $l_
  31.   !next i
  32.  !endif
  33.  
  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.  
  38.  !set ops=!nonempty lines $ops
  39.  !set ocnt=!linecnt $ops
  40.  !reset oplist
  41.  !for op=1 to $ocnt
  42.   !set ol=!line $op of $ops
  43.   !distribute items $ol into n_,v_
  44.   !set n_=!word 1 of $n_
  45.   !if $n_!=$empty and $v_!=$empty
  46.    !set op_$n_=$v_
  47.    !set oplist=!append item $n_ to $oplist
  48.   !endif
  49.  !next op
  50.  !set oplist=!listcomplement module,size,color,precision in $oplist
  51.  
  52.  !set submits=!translate internal " to $ $ in $submits
  53. !set submits=!nonempty lines $submits
  54. !set scnt=!linecnt $submits
  55. !for su=1 to $scnt
  56.  !set sl=!line $su of $submits
  57.  !distribute items $sl into n_,v_
  58.  !set n_=!word 1 of $n_
  59.  !if $v_!=$empty
  60.   !if $n_!=$empty
  61.    !set N_=NAME=$n_
  62.   !else
  63.    !reset N_
  64.   !endif
  65.   !set submit$su=<INPUT TYPE=SUBMIT $N_ VALUE="$v_" $jsdef>
  66.  !endif
  67. !next su
  68.  
  69. !default op_size=$default_size
  70. !default op_module=$default_module
  71. !default op_color=$default_color
  72. !default op_precision=$default_precision
  73. !set content=!nonempty lines $content
  74. <!--     Independent calculator form: $s     -->
  75. <FORM TARGET=$winname NAME=calcform ACTION="$wims_ref_name">
  76. <INPUT TYPE=HIDDEN NAME=session VALUE=popup> $sizeinput
  77. <INPUT TYPE=HIDDEN NAME=module VALUE=$op_module>
  78. <INPUT TYPE=HIDDEN NAME=precision VALUE=$op_precision>
  79. !for o in $oplist
  80. <INPUT TYPE=HIDDEN NAME=$o VALUE="$(op_$o)">
  81. !next o
  82. <TABLE WIDTH="90%" BORDER=0 CELLSPACING=0 CELLPADDING=3 BGCOLOR="$op_color">
  83. <TR>$content
  84. </TD></TR></TABLE></FORM>
  85. !reset op_module, op_color, op_size, op_precision
  86. !next s
  87.  
  88. !if noremark notwordof $wims_read_parm
  89. <p><small><b>Remark.</b>
  90. All the above forms are independent from the Wims server
  91. and from each other. So that they will also work within your own web pages
  92. (but only online). You can save this page, open its source, and copy the forms
  93. you want into your own page, possibly with modifications.
  94. </small>
  95. !endif
  96. <p>
  97.  
  98.