Subversion Repositories wimsdev

Rev

Rev 12996 | Rev 13001 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12996 Rev 12998
Line 140... Line 140...
140
      !set show=$inst <br />$cl
140
      !set show=$inst <br />$cl
141
    !else
141
    !else
142
      !set show=$cl
142
      !set show=$cl
143
    !endif
143
    !endif
144
    !read adm/class/initclass $code,auth
144
    !read adm/class/initclass $code,auth
145
    !!defread wimshome/log/classes/$code/.def
145
    !defread wimshome/log/classes/$code/.def
146
    $table_tr<td>
146
    $table_tr<td>
147
      $show
147
      $show
148
    </td>
148
    </td>
149
    !if $auth_method isitemof $auth_method_list and $host_auth!=$empty
149
    !if $auth_method isitemof $auth_method_list and $host_auth!=$empty
150
      !read participant2.phtml
150
      !read participant2.phtml
151
    !else
151
    !else
152
      <td>
152
      <td>
153
      !set wims_ref_class=wims_button
153
      !! obligatory course
-
 
154
      !set tmp=!defof class_ocourses in wimshome/log/classes/$class_parent/.def
154
      !if $code notwordof $directlist_ \
155
      !if $code notwordof $directlist_ \
155
          and $code notitemof $user_participate,$user_supervise\
156
          and $code notitemof $user_participate,$user_supervise\
156
          and ($class_type!=3 or $wims_user=supervisor)
157
          and ($class_typename!=level or $wims_user=supervisor)
-
 
158
        !set wims_ref_class=wims_button
-
 
159
        !! obligatory course  or optionel course but not registered in the parent
-
 
160
        !if $class_typename=course and (($tmp!=$empty and $tmp isin $code) \
-
 
161
          or $class_parent notitemof $user_participate)
-
 
162
          <span style="color:grey">$name_register</span>
-
 
163
        !else
157
        !href module=adm/class/reguser&class=$code&subclass=yes&auth_user=$wims_user $name_register
164
          !href module=adm/class/reguser&class=$code&subclass=yes&auth_user=$wims_user $name_register
-
 
165
        !endif
158
      !else
166
      !else
159
        !if $splevel=$empty or $splevel=2
167
        !if $splevel=$empty or $splevel=2 and $code notitemof $tmp
160
          !set wims_ref_class=wims_button
168
          !set wims_ref_class=wims_button
161
          !href module=$module&type=authparticipant&class=$code&subclass=yes&auth_user=$wims_user $wims_name_Enter
169
          !href module=$module&type=authparticipant&class=$code&subclass=yes&auth_user=$wims_user $wims_name_Enter
162
        !else
170
        !else
163
          <span style="color:grey">$name_register</span>
171
          <span style="color:grey">$name_register</span>
164
        !endif
172
        !endif