Subversion Repositories wimsdev

Rev

Rev 13084 | Rev 17426 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

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