Subversion Repositories wimsdev

Rev

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

Rev 10228 Rev 10351
Line 38... Line 38...
38
 !if $error=no_cgu
38
 !if $error=no_cgu
39
!!  !goto end
39
!!  !goto end
40
 !endif
40
 !endif
41
!endif
41
!endif
42
 
42
 
43
!!! En fait cela devrait ĂȘtre $idp_method=$empty Comment arrive-t-on ici ?
43
!!! En fait cela devrait etre $idp_method=$empty Comment arrive-t-on ici ?
44
!if OK iswordof $auth_test and $auth_method isitemof $auth_method_list and $exist_check notsametext yes
44
!if OK iswordof $auth_test and $auth_method isitemof $auth_method_list and $exist_check notsametext yes
45
!! we get here e.g. in case class_authidp=cas;php
45
!! we get here e.g. in case class_authidp=cas;php
46
$name_new_participant_external
46
$name_new_participant_external
47
 
47
 
48
 !if $type_class > 0 and $type!=authsupervisor and $authtype_!=teacher
48
 !if $type_class > 0 and $type!=authsupervisor and $authtype_!=teacher
Line 65... Line 65...
65
 !goto end
65
 !goto end
66
!endif
66
!endif
67
 
67
 
68
!read $type.phtml
68
!read $type.phtml
69
:end
69
:end
70
 
-
 
71
!if $wims_user=$empty or $wims_user=supervisor or $wims_class=$superclass
70
!if $wims_user=$empty or $wims_user=supervisor or $wims_class=$superclass
72
  !set list_menu=example,participant
71
  !set list_menu=example,participant
73
  !if $wims_user=$empty or $wims_user=supervisor
72
  !if $wims_user=$empty or $wims_user=supervisor
74
    !set list_menu=example,participant,supervisor
73
    !set list_menu=example,participant,supervisor
75
  !endif
74
  !endif
76
  !if $wims_user=supervisor and $class_type iswordof 2 4
75
  !if $wims_user=supervisor and $class_type iswordof 1 2 3 4
77
    !reset list_menu
76
    !reset list_menu
78
  !endif
77
  !endif
79
  !if $list_menu!=$empty
78
  !if $list_menu!=$empty
80
    !set wims_menu_items=!append line itemsep,0,$wims_name_Classes\
79
    !set wims_menu_items=!append line itemsep,0,$wims_name_Classes\
81
 to $wims_menu_items
80
 to $wims_menu_items
82
   !for t in $list_menu
81
    !for t in $list_menu
83
   !if $t!=$type or $wims_superclass!=$empty
82
      !if $t!=$type or $wims_superclass!=$empty
84
     !set wims_menu_items=!append line n_$t,1,module=$module&type=$t&keyword=$keyword\
83
        !set wims_menu_items=!append line n_$t,1,module=$module&type=$t&keyword=$keyword\
85
to $wims_menu_items
84
to $wims_menu_items
86
  !! !href module=$module&type=$t&keyword=$keyword $(wims_name_n_$t)
85
  !! !href module=$module&type=$t&keyword=$keyword $(wims_name_n_$t)
87
   !endif
86
      !endif
88
   !next t
87
   !next t
89
  !endif
88
  !endif
90
!endif
89
!endif
91
!if $wims_user=$empty and $type iswordof supervisor example and
90
!if $wims_user=$empty and $type iswordof supervisor example
92
 !set wims_menu_items=!append line itemsep,0,$wims_name_Creation\
91
 !set wims_menu_items=!append line itemsep,0,$wims_name_Creation\
93
 classcreate,1,module=adm/class/regclass\
92
 classcreate,1,module=adm/class/regclass\
94
to $wims_menu_items
93
to $wims_menu_items
95
!endif
94
!endif
96
 
95