Subversion Repositories wimsdev

Rev

Rev 16634 | Rev 16654 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. !distribute items $sw,$sw into sw_1,sw_2
  3.  
  4. !if $sw=pari
  5.   !set sw_1=gp
  6. !endif
  7. !if $sw iswordof draw
  8.   !set sw_1=flydraw
  9.   !set sw_2=flydraw
  10. !endif
  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
  18.  
  19. !! a modifier quand il y aura d'autres styles
  20. !default sw_1=flydraw
  21.  
  22. !if $sw=jsxgraph
  23.  !read js/jsxgraph.phtml
  24. !endif
  25.  
  26. !if $(module_title_$modu_lang)!=
  27.  !set module_title=$(module_title_$modu_lang)
  28. !endif
  29. !header
  30. !if $compute=yes
  31.  !if $swout=$empty
  32.    <span class="wims_warning">$SW</span> $name_non_execute.
  33.  !else
  34.    <h2 class="center">$SW</h2>
  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>$swout</script>
  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
  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
  80.    !if $sw=reactiondraw
  81.      !readproc slib/chemistry/reactiondraw $swout,html
  82.      <div style="overflow-x:auto">$slib_out</div>
  83.      !goto after
  84.    !endif
  85. !!! no space at the beginning of the line
  86.    <pre style="font-weight:bold;font-family:Courier New,Courier,mono;overflow:auto;color:blue;">
  87. $swout
  88.    </pre>
  89.  !endif
  90. !else
  91.  !read lang/intro.phtml.$modu_lang
  92. !endif
  93.  
  94. :after
  95. !if $msg!=$empty
  96.  <hr />
  97.  $name_msg <em>$SW</em> :
  98.  <pre style="color:red;font-size:80%">
  99.  $msg
  100.  </pre>
  101. !endif
  102.  
  103. !form reply
  104. !default sw=sh
  105. <div class="field">
  106.  !set wims_formselect_switch=onchange='submit()'
  107.  <label for="sw">$name_execute_by</label>
  108.  !formselect sw list $swlist prompt $swname
  109.  !set wims_formselect_switch=
  110. $ :
  111. $ $
  112.  <input type="submit" value="$name_execute" />
  113.  
  114.  !set wims_ref_class=wims_secondary_button wims_button
  115.  !href cmd=renew $name_empty
  116. $ $
  117.  !set wims_ref_class=wims_button_help
  118.  !href cmd=help&special_parm=$sw_2 $wims_name_help
  119. $ $
  120.  !set src=!reinput $src
  121.  !set src=!replace internal &amp;#36; by &#36; in $src
  122.  !set src=!replace internal &amp; by & in $src
  123. </div>
  124.  
  125. <div class="field">
  126.  <label for="wims_deposit">$name_code_to_execute</label><br/>
  127.  <textarea id="wims_deposit" wrap="off" name="src" cols="80" rows="15">
  128. $src
  129. </textarea>
  130. $(name_remark_$sw)
  131. </div>
  132.  
  133. !formend
  134.  
  135. !tail
  136.  
  137. !reset src sw
  138.