Subversion Repositories wimsdev

Rev

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