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