Subversion Repositories wimsdev

Rev

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