Subversion Repositories wimsdev

Rev

Rev 16094 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16094 Rev 17230
Line 19... Line 19...
19
    !read lang/names.phtml.$moduclass_lang arch
19
    !read lang/names.phtml.$moduclass_lang arch
20
  </div>
20
  </div>
21
!endif
21
!endif
22
 
22
 
23
!form reply
23
!form reply
24
  <input type="hidden" name="job" value="$job" />
24
  <input type="hidden" name="job" value="$job">
25
  <input type="hidden" name="job2" value="restore" />
25
  <input type="hidden" name="job2" value="restore">
26
  $name_deposit
26
  $name_deposit
27
  <fieldset class="property_fields">
27
  <fieldset class="property_fields">
28
    <legend>$name_res_type</legend>
28
    <legend>$name_res_type</legend>
29
    <ul>
29
    <ul>
30
      <li>
30
      <li>
31
        <input type="checkbox" name="selection" id="restore_all" value="all" />
31
        <input type="checkbox" name="selection" id="restore_all" value="all">
32
        <label for="restore_all">$name_all</label>
32
        <label for="restore_all">$name_all</label>
33
      </li>
33
      </li>
34
      !if def isitemof $gotlist
34
      !if def isitemof $gotlist
35
        <li>
35
        <li>
36
          <input type="checkbox" name="selection" id="restore_def" value="def" />
36
          <input type="checkbox" name="selection" id="restore_def" value="def">
37
          <label for="restore_def">$name_config. $name_danger.</label>
37
          <label for="restore_def">$name_config. $name_danger.</label>
38
        </li>
38
        </li>
39
      !endif
39
      !endif
40
      !if sup isitemof $gotlist
40
      !if sup isitemof $gotlist
41
        <li>
41
        <li>
42
          !if $sharing_sup=$empty
42
          !if $sharing_sup=$empty
43
            <input type="checkbox" name="selection" id="restore_sup" value="sup" />
43
            <input type="checkbox" name="selection" id="restore_sup" value="sup">
44
          !endif
44
          !endif
45
            <label for="restore_sup">$name_teacher.</label>
45
            <label for="restore_sup">$name_teacher.</label>
46
          !if $sharing_sup!=$empty
46
          !if $sharing_sup!=$empty
47
            $name_no_restore
47
            $name_no_restore
48
          !else
48
          !else
Line 52... Line 52...
52
      !endif
52
      !endif
53
      !let list=!listintersect user,doc,exo,sheet,exam,forum,motd,userphoto,tool,freework and $gotlist
53
      !let list=!listintersect user,doc,exo,sheet,exam,forum,motd,userphoto,tool,freework and $gotlist
54
      !for type in $list
54
      !for type in $list
55
        <li>
55
        <li>
56
          !if $(sharing_$type)=$empty and $type notitemof $forbiddenlistdep
56
          !if $(sharing_$type)=$empty and $type notitemof $forbiddenlistdep
57
            <input type="checkbox" name="selection" id="restore_$type" value="$type" />
57
            <input type="checkbox" name="selection" id="restore_$type" value="$type">
58
          !endif
58
          !endif
59
          <label for="restore_$type"><strong>$(new_$(type)cnt)</strong> $(name_$type).</label>
59
          <label for="restore_$type"><strong>$(new_$(type)cnt)</strong> $(name_$type).</label>
60
          !if $(sharing_$type)!=$empty
60
          !if $(sharing_$type)!=$empty
61
            $name_no_restore
61
            $name_no_restore
62
          !else
62
          !else
Line 74... Line 74...
74
        </li>
74
        </li>
75
      !next type
75
      !next type
76
      !if score isitemof $gotlist
76
      !if score isitemof $gotlist
77
        <li>
77
        <li>
78
          !if score notitemof $forbiddenlistdep
78
          !if score notitemof $forbiddenlistdep
79
            <input type="checkbox" name="selection" id="restore_score" value="score" />          
79
            <input type="checkbox" name="selection" id="restore_score" value="score">
80
          !endif
80
          !endif
81
          <label for="restore_score">$name_activity</label>
81
          <label for="restore_score">$name_activity</label>
82
          !if score isitemof $forbiddenlistdep  
82
          !if score isitemof $forbiddenlistdep
83
              !if score notitemof $forbiddenlist
83
              !if score notitemof $forbiddenlist
84
                $name_dependance
84
                $name_dependance
85
              !else
85
              !else
86
                $name_limit_exceed
86
                $name_limit_exceed
87
              !endif
87
              !endif
Line 89... Line 89...
89
        </li>
89
        </li>
90
      !endif
90
      !endif
91
      !if manual isitemof $gotlist
91
      !if manual isitemof $gotlist
92
        <li>
92
        <li>
93
          !if manual notitemof $forbiddenlistdep
93
          !if manual notitemof $forbiddenlistdep
94
            <input type="checkbox" name="selection" id="restore_manual" value="manual" />
94
            <input type="checkbox" name="selection" id="restore_manual" value="manual">
95
          !endif
95
          !endif
96
          <label for="restore_manual">$new_manualcnt $name_manual.</label>
96
          <label for="restore_manual">$new_manualcnt $name_manual.</label>
97
          !if manual isitemof $forbiddenlistdep
97
          !if manual isitemof $forbiddenlistdep
98
              !if manual notitemof $forbiddenlist
98
              !if manual notitemof $forbiddenlist
99
                $name_dependance
99
                $name_dependance
100
              !else
100
              !else
101
                $name_limit_exceed
101
                $name_limit_exceed
Line 106... Line 106...
106
          !endif
106
          !endif
107
        </li>
107
        </li>
108
      !endif
108
      !endif
109
      !if cdt isitemof $gotlist
109
      !if cdt isitemof $gotlist
110
         <li>
110
         <li>
111
           <input type="checkbox" name="selection" id="restore_cdt" value="cdt" />
111
           <input type="checkbox" name="selection" id="restore_cdt" value="cdt">
112
           <label for="restore_cdt">$name_cdt.</label>
112
           <label for="restore_cdt">$name_cdt.</label>
113
           !if $old_cdtcnt>0
113
           !if $old_cdtcnt>0
114
             <span class="small">($name_cdt1)</span>
114
             <span class="small">($name_cdt1)</span>
115
           !endif
115
           !endif
116
         </li>
116
         </li>
117
      !endif
117
      !endif
118
      !if livret isitemof $gotlist
118
      !if livret isitemof $gotlist
119
        <li>
119
        <li>
120
          !if livret notitemof $forbiddenlistdep
120
          !if livret notitemof $forbiddenlistdep
121
            <input type="checkbox" name="selection" id="restore_livret" value="livret" />
121
            <input type="checkbox" name="selection" id="restore_livret" value="livret">
122
          !endif
122
          !endif
123
          <label for="restore_livret">$name_livret.</label>
123
          <label for="restore_livret">$name_livret.</label>
124
          !if livret isitemof $forbiddenlistdep
124
          !if livret isitemof $forbiddenlistdep
125
              !if livret notitemof $forbiddenlist
125
              !if livret notitemof $forbiddenlist
126
                $name_dependance
126
                $name_dependance
Line 135... Line 135...
135
        </li>
135
        </li>
136
      !endif
136
      !endif
137
      !if seq isitemof $gotlist
137
      !if seq isitemof $gotlist
138
        <li>
138
        <li>
139
          !if seq notitemof $forbiddenlistdep
139
          !if seq notitemof $forbiddenlistdep
140
            <input type="checkbox" name="selection" id="restore_seq" value="seq" />
140
            <input type="checkbox" name="selection" id="restore_seq" value="seq">
141
          !endif
141
          !endif
142
          <label for="restore_seq">$name_seq.</label>
142
          <label for="restore_seq">$name_seq.</label>
143
          !if seq isitemof $forbiddenlistdep
143
          !if seq isitemof $forbiddenlistdep
144
              !if seq notitemof $forbiddenlist
144
              !if seq notitemof $forbiddenlist
145
                $name_dependance
145
                $name_dependance
Line 157... Line 157...
157
 
157
 
158
  <fieldset class="property_fields">
158
  <fieldset class="property_fields">
159
    <legend>$name_method</legend>
159
    <legend>$name_method</legend>
160
    <ul>
160
    <ul>
161
      <li>
161
      <li>
162
        <input type="radio" name="restore" id="method_merge" value="merge" checked="checked" />
162
        <input type="radio" name="restore" id="method_merge" value="merge" checked="checked">
163
        <label for="method_merge">$name_merge</label>
163
        <label for="method_merge">$name_merge</label>
164
        <div class="formHelp">$name_merge1.</div>
164
        <div class="formHelp">$name_merge1.</div>
165
      </li>
165
      </li>
166
      <li>
166
      <li>
167
        <input type="radio" name="restore" id="method_replace" value="replace" />
167
        <input type="radio" name="restore" id="method_replace" value="replace">
168
        <label for="method_replace">$name_replace</label>
168
        <label for="method_replace">$name_replace</label>
169
        <div class="formHelp"><span class="wims_warning">$name_replace1.</span></div>
169
        <div class="formHelp"><span class="wims_warning">$name_replace1.</span></div>
170
      </li>
170
      </li>
171
    </ul>
171
    </ul>
172
  </fieldset>
172
  </fieldset>
173
  !!## TODO desactiver les feuilles s'il n'y pas de participant et enlever la date d'expiration?
173
  !!## TODO desactiver les feuilles s'il n'y pas de participant et enlever la date d'expiration?
174
  !!!if $(new_usercnt)=0
174
  !!!if $(new_usercnt)=0
175
  !!   <input type="checkbox" name="preparation" value="no" /> Mettre les feuilles en prĂ©paration
175
  !!   <input type="checkbox" name="preparation" value="no"> Mettre les feuilles en prĂ©paration
176
  !!!endif
176
  !!!endif
177
  <div class="wimscenter">
177
  <div class="wimscenter">
178
    <input type="submit" value="$name_selectrestore" />
178
    <input type="submit" value="$name_selectrestore">
179
    !set wims_ref_class=wims_button wims_secondary_button
179
    !set wims_ref_class=wims_button wims_secondary_button
180
    !href cmd=reply&job=new $wims_name_giveup
180
    !href cmd=reply&job=new $wims_name_giveup
181
  </div>
181
  </div>
182
!formend
182
!formend
183
 
183