--- loncom/interface/loncreatecourse.pm	2002/12/09 21:32:34	1.15
+++ loncom/interface/loncreatecourse.pm	2003/03/24 14:45:09	1.18
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Create a course
 #
-# $Id: loncreatecourse.pm,v 1.15 2002/12/09 21:32:34 albertel Exp $
+# $Id: loncreatecourse.pm,v 1.18 2003/03/24 14:45:09 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -65,7 +65,7 @@ sub print_course_creation_page {
     $course_home .= "\n</select>\n";
     my $domform = &Apache::loncommon::select_dom_form($defdom,'ccdomain');
     my $bodytag=&Apache::loncommon::bodytag('Create a New Course');
-
+    my $helplink=&Apache::loncommon::help_open_topic('Create_Course','Help on Creating Courses');
     $r->print(<<ENDDOCUMENT);
 <html>
 <script language="JavaScript" type="text/javascript">
@@ -91,6 +91,7 @@ function openbrowser(formname,elementnam
 <title>The LearningOnline Network with CAPA</title>
 </head>
 $bodytag
+$helplink
 <form action="/adm/createcourse" method="post" name="ccrs">
 <h2>Course Information</h2>
 <p>
@@ -114,9 +115,9 @@ $bodytag
 </p>
 <p>
 <b>First Resource</b> (standard courses only):
-<input type="radio" name="firstres" value="blank" checked>Blank
+<input type="radio" name="firstres" value="blank">Blank
 &nbsp;
-<input type="radio" name="firstres" value="syl">Syllabus
+<input type="radio" name="firstres" value="syl" checked>Syllabus
 &nbsp;
 <input type="radio" name="firstres" value="nav">Navigate
 </p>
@@ -134,7 +135,16 @@ $bodytag
 <b>Set content feedback to Course Coordinator: </b>
 <input type="checkbox" name="setcontent" checked>
 </p>
-
+<h2>Communication</h2>
+<p>
+<b>Disable student resource discussion: </b>
+<input type="checkbox" name="disresdis" />
+</p>
+<h2>Access Control</h2>
+<p>
+<b>Students need access key to enter course: </b>
+<input type="checkbox" name="setkeys" />
+</p>
 <h2>Course Coordinator</h2>
 <p>
 <b>Username:</b> <input type="text" size="15" name="ccuname" />
@@ -221,6 +231,18 @@ ENDENHEAD
            $envflag=1;
            $cenv{'question.email'}=$ccuname.':'.$ccdomain;
        }
+       if ($ENV{'form.keys'}) {
+           $envflag=1;
+           $cenv{'question.email'}=$ccuname.':'.$ccdomain;
+       }
+    }
+    if ($ENV{'form.setkeys'}) {
+       $envflag=1;
+       $cenv{'keyaccess'}='yes';
+    }
+    if ($ENV{'form.disresdis'}) {
+	$envflag=1;
+        $cenv{'pch.roles.denied'}='st';
     }
     if ($envflag) {
        $r->print('Setting environment: '.