Subversion Repositories wimsdev

Rev

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
  <b>$wims_name_warning</b>. $name_noselect
8
    <span class="wims_warning">$wims_name_warning</span>. $name_noselect
8
  <br />
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
  <ul>
27
  <fieldset class="property_fields">
27
    <li>
28
    <legend>$name_res_type</legend>
28
      <input type="checkbox" name="selection" id="restore_all" value="all" />
29
    <ul>
29
      <label for="restore_all">$name_all</label>
30
      <li>
30
    </li>
31
        <input type="checkbox" name="selection" id="restore_all" value="all" />
31
!if def isitemof $gotlist
32
        <label for="restore_all">$name_all</label>
32
    <li>
33
      </li>
33
      <input type="checkbox" name="selection" id="restore_def" value="def" />
34
      !if def isitemof $gotlist
34
      <label for="restore_def">$name_config. $name_danger.</label>
35
        <li>
35
    </li>
36
          <input type="checkbox" name="selection" id="restore_def" value="def" />
36
!endif
37
          <label for="restore_def">$name_config. $name_danger.</label>
37
!if sup isitemof $gotlist
38
        </li>
38
     <li>
39
      !endif
39
  !if $sharing_sup=$empty
40
      !if sup isitemof $gotlist
40
    <input type="checkbox" name="selection" id="restore_sup" value="sup" />
41
        <li>
41
  !endif
42
          !if $sharing_sup=$empty
42
    <label for="restore_sup">$name_teacher.</label>
43
            <input type="checkbox" name="selection" id="restore_sup" value="sup" />
43
  !if $sharing_sup!=$empty
44
          !endif
44
     $name_no_restore
45
            <label for="restore_sup">$name_teacher.</label>
45
  !else
46
          !if $sharing_sup!=$empty
46
       $name_danger.
47
            $name_no_restore
47
  !endif
48
          !else
48
   </li>
49
            $name_danger.
49
!endif
50
          !endif
50
!let list=!listintersect user,doc,exo,sheet,exam,forum,motd,userphoto,tool and $gotlist
51
        </li>
51
!for type in $list
52
      !endif
52
  <li>
53
      !let list=!listintersect user,doc,exo,sheet,exam,forum,motd,userphoto,tool and $gotlist
53
  !if $(sharing_$type)=$empty
54
      !for type in $list
54
    <input type="checkbox" name="selection" id="restore_$type" value="$type" />
55
        <li>
55
  !endif
56
          !if $(sharing_$type)=$empty
56
    <label for="restore_$type">$(new_$(type)cnt) $(name_$type).</label>
57
            <input type="checkbox" name="selection" id="restore_$type" value="$type" />
57
  !if $(sharing_$type)!=$empty
58
          !endif
58
    $name_no_restore
59
          <label for="restore_$type"><strong>$(new_$(type)cnt)</strong> $(name_$type).</label>
59
  !else
60
          !if $(sharing_$type)!=$empty
60
    <span class="small">($(name_$(type)1) : $(old_$(type)cnt))</span>.
61
            $name_no_restore
61
  !endif
62
          !else
62
  </li>
63
            <span class="small">($(name_$(type)1) : $(old_$(type)cnt))</span>.
63
!next type
64
          !endif
64
!if score isitemof $gotlist
65
        </li>
65
  <li>
66
      !next type
66
    <input type="checkbox" name="selection" id="restore_score" value="score" />
67
      !if score isitemof $gotlist
67
    <label for="restore_score">$name_activity</label>
68
        <li>
68
  </li>
69
          <input type="checkbox" name="selection" id="restore_score" value="score" />
69
!endif
70
          <label for="restore_score">$name_activity</label>
70
!if manual isitemof $gotlist
71
        </li>
71
  <li>
72
      !endif
72
    <input type="checkbox" name="selection" id="restore_manual" value="manual" />
73
      !if manual isitemof $gotlist
73
    <label for="restore_manual">$new_manualcnt $name_manual.</label> <span class="small">($name_manual1&nbsp;:
74
        <li>
74
    $old_manualcnt)</span>.
75
          <input type="checkbox" name="selection" id="restore_manual" value="manual" />
75
  </li>
76
          <label for="restore_manual">$new_manualcnt $name_manual.</label> <span class="small">($name_manual1&nbsp;:
76
!endif
77
          $old_manualcnt)</span>.
77
!if cdt isitemof $gotlist
78
        </li>
78
   <li>
79
      !endif
79
     <input type="checkbox" name="selection" id="restore_cdt" value="cdt" />
80
      !if cdt isitemof $gotlist
80
     <label for="restore_cdt">$name_cdt.</label>
81
         <li>
81
     !if $old_cdtcnt>0
82
           <input type="checkbox" name="selection" id="restore_cdt" value="cdt" />
82
       <span class="small">($name_cdt1)</span>
83
           <label for="restore_cdt">$name_cdt.</label>
83
     !endif
84
           !if $old_cdtcnt>0
84
   </li>
85
             <span class="small">($name_cdt1)</span>
85
!endif
86
           !endif
86
!if livret isitemof $gotlist
87
         </li>
87
  <li>
88
      !endif
88
    <input type="checkbox" name="selection" id="restore_livret" value="livret" />
89
      !if livret isitemof $gotlist
89
    <label for="restore_livret">$name_livret.</label>
90
        <li>
90
  !if $old_livretcnt>0
91
          <input type="checkbox" name="selection" id="restore_livret" value="livret" />
91
      <span class="small">($name_livret1)</span>
92
          <label for="restore_livret">$name_livret.</label>
92
  !endif
93
          !if $old_livretcnt>0
93
  </li>
94
            <span class="small">($name_livret1)</span>
94
!endif
95
          !endif
95
!if seq isitemof $gotlist
96
        </li>
96
  <li>
97
      !endif
97
    <input type="checkbox" name="selection" id="restore_seq" value="seq" />
98
      !if seq isitemof $gotlist
98
    <label for="restore_seq">$name_seq.</label>
99
        <li>
99
  $name_seq0
100
          <input type="checkbox" name="selection" id="restore_seq" value="seq" />
100
    <span class="small">($name_seq1 $old_seqcnt)</span>.
101
          <label for="restore_seq">$name_seq.</label>
101
  </li>
102
          $name_seq0
102
!endif
103
          <span class="small">($name_seq1 $old_seqcnt)</span>.
103
 </ul>
104
        </li>
104
 $name_method&nbsp;:
105
      !endif
105
 <ul>
106
    </ul>
106
   <li>
107
  </fieldset>
107
     <input type="radio" name="restore" id="method_replace" value="replace" checked="checked" />
108
 
108
     <label for="method_replace">$name_replace</label> <i>($name_replace1)</i>.
109
  <fieldset class="property_fields">
109
   </li>
110
    <legend>$name_method</legend>
110
   <li>
111
    <ul>
111
     <input type="radio" name="restore" id="method_merge" value="merge" />
112
      <li>
112
     <label for="method_merge">$name_merge</label> <i>($name_merge1)</i>.
113
        <input type="radio" name="restore" id="method_replace" value="replace" checked="checked" />
113
   </li>
114
        <label for="method_replace">$name_replace</label>
114
 </ul>
115
        <div class="formHelp">$name_replace1.</div>
115
 !!## TODO desactiver les feuilles s'il n'y pas de participant et enlever la date d'expiration?
116
      </li>
116
 !!!if $(new_usercnt)=0
117
      <li>
117
 !!   <input type="checkbox" name="preparation" value="no" /> Mettre les feuilles en prĂ©paration
118
        <input type="radio" name="restore" id="method_merge" value="merge" />
118
 !!!endif
119
        <label for="method_merge">$name_merge</label>
119
 <input type="submit" value="$name_selectrestore" />
120
        <div class="formHelp">$name_merge1.</div>
120
!set wims_ref_class=wims_button wims_secondary_button
121
      </li>
121
!href cmd=reply&job=new $wims_name_giveup
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>