Subversion Repositories wimsdev

Rev

Rev 10229 | Rev 13443 | Go to most recent revision | 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. !endif
  5. !!test pour ne charger les javascripts de l'editeur que dans le mode brut et lorsqu'on ne teste pas
  6. !if $mode=raw and  $oef_test notsametext yes and $level<7
  7.  !read header_js.phtml
  8.  !set wims_html_header=!append line $header_js_editor to $wims_html_header
  9. !endif
  10. !if $modtoolhelp=yes or ($cmd=help and $special_parm iswordof examples oefspecial)
  11.  !set wims_show_liste=!makelist wims_show x for x=1 to 5
  12.  !if $special_parm iswordof oefspecial
  13.    !for y=1 to 3
  14.     !set wims_show_liste1=!makelist wims_show x $y for x=0 to 10
  15.     !set wims_show_liste=!append item $wims_show_liste1 to $wims_show_liste
  16.    !next
  17.  !endif
  18.  !set wims_show_liste=!nospace $wims_show_liste
  19.  !for id in wims_show,$wims_show_liste
  20.    !read js/edit_area.phtml $id wimsoef
  21.  !next
  22. !endif
  23. !read adm/css.phtml
  24. !header
  25.  
  26. !if $modtoolhelp=yes
  27.  !read help.phtml
  28.  !goto end
  29. !endif
  30.  
  31. !if $deleted!=$empty
  32.  !read delete.phtml
  33.  !goto end
  34. !endif
  35.  
  36. !if $level=3 and $catsource=yes
  37.  $name_save
  38.  !href cmd=resume $name_menuback
  39.  <hr />
  40. <pre>
  41. !mexec catsrc.sh
  42. </pre>
  43.  <hr /> <div class="wimscenter">
  44.  !href cmd=resume $name_menuback
  45.  </div>
  46.  !set catsource=no
  47.  !goto end
  48. !endif
  49.  
  50. !if $oef_test=yes
  51.  <div class="wimscenter">$name_realisation
  52.  !if $wims_theme_version=0 or $wims_theme_version=
  53.  <br />
  54.  !href cmd=resume&realtest=no $name_backmodule $module_title.
  55.  !endif
  56.  </div>
  57.  <hr />
  58.  !changeto oef/Main.phtml
  59. !endif
  60.  
  61. !if $error!=$empty
  62.  <div class="wims_msg alert">
  63.  !read lang/msg.phtml.$modu_lang
  64.  </div>
  65.  <p>
  66.  !href cmd=reply&level=1 $name_correction.
  67.  </p>
  68.  !goto end
  69. !endif
  70.  
  71. !if $mode!=$empty and $level<=2
  72.  !read $mode$level.phtml
  73. !else
  74.  !read level$level.phtml
  75. !endif
  76.  
  77. !if $wims_theme=default
  78. !!ARIANE
  79.   !set wims_menu_items=!append line createxo,1,module=adm/createxo\
  80. to $wims_menu_items
  81. !endif
  82.  
  83. !if $level iswordof 0 1
  84.   !set wims_menu_items=!append line createxo,0,Createxo\
  85. model,1,cmd=reply&mode=model&level=1\
  86. normalmode,1,cmd=reply&mode=normal&level=1\
  87. rawmode,1,cmd=reply&rawinp=yes&level=1\
  88. filemode,1,cmd=reply&mode=file&level=1\
  89.  to $wims_menu_items
  90.   !read themes/_procs/othermethods.proc
  91. !endif
  92. !if $level iswordof 2 and $mode=model
  93. !!modellist ARIANE
  94. !set wims_menu_items=!append line itemsep,0,\
  95. modellist,1,cmd=reply&level=1&mode=model\
  96. rawmode,1,cmd=reply&rawinp=yes\
  97. to $wims_menu_items
  98. !endif
  99.  
  100. !!!developpers tools
  101. !if $wims_user=supervisor or $wims_developper!=$empty
  102.   !set wims_menu_items=!append line tools,0,$wims_name_tools\
  103.   coordclick,1,module=adm/tool/coordclick\
  104.  to $wims_menu_items
  105. !endif
  106. !if $wims_developper!=$empty
  107.   !set wims_menu_items=!append line tools,0,$wims_name_tools\
  108.   chemtool,1,module=adm/tool/chemtool\
  109.  to $wims_menu_items
  110. !endif
  111. :end
  112. !tail
  113.  
  114. !reset wims_deposit, delfile
  115.