--- loncom/interface/slotrequest.pm 2005/05/31 17:42:11 1.1 +++ loncom/interface/slotrequest.pm 2006/04/10 07:37:16 1.57 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler for requesting to have slots added to a students record # -# $Id: slotrequest.pm,v 1.1 2005/05/31 17:42:11 albertel Exp $ +# $Id: slotrequest.pm,v 1.57 2006/04/10 07:37:16 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -34,37 +34,1504 @@ use Apache::Constants qw(:common :http : use Apache::loncommon(); use Apache::lonlocal; use Apache::lonnet; +use Apache::lonnavmaps(); +use Date::Manip; sub fail { my ($r,$code)=@_; - $r->print(); + if ($code eq 'not_valid') { + $r->print('
'.&mt('Unable to understand what resource you wanted to sign up for.').'
'); + + } elsif ($code eq 'not_allowed') { + $r->print(''.&mt('Not allowed to sign up or change reservations at this time.').'
'); + } else { + $r->print(''.&mt('Failed.').'
'); + } + + &return_link($r); &end_page($r); } sub start_page { - my ($r)=@_; - my $html=&Apache::lonxml::xmlbegin(); - $r->print($html.'