Diff for /loncom/interface/portfolio.pm between versions 1.133 and 1.135

version 1.133, 2006/07/08 01:51:07 version 1.135, 2006/07/18 02:20:19
Line 128  TABLE Line 128  TABLE
     'this.form.submit();'));      'this.form.submit();'));
     $r->print("</form>");      $r->print("</form>");
 }  }
   sub display_directory_line {
       my ($r,$select_mode,$fullpath, $filename, $mtime, $size, $css_class, $line, $access_controls, $curr_access,
               $now, $version_flag, $href_location, $url, $current_path, $groupecho, $access_admin_text)=@_;
       # my ($filename,$dom,undef,$testdir,undef,undef,undef,undef,$size,undef,$mtime,undef,undef,undef,$obs,undef)=split(/\&/,$line,16); 
    $r->print('<tr class="'.$css_class.'">');
    $r->print($line);
    $r->print('<td><img alt="" src="'.&Apache::loncommon::icon($filename).'" /></td>');
    $r->print('<td>'.$$version_flag{$filename}.'<a href="'.$href_location.$filename.'">'.
     $filename.'</a></td>'); 
    $r->print('<td>'.$size.'</td>');
    $r->print('<td>'.&Apache::lonlocal::locallocaltime($mtime).'</td>');
    if ($select_mode ne 'true') {
       $r->print('<td><span style="white-space: nowrap">'.
         &mt($curr_access).'&nbsp;&nbsp;&nbsp;');
       $r->print('<a href="'.$url.'?access='.$filename.
         '&amp;currentpath='.$current_path.$groupecho.
         '">'.$access_admin_text.'</a></span></td>');
    }
    $r->print('</tr>'.$/);
   }
 sub display_directory {  sub display_directory {
     my ($r,$url,$current_path,$is_empty,$dir_list,$group,$can_upload,      my ($r,$url,$current_path,$is_empty,$dir_list,$group,$can_upload,
         $can_modify,$can_delete,$can_setacl)=@_;          $can_modify,$can_delete,$can_setacl)=@_;
Line 214  sub display_directory { Line 234  sub display_directory {
            $show_versions = 'true';             $show_versions = 'true';
        }         }
        if (exists($versioned{$filename})) {         if (exists($versioned{$filename})) {
            $version_flag{$filename} = '<a href="portfolio?showversions='.$filename.'"><img alt="'.&mt('closed folder').'" src="'.$iconpath.'folder_pointer_closed.gif" /></a>';             if ($show_versions) {
                       $version_flag{$filename} = '<a href="portfolio"><img alt="'.&mt('opened folder').'" src="'.$iconpath.'folder_pointer_opened.gif" /></a>';
              } else {
                       $version_flag{$filename} = '<a href="portfolio?showversions='.$filename.'"><img alt="'.&mt('closed folder').'" src="'.$iconpath.'folder_pointer_closed.gif" /></a>';
                   }
        } else {         } else {
            $version_flag{$filename} = '';             $version_flag{$filename} = '';
        }         }
Line 260  sub display_directory { Line 284  sub display_directory {
                         $line .= '</td>';                          $line .= '</td>';
                     }                      }
                 }                  }
  $r->print('<tr class="'.$css_class.'">');  
  $r->print($line);  
  my $curr_access;   my $curr_access;
  if ($select_mode ne 'true') {   if ($select_mode ne 'true') {
     my $pub_access = 0;      my $pub_access = 0;
Line 295  sub display_directory { Line 317  sub display_directory {
  $curr_access = join('+ ',@allaccesses);   $curr_access = join('+ ',@allaccesses);
     }      }
  }   }
  $r->print('<td><img alt="" src="'.&Apache::loncommon::icon($filename).'" /></td>');                  &display_directory_line($r,$select_mode,$fullpath, $filename, $mtime, $size, $css_class, $line, \%access_controls, $curr_access,
  $r->print('<td>'.$version_flag{$filename}.'<a href="'.$href_location.$filename.'">'.                          $now, \%version_flag, $href_location, $url, $current_path, $groupecho, $access_admin_text);
   $filename.'</a></td>');   # $r->print('<tr class="'.$css_class.'">');
  $r->print('<td>'.$size.'</td>');  # $r->print($line);
  $r->print('<td>'.&Apache::lonlocal::locallocaltime($mtime).'</td>');  # $r->print('<td><img alt="" src="'.&Apache::loncommon::icon($filename).'" /></td>');
  if ($select_mode ne 'true') {  # $r->print('<td>'.$version_flag{$filename}.'<a href="'.$href_location.$filename.'">'.
     $r->print('<td><span style="white-space: nowrap">'.  #  $filename.'</a></td>'); 
       &mt($curr_access).'&nbsp;&nbsp;&nbsp;');  # $r->print('<td>'.$size.'</td>');
     $r->print('<a href="'.$url.'?access='.$filename.  # $r->print('<td>'.&Apache::lonlocal::locallocaltime($mtime).'</td>');
       '&amp;currentpath='.$current_path.$groupecho.  # if ($select_mode ne 'true') {
       '">'.$access_admin_text.'</a></span></td>');  #    $r->print('<td><span style="white-space: nowrap">'.
   #      &mt($curr_access).'&nbsp;&nbsp;&nbsp;');
   #    $r->print('<a href="'.$url.'?access='.$filename.
   #      '&amp;currentpath='.$current_path.$groupecho.
   #      '">'.$access_admin_text.'</a></span></td>');
   # }
   # $r->print('</tr>'.$/);
    if ($show_versions) {
       &display_directory_line($r,$select_mode,$fullpath, $css_class, $line, \%access_controls, 
                           $now, \%version_flag, $href_location, $url, $current_path, $groupecho, $access_admin_text);
   
  }   }
  $r->print('</tr>'.$/);  
             }              }
         }          }
     }      }

Removed from v.1.133  
changed lines
  Added in v.1.135


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>