Rev 14491 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1105 | bpr | 1 | !if $oef_test=yes |
13443 | obado | 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 |
||
14491 | obado | 4 | !! "print solution only" style |
17230 | bpr | 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">\ |
14491 | obado | 6 | to $wims_html_header |
1105 | bpr | 7 | !endif |
3528 | bpr | 8 | !!test pour ne charger les javascripts de l'editeur que dans le mode brut et lorsqu'on ne teste pas |
13443 | obado | 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 |
||
3528 | bpr | 14 | !endif |
8959 | bpr | 15 | !if $modtoolhelp=yes or ($cmd=help and $special_parm iswordof examples oefspecial) |
13443 | obado | 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 |
||
5265 | bpr | 27 | !endif |
13617 | obado | 28 | |
1170 | bpr | 29 | !read adm/css.phtml |
13617 | obado | 30 | !if $mode=model and $level=2 |
31 | !read js/external/tinymce.phtml .iEdit |
||
32 | !endif |
||
23 | reyssat | 33 | !header |
60 | bpr | 34 | |
53 | guerimand | 35 | !if $modtoolhelp=yes |
13443 | obado | 36 | !read help.phtml |
37 | !goto end |
||
53 | guerimand | 38 | !endif |
39 | |||
23 | reyssat | 40 | !if $deleted!=$empty |
13443 | obado | 41 | !read delete.phtml |
42 | !goto end |
||
23 | reyssat | 43 | !endif |
44 | |||
45 | !if $level=3 and $catsource=yes |
||
13443 | obado | 46 | $name_save |
47 | !href cmd=resume $name_menuback |
||
17230 | bpr | 48 | <hr> |
13443 | obado | 49 | <pre> |
23 | reyssat | 50 | !mexec catsrc.sh |
17230 | bpr | 51 | </pre><hr> |
13443 | obado | 52 | <div class="wimscenter"> |
53 | !href cmd=resume $name_menuback |
||
54 | </div> |
||
55 | !set catsource=no |
||
56 | !goto end |
||
23 | reyssat | 57 | !endif |
58 | |||
59 | !if $oef_test=yes |
||
13443 | obado | 60 | <div class="wimscenter">$name_realisation |
61 | !if $wims_theme_version=0 or $wims_theme_version= |
||
17230 | bpr | 62 | <br> |
13443 | obado | 63 | !href cmd=resume&realtest=no $name_backmodule $module_title. |
64 | !endif |
||
65 | </div> |
||
17230 | bpr | 66 | <hr> |
13443 | obado | 67 | !changeto oef/Main.phtml |
23 | reyssat | 68 | !endif |
69 | |||
70 | !if $error!=$empty |
||
13443 | obado | 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 |
||
23 | reyssat | 78 | !endif |
79 | |||
80 | !if $mode!=$empty and $level<=2 |
||
13443 | obado | 81 | !read $mode$level.phtml |
23 | reyssat | 82 | !else |
13443 | obado | 83 | !read level$level.phtml |
23 | reyssat | 84 | !endif |
85 | |||
13443 | obado | 86 | !! WIMS Menus items |
87 | |||
10355 | bpr | 88 | !if $wims_theme=default |
13443 | obado | 89 | !!ARIANE |
10355 | bpr | 90 | !set wims_menu_items=!append line createxo,1,module=adm/createxo\ |
1393 | bpr | 91 | to $wims_menu_items |
10355 | bpr | 92 | !endif |
6975 | obado | 93 | |
13597 | obado | 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 | |||
13443 | obado | 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 |
||
10079 | bpr | 108 | !set wims_menu_items=!append line createxo,0,Createxo\ |
109 | model,1,cmd=reply&mode=model&level=1\ |
||
1393 | bpr | 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 |
||
10091 | bpr | 114 | !read themes/_procs/othermethods.proc |
13443 | obado | 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 | |||
1393 | bpr | 128 | !endif |
13443 | obado | 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 |
||
4043 | bpr | 140 | !if $level iswordof 2 and $mode=model |
13443 | obado | 141 | !!modellist ARIANE |
142 | !set wims_menu_items=!append line itemsep,0,\ |
||
10355 | bpr | 143 | modellist,1,cmd=reply&level=1&mode=model\ |
10079 | bpr | 144 | rawmode,1,cmd=reply&rawinp=yes\ |
13443 | obado | 145 | to $wims_menu_items |
4043 | bpr | 146 | !endif |
4612 | bpr | 147 | |
13443 | obado | 148 | |
3481 | bpr | 149 | :end |
13443 | obado | 150 | |
23 | reyssat | 151 | !tail |
152 | |||
153 | !reset wims_deposit, delfile |