Subversion Repositories wimsdev

Rev

Rev 16094 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
 
2
!if $error!=$empty
12135 obado 3
  !exit
23 reyssat 4
!endif
5
 
6
!if $no_selection!=$empty
13330 obado 7
  <div class="wims_msg alert">
8
    <span class="wims_warning">$wims_name_warning</span>. $name_noselect
9
  </div>
23 reyssat 10
!endif
11
 
12
!if $serial!=$wims_class and $old_testcnt>0
12135 obado 13
  !set test=bad
23 reyssat 14
!endif
6077 czzmrn 15
 
23 reyssat 16
!if $test=bad
12135 obado 17
  <div class="wims_msg alert">
18
    <span class="wims_warning">$wims_name_warning!</span>
19
    !read lang/names.phtml.$moduclass_lang arch
20
  </div>
23 reyssat 21
!endif
22
 
23
!form reply
17230 bpr 24
  <input type="hidden" name="job" value="$job">
25
  <input type="hidden" name="job2" value="restore">
12135 obado 26
  $name_deposit
13330 obado 27
  <fieldset class="property_fields">
28
    <legend>$name_res_type</legend>
29
    <ul>
30
      <li>
17230 bpr 31
        <input type="checkbox" name="selection" id="restore_all" value="all">
13330 obado 32
        <label for="restore_all">$name_all</label>
33
      </li>
34
      !if def isitemof $gotlist
35
        <li>
17230 bpr 36
          <input type="checkbox" name="selection" id="restore_def" value="def">
13330 obado 37
          <label for="restore_def">$name_config. $name_danger.</label>
38
        </li>
39
      !endif
40
      !if sup isitemof $gotlist
41
        <li>
42
          !if $sharing_sup=$empty
17230 bpr 43
            <input type="checkbox" name="selection" id="restore_sup" value="sup">
13330 obado 44
          !endif
45
            <label for="restore_sup">$name_teacher.</label>
46
          !if $sharing_sup!=$empty
47
            $name_no_restore
48
          !else
49
            $name_danger.
50
          !endif
51
        </li>
52
      !endif
16094 guerimand 53
      !let list=!listintersect user,doc,exo,sheet,exam,forum,motd,userphoto,tool,freework and $gotlist
13330 obado 54
      !for type in $list
55
        <li>
16091 guerimand 56
          !if $(sharing_$type)=$empty and $type notitemof $forbiddenlistdep
17230 bpr 57
            <input type="checkbox" name="selection" id="restore_$type" value="$type">
13330 obado 58
          !endif
59
          <label for="restore_$type"><strong>$(new_$(type)cnt)</strong> $(name_$type).</label>
60
          !if $(sharing_$type)!=$empty
61
            $name_no_restore
62
          !else
16094 guerimand 63
            !if $type isitemof $forbiddenlistdep
16091 guerimand 64
              !if $type notitemof $forbiddenlist
65
                $name_dependance
66
              !else
67
                $name_limit_exceed
68
              !endif
69
            !else
16094 guerimand 70
              $(name_$(type)0)
16091 guerimand 71
              <span class="small">($(name_$(type)1) : $(old_$(type)cnt))</span>.
72
            !endif
13330 obado 73
          !endif
74
        </li>
75
      !next type
76
      !if score isitemof $gotlist
77
        <li>
16091 guerimand 78
          !if score notitemof $forbiddenlistdep
17230 bpr 79
            <input type="checkbox" name="selection" id="restore_score" value="score">
16091 guerimand 80
          !endif
13330 obado 81
          <label for="restore_score">$name_activity</label>
17230 bpr 82
          !if score isitemof $forbiddenlistdep
16091 guerimand 83
              !if score notitemof $forbiddenlist
84
                $name_dependance
85
              !else
86
                $name_limit_exceed
87
              !endif
88
          !endif
13330 obado 89
        </li>
90
      !endif
91
      !if manual isitemof $gotlist
92
        <li>
16091 guerimand 93
          !if manual notitemof $forbiddenlistdep
17230 bpr 94
            <input type="checkbox" name="selection" id="restore_manual" value="manual">
16091 guerimand 95
          !endif
17230 bpr 96
          <label for="restore_manual">$new_manualcnt $name_manual.</label>
16094 guerimand 97
          !if manual isitemof $forbiddenlistdep
16091 guerimand 98
              !if manual notitemof $forbiddenlist
99
                $name_dependance
100
              !else
101
                $name_limit_exceed
102
              !endif
103
          !else
104
            <span class="small">($name_manual1&nbsp;:
105
             $old_manualcnt)</span>.
106
          !endif
13330 obado 107
        </li>
108
      !endif
109
      !if cdt isitemof $gotlist
110
         <li>
17230 bpr 111
           <input type="checkbox" name="selection" id="restore_cdt" value="cdt">
13330 obado 112
           <label for="restore_cdt">$name_cdt.</label>
113
           !if $old_cdtcnt>0
114
             <span class="small">($name_cdt1)</span>
115
           !endif
116
         </li>
117
      !endif
118
      !if livret isitemof $gotlist
119
        <li>
16091 guerimand 120
          !if livret notitemof $forbiddenlistdep
17230 bpr 121
            <input type="checkbox" name="selection" id="restore_livret" value="livret">
16091 guerimand 122
          !endif
13330 obado 123
          <label for="restore_livret">$name_livret.</label>
16094 guerimand 124
          !if livret isitemof $forbiddenlistdep
16091 guerimand 125
              !if livret notitemof $forbiddenlist
126
                $name_dependance
127
              !else
128
                $name_limit_exceed
129
              !endif
130
          !else
131
            !if $old_livretcnt>0
132
              <span class="small">($name_livret1)</span>
133
            !endif
13330 obado 134
          !endif
135
        </li>
136
      !endif
137
      !if seq isitemof $gotlist
138
        <li>
16091 guerimand 139
          !if seq notitemof $forbiddenlistdep
17230 bpr 140
            <input type="checkbox" name="selection" id="restore_seq" value="seq">
16091 guerimand 141
          !endif
13330 obado 142
          <label for="restore_seq">$name_seq.</label>
16094 guerimand 143
          !if seq isitemof $forbiddenlistdep
16091 guerimand 144
              !if seq notitemof $forbiddenlist
145
                $name_dependance
146
              !else
147
                $name_limit_exceed
148
              !endif
149
          !else
150
            $name_seq0
151
            <span class="small">($name_seq1 $old_seqcnt)</span>.
152
          !endif
13330 obado 153
        </li>
154
      !endif
155
    </ul>
156
  </fieldset>
157
 
158
  <fieldset class="property_fields">
159
    <legend>$name_method</legend>
160
    <ul>
161
      <li>
17230 bpr 162
        <input type="radio" name="restore" id="method_merge" value="merge" checked="checked">
13330 obado 163
        <label for="method_merge">$name_merge</label>
164
        <div class="formHelp">$name_merge1.</div>
165
      </li>
13360 obado 166
      <li>
17230 bpr 167
        <input type="radio" name="restore" id="method_replace" value="replace">
13360 obado 168
        <label for="method_replace">$name_replace</label>
169
        <div class="formHelp"><span class="wims_warning">$name_replace1.</span></div>
170
      </li>
13330 obado 171
    </ul>
172
  </fieldset>
173
  !!## TODO desactiver les feuilles s'il n'y pas de participant et enlever la date d'expiration?
174
  !!!if $(new_usercnt)=0
17230 bpr 175
  !!   <input type="checkbox" name="preparation" value="no"> Mettre les feuilles en préparation
13330 obado 176
  !!!endif
177
  <div class="wimscenter">
17230 bpr 178
    <input type="submit" value="$name_selectrestore">
13330 obado 179
    !set wims_ref_class=wims_button wims_secondary_button
180
    !href cmd=reply&job=new $wims_name_giveup
181
  </div>
5926 bpr 182
!formend
183
 
10229 bpr 184
<div class="wims_msg info">
12135 obado 185
  !read lang/names.phtml.$moduclass_lang arch_end
7684 bpr 186
</div>