Subversion Repositories wimsdev

Rev

Rev 10228 | Rev 10768 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5181 guerimand 1
!read adm/language lang/names.phtml
2238 bpr 2
 
23 reyssat 3
!if robot isin $session or _ isin $session
4
 !exit
5
!endif
4993 bpr 6
 
5350 guerimand 7
!if $error isitemof bad_password,bad_loginmail
1060 bpr 8
  !read js/chrono.phtml 5
23 reyssat 9
!endif
1060 bpr 10
!set wims_html_header=$wims_html_header $header_js
2238 bpr 11
 
1170 bpr 12
!read adm/css.phtml
6118 obado 13
 
2238 bpr 14
!if $(module_title_$modu_lang)!=
15
  !set module_title=$(module_title_$modu_lang)
16
!endif
4043 bpr 17
!read adm/class/classname.phtml $class_description\
18
$class_institution
2238 bpr 19
 
9506 bpr 20
!if $class_description$class_institution!=$empty
21
 !header1
10111 bpr 22
 !read adm/title.phtml 1\
23
 \
9506 bpr 24
 $wims_classname\
25
 $class_institution <br/>--- $(wims_name_n_$type) ---
26
!else
27
  !header
28
  !read adm/title.phtml 3\
1389 bpr 29
\
30
--- $(wims_name_n_$type) ---
9506 bpr 31
!endif
23 reyssat 32
!if $error!=$empty
10228 bpr 33
 <div class="wims_msg alert">
9471 bpr 34
 !read msg.phtml
5874 bpr 35
 </div>
9560 czzmrn 36
!! when you have the no_cgu error you do not want to show the rest
37
!! of the page, do you? (it is shown e.g. when $(class_authidp[1;])=cas
38
 !if $error=no_cgu
9577 czzmrn 39
!!  !goto end
9560 czzmrn 40
 !endif
23 reyssat 41
!endif
42
 
10351 bpr 43
!!! En fait cela devrait etre $idp_method=$empty Comment arrive-t-on ici ?
5013 bpr 44
!if OK iswordof $auth_test and $auth_method isitemof $auth_method_list and $exist_check notsametext yes
5443 czzmrn 45
!! we get here e.g. in case class_authidp=cas;php
5015 bpr 46
$name_new_participant_external
5019 bpr 47
 
5828 bpr 48
 !if $type_class > 0 and $type!=authsupervisor and $authtype_!=teacher
5019 bpr 49
  !set tmp_=&subclass=yes
5028 bpr 50
 !endif
5828 bpr 51
 
52
 <div class="wimscenter">
5443 czzmrn 53
!! this is probably the only place we need idp_method=php
54
!! (e.g. if class_authidp=cas;php)
5143 czzmrn 55
 !if $(class_authidp[2;]) iswordof php and $class_php_auth!=$empty
5443 czzmrn 56
 !if $type=authsupervisor
57
  !set ttmp_=&authtype=teacher
58
 !endif
8430 bpr 59
   <a href="$class_php_auth?enter=$class$ttmp_" class="wims_button">$name_register</a>
5143 czzmrn 60
 !else
61
   !set wims_ref_class=wims_button
5828 bpr 62
   !href module=adm/class/reguser&class=$class$tmp_&authtype_=$authtype_ $name_register
5143 czzmrn 63
 !endif
5828 bpr 64
 </div>
5028 bpr 65
 !goto end
5019 bpr 66
!endif
4993 bpr 67
 
23 reyssat 68
!read $type.phtml
9560 czzmrn 69
:end
23 reyssat 70
!if $wims_user=$empty or $wims_user=supervisor or $wims_class=$superclass
9782 bpr 71
  !set list_menu=example,participant
9506 bpr 72
  !if $wims_user=$empty or $wims_user=supervisor
9782 bpr 73
    !set list_menu=example,participant,supervisor
9506 bpr 74
  !endif
10351 bpr 75
  !if $wims_user=supervisor and $class_type iswordof 1 2 3 4
10009 bpr 76
    !reset list_menu
77
  !endif
78
  !if $list_menu!=$empty
79
    !set wims_menu_items=!append line itemsep,0,$wims_name_Classes\
80
 to $wims_menu_items
10351 bpr 81
    !for t in $list_menu
82
      !if $t!=$type or $wims_superclass!=$empty
83
        !set wims_menu_items=!append line n_$t,1,module=$module&type=$t&keyword=$keyword\
1336 bpr 84
to $wims_menu_items
1246 bpr 85
  !! !href module=$module&type=$t&keyword=$keyword $(wims_name_n_$t)
10351 bpr 86
      !endif
10009 bpr 87
   !next t
23 reyssat 88
  !endif
89
!endif
10351 bpr 90
!if $wims_user=$empty and $type iswordof supervisor example
9809 bpr 91
 !set wims_menu_items=!append line itemsep,0,$wims_name_Creation\
2238 bpr 92
 classcreate,1,module=adm/class/regclass\
1336 bpr 93
to $wims_menu_items
1246 bpr 94
!endif
23 reyssat 95
 
1308 bpr 96
 !if $wims_theme_version=0 or $wims_theme_version=
5828 bpr 97
 <div class="wimscenter">
1741 bpr 98
  !href target=wims_help module=help/main&chapter=3 $wims_name_Explanations
5828 bpr 99
 </div>
1246 bpr 100
 !endif
101
!endif
23 reyssat 102
!tail
103
 
104
!reset auth_user,auth_password,superclass,keyword