");
$r->print("\n");
if (($env{'form.readfile'}) || ($env{'form.bookmarks'})) {
@@ -384,11 +380,12 @@ END
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(" ");
if (($env{'form.readfile'}) || ($env{'form.bookmarks'})) {
@@ -397,7 +394,8 @@ END
$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'})) {
@@ -408,8 +406,8 @@ END
$r->print("");
$r->print(" ");
$r->print(" | ");
- $r->print("$thash{$key}$nhash{$key} | \n");
- $r->print("$key | \n");
+ $r->print($resource->{'title'}.$resource->{'notes'}."\n");
+ $r->print($resource->{'url'}." | \n");
}
}
if (($clen > 1) || ($env{'form.readfile'}) || ($env{'form.bookmarks'})) {
@@ -429,12 +427,13 @@ END
# --------------------------------------- Hidden values (returns scalar string)
sub hidden {
- my ($sel,$title,$filelink) = @_;
+ my ($sel,$title,$filelink,$id) = @_;
my $string = '';
$filelink=~s|^/ext/|http://|;
$string .= '';
+ $string .= '';
return $string;
}
|