--- loncom/homework/grades.pm 2007/06/11 21:36:18 1.401
+++ loncom/homework/grades.pm 2007/07/19 09:52:59 1.422
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.401 2007/06/11 21:36:18 albertel Exp $
+# $Id: grades.pm,v 1.422 2007/07/19 09:52:59 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -41,7 +41,6 @@ use Apache::Constants qw(:common);
use Apache::lonlocal;
use Apache::lonenc;
use String::Similarity;
-use lib '/home/httpd/lib/perl';
use LONCAPA;
use POSIX qw(floor);
@@ -94,6 +93,7 @@ sub get_symb {
return ();
}
}
+ &Apache::lonenc::check_decrypt(\$symb);
return ($symb);
}
@@ -493,7 +493,7 @@ sub jscriptNform {
' }'."\n".
''."\n";
$jscript.= '
'."\n";
+ 'onClick="javascript:submit();" target="_self" />'."\n";
if (scalar(%$fullname) eq 0) {
my $colspan=3+scalar(@parts);
$result='There are no students in section "'.$env{'form.section'}.
@@ -3108,7 +3093,7 @@ sub viewstudentgrade {
''.
"\n".$ctr.'
'."\n";
$student=~s/:/_/; # colon doen't work in javascript for names
foreach my $apart (@$parts) {
@@ -3472,6 +3457,7 @@ sub csvuploadmap_header {
my ($result) = &showResourceInfo($symb,$env{'form.probTitle'});
my $checked=(($env{'form.noFirstLine'})?' checked="checked"':'');
my $ignore=&mt('Ignore First Line');
+ $symb = &Apache::lonenc::check_encrypt($symb);
$request->print(<
Uploading Class Grades
@@ -3566,6 +3552,7 @@ sub upcsvScores_form {
my $upload=&mt("Upload Scores");
my $upfile_select=&Apache::loncommon::upfile_select_html();
my $ignore=&mt('Ignore First Line');
+ $symb = &Apache::lonenc::check_encrypt($symb);
$result.=<
@@ -3874,7 +3861,7 @@ LISTJAVASCRIPT
$result.=''."\n".
''."\n".
''."\n".
- ''."\n".
+ ''."\n".
''." \n";
$result.=' '.&mt('Use CODE:').' '.
@@ -3998,7 +3985,7 @@ sub displayPage {
''."\n".
''."\n".
''."\n".
- ''."\n".
+ ''."\n".
''."\n".
''."\n";
@@ -4367,14 +4354,18 @@ sub updateGradeByPage {
#
#------ start of section for handling grading by page/sequence ---------
+# Create the hidden field entries used to hold context/default values.
+
sub defaultFormData {
my ($symb)=@_;
return '
- '."\n".
+ '."\n".
''."\n".
''."\n";
}
+# Make a drop down of the sequences
+
sub getSequenceDropDown {
my ($request,$symb)=@_;
my $result='