Rev 16809 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
14872 | bpr | 1 | !default search_lang=$lang |
539 | bpr | 2 | !if $gotcnt=0 |
12506 | bpr | 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> |
||
539 | bpr | 17 | !exit |
18 | !endif |
||
14872 | bpr | 19 | !set gotm=!lines2items $gotm |
20 | !set gotm=!item 1 to 20 of $gotm |
||
21 | !if .. isin $gotm |
||
12506 | bpr | 22 | !reset gotm |
539 | bpr | 23 | !endif |
14872 | bpr | 24 | !for s in $gotm |
12506 | bpr | 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_ |
||
14347 | bpr | 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 |
||
14872 | bpr | 42 | !distribute items $ol into n_,v_,w_ |
14347 | bpr | 43 | !set n_=!word 1 of $n_ |
14872 | bpr | 44 | !if $n_!=$empty and $w_$v_!=$empty |
14347 | bpr | 45 | !set op_$n_=$v_ |
14872 | bpr | 46 | !if $w_!= |
47 | !set op_$n_=$(op_n_),$w_ |
||
48 | !endif |
||
14347 | bpr | 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 |
||
12506 | bpr | 57 | !set sl=!line $su of $submits |
14872 | bpr | 58 | !distribute items $sl into n_,v_,w_ |
12506 | bpr | 59 | !set n_=!word 1 of $n_ |
60 | !if $v_!=$empty |
||
61 | !if $n_!=$empty |
||
14872 | bpr | 62 | !set N_=name="$n_" |
12506 | bpr | 63 | !else |
64 | !reset N_ |
||
65 | !endif |
||
17176 | bpr | 66 | !set submit$su=<input type="submit" value="$v_" $jsdef> |
14872 | bpr | 67 | !if $w_!=$empty |
68 | !set submit$su=$(submit$su)\ |
||
17176 | bpr | 69 | <input type="hidden" $N_ value="$v_,$w_"> |
14872 | bpr | 70 | !endif |
12506 | bpr | 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"> |
||
14872 | bpr | 80 | <div style="background-color:$op_color;padding:10pt; |
81 | border-collapse:collapse; border:1px solid gray;margin:10px;width:90%"> |
||
17176 | bpr | 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"> |
||
12506 | bpr | 85 | !for o in $oplist |
17176 | bpr | 86 | <input type="hidden" name="$o" value="$(op_$o)"> |
12506 | bpr | 87 | !next o |
14872 | bpr | 88 | $content |
89 | </div></form> |
||
12506 | bpr | 90 | !reset op_module, op_color, op_size, op_precision |
539 | bpr | 91 | !next s |
14872 | bpr | 92 | <!-- End of Independent calculator form --> |
539 | bpr | 93 | |
94 | !if noremark notwordof $wims_read_parm |
||
16809 | czzmrn | 95 | <span class="wims_warning">Remark.</span> |
12506 | bpr | 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. |
||
2881 | bpr | 100 | !endif |