Rev 17230 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | !nocache |
2373 | bpr | 2 | !! useful when one comes from modtool |
6677 | bpr | 3 | !set wims_backslash_insmath=yes |
20 | reyssat | 4 | !set proc=oef |
5 | !if robot isin $session |
||
12489 | bpr | 6 | !changeto content.html |
20 | reyssat | 7 | !endif |
1664 | bpr | 8 | |
2072 | bpr | 9 | !set test_data=!replace internal data/ by in $module_data |
10 | !set test_data=!defof title in datamodule/$test_data/INDEX |
||
11 | !if $test_data= and $module_data!= |
||
12489 | bpr | 12 | <p class="name_datamodule"> |
13085 | obado | 13 | <i>$name_datamodule</i> |
12489 | bpr | 14 | </p> |
2072 | bpr | 15 | !endif |
1664 | bpr | 16 | |
17 | |||
17529 | obado | 18 | !! ------------------------------------- saisie des paramètres |
8817 | guerimand | 19 | !if $step=1 |
12489 | bpr | 20 | $name_insert <span class="tt wims_fname">$smodule</span> |
2072 | bpr | 21 | |
12489 | bpr | 22 | <p>$name_choose_allexo</p> |
23 | !form reply |
||
13085 | obado | 24 | <fieldset class="property_fields blockcenter"> |
25 | <legend>$wims_title_title</legend> |
||
26 | <div class="field box"> |
||
27 | <label for="picksheet">$name_choose</label> |
||
28 | <select name="picksheet" id="picksheet"> |
||
29 | !for i=1 to $sheetcnt |
||
30 | !set sh=!line $i of $sheets |
||
31 | !set se=!item 1 of $sh |
||
32 | !set ti=!item 2 to -1 of $sh |
||
33 | !if $se=$sheetcnt |
||
34 | <option value="$se" selected="selected">$wims_name_Sheet $se: $ti</option> |
||
35 | !else |
||
36 | <option value="$se">$wims_name_Sheet $se: $ti</option> |
||
37 | !endif |
||
38 | !next i |
||
39 | </select> |
||
40 | </div> |
||
41 | !if $scoring=yes |
||
42 | <div class="field box"> |
||
43 | <label for="require">$name_required</label> |
||
44 | <select name="require" id="require"> |
||
45 | <option value="0">0</option> |
||
46 | <option value="10" selected="selected">10</option> |
||
47 | !for i=2 to $require_limit |
||
48 | <option value="$[10*$i]">$[10*$i]</option> |
||
49 | !next |
||
50 | </select> |
||
51 | <div class="formHelp">$name_repeat</div> |
||
52 | </div> |
||
53 | <div class="field box"> |
||
54 | <label for="weight">$name_weight</label> |
||
17230 | bpr | 55 | <input size="6" name="weight" value="$weight" id="weight"> |
13085 | obado | 56 | <div class="formHelp">$name_weight_hint</div> |
57 | </div> |
||
58 | !endif |
||
59 | </fieldset> |
||
60 | |||
61 | !!debut du menu voir intromenu.phtml |
||
62 | !read oef/default |
||
63 | !read oef/intromenu_series.phtml |
||
64 | |||
65 | <div class="blockcenter" style="max-width:900px"> |
||
66 | !set wims_formselect_switch=onchange="toggle_select_options(this, {'no' : '#intromenu_nonexpert', 'yes' : '#intromenu_expert'})" |
||
67 | !formselect expert_ list no,yes prompt $name_simplifiedmenu,$name_expertmenu |
||
68 | !reset wims_formselect_switch |
||
12489 | bpr | 69 | </div> |
13085 | obado | 70 | !!formradio expert_ list no prompt $name_simplifiedmenu |
71 | !default expert_=no |
||
72 | !read oef/intromenu_nonexpert.phtml |
||
73 | !set wims_ref_id=expert_yes |
||
74 | !!formradio expert_ list yes prompt $name_expertmenu |
||
75 | !read oef/intromenu_expert.phtml |
||
12489 | bpr | 76 | |
13085 | obado | 77 | !let tmp=!replace word expert by $ in $special_parm2 |
78 | !set tmp3=!replace internal intro_expert=yes by in $special_parm3 |
||
17230 | bpr | 79 | <input type="hidden" name="intro_expert" value="yes"> |
13082 | bpr | 80 | |
13085 | obado | 81 | <div class="wimscenter wimsform"> |
17230 | bpr | 82 | <input type="submit" value="$wims_name_Insert"> |
83 | <input type="hidden" name="step" value="2"> |
||
84 | <input type="hidden" name="job" value="$job"> |
||
13085 | obado | 85 | </div> |
12489 | bpr | 86 | !formend |
87 | <div class="formHelp"> |
||
13085 | obado | 88 | $name_remarkseverity |
89 | !read oef/helpseverity |
||
12489 | bpr | 90 | </div> |
9099 | bpr | 91 | !endif |
2072 | bpr | 92 | |
17529 | obado | 93 | !! ---------------------------------------- écriture du bilan |
8817 | guerimand | 94 | !if $step=2 |
12489 | bpr | 95 | !if $addexo>0 |
13085 | obado | 96 | <div class="wims_msg success"> |
97 | !if $addexo=1 |
||
98 | $name_endallexo |
||
99 | !else |
||
100 | $name_endallexos |
||
101 | !endif |
||
102 | <div class="tt">$iniparm</div> |
||
103 | </div> |
||
12489 | bpr | 104 | !endif |
105 | !if $notadd>0 |
||
13082 | bpr | 106 | <div class="wims_msg info"> |
13085 | obado | 107 | !if $notadd=1 |
108 | $name_endallexo2 |
||
109 | !else |
||
110 | $name_endallexo2s |
||
111 | !endif |
||
112 | <ul> |
||
113 | !for exo in $listalready |
||
114 | !let num=!positionof item $exo in $exolist |
||
115 | <li>$(exotitle[$num])</li> |
||
116 | !next exo |
||
117 | </ul> |
||
118 | </div> |
||
12489 | bpr | 119 | !endif |
120 | !set wims_menu_items=!append line sheetcheck,1, module=adm/class/sheet&sheet=$picksheet\ |
||
8817 | guerimand | 121 | to $wims_menu_items |
4810 | bpr | 122 | !endif |
123 | |||
17529 | obado | 124 | <script src="scripts/js/interface/ui_utils.js"></script> |
13085 | obado | 125 | <script> |
126 | document.addEventListener("DOMContentLoaded", function(event) { |
||
127 | // First init to have the proper intromenu hidden |
||
17529 | obado | 128 | toggle_select_options(document.getElementById("expert_"), {'no' : '#intromenu_nonexpert', 'yes' : '#intromenu_expert'}); |
13085 | obado | 129 | }); |
17230 | bpr | 130 | </script> |