[LON-CAPA-cvs] cvs: loncom /interface loncreatecourse.pm lonparmset.pm
www
lon-capa-cvs@mail.lon-capa.org
Wed, 03 Sep 2003 21:24:32 -0000
www Wed Sep 3 17:24:32 2003 EDT
Modified files:
/loncom/interface loncreatecourse.pm lonparmset.pm
Log:
Not that it makes much of a difference ... at least it is correct.
Index: loncom/interface/loncreatecourse.pm
diff -u loncom/interface/loncreatecourse.pm:1.32 loncom/interface/loncreatecourse.pm:1.33
--- loncom/interface/loncreatecourse.pm:1.32 Tue Sep 2 15:47:47 2003
+++ loncom/interface/loncreatecourse.pm Wed Sep 3 17:24:32 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Create a course
#
-# $Id: loncreatecourse.pm,v 1.32 2003/09/02 19:47:47 www Exp $
+# $Id: loncreatecourse.pm,v 1.33 2003/09/03 21:24:32 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -398,8 +398,8 @@
#
if ($ENV{'form.openall'}) {
my $storeunder=$crsudom.'_'.$crsunum.'.0.opendate';
- my %storecontent = ($storeunder => time,
- $storeunder.'type' => 'date_start');
+ my %storecontent = ($storeunder => time,
+ $storeunder.'.type' => 'date_start');
$r->print('Opening all assignments: '.&Apache::lonnet::cput
('resourcedata',\%storecontent,$crsudom,$crsunum).'<br>');
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.120 loncom/interface/lonparmset.pm:1.121
--- loncom/interface/lonparmset.pm:1.120 Wed Sep 3 11:44:57 2003
+++ loncom/interface/lonparmset.pm Wed Sep 3 17:24:32 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set parameters for assessments
#
-# $Id: lonparmset.pm,v 1.120 2003/09/03 15:44:57 www Exp $
+# $Id: lonparmset.pm,v 1.121 2003/09/03 21:24:32 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1672,6 +1672,7 @@
'Set/Modify Course Assessment Parameters');
my $dom = $ENV{'course.'.$ENV{'request.course.id'}.'.domain'};
my $crs = $ENV{'course.'.$ENV{'request.course.id'}.'.num'};
+ my %resourcedata=&Apache::lonnet::dump('resourcedata',$dom,$crs);
$r->print(<<ENDOVER);
<html>
<head>
@@ -1679,13 +1680,14 @@
</head>
$bodytag
<form method="post" action="/adm/parmset" name="overview">
-Not yet implemented.
<input type="hidden" name="overview" value="1" />
-</form>
-</body>
-</html>
ENDOVER
+ foreach (sort keys %resourcedata) {
+ $r->print($_.' - '.$resourcedata{$_}.'<br />');
+ }
+ $r->print('</form></body></html>');
}
+
##################################################
##################################################
@@ -1720,13 +1722,16 @@
$coursename=$ENV{'course.'.$ENV{'request.course.id'}.'.description'};
- unless (($ENV{'form.crsenv'}) || (!$ENV{'request.course.fn'})) {
-# --------------------------------------------------------- Bring up assessment
- &assessparms($r);
+ if (($ENV{'form.crsenv'}) || (!$ENV{'request.course.fn'})) {
# ---------------------------------------------- This is for course environment
+# -------------------------- also call if toplevel map coudl not be initialized
+ &crsenv($r);
} elsif ($ENV{'form.overview'}) {
+# --------------------------------------------------------------- Overview mode
+ &overview($r);
} else {
- &crsenv($r);
+# --------------------------------------------------------- Bring up assessment
+ &assessparms($r);
}
} else {
# ----------------------------- Not in a course, or not allowed to modify parms