Subversion Repositories wimsdev

Rev

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

  1. !read adm/language lang/names.phtml
  2. !!read lang/names.phtml.$modu_lang     --------- not used, file directly read by script adm/language
  3.  
  4. !if robot isin $session or _ isin $session
  5.  !exit
  6. !endif
  7.  
  8. !if $error isitemof bad_password,bad_loginmail
  9.   !read js/chrono.phtml 5
  10. !endif
  11. !set wims_html_header=$wims_html_header $header_js
  12.  
  13. !read adm/css.phtml
  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. !header
  21.  
  22. !read adm/title.phtml 3\
  23. \
  24. --- $(wims_name_n_$type) ---
  25.  
  26. !if $error!=$empty
  27.  !read lang/msg.phtml.$moduclass_lang
  28. !! why not having a !goto end here??
  29. !! (the "!exit" in lang/msg.phtml.$moduclass_lang seems not to be stopping
  30. !! the rest of the page from being shown)
  31. !! !goto end
  32.  <p><hr/></p>
  33. !endif
  34.  
  35.  
  36. !!! En fait cela devrait ĂȘtre $idp_method=$empty Comment arrive-t-on ici ?
  37. !if OK iswordof $auth_test and $auth_method isitemof $auth_method_list and $exist_check notsametext yes
  38. !! we get here e.g. in case class_authidp=cas;php
  39. $name_new_participant_external
  40.  
  41.  !if $type_class > 0 and $type!=authsupervisor and $authtype_!=teacher
  42.   !set tmp_=&subclass=yes
  43.  !endif
  44.  
  45.  <div class="wimscenter">
  46. !! this is probably the only place we need idp_method=php
  47. !! (e.g. if class_authidp=cas;php)
  48.  !if $(class_authidp[2;]) iswordof php and $class_php_auth!=$empty
  49.  !if $type=authsupervisor
  50.   !set ttmp_=&authtype=teacher
  51.  !endif
  52.    <a href="$class_php_auth?enter=$class$ttmp_" class="wims_button">$name_register</a>        
  53.  !else
  54.    !set wims_ref_class=wims_button
  55.    !href module=adm/class/reguser&class=$class$tmp_&authtype_=$authtype_ $name_register
  56.  !endif
  57.  </div>
  58.  !goto end
  59. !endif
  60.  
  61. !read $type.phtml
  62. !if $wims_user=$empty or $wims_user=supervisor or $wims_class=$superclass
  63.  !for t in participant,supervisor,example
  64.   !if $t!=$type or $superclass!=$empty
  65.    !set wims_menu_items=!append line n_$t,1,module=$module&type=$t&keyword=$keyword\
  66. to $wims_menu_items
  67.   !! !href module=$module&type=$t&keyword=$keyword $(wims_name_n_$t)
  68.   !endif
  69.  !next t
  70. !endif
  71. !if $wims_user=$empty and $type iswordof supervisor example
  72.  !set wims_menu_items=!append line ,0,\
  73.  classcreate,1,module=adm/class/regclass\
  74. to $wims_menu_items
  75. !endif
  76.  
  77.  !if $wims_theme_version=0 or $wims_theme_version=
  78.  <div class="wimscenter">
  79.   !href target=wims_help module=help/main&chapter=3 $wims_name_Explanations
  80.  </div>
  81.  !endif
  82. !endif
  83. :end
  84. !tail
  85.  
  86. !reset auth_user,auth_password,superclass,keyword
  87.  
  88.