Subversion Repositories wimsdev

Rev

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

  1. !for cnt in 3,1
  2.  !if $(subclasscnt$cnt)>0 and $insc!=yes
  3.   !if $supervisable!=yes
  4.    $U_gotoclass
  5.   !else
  6.    $(U_gotoclass$cnt)
  7.   !endif
  8.   !for c in $(subclass$cnt)
  9.    !set name=!defof class_description in wimshome/log/classes/$c/.def
  10.    !if $cnt=3
  11.     !set t_=supervisor
  12.     !set u_=supervisor
  13.    !else
  14.     !set t_=participant
  15.     !set u_=$wims_user
  16.    !endif
  17.    !if $name!=$empty
  18.     !href module=adm/class/classes&type=auth$t_&class=$c&auth_user=$u_ $name
  19.      
  20.    !endif
  21.   !next c
  22.   <p>
  23.  !endif
  24. !next cnt
  25.  
  26. !if $subclasscnt2>0
  27.  !if $insc!=yes
  28.   !href module=home&cmd=new&insc=yes $U_inscription2
  29.  !else
  30.   $U_inscription1
  31.   !for c in $subclass2
  32.    !set name=!defof class_description in wimshome/log/classes/$c/.def
  33.    !href module=adm/class/reguser&class=$c $name
  34.    &nbsp;
  35.   !next c
  36.   <p>
  37.   !href module=home&cmd=new $U_Back
  38.  !endif
  39.  <p>
  40. !endif
  41.  
  42. !if $supervisable=yes and \
  43.         ($wims_user=supervisor or $wims_class=$wims_superclass)
  44.  !href module=adm/class/classes&type=supervisor&superclass=$wims_class $U_clickhere
  45.  $U_supervise
  46. &nbsp;
  47.  !ifval $class_type!=4
  48.   !href module=adm/class/regclass $U_creatclass
  49.  !endif
  50.  <p>
  51. !endif
  52.