Rev 12840 | Rev 13360 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12840 | Rev 13330 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | !if $error!=$empty |
2 | !if $error!=$empty |
3 | !exit |
3 | !exit |
4 | !endif |
4 | !endif |
5 | 5 | ||
6 | !if $no_selection!=$empty |
6 | !if $no_selection!=$empty |
- | 7 | <div class="wims_msg alert"> |
|
7 | < |
8 | <span class="wims_warning">$wims_name_warning</span>. $name_noselect |
8 | < |
9 | </div> |
9 | !endif |
10 | !endif |
10 | 11 | ||
11 | !if $serial!=$wims_class and $old_testcnt>0 |
12 | !if $serial!=$wims_class and $old_testcnt>0 |
12 | !set test=bad |
13 | !set test=bad |
13 | !endif |
14 | !endif |
14 | 15 | ||
15 | !if $test=bad |
16 | !if $test=bad |
16 | <div class="wims_msg alert"> |
17 | <div class="wims_msg alert"> |
17 | <span class="wims_warning">$wims_name_warning!</span> |
18 | <span class="wims_warning">$wims_name_warning!</span> |
18 | !read lang/names.phtml.$moduclass_lang arch |
19 | !read lang/names.phtml.$moduclass_lang arch |
19 | </div> |
20 | </div> |
20 | !endif |
21 | !endif |
21 | 22 | ||
22 | !form reply |
23 | !form reply |
23 | <input type="hidden" name="job" value="$job" /> |
24 | <input type="hidden" name="job" value="$job" /> |
24 | <input type="hidden" name="job2" value="restore" /> |
25 | <input type="hidden" name="job2" value="restore" /> |
25 | $name_deposit |
26 | $name_deposit |
26 | < |
27 | <fieldset class="property_fields"> |
27 | < |
28 | <legend>$name_res_type</legend> |
28 |
|
29 | <ul> |
29 | < |
30 | <li> |
30 | < |
31 | <input type="checkbox" name="selection" id="restore_all" value="all" /> |
31 |
|
32 | <label for="restore_all">$name_all</label> |
32 | <li> |
33 | </li> |
33 |
|
34 | !if def isitemof $gotlist |
34 |
|
35 | <li> |
35 | < |
36 | <input type="checkbox" name="selection" id="restore_def" value="def" /> |
36 |
|
37 | <label for="restore_def">$name_config. $name_danger.</label> |
37 |
|
38 | </li> |
38 |
|
39 | !endif |
39 | ! |
40 | !if sup isitemof $gotlist |
40 |
|
41 | <li> |
41 | ! |
42 | !if $sharing_sup=$empty |
42 | < |
43 | <input type="checkbox" name="selection" id="restore_sup" value="sup" /> |
43 |
|
44 | !endif |
44 | |
45 | <label for="restore_sup">$name_teacher.</label> |
45 | ! |
46 | !if $sharing_sup!=$empty |
46 |
|
47 | $name_no_restore |
47 | ! |
48 | !else |
48 |
|
49 | $name_danger. |
49 | !endif |
50 | !endif |
50 |
|
51 | </li> |
51 | ! |
52 | !endif |
52 |
|
53 | !let list=!listintersect user,doc,exo,sheet,exam,forum,motd,userphoto,tool and $gotlist |
53 |
|
54 | !for type in $list |
54 |
|
55 | <li> |
55 | ! |
56 | !if $(sharing_$type)=$empty |
56 | < |
57 | <input type="checkbox" name="selection" id="restore_$type" value="$type" /> |
57 |
|
58 | !endif |
58 | |
59 | <label for="restore_$type"><strong>$(new_$(type)cnt)</strong> $(name_$type).</label> |
59 | ! |
60 | !if $(sharing_$type)!=$empty |
60 |
|
61 | $name_no_restore |
61 | ! |
62 | !else |
62 | </ |
63 | <span class="small">($(name_$(type)1) : $(old_$(type)cnt))</span>. |
63 | ! |
64 | !endif |
64 |
|
65 | </li> |
65 |
|
66 | !next type |
66 |
|
67 | !if score isitemof $gotlist |
67 |
|
68 | <li> |
68 | < |
69 | <input type="checkbox" name="selection" id="restore_score" value="score" /> |
69 |
|
70 | <label for="restore_score">$name_activity</label> |
70 |
|
71 | </li> |
71 |
|
72 | !endif |
72 |
|
73 | !if manual isitemof $gotlist |
73 |
|
74 | <li> |
74 |
|
75 | <input type="checkbox" name="selection" id="restore_manual" value="manual" /> |
75 | </ |
76 | <label for="restore_manual">$new_manualcnt $name_manual.</label> <span class="small">($name_manual1 : |
76 |
|
77 | $old_manualcnt)</span>. |
77 |
|
78 | </li> |
78 |
|
79 | !endif |
79 |
|
80 | !if cdt isitemof $gotlist |
80 |
|
81 | <li> |
81 |
|
82 | <input type="checkbox" name="selection" id="restore_cdt" value="cdt" /> |
82 | < |
83 | <label for="restore_cdt">$name_cdt.</label> |
83 | ! |
84 | !if $old_cdtcnt>0 |
84 | </ |
85 | <span class="small">($name_cdt1)</span> |
85 | !endif |
86 | !endif |
86 |
|
87 | </li> |
87 |
|
88 | !endif |
88 |
|
89 | !if livret isitemof $gotlist |
89 |
|
90 | <li> |
90 |
|
91 | <input type="checkbox" name="selection" id="restore_livret" value="livret" /> |
91 | < |
92 | <label for="restore_livret">$name_livret.</label> |
92 | ! |
93 | !if $old_livretcnt>0 |
93 | </ |
94 | <span class="small">($name_livret1)</span> |
94 | !endif |
95 | !endif |
95 |
|
96 | </li> |
96 |
|
97 | !endif |
97 |
|
98 | !if seq isitemof $gotlist |
98 |
|
99 | <li> |
99 |
|
100 | <input type="checkbox" name="selection" id="restore_seq" value="seq" /> |
100 |
|
101 | <label for="restore_seq">$name_seq.</label> |
101 |
|
102 | $name_seq0 |
102 |
|
103 | <span class="small">($name_seq1 $old_seqcnt)</span>. |
103 | </ |
104 | </li> |
104 |
|
105 | !endif |
105 | <ul> |
106 | </ul> |
106 |
|
107 | </fieldset> |
107 | <input type="radio" name="restore" id="method_replace" value="replace" checked="checked" /> |
108 | |
108 |
|
109 | <fieldset class="property_fields"> |
109 | </ |
110 | <legend>$name_method</legend> |
110 | < |
111 | <ul> |
111 |
|
112 | <li> |
112 | < |
113 | <input type="radio" name="restore" id="method_replace" value="replace" checked="checked" /> |
113 | </ |
114 | <label for="method_replace">$name_replace</label> |
114 | </ |
115 | <div class="formHelp">$name_replace1.</div> |
115 |
|
116 | </li> |
116 |
|
117 | <li> |
117 |
|
118 | <input type="radio" name="restore" id="method_merge" value="merge" /> |
118 |
|
119 | <label for="method_merge">$name_merge</label> |
119 |
|
120 | <div class="formHelp">$name_merge1.</div> |
120 |
|
121 | </li> |
121 |
|
122 | </ul> |
- | 123 | </fieldset> |
|
- | 124 | !!## TODO desactiver les feuilles s'il n'y pas de participant et enlever la date d'expiration? |
|
- | 125 | !!!if $(new_usercnt)=0 |
|
- | 126 | !! <input type="checkbox" name="preparation" value="no" /> Mettre les feuilles en préparation |
|
- | 127 | !!!endif |
|
- | 128 | <div class="wimscenter"> |
|
- | 129 | <input type="submit" value="$name_selectrestore" /> |
|
- | 130 | !set wims_ref_class=wims_button wims_secondary_button |
|
- | 131 | !href cmd=reply&job=new $wims_name_giveup |
|
- | 132 | </div> |
|
122 | !formend |
133 | !formend |
123 | 134 | ||
124 | <div class="wims_msg info"> |
135 | <div class="wims_msg info"> |
125 | !read lang/names.phtml.$moduclass_lang arch_end |
136 | !read lang/names.phtml.$moduclass_lang arch_end |
126 | </div> |
137 | </div> |