");
- $r->print(&movers($clen,$ctr));
+ my $iconname=&Apache::loncommon::icon($resource->{'url'});
+ if (($clen > 1) || ($env{'form.readfile'})) {
+ $r->print(&Apache::loncommon::start_data_table_row()
+ ." | ");
+ if (($env{'form.readfile'})) {
+ $r->print(&checkbox($ctr-1));
+ } else {
+ $r->print(&movers($clen,$ctr));
+ }
}
- $r->print(&hidden($ctr-1,$thash{$key},$key));
- if ($clen > 1) {
- $r->print(" | ");
- $r->print(&select_box($clen,$ctr));
- $r->print(" | ");
+ $r->print(&hidden($ctr-1,$resource->{'title'},$resource->{'url'},
+ $resource->{'id'}));
+ if (($clen > 1) || ($env{'form.readfile'})) {
+ $r->print(" | ");
+ unless (($env{'form.readfile'})) {
+ $r->print("".
+ &select_box($clen,$ctr).
+ " | ");
+ }
+ $r->print("");
$r->print("");
- $r->print(" | ");
- $r->print("$thash{$key}$nhash{$key} | \n");
- $r->print("$key |
\n");
+ $r->print("