Subversion Repositories wimsdev

Rev

Rev 16318 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !if $lang iswordof fr en nl cn it ca es
  2.   !read lang/js_editor.phtml.$lang
  3. !else
  4.   !read lang/js_editor.phtml.en
  5. !endif
  6. <span id="session_wims" style="display:none;">$session</span>
  7. <div id="editeur">
  8. !form reply name="replyform" id="replyform" onkeydown="change()" onkeypress="change()" onkeyup="change()"
  9. <input type="hidden" name="level" value="3">
  10.  
  11. !reset sourcedescription
  12. !if $existing=$empty
  13.   $name_brut<br>
  14.   !if $modeltest=yes
  15.     !set wims_ref_class=wims_button
  16.     !href cmd=reply&mode=model&level=2 $wims_name_adapt
  17.     $name_try.
  18.     !set wims_ref_class=wims_button wims_secondary_button
  19.     !href cmd=reply&mode=none&level=0 $wims_name_giveup
  20.     <br>
  21.   !else
  22.     $name_allsource (
  23.     !href target=wims_mhelp cmd=help&special_parm=oef format OEF
  24.     ) ($name_copy).<br>
  25.   !endif
  26. !else
  27.   !if $catmodule=$empty
  28.     $name_source2
  29.   !else
  30.     !let sourcedescription= %%\
  31. %% this exercise comes from module $catmodule with file name $(existing).oef\
  32. %%\
  33.  
  34.     $name_modify_window
  35.   !endif
  36.   !if $modeltest=yes
  37.     $name_public
  38. $wims_name_or
  39.     !set wims_ref_class=wims_button
  40.     !href cmd=reply&mode=model&level=2 $wims_name_adapt
  41. $name_try
  42.     $wims_name_or
  43.     !set wims_ref_class=wims_button wims_secondary_button
  44.     !href cmd=reply&mode=none&level=0 $wims_name_giveup
  45.   !endif
  46. !endif
  47.  
  48. <p>
  49.  $name_test_extern
  50.   !href target=wims_test module=tool/directexec&cmd=new $name_testerscript
  51. .
  52. </p>
  53. <ul id="enev_menu">
  54.   <li id="menu_html">HTML</li>
  55.   <li id="menu_avant">$name_before</li>
  56.   <li id="menu_pendant">$name_during</li>
  57.   <li id="menu_apres">$name_after</li>
  58. </ul>
  59. <a name="textarea"></a>
  60. <div id="textarea">
  61.   <div id="textDiv">
  62.    !mexec textarea2.sh
  63.   </div>
  64.   <div id="textarea_buttons">
  65.    <input type="submit" value="$name_sendsource">
  66.  $
  67.  <a class="wims_button wims_secondary_button" href="#" onclick="document.forms['replyform'].wims_deposit.value=''">$name_clean</a>
  68.  $
  69. !set wims_ref_class=wims_button wims_secondary_button
  70. !href cmd=resume $wims_name_giveup
  71.   </div>
  72. </div>
  73.  
  74. !formend
  75.  
  76. <div id="bloc-droit" class="container">
  77.   <h4 id="name_list_instruction"> $name_instruction_list :</h4>
  78.   <div class="content">
  79.     <a class="wims_button" onclick="changerListeInstruction()" href="javascript:void(0);">$name_changeList</a>
  80.     <div id="divoptions">$name_javascript_required</div>
  81.   </div>
  82. </div>
  83. <script>
  84.   markdown_toolbar = new Control.TextArea.ToolBar.Markdown('wims_deposit_id');
  85.   markdown_toolbar.toolbar.container.id = 'markdown_toolbar';
  86.  
  87.   function afficherHud(lId) {
  88.     clearInterval(chrono);
  89.     if (navigateurEstIncompatible()) return false;
  90.     element = document.getElementById(lId);
  91.     if (element) {
  92.       elementId = element.id;
  93.       hudCentrerElement(element);
  94.       this._setOverlay();
  95.       document.getElementById('overlay').style.opacity = '0.75';
  96.       document.getElementById('overlay').style.display = 'block';
  97.       setTimeout("hudAnimationOuverture(elementId)", 500);
  98.     }
  99.   }
  100.   anime();
  101. </script>
  102.  
  103. <div class="_spacer"></div>
  104. <div id="help_container" class="container">
  105.   <h4 id="titre_aide">$wims_name_help :</h4>
  106.   <div id="aide" class="content">
  107.    <h3 style="margin-top:0;"><img src="gifs/editor/bouton_infos.gif" height="40" alt="help editor"> $name_how_to_use_editor :</h3>
  108.     $name_editor_help
  109.   </div>
  110. </div>
  111. <div id="hud_video_intro" class="hud_element">
  112.   $name_choose_list
  113.   <ul>
  114.     <li><a onclick="changerListeInstruction2(oefcommand)" href="javascript:void(0);">$name_editor_command</a></li>
  115.     <li><a onclick="changerListeInstruction2(oefparm0)" href="javascript:void(0);">$name_editor_oefparm0</a> </li>
  116.     <li><a onclick="changerListeInstruction2(oefparm1)" href="javascript:void(0);">$name_editor_oefparm1</a></li>
  117.     <li><a onclick="changerListeInstruction2(oefparm2)" href="javascript:void(0);">$name_editor_oefparm2</a></li>
  118.     <li><a onclick="changerListeInstruction2(oefparm3)" href="javascript:void(0);">$name_editor_oefparm3</a></li>
  119.     <li><a onclick="changerListeInstruction2(oefparm4)" href="javascript:void(0);">$name_editor_oefparm4</a></li>
  120.     <li><a onclick="changerListeInstruction2(oefparm5)" href="javascript:void(0);">$name_editor_oefparm5</a> </li>
  121.     <li><a onclick="changerListeInstruction2(anstype)" href="javascript:void(0);">$name_editor_anstype</a></li>
  122.     <li><a onclick="changerListeInstruction2(special)" href="javascript:void(0);">$name_editor_special</a></li>
  123.     <li><a onclick="changerListeInstruction2(iff)" href="javascript:void(0);">$name_editor_iff</a> </li>
  124.     <li><a onclick="changerListeInstruction2(slib)" href="javascript:void(0);">$name_editor_slib</a> </li>
  125.   <li><a onclick="changerListeInstruction2(latex)" href="javascript:void(0);">LaTeX</a> </li>
  126.   </ul>
  127. </div>
  128. <div id="overlay" style="display:none"></div>
  129.   <script>
  130.     var wims_deposit_id_id = document.getElementById("wims_deposit_id");
  131.     var redim_div=document.getElementById("wims_deposit_id");
  132.     var textDiv = document.getElementById("textDiv");
  133.     var enev_menu = document.getElementById("enev_menu");
  134.   </script>
  135. </div>
  136.