');
+ if ($env{'form.bookmarks'}) {
+ $r->print(&mt('There are no resources in your bookmarks to import.'));
+ }
+ $r->print('
');
+ }
} else {
$r->print(&Apache::loncommon::start_page(undef,$js,
{'only_body' => 1}));
@@ -412,35 +410,41 @@ END
$r->print(&Apache::loncommon::inhibit_menu_check('input'));
}
- foreach (sort {$shash{$a}<=>$shash{$b}} (keys %shash)) {
- my $key=$_;
+ foreach my $resource (@resources) {
$ctr++;
- my $iconname=&Apache::loncommon::icon($key);
+ my $iconname=&Apache::loncommon::icon($resource->{'url'});
if (($clen > 1) || ($env{'form.readfile'}) || ($env{'form.bookmarks'})) {
- $r->print("");
+ $r->print(&Apache::loncommon::start_data_table_row()
+ ." | ");
if (($env{'form.readfile'}) || ($env{'form.bookmarks'})) {
$r->print(&checkbox($ctr-1));
} else {
$r->print(&movers($clen,$ctr));
}
}
- $r->print(&hidden($ctr-1,$thash{$key},$key));
+ $r->print(&hidden($ctr-1,$resource->{'title'},$resource->{'url'},
+ $resource->{'id'}));
if (($clen > 1) || ($env{'form.readfile'}) || ($env{'form.bookmarks'})) {
$r->print(" | ");
unless (($env{'form.readfile'}) || ($env{'form.bookmarks'})) {
- $r->print("".
+ $r->print(" | ".
&select_box($clen,$ctr).
" | ");
}
- $r->print("");
+ $r->print(" | ");
$r->print("");
- $r->print(" | ");
- $r->print("$thash{$key}$nhash{$key} | \n");
- $r->print("$key |
\n");
+ $r->print("