--- loncom/interface/lonuserutils.pm 2008/09/12 13:39:26 1.68 +++ loncom/interface/lonuserutils.pm 2008/10/07 19:40:39 1.71 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Utility functions for managing LON-CAPA user accounts # -# $Id: lonuserutils.pm,v 1.68 2008/09/12 13:39:26 droeschl Exp $ +# $Id: lonuserutils.pm,v 1.71 2008/10/07 19:40:39 droeschl Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1009,7 +1009,7 @@ sub date_setting_table { } my $perpetual = '<span class="LC_nobreak"><label><input type="checkbox" name="no_end_date"'; if (defined($endtime) && $endtime == 0) { - $perpetual .= ' checked'; + $perpetual .= ' checked="checked"'; } $perpetual.= ' /> '.&mt('no ending date').'</label></span>'; if ($mode eq 'create_enrolldates') { @@ -1295,9 +1295,13 @@ sub print_userlist { $output_selector .= "\n".$option; } $output_selector .= '</select>'; - $r->print('<label>'.&mt('Output Format: [_1]',$output_selector).'</label>'.(' 'x3)); - } - $r->print('<label>'.&mt('User Status: [_1]',$status_select).'</label>'.(' 'x3)."\n"); + $r->print('<label><span class="LC_nobreak">' + .&mt('Output Format: [_1]',$output_selector) + .'</span></label>'.(' 'x3)); + } + $r->print('<label><span class="LC_nobreak">' + .&mt('User Status: [_1]',$status_select) + .'</span></label>'.(' 'x3)."\n"); my $roleselected = ''; if ($env{'form.showrole'} eq 'Any') { $roleselected = ' selected="selected" '; @@ -1490,7 +1494,9 @@ sub role_filter { my ($role_select); if ($context eq 'domain') { $role_select = &domain_roles_select(); - $output = '<label>'.&mt('Role Type: [_1]',$role_select).'</label>'; + $output = '<label><span class="LC_nobreak">' + .&mt('Role Type: [_1]',$role_select) + .'</span></label>'; } else { $role_select = '<select name="showrole">'."\n". '<option value="Any" '.$roleselected.'>'. @@ -1510,7 +1516,9 @@ sub role_filter { $role_select .= '<option value="'.$role.'"'.$roleselected.'>'.$plrole.'</option>'; } $role_select .= '</select>'; - $output = '<label>'.&mt('Role: [_1]',$role_select).'</label>'; + $output = '<label><span class="LC_nobreak">' + .&mt('Role: [_1]',$role_select) + .'</span></label>'; } return $output; } @@ -2244,7 +2252,7 @@ END time.'_'.rand(1000000000).'.csv'; unless ($CSVfile = Apache::File->new('>/home/httpd'.$CSVfilename)) { $r->log_error("Couldn't open $CSVfilename for output $!"); - $r->print(&mt('Problems occurred in writing the csv file. ' + $r->print(&mt('Problems occurred in writing the CSV file. ' .'This error has been logged. ' .'Please alert your LON-CAPA administrator.')); $CSVfile = undef; @@ -3622,7 +3630,7 @@ sub upfile_drop_add { '</b>'); next; } else { - if ($entries{$fields{'dom'}} + if ($entries{$fields{'domain'}} ne &LONCAPA::clean_domain($entries{$fields{'domain'}})) { $r->print('<br />'. '<b>'.$entries{$fields{'domain'}}. '</b>: '.&mt('Unacceptable domain for user [_2] [_3] [_4] [_5]',$fname,$mname,$lname,$gen).'</b>');