--- loncom/interface/loncommon.pm 2007/10/18 21:57:59 1.593 +++ loncom/interface/loncommon.pm 2007/10/22 22:16:38 1.594 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.593 2007/10/18 21:57:59 albertel Exp $ +# $Id: loncommon.pm,v 1.594 2007/10/22 22:16:38 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -407,7 +407,7 @@ sub coursebrowser_javascript { '&cdomelement='+udom+ '&cnameelement='+desc; if (extra_element !=null && extra_element != '') { - if (formname == 'rolechoice') { + if (formname == 'rolechoice' || formname == 'studentform') { url += '&roleelement='+extra_element; if (domainfilter == null || domainfilter == '') { url += '&domainfilter='+extra_element; @@ -1593,7 +1593,7 @@ input: 4 arguments (two required, two op option, and selected by default. $hide - Value of 'hide' causes hiding of the name of the server, if 1 server found, or default, if 0 found. -output: returns 1 items: +output: returns 2 items: (a) form element which contains either: (i) '); @@ -6727,9 +6733,10 @@ sub csv_print_select_table { ($sample eq $defaultcol ? ' selected="selected" ' : ''). '>Column '.($sample+1).''); } - $r->print(''."\n"); + $r->print(''.&end_data_table_row()."\n"); $i++; } + $r->print(&end_data_table()); $i--; return $i; } @@ -6756,11 +6763,13 @@ sub csv_samples_select_table { my $i=0; # my $samples = &get_samples($records,3); - $r->print(''); + $r->print(&start_data_table(). + &start_data_table_header_row().''. + &end_data_table_header_row()); foreach my $key (sort(keys(%{ $samples->[0] }))) { - $r->print(''); + $r->print(''.&end_data_table_row()); $i++; } + $r->print(&end_data_table()); $i--; return($i); }
'. - &mt('Field').''.&mt('Samples').'
'. + &mt('Field').''.&mt('Samples').'