--- loncom/interface/groupsort.pm 2003/02/03 18:03:52 1.19 +++ loncom/interface/groupsort.pm 2003/06/13 23:33:38 1.20 @@ -2,7 +2,7 @@ # The LON-CAPA group sort handler # Allows for sorting prior to import into RAT. # -# $Id: groupsort.pm,v 1.19 2003/02/03 18:03:52 harris41 Exp $ +# $Id: groupsort.pm,v 1.20 2003/06/13 23:33:38 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -331,13 +331,18 @@ END $ctr++; my @file_ext = split(/\./,$key); my $curfext = $file_ext[scalar(@file_ext)-1]; + my $iconname="unknown.gif"; + my $embstyle = &Apache::loncommon::fileembstyle($curfext); + # The unless conditional that follows is a bit of overkill + $iconname = $curfext.".gif" unless + (!defined($embstyle) || $embstyle eq 'unk' || $embstyle eq 'hdn'); $r->print(""); $r->print(&movers($clen,$ctr)); $r->print(&hidden($ctr-1,$thash{$key},$key)); $r->print(""); $r->print(&select_box($clen,$ctr)); $r->print(""); - $r->print(""); + $r->print(""); $r->print(""); $r->print("$thash{$key}\n"); $r->print("$key\n");