Rev 17951 | 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 |
17958 | bpr | 7 | !if $sw iswordof draw |
5583 | bpr | 8 | !set sw_1=flydraw |
9 | !set sw_2=flydraw |
||
4880 | bpr | 10 | !endif |
17958 | bpr | 11 | !if $sw iswordof tikz |
12 | !set sw_1=tikz |
||
13 | !set sw_2=tikz |
||
14 | !endif |
||
5583 | bpr | 15 | !if $sw=insmath |
16 | !set sw_1=latex |
||
17 | !set sw_2=latex |
||
18 | !endif |
||
19 | !if $sw=jsxgraph |
||
20 | !set sw_1=js |
||
21 | !endif |
||
4880 | bpr | 22 | |
5583 | bpr | 23 | !! a modifier quand il y aura d'autres styles |
24 | !default sw_1=flydraw |
||
25 | |||
7631 | bpr | 26 | !if $sw=jsxgraph |
13349 | bpr | 27 | !read js/jsxgraph.phtml |
5583 | bpr | 28 | !endif |
29 | |||
5614 | bpr | 30 | !if $(module_title_$modu_lang)!= |
13349 | bpr | 31 | !set module_title=$(module_title_$modu_lang) |
5614 | bpr | 32 | !endif |
539 | bpr | 33 | !header |
34 | !if $compute=yes |
||
13349 | bpr | 35 | !if $swout=$empty |
36 | <span class="wims_warning">$SW</span> $name_non_execute. |
||
37 | !else |
||
16650 | obado | 38 | <h2 class="center">$SW</h2> |
13349 | bpr | 39 | !if $sw=draw |
17550 | bpr | 40 | <img src="$swout" alt=""> |
13349 | bpr | 41 | !goto after |
42 | !endif |
||
43 | !if $sw=povray |
||
17550 | bpr | 44 | <img src="$swout" alt=""> |
13349 | bpr | 45 | !goto after |
46 | !endif |
||
47 | !if $sw=graphviz |
||
48 | !set swout=!line 1 of $swout |
||
17550 | bpr | 49 | <img src="$swout" alt=""> |
13349 | bpr | 50 | !goto after |
51 | !endif |
||
52 | !if $sw=graphvizsvg |
||
53 | $swout |
||
54 | !goto after |
||
55 | !endif |
||
56 | !if $sw=jsxgraph |
||
57 | <div id="jsxbox" class="box" style="width:400px; height:400px;text-align:center;"></div> |
||
16650 | obado | 58 | <script>$swout</script> |
13349 | bpr | 59 | !goto after |
60 | !endif |
||
61 | !if $sw=insmath |
||
62 | MathML: $swout |
||
63 | Image: |
||
64 | !instex $src1 |
||
65 | !goto after |
||
66 | !endif |
||
67 | !if $sw=canvasdraw |
||
68 | $swout |
||
69 | !read script_canvasdraw |
||
70 | !goto after |
||
71 | !endif |
||
72 | !if $sw=jmol |
||
73 | !set swout1=!lines2rows $swout |
||
74 | !readproc slib/chemistry/jmolshow $swout1,200,200,white,, |
||
75 | $slib_out |
||
76 | !goto after |
||
77 | !endif |
||
14037 | bpr | 78 | !if $sw=jsme |
79 | !set swout1=!lines2rows $swout |
||
80 | !readproc slib/chemistry/chemshow $swout1,200,200,white,, |
||
81 | $slib_out |
||
82 | !goto after |
||
83 | !endif |
||
16634 | bpr | 84 | !if $sw=reactiondraw |
85 | !readproc slib/chemistry/reactiondraw $swout,html |
||
16654 | obado | 86 | $slib_out |
16634 | bpr | 87 | !goto after |
88 | !endif |
||
17951 | bpr | 89 | !if $sw=tikz |
90 | <pre>$swout</pre> |
||
91 | !goto after |
||
92 | !endif |
||
13933 | bpr | 93 | !!! no space at the beginning of the line |
13349 | bpr | 94 | <pre style="font-weight:bold;font-family:Courier New,Courier,mono;overflow:auto;color:blue;"> |
13561 | bpr | 95 | $swout |
13349 | bpr | 96 | </pre> |
539 | bpr | 97 | !endif |
98 | !else |
||
5614 | bpr | 99 | !read lang/intro.phtml.$modu_lang |
539 | bpr | 100 | !endif |
101 | |||
102 | :after |
||
103 | !if $msg!=$empty |
||
17550 | bpr | 104 | <hr> |
13349 | bpr | 105 | $name_msg <em>$SW</em> : |
106 | <pre style="color:red;font-size:80%"> |
||
107 | $msg |
||
108 | </pre> |
||
539 | bpr | 109 | !endif |
16650 | obado | 110 | |
539 | bpr | 111 | !form reply |
112 | !default sw=sh |
||
16650 | obado | 113 | <div class="field"> |
114 | !set wims_formselect_switch=onchange='submit()' |
||
115 | <label for="sw">$name_execute_by</label> |
||
116 | !formselect sw list $swlist prompt $swname |
||
117 | !set wims_formselect_switch= |
||
7631 | bpr | 118 | $ : |
13349 | bpr | 119 | $ $ |
17550 | bpr | 120 | <input type="submit" value="$name_execute"> |
16650 | obado | 121 | |
122 | !set wims_ref_class=wims_secondary_button wims_button |
||
123 | !href cmd=renew $name_empty |
||
13349 | bpr | 124 | $ $ |
16650 | obado | 125 | !set wims_ref_class=wims_button_help |
126 | !href cmd=help&special_parm=$sw_2 $wims_name_help |
||
13349 | bpr | 127 | $ $ |
16650 | obado | 128 | !set src=!reinput $src |
129 | !set src=!replace internal &#36; by $ in $src |
||
130 | !set src=!replace internal & by & in $src |
||
131 | </div> |
||
8519 | bpr | 132 | |
16650 | obado | 133 | <div class="field"> |
17550 | bpr | 134 | <label for="wims_deposit">$name_code_to_execute</label><br> |
16650 | obado | 135 | <textarea id="wims_deposit" wrap="off" name="src" cols="80" rows="15"> |
4880 | bpr | 136 | $src |
137 | </textarea> |
||
5583 | bpr | 138 | $(name_remark_$sw) |
16650 | obado | 139 | </div> |
539 | bpr | 140 | |
5928 | bpr | 141 | !formend |
142 | |||
539 | bpr | 143 | !tail |
144 | |||
145 | !reset src sw |