version 1.243, 2008/06/05 12:55:04
|
version 1.244, 2008/06/23 14:13:50
|
Line 3245 sub print_selfenroll_menu {
|
Line 3245 sub print_selfenroll_menu {
|
} |
} |
my $add_domtitle = &mt('Additional domain:'); |
my $add_domtitle = &mt('Additional domain:'); |
if ($curr_types eq '*') { |
if ($curr_types eq '*') { |
$add_domtitle = &mt('Specific Domain:'); |
$add_domtitle = &mt('Specific domain:'); |
} elsif ($curr_types eq '') { |
} elsif ($curr_types eq '') { |
$add_domtitle = &mt('Other domain:'); |
$add_domtitle = &mt('Other domain:'); |
} |
} |
Line 3266 sub print_selfenroll_menu {
|
Line 3266 sub print_selfenroll_menu {
|
$regoff = ' checked="checked" '; |
$regoff = ' checked="checked" '; |
} |
} |
$output .= '<label>'. |
$output .= '<label>'. |
'<input type="radio" name="registered" value="0"'.$regoff.'/>'. |
|
&mt('No').'</label> <label>'. |
|
'<input type="radio" name="registered" value="1"'.$regon.'/>'. |
'<input type="radio" name="registered" value="1"'.$regon.'/>'. |
&mt('Yes').'</label>'; |
&mt('Yes').'</label> <label>'. |
|
'<input type="radio" name="registered" value="0"'.$regoff.'/>'. |
|
&mt('No').'</label>'; |
} elsif ($item eq 'enroll_dates') { |
} elsif ($item eq 'enroll_dates') { |
my $starttime = $env{'course.'.$env{'request.course.id'}.'.internal.selfenroll_start_date'}; |
my $starttime = $env{'course.'.$env{'request.course.id'}.'.internal.selfenroll_start_date'}; |
my $endtime = $env{'course.'.$env{'request.course.id'}.'.internal.selfenroll_end_date'}; |
my $endtime = $env{'course.'.$env{'request.course.id'}.'.internal.selfenroll_end_date'}; |
Line 3396 sub selfenroll_inst_types {
|
Line 3396 sub selfenroll_inst_types {
|
sub selfenroll_date_forms { |
sub selfenroll_date_forms { |
my ($startform,$endform) = @_; |
my ($startform,$endform) = @_; |
my $output .= &Apache::lonhtmlcommon::start_pick_box()."\n". |
my $output .= &Apache::lonhtmlcommon::start_pick_box()."\n". |
&Apache::lonhtmlcommon::row_title(&mt('Starts'), |
&Apache::lonhtmlcommon::row_title(&mt('Start date'), |
'LC_oddrow_value')."\n". |
'LC_oddrow_value')."\n". |
$startform."\n". |
$startform."\n". |
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::row_title(&mt('Ends'), |
&Apache::lonhtmlcommon::row_title(&mt('End date'), |
'LC_oddrow_value')."\n". |
'LC_oddrow_value')."\n". |
$endform."\n". |
$endform."\n". |
&Apache::lonhtmlcommon::row_closure(1). |
&Apache::lonhtmlcommon::row_closure(1). |
Line 4387 sub update_selfenroll_config {
|
Line 4387 sub update_selfenroll_config {
|
foreach my $type ('start','end') { |
foreach my $type ('start','end') { |
if (exists($changes{'internal.selfenroll_'.$type.'_date'})) { |
if (exists($changes{'internal.selfenroll_'.$type.'_date'})) { |
my $newdate = &Apache::lonlocal::locallocaltime($changes{'internal.selfenroll_'.$type.'_date'}); |
my $newdate = &Apache::lonlocal::locallocaltime($changes{'internal.selfenroll_'.$type.'_date'}); |
$r->print('<li>'.&mt('[_1]: [_2] set to "[_3]".', |
$r->print('<li>'.&mt('[_1]: "[_2]" set to "[_3]".', |
$title,$type,$newdate).'</li>'); |
$title,$type,$newdate).'</li>'); |
} |
} |
} |
} |
Line 4395 sub update_selfenroll_config {
|
Line 4395 sub update_selfenroll_config {
|
foreach my $type ('start','end') { |
foreach my $type ('start','end') { |
if (exists($changes{'internal.selfenroll_'.$type.'_access'})) { |
if (exists($changes{'internal.selfenroll_'.$type.'_access'})) { |
my $newdate = &Apache::lonlocal::locallocaltime($changes{'internal.selfenroll_'.$type.'_access'}); |
my $newdate = &Apache::lonlocal::locallocaltime($changes{'internal.selfenroll_'.$type.'_access'}); |
$r->print('<li>'.&mt('[_1]: [_2] set to "[_3]".', |
$r->print('<li>'.&mt('[_1]: "[_2]" set to "[_3]".', |
$title,$type,$newdate).'</li>'); |
$title,$type,$newdate).'</li>'); |
} |
} |
} |
} |
Line 4409 sub update_selfenroll_config {
|
Line 4409 sub update_selfenroll_config {
|
$newval = &mt('Any user in any domain'); |
$newval = &mt('Any user in any domain'); |
} |
} |
} |
} |
$r->print('<li>'.&mt('[_1] set to "[_2]".',$title,$newval).'</li>'."\n"); |
$r->print('<li>'.&mt('"[_1]" set to "[_2]".',$title,$newval).'</li>'."\n"); |
} |
} |
} |
} |
} |
} |
Line 4438 sub get_selfenroll_titles {
|
Line 4438 sub get_selfenroll_titles {
|
my @row = ('types','registered','enroll_dates','access_dates','section'); |
my @row = ('types','registered','enroll_dates','access_dates','section'); |
my %lt = &Apache::lonlocal::texthash ( |
my %lt = &Apache::lonlocal::texthash ( |
types => 'Users allowed to self-enroll in this course', |
types => 'Users allowed to self-enroll in this course', |
registered => 'Restrict self-enrollment to registered students?', |
registered => 'Restrict self-enrollment to registered students', |
enroll_dates => 'Dates self-enrollment available', |
enroll_dates => 'Dates self-enrollment available', |
access_dates => 'Access dates for self-enrolled users', |
access_dates => 'Course access dates for self-enrolled users', |
section => 'Section assigned to self-enrolled users', |
section => 'Section assigned to self-enrolled users', |
); |
); |
return (\@row,\%lt); |
return (\@row,\%lt); |