Subversion Repositories wimsdev

Rev

Rev 12955 | Rev 13123 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12955 Rev 12991
Line 17... Line 17...
17
  ($name_reserved)
17
  ($name_reserved)
18
  </p>
18
  </p>
19
!endif
19
!endif
20
!if $error!=$empty
20
!if $error!=$empty
21
  <div class="wims_msg alert">
21
  <div class="wims_msg alert">
22
    !read lang/msg.phtml.$modu_lang
22
  !read lang/msg.phtml.$modu_lang
23
  </div>
23
  </div>
24
  <p>
24
  <p>
25
  !set wims_ref_class=wims_button
25
  !set wims_ref_class=wims_button
26
  !href cmd=new&class=$class&subclass=yes $wims_name_back2
26
  !href cmd=new&class=$class&subclass=yes $wims_name_back2
27
  </p>
27
  </p>
Line 137... Line 137...
137
  !if $cltype iswordof 4 2
137
  !if $cltype iswordof 4 2
138
    $name_warning_protected
138
    $name_warning_protected
139
    !if $classcnt>0
139
    !if $classcnt>0
140
      $name_inscription_student
140
      $name_inscription_student
141
      !href cmd=new&module=$module&class=$class&subclass=yes $name_inyourclass
141
      !href cmd=new&module=$module&class=$class&subclass=yes $name_inyourclass
142
.
142
      .
143
    !endif
143
    !endif
144
  !else
144
  !else
145
    $name_isprotected
145
    $name_isprotected
146
  !endif
146
  !endif
147
  <p>$name_writepasswd
147
  <p>$name_writepasswd
Line 181... Line 181...
181
  ).
181
  ).
182
  !if $cltype iswordof 2 4
182
  !if $cltype iswordof 2 4
183
    <p>
183
    <p>
184
      <span class="wims_warning">$wims_name_warning</span>.
184
      <span class="wims_warning">$wims_name_warning</span>.
185
      $name_warning_direct
185
      $name_warning_direct
186
      !href cmd=new&module=$module&class=$class&subclass=yes $name_inyourclass
186
    !href cmd=new&module=$module&class=$class&subclass=yes $name_inyourclass
187
.
187
    .
188
    </p>
188
    </p>
189
  !endif
189
  !endif
190
  !goto end1
190
  !goto end1
191
!endif
191
!endif
192
 
192
 
Line 195... Line 195...
195
    !form reply
195
    !form reply
196
      <input type="hidden" name="step" value="1" />
196
      <input type="hidden" name="step" value="1" />
197
      <label for="search">$name_research:</label>
197
      <label for="search">$name_research:</label>
198
      <input size="20" name="search" id="search" value="$search" />
198
      <input size="20" name="search" id="search" value="$search" />
199
      <input type="submit" value="$wims_name_tosave" />
199
      <input type="submit" value="$wims_name_tosave" />
200
 
200
 
201
    !formend
201
    !formend
202
    !default foundcnt=0
202
    !default foundcnt=0
203
    !if $foundcnt>0
203
    !if $foundcnt>0
204
      $table_header
204
      $table_header
205
      <caption>$name_clickname</caption>
205
      <caption>$name_clickname</caption>
206
      $table_hdtr<th>$wims_name_name</th><th>$wims_name_Login</th></tr>
206
      $table_hdtr<th>$wims_name_name</th><th>$wims_name_Login</th></tr>
Line 224... Line 224...
224
    !if $idp_method notitemof $idp_method_list
224
    !if $idp_method notitemof $idp_method_list
225
      !if $wims_user=supervisor
225
      !if $wims_user=supervisor
226
        $name_inscription21
226
        $name_inscription21
227
      !else
227
      !else
228
        $name_inscription2
228
        $name_inscription2
229
      !endif
229
      !endif
230
    !endif
230
    !endif
231
  !endif
231
  !endif
232
 
232
 
233
  !form reply
233
  !form reply
234
  !! check user supervisor??
234
  !! check user supervisor??
Line 267... Line 267...
267
        !default utype=0
267
        !default utype=0
268
        !set wims_ref_class=wims_formradio
268
        !set wims_ref_class=wims_formradio
269
        !formradio utype list 0,1 prompt $wims_name_namestudent,$wims_name_nameteacher
269
        !formradio utype list 0,1 prompt $wims_name_namestudent,$wims_name_nameteacher
270
        </div>
270
        </div>
271
      !endif
271
      !endif
272
      <div class="wimscenter wimsform">
272
        <div class="wimscenter wimsform">
273
        <input type="submit" value="$wims_name_tosave" />
273
          <input type="submit" value="$wims_name_tosave" />
274
      </div>
274
        </div>
275
    </fieldset>
275
      </fieldset>
-
 
276
 
-
 
277
      !formend
-
 
278
      !goto end1
-
 
279
    !endif
276
 
280
 
277
    !formend
-
 
278
    !goto end1
-
 
279
  !endif
-
 
280
 
-
 
281
  !! teacher registering a student with external auth without idp ldap
281
    !! teacher registering a student with external auth without idp ldap
282
  !if $auth_method isitemof $auth_method_list
282
    !if $auth_method isitemof $auth_method_list
283
    <input type="hidden" name="step" value="3" />
283
      <input type="hidden" name="step" value="3" />
284
    <fieldset class="property_fields halfwidth blockcenter">
284
      <fieldset class="property_fields halfwidth blockcenter">
285
      <legend>$name_title</legend>
285
        <legend>$name_title</legend>
286
      <div class="field box halfwidth">
286
        <div class="field box halfwidth">
287
        <label for="lastn">$wims_name_lastname</label>
287
          <label for="lastn">$wims_name_lastname</label>
288
        <input size="20" name="lastn" id="lastn" value="$lastn" />
288
          <input size="20" name="lastn" id="lastn" value="$lastn" />
289
      </div>
289
        </div>
290
      <div class="field box halfwidth">
290
        <div class="field box halfwidth">
291
        <label for="firstn">$wims_name_firstname</label>
291
          <label for="firstn">$wims_name_firstname</label>
292
        <input size="20" name="firstn" id="firstn" value="$firstn" />
292
          <input size="20" name="firstn" id="firstn" value="$firstn" />
293
      </div>
293
        </div>
294
      <div class="field box">
294
        <div class="field box">
295
        <label for="user_auth">$wims_name_Login </label>
295
          <label for="user_auth">$wims_name_Login </label>
296
        <input size="16" name="user_auth" id="user_auth" value="$user_auth" />
296
          <input size="16" name="user_auth" id="user_auth" value="$user_auth" />
297
        <div class="formHelp">$name_external,
297
          <div class="formHelp">$name_external,
298
          <span class="wims_warning">$name_login_external_warning</span>
298
            <span class="wims_warning">$name_login_external_warning</span>
299
        </div>
299
        </div>
300
      </div>
300
      </div>
301
      <div class="field box">
301
      <div class="field box">
302
        <label for="email">$wims_name_email</label>
302
        <label for="email">$wims_name_email</label>
303
        <input type="email" size="60" name="email" id="email" value="$email" />
303
        <input type="email" size="60" name="email" id="email" value="$email" />
304
        <div class="formHelp">$name_optional</div>
304
        <div class="formHelp">$name_optional</div>
305
      </div>
305
      </div>
306
      <div class="wimscenter wimsform">
306
      <div class="wimscenter wimsform">
307
        <input type="submit" value="$wims_name_tosave" />
307
        <input type="submit" value="$wims_name_tosave" />
308
      </div>
308
      </div>
309
    </fieldset>
309
      </fieldset>
310
    !formend
310
      !formend
311
    !goto end1
311
      !goto end1
-
 
312
    !endif
-
 
313
  !endif step empty or step<2
-
 
314
 
-
 
315
  !if $auth_user=$empty or $auth_method notitemof $auth_method_list
-
 
316
    !!read adm/language lang/names.phtml
-
 
317
    <input type="hidden" name="step" value="2" />
-
 
318
  !else
-
 
319
    <input type="hidden" name="step" value="3" />
312
  !endif
320
  !endif
313
!endif step empty or step<2
-
 
314
 
-
 
315
!if $auth_user=$empty or $auth_method notitemof $auth_method_list
-
 
316
  !!read adm/language lang/names.phtml
-
 
317
  <input type="hidden" name="step" value="2" />
-
 
318
!else
-
 
319
  <input type="hidden" name="step" value="3" />
-
 
320
!endif
-
 
321
  <fieldset class="property_fields halfwidth blockcenter">
321
  <fieldset class="property_fields halfwidth blockcenter">
322
    <legend>$name_title</legend>
322
    <legend>$name_title</legend>
323
    <div class="field box halfwidth">
323
    <div class="field box halfwidth">
324
      <label for="lastn">$wims_name_lastname</label>
324
      <label for="lastn">$wims_name_lastname</label>
325
      <input size="20" name="lastn" id="lastn" value="$lastn" required="required" />
325
      <input size="20" name="lastn" id="lastn" value="$lastn" required="required" />
Line 477... Line 477...
477
      !else
477
      !else
478
        !href module=adm/class/classes&type=authparticipant&class=$class&auth_user=$login $name_gotowork
478
        !href module=adm/class/classes&type=authparticipant&class=$class&auth_user=$login $name_gotowork
479
      !endif
479
      !endif
480
    !endif
480
    !endif
481
    !!FIXME what about php here
481
    !!FIXME what about php here
482
    !! Pourquoi est-ce different : dans le second cas ouvre une autre session, demande de nouveau le mot de passe ???
482
    !! Pourquoi est-ce different : dans le second cas ouvre une autre session,
-
 
483
    !! demande de nouveau le mot de passe ???
483
  !else
484
  !else
484
    !if $auth_method isitemof cas
485
    !if $auth_method isitemof cas
485
      !set url = $wims_ref_name?module=adm/class/classes&type=authparticipant&class=$class
486
      !set url = $wims_ref_name?module=adm/class/classes&type=authparticipant&class=$class
486
      !read adm/codeurl $url
487
      !read adm/codeurl $url
487
      !set class_cas_auth=!getdef class_cas_auth in wimshome/log/classes/$ssclass/.def
488
      !set class_cas_auth=!getdef class_cas_auth in wimshome/log/classes/$ssclass/.def