--- loncom/interface/portfolio.pm 2004/11/22 22:59:32 1.57
+++ loncom/interface/portfolio.pm 2004/12/04 18:37:36 1.61
@@ -74,7 +74,7 @@ sub display_common {
}
$r->print('');
&Apache::lonhtmlcommon::store_recent('portfolio',$current_path,$current_path);
- $r->print('
");
@@ -112,13 +112,6 @@ sub display_directory {
#$strip holds directory/file name
#$dom
my ($filename,$dom,undef,$testdir,undef,undef,undef,undef,$size,undef,$mtime,undef,undef,undef,$obs,undef)=split(/\&/,$line,16);
- if ($Apache::lonhomework::results{"resource.$ENV{'user.domain'}.$ENV{'user.name'}.$filename"}eq'true'){
- &Apache::lonnet::logthis("found submitted file");
- &Apache::lonnet::logthis("resource.$ENV{'user.domain'}.$ENV{'user.name'}.$filename");
- } else {
- &Apache::lonnet::logthis("$filename not found submitted file");
- &Apache::lonnet::logthis("resource.$ENV{'user.domain'}.$ENV{'user.name'}.$filename");
- }
if (($filename ne '.') && ($filename ne '..')) {
if ($dirptr&$testdir) {
$r->print(' | ');
@@ -159,6 +152,10 @@ sub display_file_select {
my ($r,$current_path,$is_empty,$dir_list)=@_;
my $iconpath= $r->dir_config('lonIconsURL') . "/";
my $display_out;
+ my $checked_files = &Apache::lonnet::files_in_path($ENV{'user.name'}, $ENV{'form.currentpath'});
+ foreach my $key (keys %$checked_files) {
+ &Apache::lonnet::logthis("a key is $key $$checked_files{$key} is the value");
+ }
if ($is_empty && ($current_path ne '/')) {
$display_out = '