Subversion Repositories wimsdev

Rev

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

  1. !if $oef_test=yes
  2.   !set wims_html_header=!append line $header_js to $wims_html_header
  3.   !set wims_html_header=!append line $oefcss to $wims_html_header
  4.   !! "print solution only" style
  5.   !set wims_html_header=!append line <link rel="stylesheet" disabled="disabled" href="html/themes/_css/oef_print_solution.css" id="css_print" title="Solution only">\
  6.     to $wims_html_header
  7. !endif
  8. !!test pour ne charger les javascripts de l'editeur que dans le mode brut et lorsqu'on ne teste pas
  9. !if $mode=raw and $oef_test notsametext yes and $level<7
  10.   !!distribute item wimsoef,"" in  edit_area_syntax,toolbar
  11.   !!read js/edit_area.phtml wims_deposit_id $edit_area_syntax
  12.   !read header_js.phtml
  13.   !set wims_html_header=!append line $header_js_editor to $wims_html_header
  14. !endif
  15. !if $modtoolhelp=yes or ($cmd=help and $special_parm iswordof examples oefspecial)
  16.   !set wims_show_liste=!makelist wims_show x for x=1 to 5
  17.   !if $special_parm iswordof oefspecial
  18.     !for y=1 to 3
  19.       !set wims_show_liste1=!makelist wims_show x $y for x=0 to 10
  20.       !set wims_show_liste=!append item $wims_show_liste1 to $wims_show_liste
  21.     !next
  22.   !endif
  23.   !set wims_show_liste=!nospace $wims_show_liste
  24.   !for id in wims_show,$wims_show_liste
  25.     !read js/edit_area.phtml $id wimsoef
  26.   !next
  27. !endif
  28.  
  29. !read adm/css.phtml
  30. !if $mode=model and $level=2
  31.   !read js/external/tinymce.phtml .iEdit
  32. !endif
  33. !header
  34.  
  35. !if $modtoolhelp=yes
  36.   !read help.phtml
  37.   !goto end
  38. !endif
  39.  
  40. !if $deleted!=$empty
  41.   !read delete.phtml
  42.   !goto end
  43. !endif
  44.  
  45. !if $level=3 and $catsource=yes
  46.   $name_save
  47.   !href cmd=resume $name_menuback
  48.   <hr>
  49.   <pre>
  50. !mexec catsrc.sh
  51. </pre><hr>
  52.   <div class="wimscenter">
  53.     !href cmd=resume $name_menuback
  54.   </div>
  55.   !set catsource=no
  56.   !goto end
  57. !endif
  58.  
  59. !if $oef_test=yes
  60.   <div class="wimscenter">$name_realisation
  61.     !if $wims_theme_version=0 or $wims_theme_version=
  62.       <br>
  63.       !href cmd=resume&realtest=no $name_backmodule $module_title.
  64.     !endif
  65.   </div>
  66.   <hr>
  67.   !changeto oef/Main.phtml
  68. !endif
  69.  
  70. !if $error!=$empty
  71.   <div class="wims_msg alert">
  72.     !read lang/msg.phtml.$modu_lang
  73.   </div>
  74.   <p>
  75.     !href cmd=reply&level=1 $name_correction.
  76.   </p>
  77.   !goto end
  78. !endif
  79.  
  80. !if $mode!=$empty and $level<=2
  81.   !read $mode$level.phtml
  82. !else
  83.   !read level$level.phtml
  84. !endif
  85.  
  86. !! WIMS Menus items
  87.  
  88. !if $wims_theme=default
  89.   !!ARIANE
  90.   !set wims_menu_items=!append line createxo,1,module=adm/createxo\
  91. to $wims_menu_items
  92. !endif
  93.  
  94. !if $level=3
  95.   !! Preview exercice
  96.   !set wims_menu_items=!append line testexo,1,cmd=resume&realtest=yes&retest=again\
  97. to $wims_menu_items
  98. !endif
  99.  
  100. !if $level>3
  101.   !! return to level 3
  102.   !set wims_menu_items=!append line back2,1,cmd=reply&level=3&success=1 $name_prevstep\
  103.   to $wims_menu_items
  104. !endif
  105.  
  106. !! first page
  107. !if $level iswordof 0
  108.   !set wims_menu_items=!append line createxo,0,Createxo\
  109. model,1,cmd=reply&mode=model&level=1\
  110. normalmode,1,cmd=reply&mode=normal&level=1\
  111. rawmode,1,cmd=reply&rawinp=yes&level=1\
  112. filemode,1,cmd=reply&mode=file&level=1\
  113.  to $wims_menu_items
  114.   !read themes/_procs/othermethods.proc
  115.  
  116.   !!!developpers tools
  117.   !if $wims_user=supervisor or $wims_developper!=$empty
  118.     !set wims_menu_items=!append line tools,0,$wims_name_tools\
  119. coordclick,1,module=adm/tool/coordclick\
  120.       to $wims_menu_items
  121.   !endif
  122.   !if $wims_developper!=$empty
  123.     !set wims_menu_items=!append line tools,0,$wims_name_tools\
  124. chemtool,1,module=adm/tool/chemtool\
  125.       to $wims_menu_items
  126.   !endif
  127.  
  128. !endif
  129.  
  130. !! Raw mode with adaptative model
  131. !if $level iswordof 1 2 and $mode=raw and $modeltest=yes
  132.   !! model list and adapt link
  133.   !set wims_menu_items=!append line itemsep,0,\
  134. modellist,1,cmd=reply&level=1&mode=model\
  135. adapt,1,cmd=reply&level=2&mode=model\
  136.   to $wims_menu_items
  137. !endif
  138.  
  139. !! Guided mode
  140. !if $level iswordof 2 and $mode=model
  141.   !!modellist ARIANE
  142.   !set wims_menu_items=!append line itemsep,0,\
  143. modellist,1,cmd=reply&level=1&mode=model\
  144. rawmode,1,cmd=reply&rawinp=yes\
  145.   to $wims_menu_items
  146. !endif
  147.  
  148.  
  149. :end
  150.  
  151. !tail
  152.  
  153. !reset wims_deposit, delfile
  154.