'
-# .&Apache::loncommon::end_data_table_row();
-# }
-# }
-# $result.=&Apache::loncommon::end_data_table();
-# return $result,$responseType,$hdgrade,$partlist,$handgrade;
-#}
-
sub reset_caches {
&reset_analyze_cache();
&reset_perm();
@@ -776,6 +727,16 @@ sub most_similar {
#------------------------------------ Receipt Verification Routines
#
+
+sub initialverifyreceipt {
+ my $request = shift;
+ &commonJSfunctions($request);
+ $request->print('\n");
+}
+
#--- Check whether a receipt number is valid.---
sub verifyreceipt {
my $request = shift;
@@ -885,7 +846,6 @@ sub listStudents {
.&mt("$viewgrade Submissions for a Student or a Group of Students")
.'';
-# my ($table,undef,$hdgrade,$partlist,$handgrade) = &showResourceInfo($symb,$env{'form.probTitle'},($env{'form.showgrading'} eq 'yes'));
my ($partlist,$handgrade,$responseType) = &response_type($symb
#,$res_error
);
@@ -8515,29 +8475,15 @@ sub show_grading_menu_form {
return $result;
}
-# -- Retrieve choices for grading form
-sub savedState {
- my %savedState = ();
- if ($env{'form.saveState'}) {
- foreach (split(/:/,$env{'form.saveState'})) {
- my ($key,$value) = split(/=/,$_,2);
- $savedState{$key} = $value;
- }
- }
- return \%savedState;
-}
-
sub grading_menu {
my ($request) = @_;
my ($symb)=&get_symb($request);
if (!$symb) {return '';}
my $probTitle = &Apache::lonnet::gettitle($symb);
-# $request->print($table);
my %fields = ('symb'=>&Apache::lonenc::check_encrypt($symb),
'probTitle'=>$probTitle,
'command'=>'individual',
- 'saveState'=>"",
'gradingMenu'=>1,
'showgrading'=>"yes");
@@ -8560,6 +8506,9 @@ sub grading_menu {
$fields{'command'} = 'scantron_selectphase';
my $url4 = &Apache::lonhtmlcommon::build_url('grades/',\%fields);
+
+ $fields{'command'} = 'initialverifyreceipt';
+ my $url5 = &Apache::lonhtmlcommon::build_url('grades/',\%fields);
my @menu = ({ categorytitle=>'Hand Grading',
items =>[
@@ -8582,7 +8531,7 @@ sub grading_menu {
icon => 'edit-find-replace.png',
linktitle => 'Grade current resource for all students.'
},
- { linktext => 'Grade complete page/sequence/folder for one student.',
+ { linktext => 'Grade complete page/sequence/folder for one student',
url => $url1d,
permission => 'F',
icon => 'edit-find-replace.png',
@@ -8608,196 +8557,81 @@ sub grading_menu {
permission => 'F',
icon => 'stat.png',
linktitle => 'Grade scantron exams, upload/download scantron data files, and review previously graded scantron exams.'
- }
+ },
+ { linktext => 'Verify Receipt No.',
+ url => $url5,
+ permission => 'F',
+ icon => 'edit-find-replace.png',
+ linktitle => 'Verify a system-generated receipt number for correct problem solution.'
+ }
+
]
});
- #$fields{'command'} = 'verify';
- #$url = &Apache::lonhtmlcommon::build_url('grades/',\%fields);
- #
# Create the menu
my $Str;
- # $Str .= '
'.&mt('Please select a grading task').'
';
$Str .= '\n";
- my $receiptalert = &mt("Please enter a receipt number given by a student in the receipt box.");
- $request->print(&Apache::lonhtmlcommon::scripttag(<print(&Apache::lonhtmlcommon::scripttag(<'.$section.''."\n";
- }
- }
$result.='';
+ $result .= &show_grading_menu_form($symb);
+ return $result;
+}
-
-
-
-
-
-
-
-
-
+sub submit_options_table {
+ my ($request) = @_;
+ my ($symb)=&get_symb($request);
+ if (!$symb) {return '';}
+ &commonJSfunctions($request);
+ my $result;
-
+ $result.='