Subversion Repositories wimsdev

Rev

Rev 9560 | Rev 9782 | 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. !! when you have the no_cgu error you do not want to show the rest
  36. !! of the page, do you? (it is shown e.g. when $(class_authidp[1;])=cas
  37.  !if $error=no_cgu
  38. !!  !goto end
  39.  !endif
  40. !endif
  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. :end
  69. !if $wims_user=$empty or $wims_user=supervisor or $wims_class=$superclass
  70.   !set list_menu=participant,example
  71.   !if $wims_user=$empty or $wims_user=supervisor
  72.    !set list_menu=$list_menu,supervisor
  73.   !endif
  74.  !for t in $list_menu
  75.   !if $t!=$type or $wims_superclass!=$empty
  76.    !set wims_menu_items=!append line n_$t,1,module=$module&type=$t&keyword=$keyword\
  77. to $wims_menu_items
  78.   !! !href module=$module&type=$t&keyword=$keyword $(wims_name_n_$t)
  79.   !endif
  80.  !next t
  81. !endif
  82. !if $wims_user=$empty and $type iswordof supervisor example
  83.  !set wims_menu_items=!append line ,0,\
  84.  classcreate,1,module=adm/class/regclass\
  85. to $wims_menu_items
  86. !endif
  87.  
  88.  !if $wims_theme_version=0 or $wims_theme_version=
  89.  <div class="wimscenter">
  90.   !href target=wims_help module=help/main&chapter=3 $wims_name_Explanations
  91.  </div>
  92.  !endif
  93. !endif
  94. !tail
  95.  
  96. !reset auth_user,auth_password,superclass,keyword
  97.  
  98.