--- loncom/interface/Attic/londropadd.pm 2004/02/10 22:15:53 1.100 +++ loncom/interface/Attic/londropadd.pm 2004/02/11 15:30:36 1.101 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to drop and add students in courses # -# $Id: londropadd.pm,v 1.100 2004/02/10 22:15:53 www Exp $ +# $Id: londropadd.pm,v 1.101 2004/02/11 15:30:36 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1365,7 +1365,28 @@ sub print_modify_student_form { $r->print('<p>'.$starttime.'</p>'); return; } + # # Deal with date forms + my $current_date_description = ''; + my $textdate = ''; + + if (! defined($starttime) || $starttime == 0) { + $current_date_description = &mt('Current Starting Date: not set'). + '<br />'; + } else { + $current_date_description = + &mt('Current Starting Date: [_1]', + &Apache::lonlocal::locallocaltime($starttime)).'<br />'; + } + if (! defined($endtime) || $endtime == 0) { + $current_date_description.= &mt('Current Ending Date: not set'). + '<br />'; + } else { + $current_date_description.= + &mt('Current Ending Date: [_1]', + &Apache::lonlocal::locallocaltime($endtime)).'<br />'; + + } my $date_table = &date_setting_table($starttime,$endtime); # if (! exists($ENV{'form.Status'}) || @@ -1398,7 +1419,6 @@ $lt{'odcc'} <input type="hidden" name="state" value="done" /> <input type="hidden" name="sortby" value="$sortby" /> <input type="hidden" name="Status" value="$ENV{'form.Status'}" /> - <h2>$lt{'mef'} $info{'firstname'} $info{'middlename'} $info{'lastname'} $info{'generation'}, $sname\@$sdom</h2> <p> @@ -1417,8 +1437,9 @@ $info{'lastname'} $info{'generation'}, $ <input type="checkbox" name="forceid" > $lt{'disn'} </p><p> -<b>$lt{'sec'}</b>: <input type="text" name="section" value="$section" size="4"/> +<b>$lt{'sec'}</b>: <input type="text" name="section" value="$section" size="14"/> </p> +<p>$current_date_description</p> <p>$date_table</p> <input type="submit" value="$lt{'sm'}" /> </body></html>