--- loncom/interface/loncreatecourse.pm 2003/12/05 15:57:37 1.40 +++ loncom/interface/loncreatecourse.pm 2003/12/05 21:59:31 1.42 @@ -1,7 +1,7 @@ # The LearningOnline Network # Create a course # -# $Id: loncreatecourse.pm,v 1.40 2003/12/05 15:57:37 raeburn Exp $ +# $Id: loncreatecourse.pm,v 1.42 2003/12/05 21:59:31 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -48,6 +48,7 @@ use Apache::loncommon; use Apache::lonratedt; use Apache::londocs; use Apache::lonlocal; +use Apache::londropadd; # ================================================ Get course directory listing @@ -243,10 +244,10 @@ sub print_course_creation_page { &Apache::loncommon::selectcourse_link ('ccrs','clonecourse','clonedomain'); my $coursebrowserjs=&Apache::loncommon::coursebrowser_javascript(); - my $date_table = &date_setting_table(); + my $date_table = &Apache::londropadd::date_setting_table('','','createcourse'); my ($krbdef,$krbdefdom) = &Apache::loncommon::get_kerberos_defaults($defdom); - my $javascript_validations=&javascript_validations($krbdefdom); + my $javascript_validations=&Apache::londropadd::javascript_validations('createcourse',$krbdefdom); my %param = ( formname => 'document.ccrs', kerb_def_dom => $krbdefdom, kerb_def_auth => $krbdef @@ -274,6 +275,7 @@ function openbrowser(formname,elementnam editbrowser = open(url,title,options,'1'); editbrowser.focus(); } +$javascript_validations $coursebrowserjs
@@ -403,7 +405,7 @@ value="0" />No Include retrieval of student photographs? Yes No- +
@@ -411,68 +413,6 @@ value="0" />No ENDDOCUMENT } -sub javascript_validations { - my ($krbdefdom)=@_; - my %param = ( formname => 'ccrs', - kerb_def_dom => $krbdefdom ); - my $authheader = &Apache::loncommon::authform_header(%param); - my $pjump_def = &Apache::lonhtmlcommon::pjump_javascript_definition(); - return (<Starting Date | '. - ''.$startform.' | '. - ''." |
Ending Date | '. - ''.$endform.' | '. - ''.$perpetual.' | '."