version 1.70, 2003/07/21 18:35:25
|
version 1.71, 2003/07/22 19:00:51
|
Line 320 END
|
Line 320 END
|
<script type="text/javascript"> |
<script type="text/javascript"> |
$catalogmodefunctions |
$catalogmodefunctions |
function openWindow(url, wdwName, w, h, toolbar,scrollbar,locationbar) { |
function openWindow(url, wdwName, w, h, toolbar,scrollbar,locationbar) { |
var options = "width=" + w + ",height=" + h + ","; |
var xpos = (screen.width-w)/2; |
|
xpos = (xpos < 0) ? '0' : xpos; |
|
var ypos = (screen.height-h)/2-30; |
|
ypos = (ypos < 0) ? '0' : ypos; |
|
var options = "width=" + w + ",height=" + h + ",screenx="+xpos+",screeny="+ypos+","; |
options += "resizable=yes,scrollbars="+scrollbar+",status=no,"; |
options += "resizable=yes,scrollbars="+scrollbar+",status=no,"; |
options += "menubar=no,toolbar="+toolbar+",location="+locationbar+",directories=no"; |
options += "menubar=no,toolbar="+toolbar+",location="+locationbar+",directories=no"; |
var newWin = window.open(url, wdwName, options); |
var newWin = window.open(url, wdwName, options); |
Line 391 $r->print(&Apache::loncommon::bodytag('B
|
Line 395 $r->print(&Apache::loncommon::bodytag('B
|
} |
} |
} |
} |
# ------------------------------- output state of file attributes to be showing |
# ------------------------------- output state of file attributes to be showing |
|
# All versions has to the last item |
|
# since it does not take an extra col |
$r->print(<<END); |
$r->print(<<END); |
<form method="post" name="fileattr" action="$uri" |
<form method="post" name="fileattr" action="$uri" |
enctype="application/x-www-form-urlencoded"> |
enctype="application/x-www-form-urlencoded"> |
Line 410 $r->print(&Apache::loncommon::bodytag('B
|
Line 416 $r->print(&Apache::loncommon::bodytag('B
|
</tr></table> |
</tr></table> |
<input type="hidden" name="dirPointer" value="on" /> |
<input type="hidden" name="dirPointer" value="on" /> |
<input type="hidden" name="acts" value="" /> |
<input type="hidden" name="acts" value="" /> |
<input type="submit" name="attrs" value="Review" /> |
<input type="submit" name="attrs" value="Update Display" /> |
<input type="submit" name="attrs" value="Refresh" /> |
|
$closebutton |
$closebutton |
$groupimportbutton |
$groupimportbutton |
</form> |
</form> |
Line 578 sub get_list {
|
Line 583 sub get_list {
|
my @list; |
my @list; |
(my $luri = $uri) =~ s/\//_/g; |
(my $luri = $uri) =~ s/\//_/g; |
|
|
if ($ENV{'form.attrs'} eq 'Refresh') { |
if ($ENV{'form.attrs'} eq 'Update Display') { |
foreach (keys %hash) { |
foreach (keys %hash) { |
delete $hash{$_} if ($_ =~ /^dirlist_files_/); |
delete $hash{$_} if ($_ =~ /^dirlist_files_/); |
} |
} |
Line 828 sub display_line {
|
Line 833 sub display_line {
|
" TARGET=_self>$listname</a> "); |
" TARGET=_self>$listname</a> "); |
|
|
$r->print (" (<a href=\"javascript:openWindow('".$filelink. |
$r->print (" (<a href=\"javascript:openWindow('".$filelink. |
".meta', 'metadatafile', '400', '450', 'no', 'yes','no')\"; ". |
".meta', 'metadatafile', '500', '550', 'no', 'yes','no')\"; ". |
"TARGET=_self>metadata</a>) ") if ($metafile == 1); |
"TARGET=_self>metadata</a>) ") if ($metafile == 1); |
|
|
$r->print("</td>\n"); |
$r->print("</td>\n"); |
Line 886 sub display_line {
|
Line 891 sub display_line {
|
} |
} |
if ($hash{'display_attrs_8'} == 1) { |
if ($hash{'display_attrs_8'} == 1) { |
my (%stat) = &Apache::lonmeta::dynamicmeta($filelink) if ($metafile == 1); |
my (%stat) = &Apache::lonmeta::dynamicmeta($filelink) if ($metafile == 1); |
my $stat = ($stat{'course'} eq '' ? '' : $stat{'course'}). |
my $stat = (exists($stat{'course'}) ? $stat{'course'} : ''). |
(($stat{'course'} ne '' || $stat{'count'} ne '') ? '/' : ''). |
((exists($stat{'course'}) || exists($stat{'count'})) ? '/' : ''). |
($stat{'count'} eq '' ? '' : $stat{'count'}); |
(exists($stat{'count'}) ? $stat{'count'} : ''); |
$r->print('<td align=center> '.($stat eq '' ? ' ' : $stat). |
$r->print('<td align=center> '.($stat eq '' ? ' ' : $stat). |
' </td>'."\n"); |
' </td>'."\n"); |
} |
} |