version 1.47, 2006/08/10 21:46:40
|
version 1.50, 2007/05/02 01:33:49
|
Line 673 ENDTWO
|
Line 673 ENDTWO
|
if ((@ccs + @showdom) > $notifycount) { |
if ((@ccs + @showdom) > $notifycount) { |
$r->print(&mt("Check the checkbox(es) to initiate notification for people not currently informed of roster changes from the nightly enrollment update.<br />")); |
$r->print(&mt("Check the checkbox(es) to initiate notification for people not currently informed of roster changes from the nightly enrollment update.<br />")); |
} |
} |
$r->print(&mt("Click 'Go' to store your changes.")." |
$r->print(&mt("Click 'Go' to save your changes.")." |
<br/> |
<br/> |
<table width=\"100%\" border=\"0\" cellspadding=\"2\" cellspacing=\"2\"> |
<table width=\"100%\" border=\"0\" cellspadding=\"2\" cellspacing=\"2\"> |
<tr> |
<tr> |
Line 707 ENDTWO
|
Line 707 ENDTWO
|
"); |
"); |
if ($cross_str > 0) { |
if ($cross_str > 0) { |
$r->print(" |
$r->print(" |
Currently, this LON-CAPA course 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 ID assigned in your LON-CAPA course for a crosslisted course, enter the new section ID in the appropriate textbox. The LON-CAPA section ID can be left (or set to) empty, if you do not wish to tie a section 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. |
Currently, this LON-CAPA course 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 ID assigned in your LON-CAPA course for a crosslisted course, enter the new section ID in the appropriate textbox. The LON-CAPA section ID can be left (or set to) empty, if you do not wish to tie a section 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 save your changes. |
</td> |
</td> |
</tr> |
</tr> |
</table> |
</table> |
Line 793 ENDTWO
|
Line 793 ENDTWO
|
</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 ID designation used for this section in LON-CAPA, delete the current value in the LON-CAPA section ID textbox and enter the new value. The LON-CAPA section ID can be left (or set to) empty, if you do not wish to tie a section ID to this section. To add a new section, check the 'Enrollment in this course?' checkbox, and enter the desired LON-CAPA section ID in the appropriate textbox. Click 'Go' to store |
<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 ID designation used for this section in LON-CAPA, delete the current value in the LON-CAPA section ID textbox and enter the new value. The LON-CAPA section ID can be left (or set to) empty, if you do not wish to tie a section ID to this section. To add a new section, check the 'Enrollment in this course?' checkbox, and enter the desired LON-CAPA section ID in the appropriate textbox. Click 'Go' to save your changes.</td> |
your changes.</td> |
|
</tr> |
</tr> |
</table> |
</table> |
<br/> |
<br/> |
Line 854 your changes.</td>
|
Line 853 your changes.</td>
|
if (@currsections) { |
if (@currsections) { |
my $secshow = @currsections; |
my $secshow = @currsections; |
$r->print(" |
$r->print(" |
Currently, this LON-CAPA course 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 ID designation used for this section in LON-CAPA, delete the current value in the LON-CAPA section ID 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. |
Currently, this LON-CAPA course 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 ID designation used for this section in LON-CAPA, delete the current value in the LON-CAPA section ID 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 save your changes. |
</td> |
</td> |
</tr> |
</tr> |
</table> |
</table> |
Line 944 your changes.</td>
|
Line 943 your changes.</td>
|
'); |
'); |
my ($result,$perm_reqd)=&Apache::lonnet::auto_photo_permission($crs,$dom); |
my ($result,$perm_reqd)=&Apache::lonnet::auto_photo_permission($crs,$dom); |
my $can_enable = 1; |
my $can_enable = 1; |
my $institution = $Apache::lonnet::domaindescription{$dom}; |
my $institution = &Apache::lonnet::domain($dom,'description'); |
my $user; |
|
if ($enrollvar{'courseowner'} =~ /^[^:]+:[^:]+$/) { |
|
$user = $env{'user.name'}.':'.$env{'user.domain'}; |
|
} else { |
|
$user = $env{'user.name'}; |
|
} |
|
if ($result eq 'ok') { |
if ($result eq 'ok') { |
if ($perm_reqd eq 'yes') { |
if ($perm_reqd eq 'yes') { |
if (!($enrollvar{'photopermission'} eq 'yes')) { |
if (!($enrollvar{'photopermission'} eq 'yes')) { |
$can_enable = 0; |
$can_enable = 0; |
} else { |
} else { |
if ($user eq $enrollvar{'courseowner'}) { |
if (&user_is_courseowner($enrollvar{'courseowner'})) { |
$r->print(' |
$r->print(' |
<tr> |
<tr> |
<td>'. |
<td>'. |
Line 983 your changes.</td>
|
Line 976 your changes.</td>
|
<tr> |
<tr> |
<td> |
<td> |
<font color="#888888">'. |
<font color="#888888">'. |
&mt('Note: if you enable automatic import of student photos, your course will automatically have access to photos stored by your institution for officially registered students, via a conduit established by your LON-CAPA domain coordinator.').' |
&mt('Note: if you enable automatic import of student photos, your course will automatically have access to photos saved by your institution for officially registered students, via a conduit established by your LON-CAPA domain coordinator.').' |
</font> |
</font> |
</td> |
</td> |
</tr> |
</tr> |
'); |
'); |
} else { |
} else { |
if ($user eq $enrollvar{'courseowner'}) { |
if (&user_is_courseowner($enrollvar{'courseowner'})) { |
$r->print(' |
$r->print(' |
<tr> |
<tr> |
<td>'. |
<td>'. |
Line 2283 sub photo_permission {
|
Line 2276 sub photo_permission {
|
$dom,$crs); |
$dom,$crs); |
my ($showphotos,$response); |
my ($showphotos,$response); |
if (exists($env{'form.cancel_agreement'})) { |
if (exists($env{'form.cancel_agreement'})) { |
if ($env{'user.name'} eq $settings{'internal.courseowner'}) { |
if (&user_is_courseowner($settings{'internal.courseowner'})) { |
my %cenv = ( |
my %cenv = ( |
'internal.photopermission' => 'no', |
'internal.photopermission' => 'no', |
); |
); |
Line 2352 sub photo_permission {
|
Line 2345 sub photo_permission {
|
sub print_photo_agreement { |
sub print_photo_agreement { |
my ($r,$realm,$dom,$crs,$action,$tasktitleref,$conditions,$courseowner)=@_; |
my ($r,$realm,$dom,$crs,$action,$tasktitleref,$conditions,$courseowner)=@_; |
my $response; |
my $response; |
my $institution = $Apache::lonnet::domaindescription{$dom}; |
my $institution = &Apache::lonnet::domain($dom,'description'); |
if ($env{'user.name'} eq $courseowner) { |
if (&user_is_courseowner($courseowner)) { |
$response = ' |
$response = ' |
<script type="text/javascript"> |
<script type="text/javascript"> |
function agreement_result(caller) { |
function agreement_result(caller) { |
Line 2984 sub validate_lcsec {
|
Line 2977 sub validate_lcsec {
|
return 'ok'; |
return 'ok'; |
} |
} |
|
|
|
sub user_is_courseowner { |
|
my ($courseowner) = @_; |
|
my $user; |
|
if ($courseowner =~ /^[^:]+:[^:]+$/) { |
|
$user = $env{'user.name'}.':'.$env{'user.domain'}; |
|
} else { |
|
$user = $env{'user.name'}; |
|
} |
|
return ($user eq $courseowner); |
|
} |
|
|
################################################################### |
################################################################### |
sub handler { |
sub handler { |
my $r = shift; |
my $r = shift; |