--- loncom/interface/portfolio.pm 2006/07/19 21:59:10 1.121.2.8 +++ loncom/interface/portfolio.pm 2006/07/19 14:57:18 1.137 @@ -1,7 +1,7 @@ # The LearningOnline Network # portfolio browser # -# $Id: portfolio.pm,v 1.121.2.8 2006/07/19 21:59:10 albertel Exp $ +# $Id: portfolio.pm,v 1.137 2006/07/19 14:57:18 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -43,7 +43,7 @@ use LONCAPA; sub group_args { my $output; if (defined($env{'form.group'})) { - $output .= '&group='.$env{'form.group'}; + $ouput .= '&group='.$env{'form.group'}; if (defined($env{'form.ref'})) { $output .= '&ref='.$env{'form.ref'}; } @@ -54,13 +54,12 @@ sub group_args { sub group_form_data { my $output; if (defined($env{'form.group'})) { - $output = ''; + $ouput = ''; if (exists($env{'form.ref'})) { $output .= ''; } } - return $output; } # receives a file name and path stub from username/userfiles/portfolio/ @@ -70,16 +69,15 @@ sub make_anchor { $continue_select) = @_; if ($continue_select ne 'true') {$continue_select = 'false'}; my $anchor = ''.$filename.''; return $anchor; } - my $dirptr=16384; sub display_common { my ($r,$url,$current_path,$is_empty,$dir_list,$can_upload)=@_; - my $namespace = &get_namespace(); - my $port_path = &get_port_path(); + my $namespace = &get_namespace($group); + my $port_path = &get_port_path($group); if ($can_upload) { my $groupitem = &group_form_data(); @@ -146,15 +144,37 @@ TABLE $r->print(""); } +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, $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('
'); + $r->print('
') $r->print(&group_form_data().'
'); $r->print('