--- loncom/interface/loncommon.pm 2009/08/14 07:49:01 1.692.4.7 +++ loncom/interface/loncommon.pm 2009/10/12 18:28:12 1.692.4.19 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.692.4.7 2009/08/14 07:49:01 raeburn Exp $ +# $Id: loncommon.pm,v 1.692.4.19 2009/10/12 18:28:12 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -482,27 +482,18 @@ ENDAUTHORBRW sub coursebrowser_javascript { my ($domainfilter,$sec_element,$formname)=@_; - my $crs_or_grp_alert = &mt('Please select the type of LON-CAPA entity - Course or Community - for which you wish to add/modify a user role'); - my $output = ' + my $crs_or_grp_alert = &mt('Please select the type of LON-CAPA entity - Course or Community - for which you wish to add/modify a user role.'); + my $id_functions = &javascript_index_functions(); + my $output = ' ENDTEMPLATE return $template; @@ -2893,7 +2979,7 @@ sub syllabuswrapper { } sub track_student_link { - my ($linktext,$sname,$sdom,$target,$start) = @_; + my ($linktext,$sname,$sdom,$target,$start,$only_body) = @_; my $link ="/adm/trackstudent?"; my $title = 'View recent activity'; if (defined($sname) && $sname !~ /^\s*$/ && @@ -2907,6 +2993,7 @@ sub track_student_link { $target = ''; } if ($start) { $link.='&start='.$start; } + if ($only_body) { $link .= '&only_body=1'; } $title = &mt($title); $linktext = &mt($linktext); return qq{$linktext}. @@ -4011,7 +4098,7 @@ sub determinedomain { my $domain=shift; if (! $domain) { # Determine domain if we have not been given one - $domain = $Apache::lonnet::perlvar{'lonDefDomain'}; + $domain = &Apache::lonnet::default_login_domain(); if ($env{'user.domain'}) { $domain=$env{'user.domain'}; } if ($env{'request.role.domain'}) { $domain=$env{'request.role.domain'}; @@ -4556,7 +4643,7 @@ sub standard_css { my $sans = 'Verdana,Arial,Helvetica,sans-serif'; my $mono = 'monospace'; - my $data_table_head = $sidebg; + my $data_table_head = $tabbg; my $data_table_light = '#FAFAFA'; my $data_table_dark = '#F0F0F0'; my $data_table_darker = '#CCCCCC'; @@ -4649,6 +4736,38 @@ div.LC_confirm_box .LC_success img { color: #999999; } +.LC_discussion { + background: $tabbg; + border: 1px solid black; + margin: 2px; +} + +.LC_disc_action_links_bar { + background: $tabbg; + border: none; + margin: 4px; +} + +.LC_disc_action_left { + text-align: left; +} + +.LC_disc_action_right { + text-align: right; +} + +.LC_disc_new_item { + background: white; + border: 2px solid red; + margin: 2px; +} + +.LC_disc_old_item { + background: white; + border: 1px solid black; + margin: 2px; +} + table.LC_pastsubmission { border: 1px solid black; margin: 2px; @@ -4843,6 +4962,7 @@ table.LC_nested_outer { border-spacing: 0; width: 100%; } +table.LC_innerpickbox, table.LC_nested { border: none; border-collapse: collapse; @@ -4850,11 +4970,16 @@ table.LC_nested { width: 100%; } table.LC_data_table tr th, table.LC_calendar tr th, table.LC_mail_list tr th, -table.LC_prior_tries tr th { +table.LC_prior_tries tr th, +table.LC_innerpickbox tr th { font-weight: bold; background-color: $data_table_head; font-size: smaller; } +table.LC_innerpickbox tr th, +table.LC_innerpickbox tr td { + vertical-align: top; +} table.LC_data_table tr.LC_info_row > td { background-color: #CCCCCC; font-weight: bold; @@ -5168,7 +5293,7 @@ table.LC_pick_box { border-spacing: 1px; } table.LC_pick_box td.LC_pick_box_title { - background: $sidebg; + background: $tabbg; font-weight: bold; text-align: right; vertical-align: top; @@ -5176,7 +5301,7 @@ table.LC_pick_box td.LC_pick_box_title { padding: 8px; } table.LC_pick_box td.LC_selfenroll_pick_box_title { - background: $sidebg; + background: $tabbg; font-weight: bold; text-align: right; width: 350px; @@ -6730,6 +6855,8 @@ If the user's status includes multiple t the largest default quota which applies to the user determines the default quota returned. +=back + =cut ############################################### @@ -6878,6 +7005,7 @@ sub user_picker { # loncreateuser::print_user_query_page() # has been completed. next if ($option eq 'alc'); + next if (($option eq 'crs') && ($env{'form.form'} eq 'requestcrs')); next if ($option eq 'crs' && !$env{'request.course.id'}); if ($curr_selected{'srchin'} eq $option) { $srchinsel .= ' @@ -7039,24 +7167,20 @@ $newuserscript $new_user_create -
$lt{'doma'}: | -$domform | - -
$lt{'usr'}: | -$srchbysel - $srchtypesel - - $srchinsel - | -