Diff for /loncom/interface/portfolio.pm between versions 1.121.2.1 and 1.121.2.2

version 1.121.2.1, 2006/06/27 15:38:08 version 1.121.2.2, 2006/06/28 19:53:15
Line 219  sub display_directory { Line 219  sub display_directory {
                 }                  }
                my $fullpath = $current_path.$filename;                 my $fullpath = $current_path.$filename;
                 $fullpath = &prepend_group($fullpath,$group);                  $fullpath = &prepend_group($fullpath,$group);
                 if ($select_mode eq 'true'){                  if ($select_mode eq 'true') {
                     $line='<td><input type="checkbox" name="checkfile" value="'.$filename.'"';                      $line='<td><input type="checkbox" name="checkfile" value="'.$filename.'"';
     if ($$checked_files{$filename} eq 'selected') {      if ($$checked_files{$filename} eq 'selected') {
                         $line.=" checked ";                          $line.=" checked ";
Line 246  sub display_directory { Line 246  sub display_directory {
                         }                          }
                         $line .= '</td>';                          $line .= '</td>';
                     }                      }
     $r->print('<tr class="'.$css_class.'">');  
     $r->print($line);  
                 }                  }
                 my $curr_access;   $r->print('<tr class="'.$css_class.'">');
                 my $pub_access = 0;   $r->print($line);
                 my $guest_access = 0;   my $curr_access;
                 my $cond_access = 0;   if ($select_mode ne 'true') {
                 foreach my $key (sort(keys(%{$access_controls{$fullpath}}))) {      my $pub_access = 0;
                     my ($num,$scope,$end,$start) = &unpack_acc_key($key);      my $guest_access = 0;
                     if (($now > $start) && (!$end || $end > $now)) {      my $cond_access = 0;
                         if ($scope eq 'public')  {      foreach my $key (sort(keys(%{$access_controls{$fullpath}}))) {
                             $pub_access = 1;   my ($num,$scope,$end,$start) = &unpack_acc_key($key);
                         } elsif ($scope eq 'guest') {   if (($now > $start) && (!$end || $end > $now)) {
                             $guest_access = 1;      if ($scope eq 'public')  {
                         } else {   $pub_access = 1;
                             $cond_access = 1;      } elsif ($scope eq 'guest') {
                         }   $guest_access = 1;
                     }      } else {
                 }   $cond_access = 1;
                 if (!$pub_access && !$guest_access && !$cond_access) {      }
                     $curr_access = &mt('Private');   }
                 } else {      }
                     my @allaccesses;       if (!$pub_access && !$guest_access && !$cond_access) {
                     if ($pub_access) {   $curr_access = &mt('Private');
                         push(@allaccesses,&mt('Public'));      } else {
                     }   my @allaccesses; 
                     if ($guest_access) {   if ($pub_access) {
                         push(@allaccesses,&mt('Passphrase-protected'));      push(@allaccesses,&mt('Public'));
                     }   }
                     if ($cond_access) {   if ($guest_access) {
                         push(@allaccesses,&mt('Conditional'));      push(@allaccesses,&mt('Passphrase-protected'));
                     }   }
                     $curr_access = join('+ ',@allaccesses);   if ($cond_access) {
                 }      push(@allaccesses,&mt('Conditional'));
                 $r->print('<td><img alt="" src="'.&Apache::loncommon::icon($filename).'" /></td>');   }
                 $r->print('<td><a href="'.$href_location.$filename.'">'.   $curr_access = join('+ ',@allaccesses);
     $filename.'</a></td>');       }
                 $r->print('<td>'.$size.'</td>');   }
                 $r->print('<td>'.&Apache::lonlocal::locallocaltime($mtime).'</td>');   $r->print('<td><img alt="" src="'.&Apache::loncommon::icon($filename).'" /></td>');
                 $r->print('<td><span style="white-space: nowrap">'.   $r->print('<td><a href="'.$href_location.$filename.'">'.
                           &mt($curr_access).'&nbsp;&nbsp;&nbsp;');    $filename.'</a></td>'); 
                 $r->print('<a href="'.$url.'?access='.$filename.   $r->print('<td>'.$size.'</td>');
                               '&amp;currentpath='.$current_path.$groupecho.   $r->print('<td>'.&Apache::lonlocal::locallocaltime($mtime).'</td>');
                               '">'.$access_admin_text.'</a>');   if ($select_mode ne 'true') {
                 $r->print('</span></td></tr>');      $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>');
    }
    $r->print('</td></tr>'.$/);
             }              }
         }          }
     }      }

Removed from v.1.121.2.1  
changed lines
  Added in v.1.121.2.2


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