version 1.89, 2003/10/28 00:31:02
|
version 1.90, 2003/10/28 00:57:50
|
Line 402 sub entryline {
|
Line 402 sub entryline {
|
$renametitle=~s/\"\;/\\\"/g; |
$renametitle=~s/\"\;/\\\"/g; |
my $line='<tr>'; |
my $line='<tr>'; |
# Edit commands |
# Edit commands |
if ($allowed) { |
if ($allowed) { |
$line.=(<<END); |
my %lt=('up' => 'Move Up', |
|
'dw' => 'Move Down', |
|
'rm' => 'Remove', |
|
'rn' => 'Rename'); |
|
$line.=(<<END); |
<td><table border='0' cellspacing='2' cellpadding='0'> |
<td><table border='0' cellspacing='2' cellpadding='0'> |
<tr><td bgcolor="#DDDDDD"> |
<tr><td bgcolor="#DDDDDD"> |
<a href='/adm/coursedocs?folder=$folder&cmd=up_$index'> |
<a href='/adm/coursedocs?folder=$folder&cmd=up_$index'> |
<img src="${iconpath}move_up.gif" alt='UP' border='0' /></a></td></tr> |
<img src="${iconpath}move_up.gif" alt='$lt{'up'}' border='0' /></a></td></tr> |
<tr><td bgcolor="#DDDDDD"> |
<tr><td bgcolor="#DDDDDD"> |
<a href='/adm/coursedocs?folder=$folder&cmd=down_$index'> |
<a href='/adm/coursedocs?folder=$folder&cmd=down_$index'> |
<img src="${iconpath}move_down.gif" alt='DOWN' border='0' /></a></td></tr> |
<img src="${iconpath}move_down.gif" alt='$lt{'dw'}' border='0' /></a></td></tr> |
</table></td><td bgcolor="#DDDDDD"> |
</table></td><td bgcolor="#DDDDDD"> |
<a href='javascript:removeres("$folder","$index","$renametitle");'> |
<a href='javascript:removeres("$folder","$index","$renametitle");'> |
<font size="-2" color="#990000">Remove</font></a> |
<font size="-2" color="#990000">$lt{'rm'}</font></a> |
<a href='javascript:changename("$folder","$index","$renametitle");'> |
<a href='javascript:changename("$folder","$index","$renametitle");'> |
<font size="-2" color="#009900">Rename</font></a></td> |
<font size="-2" color="#009900">$lt{'rn'}</font></a></td> |
END |
END |
} |
} |
# Figure out what kind of a resource this is |
# Figure out what kind of a resource this is |
Line 585 sub checkversions {
|
Line 589 sub checkversions {
|
if ($ENV{'form.timerange'} eq 'all') { |
if ($ENV{'form.timerange'} eq 'all') { |
# show all documents |
# show all documents |
$header=&mt('All Documents in Course'); |
$header=&mt('All Documents in Course'); |
|
foreach (keys %hash) { |
|
if ($_=~/^ids\_(\/res\/.+)$/) { |
|
my $src=$1; |
|
$changes{$src}=1; |
|
} |
|
} |
} else { |
} else { |
# show documents which changed |
# show documents which changed |
%changes=&Apache::lonnet::dump |
%changes=&Apache::lonnet::dump |