!read adm/language names.phtml
!read lang/names.phtml.$modu_lang
!read adm/css.phtml
!header1
!!if $cmd=help
!!read help.phtml
!!endif
!read adm/title.phtml 1\
WIMS $httpd_HTTP_HOST\
$name_title
!if $cltype iswordof 2 4 and $classcnt>0
<center>
($name_reserved)
</center>
!endif
!if $error!=$empty
<p>
!read lang/msg.phtml.$modu_lang
<p>
!goto end1
!endif
!if $classcnt=0
$name_warning1
!endif
!if $class=$empty
$name_inscription
<p>
$table_header
!if $ctype=0
$table_hdtr
<th>$wims_name_name<th>$wims_name_nameteacher<th>$wims_name_level<th>$wims_name_Language</th>
<th>$name_remainig<th>$wims_name_Status
!else
<caption>$institution_name</caption>
$table_hdtr
<th>$wims_name_name<th>$wims_name_Supervisor<th>$wims_name_level
<th>$wims_name_Status
!endif
!for cl in $classlist
!reset class_supervisor
,class_email
,class_level
,class_lang
,class_institution
,class_description
,class_password
,class_limit
!defread wimshome
/log/classes
/$cl/.def
!distribute char $class_level into l1,l2
!set part
=!recordcnt wimshome
/log/classes
/$cl/.userlist
$table_tr<td align="center">
!if $ctype=0
!href module=$module&cmd=reply&class=$cl $class_institution<br>$class_description
!else
!href module=$module&cmd=reply&class=$cl $class_description
!endif
<td align="center">
!mailurl $class_email $class_supervisor
</td>
!if $class_level=$empty
!set pname
=!defof class_description in wimshome
/log/classes
/$class_parent/.def
<td align="center">$pname</td>
!else
<td align="center">$(level$l1)<br>$name_year $l2</td>
!endif
!if $ctype=0
<td align="center">$(lang_$class_lang)</td>
<td align="right">
!if $class_limit-$part>$site_dispo
$site_dispo
!else
$[$class_limit-$part]
!endif
!endif
!if $class_password=$empty
<td align="center">$(name_statut[1])</td>
!else
<td align="center">$(name_statut[2])</td>
!endif
$table_end <p>
$name_remark1
!goto end1
!set classname=<b><font color=green>$description</font></b>\
- <b><font color=green>$institution</font></b>
!if $password!=$empty and $passverify=$empty
!if $cltype iswordof 2 4
$name_classessss
!href module=adm/class/classes&type=authparticipant&class=$class <b>$description</b>
!else
$name_classessss
!href module=adm/class/classes&type=authparticipant&class=$class <b>$description</b>
!endif
(<b><font color=green>$institution</font></b>)
!if $cltype iswordof 4 2
$name_warning_protected
!if $classcnt>0
$name_inscription_student
!href cmd=new&module=$module&class=$class&subclass=yes $name_inyourclass
.
!endif
!else
$name_isprotected
!endif
<p> $name_writepasswd
!if $cltype iswordof 2 4
$name_asateacher.
!else
$name_asaparticipant.
!endif
!form reply
<input type=hidden name="step" value=1>
<center> <p><label for="classpass">$wims_name_Password</label>
<input type=password name="classpass" id="classpass">
<p>
<input type=submit value="$wims_name_send">
</center></form> <p>
<b>$wims_name_warning</b>.
!if $cltype iswordof 2 4
$name_access1
!else
$name_access2
!endif
$name_obtainpasswd
(
!if $cltype iswordof 2 4
!mailurl $smail $name_write_adm
!else
!mailurl $smail $wims_name_wsup
!endif
).
!if $cltype iswordof 2 4
$name_warning_direct
!href cmd=new&module=$module&class=$class&subclass=yes $name_inyourclass
.
<p>
!endif
!goto end1
!endif
!if $step=$empty or $step<2
!if $superclass!=$empty and $wims_class!=$superclass and $wims_user=supervisor
!form reply
<input type=hidden name="step" value=1>
<label for="search">$name_research:</label>
<input size=20 name="search" id="search" value="$search">
<input type=submit value="$wims_name_tosave">
</form> <p>
!default foundcnt=0
!if $foundcnt>0
$table_header
<caption>$name_clickname</caption>
$table_hdtr<th>$wims_name_name</th><th>$wims_name_Login</th></tr>
!for i=1 to $foundcnt
!set l=!line $i of $found
!distribute item $l into l_,f_,L_
$table_tr<td>
!href cmd=reply&step=2&login=$L_ $l_, $f_
</td>
<td>$L_</td></tr>
$table_end
!goto end1
!endif
!if $search!=$empty and $foundcnt=0
($name_nofound) <p>
!endif
$name_newparticipant
!else
$name_inscription2
!endif
!form reply
<input type=hidden name="step" value=2>
<ul>
<li><label for="lastn">$wims_name_lastname</label> <input size=20 name="lastn" id="lastn" value="$lastn">
<label for="firstn">$wims_name_firstname</label> <input size=20 name="firstn" id="firstn" value="$firstn">
<p>
<li><label for="login">$wims_name_Login</label>
<input size=16 name="login" id="login" value="$login"> <br>
$name_warning_login. $name_passwd_warning
<p>
<li><label for="pass">$wims_name_Password</label>
<input type=password size=16 name="pass" id="pass"> <br>
$name_passwd_warning
<p>
<li><label for="email">$wims_name_email ($name_optional) :</label><br>
<input size=60 name="email" id="email" value="$email">
<p>
!if $wims_user=supervisor and $class=$wims_class and $cltype iswordof 2 4
<li>$name_accounttype:
!default utype=0
!formradio utype
list 0,1 prompt
$wims_name_namestudent,$wims_name_nameteacher
!endif
</ul>
<center><input type=submit value="$wims_name_tosave"></center>
</form>
!goto end1
!endif
!if $step=2
$name_hello, $name_student!<p>
$name_inscription3 <tt><b><font color=green>$login</font></b></tt>. <p>
!if $email=$empty
$name_passwd_nonvalid <p>
!else
$wims_name_email: <tt>$email</tt> <p>
!endif
<label for="pass2">$name_passwd_exact:</label>
!form reply
<input type=hidden name="step" value=3>
<p><center><input type=password size=16 name="pass2" id="pass2">
<p><input type=submit value="$wims_name_send"></center>
</form> <p>
!goto end1
!endif
!if $step=3
!if $wims_user=supervisor
$name_studentadded
<p>
!if $wims_supertype=4
!readproc adm/gateway/transfer $login test
!if $transfer_test>0
<p>
$name_otheractivities
!href module=adm/class/userlist&job=transfer&getuser=$login $name_transfer1
<p>
!endif
!endif
!set wims_menu_items=!append line part_list,1,module=adm/class/userlist\
addstudent,1,module=$module&step=1\
to wims_menu_items
!endif
$name_hello, $name_student!<p>
$name_welcome
<tt class="d"><b><font color=green>$login</font></b></tt>. <p>
$name_youcan
!if $wims_class!=$empty
!href module=adm/class/classes&type=authparticipant&class=$class&auth_user=$login $name_gotowork
.
!else
<a href="http://$httpd_HTTP_HOST$httpd_SCRIPT_NAME?lang=$lang&+module=adm/class/classes&+type=authparticipant&+class=$class&+auth_user=$login">
$name_gotowork</a>.
($name_bookmark)
!endif
:end1
!if $wims_user=supervisor
!endif
<p>
!if $cltype iswordof 2 4
!set wims_menu_items=!append line classlist,1,module=adm/class/classes&type=supervisor\
to $wims_menu_items
!else
!set wims_menu_items=!append line classlist,1,module=adm/class/classes&type=participant\
to $wims_menu_items
!endif
!tail