');
}
+
# Display Unit 1 "General Parameters"
if (!$pssymb) {
- $r->print(&Apache::lonhtmlcommon::topic_bar (1,&mt('General Parameters')));
- $r->print(&Apache::lonhtmlcommon::start_pick_box());
+ $r->print(&Apache::lonhtmlcommon::topic_bar(1,&mt('Resource Specification')));
+ $r->print(<
+//
+
+COURSECONTENTSCRIPT
+ $r->print(&Apache::lonhtmlcommon::start_pick_box());
&levelmenu($r,\%alllevs,$parmlev);
-
- if ($parmlev ne 'general') {
- $r->print(&Apache::lonhtmlcommon::row_closure());
- &mapmenu($r,\%allmaps,$pschp,\%maptitles, \%symbp);
- }
-
+ $r->print(&Apache::lonhtmlcommon::row_closure(1));
+ $r->print(&Apache::lonhtmlcommon::end_pick_box());
+ $r->print(&Apache::lonhtmlcommon::start_pick_box());
+ &mapmenu($r,\%allmaps,$pschp,\%maptitles, \%symbp);
$r->print(&Apache::lonhtmlcommon::row_closure(1));
$r->print(&Apache::lonhtmlcommon::end_pick_box());
#Display Unit 2 "Select Parameter"
+ $r->print(&Apache::lonhtmlcommon::topic_bar(2,&mt('Parameter Specification')));
&displaymenu($r,\%allparms,\%allparts,\@pscat,\@psprt,\%keyorder);
+ $r->print(&Apache::lonhtmlcommon::topic_bar(3,&mt('User Specification (optional)')));
} else {
+ # parameter screen for a single resource.
my ($map,$id,$resource)=&Apache::lonnet::decode_symb($pssymb);
my $title = &Apache::lonnet::gettitle($pssymb);
$r->print(&mt('Specific Resource: [_1] ([_2])',$title,$resource).
''.
'
');
+ $r->print(&Apache::lonhtmlcommon::topic_bar('',&mt('User Specification (optional)')));
}
- $r->print(&Apache::lonhtmlcommon::topic_bar (3,&mt('User Selection')));
$r->print(&Apache::lonhtmlcommon::start_pick_box());
&usermenu($r,$uname,$id,$udom,$csec,$cgroup,$parmlev,\@usersgroups);
$r->print(&Apache::lonhtmlcommon::row_closure(1));
@@ -2245,6 +2266,7 @@ ENDPARMSELSCRIPT
.''
.''
);
+
# Display Messages
$r->print(''.$message.'
');
@@ -3151,7 +3173,7 @@ ENDOVER
\%keyorder,\%defkeytype);
if (grep {$_ eq 'all'} (@psprt)) {
- @psprt = keys(%allparts);
+ @psprt = keys(%allparts);
}
# Menu to select levels, etc
@@ -3163,10 +3185,10 @@ ENDOVER
$r->print(&Apache::lonhtmlcommon::start_pick_box());
&levelmenu($r,\%alllevs,$parmlev);
if ($parmlev ne 'general') {
- #$r->print('');
+ &mapmenu($r,\%allmaps,$pschp,\%maptitles,\%symbp);
+ #$r->print('');
}
$r->print(&Apache::lonhtmlcommon::row_closure(1));
$r->print(&Apache::lonhtmlcommon::end_pick_box());
@@ -3184,7 +3206,7 @@ ENDOVER
$r->print(&Apache::lonhtmlcommon::start_pick_box());
$r->print(&Apache::lonhtmlcommon::row_title(&mt('Select Parts to View')));
#$r->print(''.
- $r->print(''.
+ $r->print(''.
''.&mt('Parts').' | '.&mt('Section(s)').
' | '.&mt('Group(s)').' |
---|
');
&partmenu($r,\%allparts,\@psprt);
@@ -3219,15 +3241,15 @@ ENDOVER
if (($env{'form.store'}) || ($env{'form.dis'})) {
- if ($env{'form.store'}) { &storedata($r,$crs,$dom); }
+ if ($env{'form.store'}) { &storedata($r,$crs,$dom); }
# Read modified data
- my $resourcedata=&readdata($crs,$dom);
+ my $resourcedata=&readdata($crs,$dom);
# List data
- &listdata($r,$resourcedata,$listdata,$sortorder);
+ &listdata($r,$resourcedata,$listdata,$sortorder);
}
$r->print(&tableend().
((($env{'form.store'}) || ($env{'form.dis'}))?'':'').
@@ -3618,33 +3640,35 @@ ENDMAINFORMHEAD
my $vgr = &Apache::lonnet::allowed('vgr',$env{'request.course.id'});
my $mgr = &Apache::lonnet::allowed('mgr',$env{'request.course.id'});
+ my $crstype = &Apache::loncommon::course_type();
+ my $lc_crstype = lc($crstype);
my @menu =
- ( { categorytitle=>'Settings for this Course',
+ ( { categorytitle=>"Settings for this $crstype",
items => [
- { linktext => 'Course Configuration',
+ { linktext => "$crstype Configuration",
url => '/adm/courseprefs?origin=params',
permission => $parm_permission,
- linktitle =>'Edit course configuration.' ,
+ linktitle => "Edit $lc_crstype configuration." ,
icon => 'preferences-desktop-remote-desktop.png' ,
#help => 'Course_Environment',
},
{ linktext => 'Portfolio Metadata',
url => '/adm/parmset?action=setrestrictmeta',
permission => $parm_permission,
- linktitle => 'Restrict metadata for this course.' ,
+ linktitle => "Restrict metadata for this $lc_crstype." ,
icon =>'contact-new.png' ,
},
- { linktext => 'Manage Course Slots',
+ { linktext => "Manage $crstype Slots",
url => '/adm/slotrequest?command=showslots',
permission => $vgr,
- linktitle =>'Manage slots for this course.' ,
+ linktitle => "Manage slots for this $lc_crstype." ,
icon => 'format-justify-fill.png' ,
},
{ linktext => 'Reset Student Access Times',
url => '/adm/helper/resettimes.helper',
permission => $mgr,
- linktitle =>'Reset access times for folders/maps, resources or the course.' ,
+ linktitle => "Reset access times for folders/maps, resources or the $lc_crstype." ,
icon => 'start-here.png' ,
},
@@ -3689,7 +3713,7 @@ ENDMAINFORMHEAD
{ linktext => 'Change Log',
url => '/adm/parmset?action=parameterchangelog',
permission => $parm_permission,
- linktitle =>'View parameter and course blog posting/user notification change log.' ,
+ linktitle =>"View parameter and $lc_crstype blog posting/user notification change log." ,
icon => 'emblem-system.png' ,
}]}
);
| |