--- loncom/interface/Attic/londropadd.pm 2002/04/22 15:26:46 1.28 +++ loncom/interface/Attic/londropadd.pm 2002/04/23 21:03:59 1.29 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to drop and add students in courses # -# $Id: londropadd.pm,v 1.28 2002/04/22 15:26:46 matthew Exp $ +# $Id: londropadd.pm,v 1.29 2002/04/23 21:03:59 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -166,15 +166,15 @@ function verify_message (vf,founduname,f alert('You need to specify the username field'); return; } - if (vf.login.value == null) { + if (current.radiovalue == null || current.radiovalue == 'nochange') { // They did not check any of the login radiobuttons. alert('You must choose an authentication type'); return; } foundatype=1; - if (vf.login.argfield.value == '') { + if (current.argfield == null || current.argfield == '') { var alertmsg = ''; - switch (vf.login.value) { + switch (current.value) { case 'krb': alertmsg = 'You need to specify the Kerberos domain'; break; @@ -382,6 +382,8 @@ sub phase_two_end { my $krbform = &Apache::loncommon::authform_kerberos(%param); my $intform = &Apache::loncommon::authform_internal(%param); my $locform = &Apache::loncommon::authform_local(%param); + # Set up domain selection form + my $domform = &Apache::loncommon::select_dom_form($defdom,'lcdomain'); $r->print(< @@ -398,7 +400,7 @@ $intform $locform

LON-CAPA Domain for Students

-LON-CAPA domain:

+LON-CAPA domain: $domform

Starting and Ending Dates

@@ -472,6 +474,7 @@ sub menu_phase_two_upload { sub enroll_single_student { my $r=shift; $r->print('

Enrolling Student

'); + $r->print($ENV{'form.cuname'}." in domain ".$ENV{'form.cdomain'}.": "); if (($ENV{'form.cuname'})&&($ENV{'form.cuname'}!~/\W/)&& ($ENV{'form.cdomain'})&&($ENV{'form.cdomain'}!~/\W/)) { my $amode=''; @@ -519,6 +522,8 @@ sub menu_phase_two_enroll { my $krbform = &Apache::loncommon::authform_kerberos(%param); my $intform = &Apache::loncommon::authform_internal(%param); my $locform = &Apache::loncommon::authform_local(%param); + # Set up domain selection form + my $domform = &Apache::loncommon::select_dom_form($defdom,'cdomain'); # Print it all out $r->print(< @@ -569,7 +574,7 @@ Generation:

-

Domain:

+

Domain: $domform

Note: login settings below will not take effect if the user already exists

$krbform