--- loncom/interface/groupsort.pm 2007/07/25 23:10:23 1.60 +++ loncom/interface/groupsort.pm 2008/09/15 13:22:48 1.62 @@ -2,7 +2,7 @@ # The LON-CAPA group sort handler # Allows for sorting prior to import into RAT. # -# $Id: groupsort.pm,v 1.60 2007/07/25 23:10:23 banghart Exp $ +# $Id: groupsort.pm,v 1.62 2008/09/15 13:22:48 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -37,7 +37,7 @@ use GDBM_File; use Apache::loncommon; use Apache::lonlocal; use Apache::lonnet; -use LONCAPA(); +use LONCAPA; my $iconpath; # variable to be accessible to multiple subroutines my %hash; # variable to tie to user specific database @@ -206,9 +206,6 @@ sub handler { &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, ['acts','mode','readfile','recover','bookmarks']); - # color scheme - my $fileclr = '#ffffe6'; - my $titleclr = '#ddffff'; &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header; @@ -229,9 +226,9 @@ function finish_import() { for (var num=0; numprint(<$lt{'fin'} +

$lt{'fin'}

+
    +
+
END } - $r->print("
"); - $r->print("\n"); + $r->print(&Apache::loncommon::start_data_table() + .&Apache::loncommon::start_data_table_header_row()); if (($env{'form.readfile'}) || ($env{'form.bookmarks'})) { - $r->print("\n"); + $r->print("\n"); } else { - $r->print("\n"); + $r->print("\n"); } - $r->print("\n"); - $r->print("\n"); + $r->print("\n"); + $r->print(""); + $r->print(&Apache::loncommon::end_data_table_header_row() + ."\n"); } else { $r->print(&Apache::loncommon::start_page(undef,$js, {'only_body' => 1})); @@ -390,7 +392,8 @@ END $ctr++; my $iconname=&Apache::loncommon::icon($resource->{'url'}); if (($clen > 1) || ($env{'form.readfile'}) || ($env{'form.bookmarks'})) { - $r->print(""); unless (($env{'form.readfile'}) || ($env{'form.bookmarks'})) { - $r->print(""); } - $r->print("\n"); + $r->print("" + .&Apache::loncommon::end_data_table_row() + ."\n"); } } if (($clen > 1) || ($env{'form.readfile'}) || ($env{'form.bookmarks'})) { - $r->print("
$lt{'in'}$lt{'in'}$lt{'co'}$lt{'co'}$lt{'ti'}$lt{'pa'}
$lt{'ti'}$lt{'pa'}
"); + $r->print(&Apache::loncommon::start_data_table_row() + .""); if (($env{'form.readfile'}) || ($env{'form.bookmarks'})) { $r->print(&checkbox($ctr-1)); } else { @@ -402,19 +405,22 @@ END if (($clen > 1) || ($env{'form.readfile'}) || ($env{'form.bookmarks'})) { $r->print("". + $r->print("". &select_box($clen,$ctr). ""); + $r->print(""); $r->print(""); - $r->print(""); - $r->print($resource->{'title'}.$resource->{'notes'}."\n"); - $r->print($resource->{'url'}."
"); + $r->print($resource->{'title'}.$resource->{'notes'}."\n"); + $r->print($resource->{'url'}."
"); + $r->print(&Apache::loncommon::end_data_table() + .""); } else { $r->print(< @@ -431,12 +437,12 @@ END # --------------------------------------- Hidden values (returns scalar string) sub hidden { my ($sel,$title,$filelink,$id) = @_; - my $string = ''; + my $string = ''; $filelink=~s|^/ext/|http://|; $string .= ''; - $string .= ''; + &escape($filelink).'" />'; + $string .= ''; return $string; }