[LON-CAPA-cvs] cvs: loncom /interface loncreatecourse.pm

raeburn lon-capa-cvs@mail.lon-capa.org
Tue, 09 Dec 2003 00:43:47 -0000


raeburn		Mon Dec  8 19:43:47 2003 EDT

  Modified files:              
    /loncom/interface	loncreatecourse.pm 
  Log:
  Default autoenroll start and end times set to now and 6 months hence. Changes to some other default settings as per Matthew's suggestions.
  
  
Index: loncom/interface/loncreatecourse.pm
diff -u loncom/interface/loncreatecourse.pm:1.42 loncom/interface/loncreatecourse.pm:1.43
--- loncom/interface/loncreatecourse.pm:1.42	Fri Dec  5 16:59:31 2003
+++ loncom/interface/loncreatecourse.pm	Mon Dec  8 19:43:47 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Create a course
 #
-# $Id: loncreatecourse.pm,v 1.42 2003/12/05 21:59:31 albertel Exp $
+# $Id: loncreatecourse.pm,v 1.43 2003/12/09 00:43:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -244,7 +244,9 @@
 		     &Apache::loncommon::selectcourse_link
 		     ('ccrs','clonecourse','clonedomain');
     my $coursebrowserjs=&Apache::loncommon::coursebrowser_javascript();
-    my $date_table = &Apache::londropadd::date_setting_table('','','createcourse');
+    my $starttime = time;
+    my $endtime = time+(6*30*24*60*60); # 6 months from now, approx
+    my $date_table = &Apache::londropadd::date_setting_table($starttime,$endtime,'createcourse');
     my ($krbdef,$krbdefdom) =
     &Apache::loncommon::get_kerberos_defaults($defdom);
     my $javascript_validations=&Apache::londropadd::javascript_validations('createcourse',$krbdefdom);
@@ -380,10 +382,10 @@
 </p>
 <p>
 <b>Automated adds</b>
-<input type="radio" name="autoadds" value="1" checked="true" />Yes <input type="radio" name="autoadds" value="0" />No
+<input type="radio" name="autoadds" value="1" />Yes <input type="radio" name="autoadds" value="0" checked="true" />No
 </p><p>
 <b>Automated drops</b>
-<input type="radio" name="autodrops" value="1" checked="true" />Yes <input type="radio" name="autodrops" value="0" />No
+<input type="radio" name="autodrops" value="1" />Yes <input type="radio" name="autodrops" value="0" checked="true" />No
 </p><p>
 <b>Duration of automated classlist updates</b>
 $date_table
@@ -400,7 +402,7 @@
 <b>Notification of enrollment changes</b><br />
 Notification to course coordinator via LON-CAPA message when enrollment changes occur during the automated update?<br/>
 <input type="radio" name="notify" value="1" />Yes <input type="radio" name="notify"
-value="0" />No
+value="0" checked="true" />No
 </p><p>
 <b>Include retrieval of student photographs?</b> <input type="radio" name="showphotos" value="1" />Yes <input type="radio" name="showphotos" value="0" checked="true" />No
 </p><p>