--- loncom/interface/loncreatecourse.pm 2008/11/11 16:40:43 1.111 +++ loncom/interface/loncreatecourse.pm 2009/02/16 16:21:01 1.116 @@ -1,7 +1,7 @@ # The LearningOnline Network # Create a course # -# $Id: loncreatecourse.pm,v 1.111 2008/11/11 16:40:43 jms Exp $ +# $Id: loncreatecourse.pm,v 1.116 2009/02/16 16:21:01 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -39,33 +39,21 @@ courses and assign course coordinators. This is part of the LearningOnline Network with CAPA project described at http://www.lon-capa.org. -=head1 HANDLER SUBROUTINE - -handler() - -=head1 OTHER SUBROUTINES +=head1 SUBROUTINES =over -=item * - -print_course_creation_page() - -=item * - -create_course() - -=item * +=item handler() -print_intro_page() +=item print_course_creation_page() -=item * +=item create_course() -upload_batchfile() +=item print_intro_page() -=item * +=item upload_batchfile() -process_batchfile() +=item process_batchfile() =back @@ -168,7 +156,7 @@ function validate(formname) { 'stco' => "standard courses only", 'blnk' => "Blank", 'sllb' => "Syllabus", - 'navi' => "Navigate", + 'navi' => "Navigate Contents", 'cid' => "Course ID", 'dmn' => "Domain", 'dsh' => "Date Shift", @@ -270,7 +258,7 @@ END $r->print($start_page.$crumbs); if ($crstype eq 'Course') { - $r->print('
' + $r->print('
' .&Apache::lonhtmlcommon::start_pick_box() .&Apache::lonhtmlcommon::row_headline() @@ -509,6 +497,7 @@ END ); $r->print(<

@@ -774,9 +763,9 @@ sub create_course { # Make the requested user a course coordinator or group coordinator # if (($ccdomain) && ($ccuname)) { - $r->print(&mt('Assigning role of [_1] Coordinator to [_2] at [_3]: ', - $crstype,$ccuname,$ccdomain). - &Apache::lonnet::assignrole($ccdomain,$ccuname,$courseid, + $r->print(&mt('Assigning role of '.$crstype.' Coordinator to [_1]:', + ,''.$ccuname.':'.$ccdomain.'') + .&Apache::lonnet::assignrole($ccdomain,$ccuname,$courseid, 'cc','','','','','createcourse').'

'); } if ($env{'form.setkeys'}) { @@ -788,7 +777,7 @@ sub create_course { $r->print('

'.&mt('Roles will be active at next login').'.

'); } $r->print('

'. - &mt('Create Another [_1]',$crstype).'

'. + &mt("Create Another $crstype").'

'. &Apache::loncommon::end_page()); }