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