Rev 17550 | 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 |
17951 | bpr | 7 | !if $sw iswordof draw tikz |
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 |
||
16650 | obado | 34 | <h2 class="center">$SW</h2> |
13349 | bpr | 35 | !if $sw=draw |
17550 | bpr | 36 | <img src="$swout" alt=""> |
13349 | bpr | 37 | !goto after |
38 | !endif |
||
39 | !if $sw=povray |
||
17550 | bpr | 40 | <img src="$swout" alt=""> |
13349 | bpr | 41 | !goto after |
42 | !endif |
||
43 | !if $sw=graphviz |
||
44 | !set swout=!line 1 of $swout |
||
17550 | bpr | 45 | <img src="$swout" alt=""> |
13349 | bpr | 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> |
||
16650 | obado | 54 | <script>$swout</script> |
13349 | bpr | 55 | !goto after |
56 | !endif |
||
57 | !if $sw=insmath |
||
58 | MathML: $swout |
||
59 | Image: |
||
60 | !instex $src1 |
||
61 | !goto after |
||
62 | !endif |
||
63 | !if $sw=canvasdraw |
||
64 | $swout |
||
65 | !read script_canvasdraw |
||
66 | !goto after |
||
67 | !endif |
||
68 | !if $sw=jmol |
||
69 | !set swout1=!lines2rows $swout |
||
70 | !readproc slib/chemistry/jmolshow $swout1,200,200,white,, |
||
71 | $slib_out |
||
72 | !goto after |
||
73 | !endif |
||
14037 | bpr | 74 | !if $sw=jsme |
75 | !set swout1=!lines2rows $swout |
||
76 | !readproc slib/chemistry/chemshow $swout1,200,200,white,, |
||
77 | $slib_out |
||
78 | !goto after |
||
79 | !endif |
||
16634 | bpr | 80 | !if $sw=reactiondraw |
81 | !readproc slib/chemistry/reactiondraw $swout,html |
||
16654 | obado | 82 | $slib_out |
16634 | bpr | 83 | !goto after |
84 | !endif |
||
17951 | bpr | 85 | !if $sw=tikz |
86 | <pre>$swout</pre> |
||
87 | !goto after |
||
88 | !endif |
||
13933 | bpr | 89 | !!! no space at the beginning of the line |
13349 | bpr | 90 | <pre style="font-weight:bold;font-family:Courier New,Courier,mono;overflow:auto;color:blue;"> |
13561 | bpr | 91 | $swout |
13349 | bpr | 92 | </pre> |
539 | bpr | 93 | !endif |
94 | !else |
||
5614 | bpr | 95 | !read lang/intro.phtml.$modu_lang |
539 | bpr | 96 | !endif |
97 | |||
98 | :after |
||
99 | !if $msg!=$empty |
||
17550 | bpr | 100 | <hr> |
13349 | bpr | 101 | $name_msg <em>$SW</em> : |
102 | <pre style="color:red;font-size:80%"> |
||
103 | $msg |
||
104 | </pre> |
||
539 | bpr | 105 | !endif |
16650 | obado | 106 | |
539 | bpr | 107 | !form reply |
108 | !default sw=sh |
||
16650 | obado | 109 | <div class="field"> |
110 | !set wims_formselect_switch=onchange='submit()' |
||
111 | <label for="sw">$name_execute_by</label> |
||
112 | !formselect sw list $swlist prompt $swname |
||
113 | !set wims_formselect_switch= |
||
7631 | bpr | 114 | $ : |
13349 | bpr | 115 | $ $ |
17550 | bpr | 116 | <input type="submit" value="$name_execute"> |
16650 | obado | 117 | |
118 | !set wims_ref_class=wims_secondary_button wims_button |
||
119 | !href cmd=renew $name_empty |
||
13349 | bpr | 120 | $ $ |
16650 | obado | 121 | !set wims_ref_class=wims_button_help |
122 | !href cmd=help&special_parm=$sw_2 $wims_name_help |
||
13349 | bpr | 123 | $ $ |
16650 | obado | 124 | !set src=!reinput $src |
125 | !set src=!replace internal &#36; by $ in $src |
||
126 | !set src=!replace internal & by & in $src |
||
127 | </div> |
||
8519 | bpr | 128 | |
16650 | obado | 129 | <div class="field"> |
17550 | bpr | 130 | <label for="wims_deposit">$name_code_to_execute</label><br> |
16650 | obado | 131 | <textarea id="wims_deposit" wrap="off" name="src" cols="80" rows="15"> |
4880 | bpr | 132 | $src |
133 | </textarea> |
||
5583 | bpr | 134 | $(name_remark_$sw) |
16650 | obado | 135 | </div> |
539 | bpr | 136 | |
5928 | bpr | 137 | !formend |
138 | |||
539 | bpr | 139 | !tail |
140 | |||
141 | !reset src sw |