version 1.120, 2006/06/23 20:15:24
|
version 1.124, 2006/06/28 19:52:43
|
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).' '); |
$filename.'</a></td>'); |
$r->print('<a href="'.$url.'?access='.$filename. |
$r->print('<td>'.$size.'</td>'); |
'&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).' '); |
|
$r->print('<a href="'.$url.'?access='.$filename. |
|
'&currentpath='.$current_path.$groupecho. |
|
'">'.$access_admin_text.'</a></span>'); |
|
} |
|
$r->print('</td></tr>'.$/); |
} |
} |
} |
} |
} |
} |
Line 656 sub build_access_summary {
|
Line 660 sub build_access_summary {
|
} else { |
} else { |
$r->print(join(',',@{$content->{'roles'}{$id}{$item}})); |
$r->print(join(',',@{$content->{'roles'}{$id}{$item}})); |
} |
} |
$r->print('</td>'); |
$r->print('</tr>'); |
} |
} |
|
$r->print("</table>"); |
} |
} |
$r->print(&Apache::loncommon::end_data_table_row()); |
$r->print("</tr></table>"); |
$r->print(&Apache::loncommon::end_data_table()); |
|
} elsif ($scope eq 'domains') { |
} elsif ($scope eq 'domains') { |
$r->print(&mt('Domains: ').join(',',@{$content->{'dom'}})); |
$r->print(&mt('Domains: ').join(',',@{$content->{'dom'}})); |
} elsif ($scope eq 'users') { |
} elsif ($scope eq 'users') { |