--- loncom/homework/grades.pm 2004/02/09 22:16:32 1.173 +++ loncom/homework/grades.pm 2004/02/09 22:37:54 1.174 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.173 2004/02/09 22:16:32 albertel Exp $ +# $Id: grades.pm,v 1.174 2004/02/09 22:37:54 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3452,34 +3452,28 @@ sub scantron_selectphase { $default_form_data - - + - + - + - @@ -3500,13 +3494,36 @@ SCANTRONFORM
-  Specify file location and which Folder/Sequence to grade + +  Specify file and which Folder/Sequence to grade
- Sequence to grade: $sequence_selector - Sequence to grade: $sequence_selector
- Filename of scoring office file: $file_selector - Filename of scoring office file: $file_selector
- Format of data file: $format_selector - Format of data file: $format_selector
- Last line to expect an answer on: + Last line to expect an answer on:
+
- Specify a Scantron data file to upload. +  Specify a Scantron data file to upload.
SCANTRONFORM - &scantron_upload_scantron_data($r); + my $default_form_data=&defaultFormData(&get_symb_and_url($r,1)); + my $cdom= $ENV{'course.'.$ENV{'request.course.id'}.'.domain'}; + my $cnum= $ENV{'course.'.$ENV{'request.course.id'}.'.num'}; + $r->print(< + function checkUpload(formname) { + if (formname.upfile.value == "") { + alert("Please use the browse button to select a file from your local directory."); + return false; + } + formname.submit(); + } + + +
+ $default_form_data + + + + File to upload: +
+ +
+UPLOAD $r->print(< @@ -4232,10 +4249,15 @@ sub scantron_upload_scantron_data_save { $r->print(&Apache::lonnet::finishuserfileupload($ENV{'form.courseid'}, $ENV{'form.domainid'}, $home,'upfile',$fname)); - $r->print('
'."\n". - ''."\n". - ''."\n". - '
'."\n"); + my ($symb,$url)=&get_symb_and_url($r); + if ($symb) { + $r->print(&show_grading_menu_form(&get_symb_and_url($r))); + } else { + $r->print('
'."\n". + ''."\n". + ''."\n". + '
'."\n"); + } return ''; }