Subversion Repositories wimsdev

Rev

Rev 539 | Rev 6149 | 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.  <p>
  10.  !endif
  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.  
  19. !set gotm=!item 1 to 20 of $gotm
  20. !if .. isin $gotm
  21.  !reset gotm
  22. !endif
  23.  
  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.  
  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%" BORDER=0 CELLSPACING=0 CELLPADDING=3 BGCOLOR="$op_color">
  84. <TR>$content
  85. </TD></TR></TABLE></FORM>
  86. !reset op_module, op_color, op_size, op_precision
  87. !next s
  88.  
  89. !if noremark notwordof $wims_read_parm
  90. <p><small><b>Remark.</b>
  91. All the above forms are independent from the Wims server
  92. and from each other. So that they will also work within your own web pages
  93. (but only online). You can save this page, open its source, and copy the forms
  94. you want into your own page, possibly with modifications.
  95. </small>
  96. !endif
  97. <p>
  98.  
  99.