Subversion Repositories wimsdev

Rev

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

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