Subversion Repositories wimsdev

Rev

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