version 1.329.2.2, 2010/03/11 15:48:33
|
version 1.329.2.3, 2010/08/09 23:39:43
|
Line 497 sub print_username_entry_form {
|
Line 497 sub print_username_entry_form {
|
'onload' => "javascript:setFormElements(document.$formtoset)", |
'onload' => "javascript:setFormElements(document.$formtoset)", |
); |
); |
my %breadcrumb_text = &singleuser_breadcrumb($crstype); |
my %breadcrumb_text = &singleuser_breadcrumb($crstype); |
|
my $title = 'User Management'; |
|
if ($context eq 'course') { |
|
if (&Apache::loncommon::needs_gci_custom()) { |
|
$title = 'Enrollment and Student Activity'; |
|
} |
|
} |
my $start_page = |
my $start_page = |
&Apache::loncommon::start_page('User Management', |
&Apache::loncommon::start_page($title, |
$jscript,{'add_entries' => \%loaditems,}); |
$jscript,{'add_entries' => \%loaditems,}); |
if ($env{'form.action'} eq 'custom') { |
if ($env{'form.action'} eq 'custom') { |
&Apache::lonhtmlcommon::add_breadcrumb |
&Apache::lonhtmlcommon::add_breadcrumb |
Line 516 sub print_username_entry_form {
|
Line 522 sub print_username_entry_form {
|
} elsif ($env{'form.action'} eq 'singlestudent') { |
} elsif ($env{'form.action'} eq 'singlestudent') { |
$helpitem = 'Course_Add_Student'; |
$helpitem = 'Course_Add_Student'; |
} |
} |
my $crumbs = &Apache::lonhtmlcommon::breadcrumbs('User Management', |
my $crumbs = &Apache::lonhtmlcommon::breadcrumbs($title, |
$helpitem); |
$helpitem); |
my %lt=&Apache::lonlocal::texthash( |
my %lt=&Apache::lonlocal::texthash( |
'srst' => 'Search for a user and enroll as a student', |
'srst' => 'Search for a user and enroll as a student', |
Line 792 ENDSCRIPT
|
Line 798 ENDSCRIPT
|
if ($context eq 'requestcrs') { |
if ($context eq 'requestcrs') { |
$r->print('<div>'); |
$r->print('<div>'); |
} else { |
} else { |
$r->print(&Apache::loncommon::start_page('User Management',$jscript)); |
my $title = 'User Management'; |
|
if ($context eq 'course') { |
|
if (&Apache::loncommon::needs_gci_custom()) { |
|
$title = 'Enrollment and Student Activity'; |
|
} |
|
} |
|
$r->print(&Apache::loncommon::start_page($title,$jscript)); |
|
|
my %breadcrumb_text = &singleuser_breadcrumb($crstype); |
my %breadcrumb_text = &singleuser_breadcrumb($crstype); |
&Apache::lonhtmlcommon::add_breadcrumb |
&Apache::lonhtmlcommon::add_breadcrumb |
Line 803 ENDSCRIPT
|
Line 815 ENDSCRIPT
|
text=>$breadcrumb_text{'userpicked'}, |
text=>$breadcrumb_text{'userpicked'}, |
faq=>282,bug=>'Instructor Interface',}); |
faq=>282,bug=>'Instructor Interface',}); |
if ($env{'form.action'} eq 'singleuser') { |
if ($env{'form.action'} eq 'singleuser') { |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('User Management', |
$r->print(&Apache::lonhtmlcommon::breadcrumbs($title, |
'Course_Change_Privileges')); |
'Course_Change_Privileges')); |
$r->print("<b>$lt{'usrch'}</b><br />"); |
$r->print("<b>$lt{'usrch'}</b><br />"); |
$r->print(&entry_form($srch->{'srchdomain'},$srch,undef,$context,undef,$crstype)); |
$r->print(&entry_form($srch->{'srchdomain'},$srch,undef,$context,undef,$crstype)); |
$r->print('<h3>'.$lt{'usel'}.'</h3>'); |
$r->print('<h3>'.$lt{'usel'}.'</h3>'); |
} elsif ($env{'form.action'} eq 'singlestudent') { |
} elsif ($env{'form.action'} eq 'singlestudent') { |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('User Management', |
$r->print(&Apache::lonhtmlcommon::breadcrumbs($title, |
'Course_Add_Student')); |
'Course_Add_Student')); |
$r->print($jscript."<b>"); |
$r->print($jscript."<b>"); |
if ($crstype eq 'Community') { |
if ($crstype eq 'Community') { |
Line 994 sub print_user_modification_page {
|
Line 1006 sub print_user_modification_page {
|
if ($env{'form.popup'}) { |
if ($env{'form.popup'}) { |
$args->{'no_nav_bar'} = 1; |
$args->{'no_nav_bar'} = 1; |
} |
} |
|
my $title = 'User Management'; |
|
if ($context eq 'course') { |
|
if (&Apache::loncommon::needs_gci_custom()) { |
|
$title = 'Enrollment and Student Activity'; |
|
} |
|
} |
my $start_page = |
my $start_page = |
&Apache::loncommon::start_page('User Management',$js,$args); |
&Apache::loncommon::start_page($title,$js,$args); |
my %breadcrumb_text = &singleuser_breadcrumb($crstype); |
my %breadcrumb_text = &singleuser_breadcrumb($crstype); |
&Apache::lonhtmlcommon::add_breadcrumb |
&Apache::lonhtmlcommon::add_breadcrumb |
({href=>"javascript:backPage($form)", |
({href=>"javascript:backPage($form)", |
Line 1016 sub print_user_modification_page {
|
Line 1034 sub print_user_modification_page {
|
if ($env{'form.action'} eq 'singlestudent') { |
if ($env{'form.action'} eq 'singlestudent') { |
$helpitem = 'Course_Add_Student'; |
$helpitem = 'Course_Add_Student'; |
} |
} |
my $crumbs = &Apache::lonhtmlcommon::breadcrumbs('User Management', |
my $crumbs = &Apache::lonhtmlcommon::breadcrumbs($title, |
$helpitem); |
$helpitem); |
|
|
my $forminfo =<<"ENDFORMINFO"; |
my $forminfo =<<"ENDFORMINFO"; |
Line 2204 sub update_user_data {
|
Line 2222 sub update_user_data {
|
if ($env{'form.action'} eq 'singlestudent') { |
if ($env{'form.action'} eq 'singlestudent') { |
$helpitem = 'Course_Add_Student'; |
$helpitem = 'Course_Add_Student'; |
} |
} |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('User Management', |
my $title = 'User Management'; |
|
if ($context eq 'course') { |
|
if (&Apache::loncommon::needs_gci_custom()) { |
|
$title = 'Enrollment and Student Activity'; |
|
} |
|
} |
|
$r->print(&Apache::lonhtmlcommon::breadcrumbs($title, |
$helpitem)); |
$helpitem)); |
$r->print(&update_result_form($uhome)); |
$r->print(&update_result_form($uhome)); |
# Check Inputs |
# Check Inputs |
Line 3631 sub custom_role_editor {
|
Line 3655 sub custom_role_editor {
|
$context = 'domain'; |
$context = 'domain'; |
$crstype = $env{'form.templatecrstype'}; |
$crstype = $env{'form.templatecrstype'}; |
} |
} |
|
my $title = 'User Management'; |
|
if ($context eq 'course') { |
|
if (&Apache::loncommon::needs_gci_custom()) { |
|
$title = 'Enrollment and Student Activity'; |
|
} |
|
} |
# ------------------------------------------------------- What can be assigned? |
# ------------------------------------------------------- What can be assigned? |
my %full=(); |
my %full=(); |
my %courselevel=(); |
my %courselevel=(); |
Line 3746 sub custom_role_editor {
|
Line 3776 sub custom_role_editor {
|
{href=>"javascript:backPage(document.form1,'','')", |
{href=>"javascript:backPage(document.form1,'','')", |
text=>"Edit custom role", |
text=>"Edit custom role", |
faq=>282,bug=>'Instructor Interface',}); |
faq=>282,bug=>'Instructor Interface',}); |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('User Management', |
$r->print(&Apache::lonhtmlcommon::breadcrumbs($title, |
'Course_Editing_Custom_Roles')); |
'Course_Editing_Custom_Roles')); |
|
|
$r->print($body_top); |
$r->print($body_top); |
Line 3899 sub set_custom_role {
|
Line 3929 sub set_custom_role {
|
.$jsback."\n" |
.$jsback."\n" |
.'// ]]>'."\n" |
.'// ]]>'."\n" |
.'</script>'."\n"; |
.'</script>'."\n"; |
|
my $title = 'User Management'; |
|
if ($context eq 'course') { |
|
if (&Apache::loncommon::needs_gci_custom()) { |
|
$title = 'Enrollment and Student Activity'; |
|
} |
|
} |
$r->print(&Apache::loncommon::start_page('Save Custom Role'),$jscript); |
$r->print(&Apache::loncommon::start_page('Save Custom Role'),$jscript); |
&Apache::lonhtmlcommon::add_breadcrumb |
&Apache::lonhtmlcommon::add_breadcrumb |
({href=>"javascript:backPage(document.customresult,'pickrole','')", |
({href=>"javascript:backPage(document.customresult,'pickrole','')", |
Line 3911 sub set_custom_role {
|
Line 3946 sub set_custom_role {
|
{href=>"javascript:backPage(document.customresult,'set_custom_roles','')", |
{href=>"javascript:backPage(document.customresult,'set_custom_roles','')", |
text=>"Result", |
text=>"Result", |
faq=>282,bug=>'Instructor Interface',}); |
faq=>282,bug=>'Instructor Interface',}); |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('User Management', |
$r->print(&Apache::lonhtmlcommon::breadcrumbs($title, |
'Course_Editing_Custom_Roles')); |
'Course_Editing_Custom_Roles')); |
|
|
my ($rdummy,$roledef)= |
my ($rdummy,$roledef)= |
Line 3989 sub handler {
|
Line 4024 sub handler {
|
} else { |
} else { |
$context = 'domain'; |
$context = 'domain'; |
} |
} |
|
my $title = 'User Management'; |
|
if ($context eq 'course') { |
|
if (&Apache::loncommon::needs_gci_custom()) { |
|
$title = 'Enrollment and Student Activity'; |
|
} |
|
} |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, |
['action','state','callingform','roletype','showrole','bulkaction','popup','phase', |
['action','state','callingform','roletype','showrole','bulkaction','popup','phase', |
'username','domain','srchterm','srchdomain','srchin','srchby','srchtype']); |
'username','domain','srchterm','srchdomain','srchin','srchby','srchtype']); |
Line 3996 sub handler {
|
Line 4037 sub handler {
|
if ($env{'form.action'} ne 'dateselect') { |
if ($env{'form.action'} ne 'dateselect') { |
&Apache::lonhtmlcommon::add_breadcrumb |
&Apache::lonhtmlcommon::add_breadcrumb |
({href=>"/adm/createuser", |
({href=>"/adm/createuser", |
text=>"User Management", |
text=>$title, |
help=>'Course_Create_Class_List,Course_Change_Privileges,Course_View_Class_List,Course_Editing_Custom_Roles,Course_Add_Student,Course_Drop_Student,Course_Automated_Enrollment,Course_Self_Enrollment,Course_Manage_Group'}); |
help=>'Course_Create_Class_List,Course_Change_Privileges,Course_View_Class_List,Course_Editing_Custom_Roles,Course_Add_Student,Course_Drop_Student,Course_Automated_Enrollment,Course_Self_Enrollment,Course_Manage_Group'}); |
} |
} |
#SD Following files not added to help, because the corresponding .tex-files seem to |
#SD Following files not added to help, because the corresponding .tex-files seem to |
Line 4016 sub handler {
|
Line 4057 sub handler {
|
# Main switch on form.action and form.state, as appropriate |
# Main switch on form.action and form.state, as appropriate |
if (! exists($env{'form.action'})) { |
if (! exists($env{'form.action'})) { |
$r->print(&header()); |
$r->print(&header()); |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('User Management')); |
$r->print(&Apache::lonhtmlcommon::breadcrumbs($title)); |
$r->print(&print_main_menu($permission,$context,$crstype)); |
$r->print(&print_main_menu($permission,$context,$crstype)); |
$r->print(&Apache::loncommon::end_page()); |
$r->print(&Apache::loncommon::end_page()); |
} elsif ($env{'form.action'} eq 'upload' && $permission->{'cusr'}) { |
} elsif ($env{'form.action'} eq 'upload' && $permission->{'cusr'}) { |
Line 4272 sub handler {
|
Line 4313 sub handler {
|
$r->print(&Apache::loncommon::end_page()); |
$r->print(&Apache::loncommon::end_page()); |
} else { |
} else { |
$r->print(&header()); |
$r->print(&header()); |
$r->print(&Apache::lonhtmlcommon::breadcrumbs('User Management')); |
$r->print(&Apache::lonhtmlcommon::breadcrumbs($title)); |
$r->print(&print_main_menu($permission,$context,$crstype)); |
$r->print(&print_main_menu($permission,$context,$crstype)); |
$r->print(&Apache::loncommon::end_page()); |
$r->print(&Apache::loncommon::end_page()); |
} |
} |
Line 4552 sub print_gci_main_menu {
|
Line 4593 sub print_gci_main_menu {
|
drop => 'Drop Students', |
drop => 'Drop Students', |
upload => 'Upload a File of Course Users', |
upload => 'Upload a File of Course Users', |
singleuser => 'Add/Modify a Course User', |
singleuser => 'Add/Modify a Course User', |
listusers => 'Manage Course Users', |
listusers => 'Concept Test Roster and Student Activity', |
}, |
}, |
); |
); |
my %linktitles = ( |
my %linktitles = ( |