Diff for /loncom/interface/lonpopulate.pm between versions 1.1 and 1.2

version 1.1, 2003/12/08 16:16:03 version 1.2, 2003/12/08 17:06:26
Line 5  use lib qw(/home/httpd/lib/perl); Line 5  use lib qw(/home/httpd/lib/perl);
 use Apache::lonnet ();  use Apache::lonnet ();
 use Apache::loncommon ();  use Apache::loncommon ();
 use Apache::lonhtmlcommon ();  use Apache::lonhtmlcommon ();
   use Apache::lonlocal ();
 use Apache::Constants qw(:common :http REDIRECT);  use Apache::Constants qw(:common :http REDIRECT);
 use Time::Local;  use Time::Local;
 use LONCAPA::Enrollment ();  use LONCAPA::Enrollment ();
Line 199  sub print_main_frame { Line 200  sub print_main_frame {
   
   if ($action eq "information") {    if ($action eq "information") {
       $r->print(<<ENDONE);        $r->print(<<ENDONE);
           <table border='0' width='100%'>            <br/><table border='0' width='100%'>
             <tr>              <tr>
               <td>&nbsp;</td>                <td>&nbsp;</td>
               <td><b>Use the menu on the left to choose an enrollment management task.</b><br/><br/></td>                <td><b>Use the menu on the left to choose an enrollment management task.</b><br/><br/></td>
Line 224  sub print_main_frame { Line 225  sub print_main_frame {
               <td>Use <i>"Section settings"</i> to make changes to the choice of sections included for enrollment in your LON-CAPA course.</td>                <td>Use <i>"Section settings"</i> to make changes to the choice of sections included for enrollment in your LON-CAPA course.</td>
             </tr>              </tr>
               <td>&nbsp;</td>                <td>&nbsp;</td>
               <td>Use <i>"Student photos"</i> to enable or disable the use of student photos in your course.</td>                <td>Use <i>"Student photos"</i> to enable or disable automatic upload of student photos to your course.</td>
             </tr>              </tr>
             <tr>              <tr>
               <td>&nbsp;</td>                <td>&nbsp;</td>
Line 419  ENDTWO Line 420  ENDTWO
   
       my %coursepersonnel=&Apache::lonnet::get_course_adv_roles($dom.'/'.$crs);        my %coursepersonnel=&Apache::lonnet::get_course_adv_roles($dom.'/'.$crs);
       foreach (sort keys %coursepersonnel) {        foreach (sort keys %coursepersonnel) {
           if ($_ eq "Course Coordinator")            if ($_ eq &Apache::lonlocal::mt("Course Coordinator") )
           {            {
               my @ccs = ();                my @ccs = ();
               if ($coursepersonnel{$_} =~ m/,/) {                if ($coursepersonnel{$_} =~ m/,/) {
Line 500  As you are the only user with the role o Line 501  As you are the only user with the role o
       ");        ");
       if ($cross_str > 0) {        if ($cross_str > 0) {
           $r->print("            $r->print("
                 Currently, LON-CAPA course: $realm ($enrollvar{coursecode}) is crosslisted with $cross_str course section(s).  Students enrolling in these course sections will be automatically added to the class roster for the course, if you have chosen to enable a nightly automated enrollment update.  For each crosslisting, leave the checkbox checked if you want registered students in that course to be included in the student roster for LON-CAPA course: <b>$realm ($enrollvar{coursecode})</b>; otherwise uncheck it. If you wish to change the section/group ID assigned in your LON-CAPA course for a crosslisted course, enter the new section/group ID in the appropriate textbox. The LON-CAPA section/group ID can be left (or set to) empty, if you do not wish to tie a section/group ID to this crosslisting. Click 'Go' to store your changes.                  Currently, LON-CAPA course: $realm ($enrollvar{coursecode}) is crosslisted with $cross_str course section(s).  Students enrolling in these course sections will be automatically added to the class roster for the course, if you have chosen to enable a nightly automated enrollment update.  For each crosslisting, leave the checkbox checked if you want registered students in that course to be included in the student roster for LON-CAPA course: <b>$realm ($enrollvar{coursecode})</b>; otherwise uncheck it. If you wish to change the section/group ID assigned in your LON-CAPA course for a crosslisted course, enter the new section/group ID in the appropriate textbox. The LON-CAPA section/group ID can be left (or set to) empty, if you do not wish to tie a section/group ID to this crosslisting. If you wish to add new crosslisted courses, enter the number of new courses to add in the textbox at the bottom of the page. You will provide information about each of the new crosslistings on a subsequent page.  Click 'Go' to store your changes.
               </td>                </td>
              </tr>               </tr>
             </table>              </table>
Line 596  As you are the only user with the role o Line 597  As you are the only user with the role o
               </td>                </td>
              </tr>               </tr>
              <tr>               <tr>
               <td>For each section, check the checkbox if you want registered students in that section to be included in the student roster for LON-CAPA course: <b>$realm ($enrollvar{coursecode})</b>; otherwise uncheck it. If you want to change the section/group designation used for this section in LON-CAPA, delete the currecnt value in the LON-CAPA section/group textbox and enter the new value. Click 'Go' to store your changes.</td>                <td>For each section, check the checkbox if you want registered students in that section to be included in the student roster for LON-CAPA course: <b>$realm ($enrollvar{coursecode})</b>; otherwise uncheck it. If you want to change the section/group designation used for this section in LON-CAPA, delete the currecnt value in the LON-CAPA section/group textbox and enter the new value. The LON-CAPA section/group ID can be left (or set to) empty, if you do not wish to tie a section/group ID to this section. If you wish to add new course section, enter the number of new sections to add in the textbox at the bottom of the page. You will provide information about each of the new sections on a subsequent page. Click 'Go' to store your changes.</td>
              </tr>               </tr>
             </table>              </table>
             <br/>              <br/>
Line 675  As you are the only user with the role o Line 676  As you are the only user with the role o
           if (@currsections) {            if (@currsections) {
               my $secshow = @currsections;                my $secshow = @currsections;
               $r->print("                $r->print("
                 Currently, LON-CAPA course: $realm ($enrollvar{coursecode}) incorporates enrollment from $secshow sections.  Students enrolling in any of these course sections will be automatically added to the class roster for the course, if you have chosen to enable a nightly automated enrollment update. For each section, uncheck the checkbox if you want registered students in that section to cease being included in the student roster for LON-CAPA course: <b>$realm ($enrollvar{coursecode})</b>; otherwise leave it checked. If you want to change the section/group designation used for this section in LON-CAPA, delete the current value in the LON-CAPA section/groupID textbox and enter the new value. Click 'Go' to store your changes.                  Currently, LON-CAPA course: $realm ($enrollvar{coursecode}) incorporates enrollment from $secshow sections.  Students enrolling in any of these course sections will be automatically added to the class roster for the course, if you have chosen to enable a nightly automated enrollment update. For each section, uncheck the checkbox if you want registered students in that section to cease being included in the student roster for LON-CAPA course: <b>$realm ($enrollvar{coursecode})</b>; otherwise leave it checked. If you want to change the section/group designation used for this section in LON-CAPA, delete the current value in the LON-CAPA section/groupID textbox and enter the new value. If you wish to add new course section, enter the number of new sections to add in the textbox at the bottom of the page. You will provide information about each of the new sections on a subsequent page. Click 'Go' to store your changes.
               </td>                </td>
              </tr>               </tr>
             </table>              </table>

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>