--- loncom/interface/loncreatecourse.pm 2006/06/22 11:25:56 1.92 +++ loncom/interface/loncreatecourse.pm 2006/06/28 19:31:48 1.93.2.1 @@ -1,7 +1,7 @@ # The LearningOnline Network # Create a course # -# $Id: loncreatecourse.pm,v 1.92 2006/06/22 11:25:56 www Exp $ +# $Id: loncreatecourse.pm,v 1.93.2.1 2006/06/28 19:31:48 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -256,10 +256,11 @@ sub copycoursefiles { sub print_course_creation_page { my $r=shift; - my $crstype = 'Group'; - if ($env{'form.phase'} eq 'courseone') { - $crstype = 'Course'; - } + my $crstype = 'Course'; +# my $crstype = 'Group'; +# if ($env{'form.phase'} eq 'courseone') { +# $crstype = 'Course'; +# } my $defdom=$env{'request.role.domain'}; my %host_servers = &Apache::loncommon::get_library_servers($defdom); my $course_home = '$lt{'no'}

+

+

$lt{'cgrs'}

+$lt{'cgrq'} +Mb +


$lt{'cc'}

@@ -738,6 +748,11 @@ $lt{'asov'}.

+

+

$lt{'grts'}

+$lt{'grtq'} +Mb +


$lt{'gc'}

@@ -814,6 +829,7 @@ sub create_course { course_home => $env{'form.course_home'}, nonstandard => $env{'form.nonstandard'}, crscode => $env{'form.crscode'}, + crsquota => $env{'form.crsquota'}, clonecourse => $env{'form.clonecourse'}, clonedomain => $env{'form.clonedomain'}, crsid => $env{'form.crsid'}, @@ -966,6 +982,11 @@ sub construct_course { if ($args->{'crscode'}) { $cenv{'internal.coursecode'}=$args->{'crscode'}; } + if ($args->{'crsquota'} ne '') { + $cenv{'internal.coursequota'}=$args->{'crsquota'}; + } else { + $cenv{'internal.coursequota'}=$args->{'crsquota'} = 20; + } if ($args->{'ccuname'}) { $cenv{'internal.courseowner'} = $args->{'ccuname'}; } else { @@ -1176,11 +1197,11 @@ sub print_intro_page { short_description => &mt('Create a new course by completing an online form.'), }, - { internal_name => 'groupone', - name => &mt('Create a single collaborative group space '), - short_description => - &mt('Create a new group space for non-course use by completing an online form .'), - }, +# { internal_name => 'groupone', +# name => &mt('Create a single collaborative group space '), +# short_description => +# &mt('Create a new group space for non-course use by completing an online form .'), +# }, { internal_name => 'batchone', name => &mt('Create courses/groups by uploading an attributes file'), short_description =>