- |
'.
' | ' );
-
+
$r->print('');
my $display_value = $resourcedata->{$thiskey};
if (&isdateparm($resourcedata->{$thiskey.'.type'})) {
- $display_value =
+ $display_value =
&Apache::lonlocal::locallocaltime($display_value);
}
$r->print(&mt('Parameter: "[_1]" with value: "[_2]"',
@@ -3612,7 +3090,7 @@ ENDOVER
}
$r->print(' '.&mt('Part: [_1]',$data{'parameter_part'}));
$r->print(' |
');
-
+
}
}
$r->print(&Apache::loncommon::end_data_table().''.
@@ -3702,7 +3180,7 @@ sub parse_key {
my ($map,$resid,$url) = &Apache::lonnet::decode_symb($data{'realm'});
$data{'realm_exists'} = &Apache::lonnet::symbverify($data{'realm'},$url);
}
-
+
$data{'parameter_part'} = $part;
$data{'parameter_name'} = $name;
@@ -3742,7 +3220,7 @@ sub check_cloners {
$disallowed{'format'} .= $currclone.',';
}
} elsif ($currclone !~/^($match_username)\:($match_domain)$/) {
- $disallowed{'format'} .= $currclone.',';
+ $disallowed{'format'} .= $currclone.',';
} else {
if (&Apache::lonnet::homeserver($uname,$udom) eq 'no_host') {
$disallowed{'newuser'} .= $currclone.',';
@@ -3771,7 +3249,7 @@ sub change_clone {
my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'};
my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'};
my $clone_crs = $cnum.':'.$cdom;
-
+
if ($cnum && $cdom) {
my @allowclone;
&extract_cloners($clonelist,\@allowclone);
@@ -3852,10 +3330,10 @@ ENDMAINFORMHEAD
my @menu =
( { categorytitle=>'Settings for this Course',
items => [
- { linktext => 'Course Environment',
- url => '/adm/parmset?action=crsenv',
+ { linktext => 'Course Configuration',
+ url => '/adm/courseprefs?origin=params',
permission => $parm_permission,
- linktitle =>'Edit environment settings for this course.' ,
+ linktitle =>'Edit course configuration.' ,
icon => 'preferences-desktop-remote-desktop.png' ,
#help => 'Course_Environment',
},
@@ -3883,7 +3361,7 @@ ENDMAINFORMHEAD
permission => $parm_permission,
linktitle =>'Set default actions for parameters.' ,
icon => 'folder-new.png' ,
- }]},
+ }]},
{ categorytitle => 'New and Existing Parameter Settings for Resources',
items => [
{ linktext => 'Edit Resource Parameters - Helper Mode',
@@ -3915,7 +3393,7 @@ ENDMAINFORMHEAD
linktitle =>'Set/Modify existing resource parameters in overview mode.' ,
icon => 'preferences-desktop-wallpaper.png' ,
#help => 'Parameter_Overview',
- },
+ },
{ linktext => 'Change Log',
url => '/adm/parmset?action=parameterchangelog',
permission => $parm_permission,
@@ -3947,19 +3425,19 @@ sub output_row {
push @options,['deleted', 'Delete Metadata Field'];
}
$output = &Apache::loncommon::start_data_table_row();
- $output .= '
'.$field_text.': | ';
+ $output .= ''.$field_text.': | ';
$output .= &Apache::loncommon::end_data_table_row();
foreach my $opt (@options) {
my $checked = ($options =~ m/$opt->[0]/) ? ' checked="checked" ' : '' ;
$output .= &Apache::loncommon::continue_data_table_row();
- $output .= ''.(' ' x 5).' | ';
$output .= &Apache::loncommon::end_data_table_row();
}
$output .= &Apache::loncommon::continue_data_table_row();
- $output .= ''.(' ' x 10).' | ';
+ $output .= ''.(' ' x 10).' | ';
$output .= &Apache::loncommon::end_data_table_row();
my $multiple_checked;
my $single_checked;
@@ -3971,14 +3449,14 @@ sub output_row {
$single_checked = '';
}
$output .= &Apache::loncommon::continue_data_table_row();
- $output .= ''.(' ' x 10).'
+ $output .= ' | '.(' ' x 10).'
- '.&mt('Student may select multiple choices from list').' | ';
+ '.&mt('Student may select multiple choices from list').'';
$output .= &Apache::loncommon::end_data_table_row();
$output .= &Apache::loncommon::continue_data_table_row();
- $output .= ''.(' ' x 10).'
+ $output .= ' | '.(' ' x 10).'
- '.&mt('Student may select only one choice from list').' | ';
+ '.&mt('Student may select only one choice from list').'';
$output .= &Apache::loncommon::end_data_table_row();
}
return ($output);
@@ -4032,7 +3510,7 @@ sub order_meta_fields {
}
my $ordered_fields = join ",", @neworder;
my $put_result = &Apache::lonnet::put('environment',
- {'metadata.addedorder'=>$ordered_fields},$dom,$crs);
+ {'metadata.addedorder'=>$ordered_fields},$dom,$crs);
&Apache::lonnet::appenv({'course.'.$env{'request.course.id'}.'.metadata.addedorder' => $ordered_fields});
}
my $fields = &get_added_meta_fieldnames($env{'request.course.id'});
@@ -4045,8 +3523,8 @@ sub order_meta_fields {
$ordered_fields = join ",", @fields_in_order;
}
my $put_result = &Apache::lonnet::put('environment',
- {'metadata.addedorder'=>$ordered_fields},$dom,$crs);
- }
+ {'metadata.addedorder'=>$ordered_fields},$dom,$crs);
+ }
$r->print('');
my $num_fields = scalar(@fields_in_order);
foreach my $key (@fields_in_order) {
@@ -4097,7 +3575,7 @@ sub addmetafield {
$options =~ s/,,/,/;
my $put_result = &Apache::lonnet::put('environment',
{'metadata.'.$meta_field.'.options'=>$options},$dom,$crs);
-
+
$r->print('Undeleted Metadata Field '.$env{'course.'.$env{'request.course.id'}.'.metadata.'.$meta_field.'.added'}." with result ".$put_result.'
');
}
$r->print(&continue());
@@ -4156,13 +3634,13 @@ sub setrestrictmeta {
$save_field = $meta_field;
if ($env{'form.'.$meta_field.'_stuadd'}) {
$options.='stuadd,';
- }
+ }
if ($env{'form.'.$meta_field.'_choices'}) {
$options.='choices,';
- }
+ }
if ($env{'form.'.$meta_field.'_onlyone'} eq 'single') {
$options.='onlyone,';
- }
+ }
if ($env{'form.'.$meta_field.'_active'}) {
$options.='active,';
}
@@ -4208,7 +3686,7 @@ ENDButtons
$output.= &output_row($r, $field, $$added_metadata_fields{$field},$added_flag, $row_alt);
}
$output .= &Apache::loncommon::end_data_table();
- $r->print(<print(<
$output
$buttons
@@ -4254,7 +3732,7 @@ sub defaultsetter {
&Apache::lonhtmlcommon::add_breadcrumb({href=>'/adm/parmset?action=setdefaults',
text=>"Set Defaults"});
- my $start_page =
+ my $start_page =
&Apache::loncommon::start_page('Parameter Setting Default Actions');
my $breadcrumbs = &Apache::lonhtmlcommon::breadcrumbs('Defaults');
$r->print(<print(&mt('Manual setting rules apply to all interfaces.').'
'.
&mt('Automatic setting rules apply to table mode interfaces only.'));
@@ -4392,12 +3870,12 @@ ENDINPUTDATE
} elsif ($defkeytype{$tempkey} eq 'string_yesno') {
my $yeschecked='';
my $nochecked='';
- if (&rulescache($tempkey.'_value') eq 'yes') { $yeschecked='checked="checked"'; }
- if (&rulescache($tempkey.'_value') eq 'no') { $nochecked='checked="checked"'; }
+ if (&rulescache($tempkey.'_value') eq 'yes') { $yeschecked=' checked="checked"'; }
+ if (&rulescache($tempkey.'_value') eq 'no') { $nochecked=' checked="checked"'; }
$r->print(< $lt{'yes'}
- $lt{'no'}
+ $lt{'yes'}
+ $lt{'no'}
ENDYESNO
} else {
$r->print('');
@@ -4435,7 +3913,7 @@ sub components {
$issection='';
}
my $realm=''.&mt('All Resources').'';
- my $realmdescription=&mt('all resources');
+ my $realmdescription=&mt('all resources');
if ($middle=~/^(.+)\_\_\_\(all\)$/) {
$realm=''.&mt('Folder/Map').': '.&Apache::lonnet::gettitle($1).'
('.$1.')';
$realmdescription=&mt('folder').' '.&Apache::lonnet::gettitle($1);
@@ -4466,7 +3944,7 @@ sub load_parameter_names {
close($config);
$standard_parms{'int_pos'} = 'Positive Integer';
$standard_parms{'int_zero_pos'} = 'Positive Integer or Zero';
- %standard_parms=&Apache::lonlocal::texthash(%standard_parms);
+ %standard_parms=&Apache::lonlocal::texthash(%standard_parms);
}
sub standard_parameter_names {
@@ -4475,9 +3953,9 @@ sub standard_parameter_names {
&load_parameter_names();
}
if ($standard_parms{$name}) {
- return $standard_parms{$name};
- } else {
- return $name;
+ return $standard_parms{$name};
+ } else {
+ return $name;
}
}
@@ -4498,7 +3976,7 @@ sub parm_change_log {
$r->print('