version 1.142, 2006/08/02 03:05:10
|
version 1.146, 2006/08/04 22:22:32
|
Line 154 sub display_directory_line {
|
Line 154 sub display_directory_line {
|
$r->print('<tr class="'.$css_class.'">'); |
$r->print('<tr class="'.$css_class.'">'); |
$r->print($line); |
$r->print($line); |
$r->print('<td><img alt="" src="'.&Apache::loncommon::icon($filename).'" /></td>'); |
$r->print('<td><img alt="" src="'.&Apache::loncommon::icon($filename).'" /></td>'); |
$r->print('<td>'.$$version_flag{$filename}.'<a href="'.$href_location.$filename.'">'. |
$r->print('<td>'.$$version_flag{$filename}.'</td><td><a href="'.$href_location.$filename.'">'. |
$filename.'</a></td>'); |
$filename.'</a></td>'); |
$r->print('<td>'.$size.'</td>'); |
$r->print('<td>'.$size.'</td>'); |
$r->print('<td>'.&Apache::lonlocal::locallocaltime($mtime).'</td>'); |
$r->print('<td>'.&Apache::lonlocal::locallocaltime($mtime).'</td>'); |
Line 208 sub display_directory {
|
Line 208 sub display_directory {
|
if ($select_mode eq 'true') { |
if ($select_mode eq 'true') { |
$r->print('<form method="post" name="checkselect" action="'.$url.'">'); |
$r->print('<form method="post" name="checkselect" action="'.$url.'">'); |
$r->print('<table id="LC_browser">'. |
$r->print('<table id="LC_browser">'. |
'<tr><th>Select</th><th> </th><th>Name</th><th>Size</th><th>Last Modified</th></tr>'); |
'<tr><th>Select</th><th> </th><th> </th><th>Name</th><th>Size</th><th>Last Modified</th></tr>'); |
} else { |
} else { |
$r->print('<form method="post" action="'.$url.'">'); |
$r->print('<form method="post" action="'.$url.'">'); |
$r->print('<table id="LC_browser">'. |
$r->print('<table id="LC_browser">'. |
'<tr><th colspan="2">Actions</th><th> </th><th>Name</th><th>Size</th><th>Last Modified</th><th>Current Access Status</th></tr>'); |
'<tr><th colspan="2">Actions</th><th> </th><th> </th><th>Name</th><th>Size</th><th>Last Modified</th><th>Current Access Status</th></tr>'); |
} |
} |
$r->print("\n".&group_form_data()."\n"); |
$r->print("\n".&group_form_data()."\n"); |
|
|
Line 250 sub display_directory {
|
Line 250 sub display_directory {
|
} |
} |
if (exists($versioned{$filename})) { |
if (exists($versioned{$filename})) { |
if ($show_versions) { |
if ($show_versions) { |
$version_flag{$filename} = '<a href="portfolio"><img alt="'.&mt('opened folder').'" src="'.$iconpath.'folder_pointer_opened.gif" /></a>'; |
$version_flag{$filename} = '<a href="portfolio"><img class="LC_icon" alt="'.&mt('opened folder').'" src="'.$iconpath.'folder_pointer_opened.gif" /></a>'; |
} else { |
} else { |
$version_flag{$filename} = '<a href="portfolio?showversions='.$filename.'"><img alt="'.&mt('closed folder').'" src="'.$iconpath.'folder_pointer_closed.gif" /></a>'; |
$version_flag{$filename} = '<a href="portfolio?showversions='.$filename.'"><img class="LC_icon" alt="'.&mt('closed folder').'" src="'.$iconpath.'folder_pointer_closed.gif" /></a>'; |
} |
} |
} else { |
} else { |
$version_flag{$filename} = ''; |
$version_flag{$filename} = ' '; |
} |
} |
if ($dirptr&$testdir) { |
if ($dirptr&$testdir) { |
my $colspan='colspan="2"'; |
my $colspan='colspan="2"'; |
Line 264 sub display_directory {
|
Line 264 sub display_directory {
|
} |
} |
$r->print('<tr class="LC_browser_folder"><td '.$colspan.'><img alt="'.&mt('closed folder').'" src="'.$iconpath.'folder_closed.gif" /></td>'); |
$r->print('<tr class="LC_browser_folder"><td '.$colspan.'><img alt="'.&mt('closed folder').'" src="'.$iconpath.'folder_closed.gif" /></td>'); |
$r->print('<td>Go to ...</td>'); |
$r->print('<td>Go to ...</td>'); |
$r->print('<td>'.$version_flag{$filename}.&make_anchor($url,$filename.'/',$current_path.$filename.'/',$env{'form.mode'},$env{"form.fieldname"},$env{'form.continue'}).'/</td>'); |
$r->print('<td>'.$version_flag{$filename}.'</td><td>'.&make_anchor($url,$filename.'/',$current_path.$filename.'/',$env{'form.mode'},$env{"form.fieldname"},$env{'form.continue'}).'/</td>'); |
$r->print('</tr>'); |
$r->print('</tr>'); |
} else { |
} else { |
my $css_class = 'LC_browser_file'; |
my $css_class = 'LC_browser_file'; |
Line 291 sub display_directory {
|
Line 291 sub display_directory {
|
$line .= '<input type="checkbox" name="selectfile" value="'.$filename.'" />'; |
$line .= '<input type="checkbox" name="selectfile" value="'.$filename.'" />'; |
} |
} |
if ($can_modify) { |
if ($can_modify) { |
my $cat='<img alt="'.&mt('Catalog Information'). |
my $cat='<img class="LC_icon" alt="'.&mt('Catalog Information'). |
'" src="'.&Apache::loncommon::lonhttpdurl('/res/adm/pages/catalog.gif').'" />'; |
'" src="'.&Apache::loncommon::lonhttpdurl('/res/adm/pages/catalog.gif').'" />'; |
$line .= '<a href="'.$url.'?rename='.$filename.'&currentpath='.$current_path.&group_args().'">Rename</a>'; |
$line .= '<a href="'.$url.'?rename='.$filename.'&currentpath='.$current_path.&group_args().'">Rename</a>'; |
$line .= '</td><td>'.$version_flag{$filename}.'<a href="'.$href_edit_location.$filename.'.meta">'.$cat.'</a>'; |
$line .= '</td><td>'.'<a href="'.$href_edit_location.$filename.'.meta">'.$cat.'</a>'; |
} |
} |
$line .= '</td>'; |
$line .= '</td>'; |
} |
} |
Line 339 sub display_directory {
|
Line 339 sub display_directory {
|
foreach my $dir_line (@version_lines) { |
foreach my $dir_line (@version_lines) { |
my ($v_filename,$dom,$testdir,$size,$mtime,$obs) = @$dir_line; |
my ($v_filename,$dom,$testdir,$size,$mtime,$obs) = @$dir_line; |
my ($v_fname,$version,$v_extension) = &Apache::grades::file_name_version_ext($v_filename); |
my ($v_fname,$version,$v_extension) = &Apache::grades::file_name_version_ext($v_filename); |
|
$line = '<td colspan="2"> </td>'; |
if (($v_fname eq $fname)&&($v_extension eq $extension)) { |
if (($v_fname eq $fname)&&($v_extension eq $extension)) { |
&display_directory_line($r,$select_mode,$fullpath, $v_filename, $mtime, $size, |
&display_directory_line($r,$select_mode,$fullpath, $v_filename, $mtime, $size, |
$css_class, $line, \%access_controls, $curr_access, $now, |
$css_class, $line, \%access_controls, $curr_access, $now, |