--- loncom/interface/portfolio.pm 2004/07/29 17:04:21 1.20 +++ loncom/interface/portfolio.pm 2004/08/24 04:55:49 1.22 @@ -258,9 +258,16 @@ sub handler { ''. ''; $r->print($displayOut); - $r->print(''); + $r->print(''); + my $displayOut = '
'; + $displayOut = $displayOut.''. + ''. + ''. + '
'; + $r->print($displayOut); + $r->print(''); my @tree = split (/\//,$currentPath); - $r->print(''.makeAnchor('portfolio','/').'/'); + $r->print(''.makeAnchor('/','/')); if (@tree > 1){ my $newCurrentPath = ''; for (my $i = 1; $i< @tree; $i++){ @@ -269,12 +276,18 @@ sub handler { } } $r->print(''); + &Apache::lonhtmlcommon::store_recent('portfolio',$currentPath,$currentPath); + $r->print('
'. + &Apache::lonhtmlcommon::select_recent('portfolio','currentpath', + 'this.form.submit();')); + $r->print("
"); $r->print(''. - ''); + ''); + my $href_location="/uploaded/$ENV{'user.domain'}/$ENV{'user.name'}/portfolio/$currentPath/"; foreach my $line (@dirList) { #$strip holds directory/file name #$dom - my ($fileName,$dom,undef,$testdir,undef,undef,undef,undef,undef,undef,undef,undef,undef,undef,$obs,undef)=split(/\&/,$line,16); + my ($fileName,$dom,undef,$testdir,undef,undef,undef,undef,$size,undef,$mtime,undef,undef,undef,$obs,undef)=split(/\&/,$line,16); if (($fileName ne '.') && ($fileName ne '..')){ if ($dirptr&$testdir){ $r->print(''); @@ -282,12 +295,20 @@ sub handler { $r->print(''); $r->print(''); }else{ - $r->print(''); - $r->print(''); - $r->print(''); - $r->print(''); - $r->print(''); - $r->print(''); + $r->print(''); + $r->print(''); + $r->print(''); + $r->print(''); + $r->print(''); + $r->print(''); $r->print(''); } } @@ -297,7 +318,7 @@ sub handler { # $r->print(displayDirectory($currentPath, $currentFile, @dirList)); # $r->print('>
 ActionsNameTitleStatusLast Modified
Actions NameSizeLast Modified
'.makeAnchor($fileName.'/',$currentPath.$fileName.'/').'
Edit'.$fileName.'Title HereStatus HereModified Here
+ + +'. + $fileName.''.$size.''.&Apache::lonlocal::locallocaltime($mtime).'
'); # $r->print(displayActions($currentPath, $currentFile, $isEmpty)); - $r->print('
'); + $r->print(''); $r->print(''); $r->print("\n\n"); $r->rflush();