Subversion Repositories wimsdev

Rev

Rev 11738 | Rev 13084 | 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
12720 bpr 4
  !exit
23 reyssat 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
12720 bpr 21
  !header1
22
  !!read themes/_widgets/classtitle.phtml
23
  !read adm/title.phtml 1\
24
  \
25
  $class_description\
26
  $class_institution
9506 bpr 27
!else
10874 obado 28
  !set wims_ariane = !append line n_$type,8 to $wims_ariane
9506 bpr 29
  !header
30
  !read adm/title.phtml 3\
12720 bpr 31
  \
32
  --- $(wims_name_n_$type) ---
9506 bpr 33
!endif
10874 obado 34
 
23 reyssat 35
!if $error!=$empty
12720 bpr 36
  <div class="wims_msg alert">
37
  !read msg.phtml
38
  </div>
39
  !! when you have the no_cgu error you do not want to show the rest
40
  !! of the page, do you? (it is shown e.g. when $(class_authidp[1;])=cas
41
  !if $error=no_cgu
42
    !!  !goto end
43
  !endif
23 reyssat 44
!endif
45
 
10351 bpr 46
!!! En fait cela devrait etre $idp_method=$empty Comment arrive-t-on ici ?
5013 bpr 47
!if OK iswordof $auth_test and $auth_method isitemof $auth_method_list and $exist_check notsametext yes
12720 bpr 48
  !! we get here e.g. in case class_authidp=cas;php
49
  $name_new_participant_external
5019 bpr 50
 
12720 bpr 51
  !if $type_class > 0 and $type!=authsupervisor and $authtype_!=teacher
52
    !set tmp_=&subclass=yes
53
  !else
54
    !reset tmp_
55
  !endif
5828 bpr 56
 
12720 bpr 57
  <div class="wimscenter">
58
  !! this is probably the only place we need idp_method=php
59
  !! (e.g. if class_authidp=cas;php)
60
  !if $(class_authidp[2;]) iswordof php and $class_php_auth!=$empty
61
    !if $type=authsupervisor
62
      !set ttmp_=&authtype=teacher
63
    !else
64
      !reset ttmp_
65
    !endif
66
    <a href="$class_php_auth?enter=$class$ttmp_" class="wims_button">$name_register</a>
67
  !else
68
    !set wims_ref_class=wims_button
69
    !href module=adm/class/reguser&class=$class$tmp_&authtype_=$authtype_ $name_register
70
  !endif
71
  </div>
72
  !reset tmp_ ttmp_
73
  !goto end
5019 bpr 74
!endif
4993 bpr 75
 
23 reyssat 76
!read $type.phtml
9560 czzmrn 77
:end
23 reyssat 78
!if $wims_user=$empty or $wims_user=supervisor or $wims_class=$superclass
9782 bpr 79
  !set list_menu=example,participant
9506 bpr 80
  !if $wims_user=$empty or $wims_user=supervisor
9782 bpr 81
    !set list_menu=example,participant,supervisor
9506 bpr 82
  !endif
10351 bpr 83
  !if $wims_user=supervisor and $class_type iswordof 1 2 3 4
10009 bpr 84
    !reset list_menu
85
  !endif
86
  !if $list_menu!=$empty
87
    !set wims_menu_items=!append line itemsep,0,$wims_name_Classes\
88
 to $wims_menu_items
10351 bpr 89
    !for t in $list_menu
90
      !if $t!=$type or $wims_superclass!=$empty
91
        !set wims_menu_items=!append line n_$t,1,module=$module&type=$t&keyword=$keyword\
1336 bpr 92
to $wims_menu_items
12720 bpr 93
        !! !href module=$module&type=$t&keyword=$keyword $(wims_name_n_$t)
10351 bpr 94
      !endif
12720 bpr 95
    !next t
23 reyssat 96
  !endif
97
!endif
10351 bpr 98
!if $wims_user=$empty and $type iswordof supervisor example
12720 bpr 99
  !set wims_menu_items=!append line itemsep,0,$wims_name_Creation\
100
   classcreate,1,module=adm/class/regclass\
1336 bpr 101
to $wims_menu_items
1246 bpr 102
!endif
23 reyssat 103
 
12720 bpr 104
!if $wims_theme_version=0 or $wims_theme_version=
105
  <div class="wimscenter">
11623 bpr 106
  !href target=wims_help module=help/main&chapter=3 $wims_name_whelp
12720 bpr 107
  </div>
108
  !!endif ???
1246 bpr 109
!endif
23 reyssat 110
!tail
111
 
112
!reset auth_user,auth_password,superclass,keyword