Subversion Repositories wimsdev

Rev

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