--- loncom/interface/loncreatecourse.pm 2001/12/19 17:17:46 1.5 +++ loncom/interface/loncreatecourse.pm 2002/12/23 18:04:54 1.16 @@ -1,7 +1,7 @@ # The LearningOnline Network # Create a course # -# $Id: loncreatecourse.pm,v 1.5 2001/12/19 17:17:46 albertel Exp $ +# $Id: loncreatecourse.pm,v 1.16 2002/12/23 18:04:54 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -44,33 +44,113 @@ package Apache::loncreatecourse; use strict; use Apache::Constants qw(:common :http); use Apache::lonnet; +use Apache::loncommon; +use Apache::lonratedt; +use Apache::londocs; # ===================================================== Phase one: fill-in form -sub phase_one { +sub print_course_creation_page { my $r=shift; + my $defdom=$ENV{'request.role.domain'}; + my %host_servers = &Apache::loncommon::get_library_servers($defdom); + my $course_home = ''."\n"; + foreach my $server (sort(keys(%host_servers))) { + $course_home .= qq{$server $host_servers{$server}}; + } + $course_home .= "\n\n"; + my $domform = &Apache::loncommon::select_dom_form($defdom,'ccdomain'); + my $bodytag=&Apache::loncommon::bodytag('Create a New Course'); - my $defdom=$ENV{'user.domain'}; $r->print(< + The LearningOnline Network with CAPA - - -Create a new Course - -Course Title - -Top-level Map - -Course ID/Number (optional) - -Course Cooordinator -Username: -Domain: - - +$bodytag + +Course Information + +Course Title: + + +Course Home Server:$course_home + +Course ID/Number (optional) + + +Course Content + +Map: + +Browse + +Do NOT generate as standard course +(only check if you know what you are doing): + + + +First Resource (standard courses only): +Blank + +Syllabus + +Navigate + + +Assessment Parameters + +Open all assessments: + + +Messaging + +Set course policy feedback to Course Coordinator: + + +Set content feedback to Course Coordinator: + + +Communication + +Disable student resource discussion: + + +Course Coordinator + +Username: + +Domain: $domform + +Immediately expire own role as Course Coordinator: + + + + +
- +$bodytag +
+Course Title: + +
+Course Home Server:$course_home +
+Course ID/Number (optional) + +
+Map: + +Browse +
+Do NOT generate as standard course +(only check if you know what you are doing): + +
+First Resource (standard courses only): +Blank + +Syllabus + +Navigate +
+Open all assessments: + +
+Set course policy feedback to Course Coordinator: + +
+Set content feedback to Course Coordinator: + +
+Disable student resource discussion: + +
+Username: +
+Domain: $domform +
+Immediately expire own role as Course Coordinator: + +
+ + +