Rev 12042 | Rev 13561 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5583 | bpr | 1 | |
7831 | bpr | 2 | !distribute items $sw,$sw into sw_1,sw_2 |
5583 | bpr | 3 | |
4880 | bpr | 4 | !if $sw=pari |
5583 | bpr | 5 | !set sw_1=gp |
4880 | bpr | 6 | !endif |
10954 | bpr | 7 | !if $sw iswordof draw |
5583 | bpr | 8 | !set sw_1=flydraw |
9 | !set sw_2=flydraw |
||
4880 | bpr | 10 | !endif |
5583 | bpr | 11 | !if $sw=insmath |
12 | !set sw_1=latex |
||
13 | !set sw_2=latex |
||
14 | !endif |
||
15 | !if $sw=jsxgraph |
||
16 | !set sw_1=js |
||
17 | !endif |
||
4880 | bpr | 18 | |
5583 | bpr | 19 | !! a modifier quand il y aura d'autres styles |
20 | !default sw_1=flydraw |
||
21 | |||
7631 | bpr | 22 | !if $sw=jsxgraph |
13349 | bpr | 23 | !read js/jsxgraph.phtml |
5583 | bpr | 24 | !endif |
25 | |||
5614 | bpr | 26 | !if $(module_title_$modu_lang)!= |
13349 | bpr | 27 | !set module_title=$(module_title_$modu_lang) |
5614 | bpr | 28 | !endif |
539 | bpr | 29 | !header |
30 | !if $compute=yes |
||
13349 | bpr | 31 | !if $swout=$empty |
32 | <span class="wims_warning">$SW</span> $name_non_execute. |
||
33 | !else |
||
34 | <div class="center">$SW</div> |
||
35 | !if $sw=draw |
||
36 | <img src="$swout" alt="" /> |
||
37 | !goto after |
||
38 | !endif |
||
39 | !if $sw=povray |
||
40 | <img src="$swout" alt="" /> |
||
41 | !goto after |
||
42 | !endif |
||
43 | !if $sw=graphviz |
||
44 | !set swout=!line 1 of $swout |
||
45 | <img src="$swout" alt="" /> |
||
46 | !goto after |
||
47 | !endif |
||
48 | !if $sw=graphvizsvg |
||
49 | $swout |
||
50 | !goto after |
||
51 | !endif |
||
52 | !if $sw=jsxgraph |
||
53 | <div id="jsxbox" class="box" style="width:400px; height:400px;text-align:center;"></div> |
||
54 | <script type="text/javascript"> |
||
55 | $swout |
||
56 | </script> |
||
57 | !goto after |
||
58 | !endif |
||
59 | !if $sw=insmath |
||
60 | MathML: $swout |
||
61 | Image: |
||
62 | !instex $src1 |
||
63 | !goto after |
||
64 | !endif |
||
65 | !if $sw=canvasdraw |
||
66 | $swout |
||
67 | !read script_canvasdraw |
||
68 | !goto after |
||
69 | !endif |
||
70 | !if $sw=jmol |
||
71 | !set swout1=!lines2rows $swout |
||
72 | !readproc slib/chemistry/jmolshow $swout1,200,200,white,, |
||
73 | $slib_out |
||
74 | !goto after |
||
75 | !endif |
||
76 | <pre style="font-weight:bold;font-family:Courier New,Courier,mono;overflow:auto;color:blue;"> |
||
77 | $swout |
||
78 | </pre> |
||
539 | bpr | 79 | !endif |
80 | !else |
||
5614 | bpr | 81 | !read lang/intro.phtml.$modu_lang |
539 | bpr | 82 | !endif |
83 | |||
84 | :after |
||
85 | !if $msg!=$empty |
||
13349 | bpr | 86 | <hr /> |
87 | $name_msg <em>$SW</em> : |
||
88 | <pre style="color:red;font-size:80%"> |
||
89 | $msg |
||
90 | </pre> |
||
539 | bpr | 91 | !endif |
92 | !form reply |
||
6257 | bpr | 93 | <input type="submit" value="$name_execute" /> |
5583 | bpr | 94 | |
539 | bpr | 95 | !default sw=sh |
5594 | reyssat | 96 | !set wims_formselect_switch=onchange='submit()' |
539 | bpr | 97 | !formselect sw list $swlist prompt $swname |
5594 | reyssat | 98 | !set wims_formselect_switch= |
7631 | bpr | 99 | $ : |
13349 | bpr | 100 | $ $ |
101 | !set wims_ref_class=wims_button |
||
5583 | bpr | 102 | !href cmd=renew $name_empty |
13349 | bpr | 103 | $ $ |
104 | !set wims_ref_class=wims_button_help |
||
5583 | bpr | 105 | !href cmd=help&special_parm=$sw_2 $wims_name_help |
13349 | bpr | 106 | $ $ |
539 | bpr | 107 | !set src=!reinput $src |
108 | !set src=!replace internal &#36; by $ in $src |
||
3573 | bpr | 109 | !set src=!replace internal & by & in $src |
8519 | bpr | 110 | |
111 | <br class="spacer" /> |
||
6054 | bpr | 112 | <textarea id="wims_deposit" wrap="off" name="src" cols="100" rows="15"> |
4880 | bpr | 113 | $src |
114 | </textarea> |
||
5583 | bpr | 115 | $(name_remark_$sw) |
539 | bpr | 116 | |
5928 | bpr | 117 | !formend |
118 | |||
539 | bpr | 119 | !tail |
120 | |||
121 | !reset src sw |