version 1.13, 2002/08/12 18:21:42
|
version 1.15, 2003/04/07 20:47:06
|
Line 45 use GDBM_File;
|
Line 45 use GDBM_File;
|
use Apache::lonratedt; |
use Apache::lonratedt; |
use Apache::lonratsrv; |
use Apache::lonratsrv; |
use Apache::lonpageflip; |
use Apache::lonpageflip; |
|
use Apache::loncommon; |
|
|
my %selhash; |
my %selhash; |
my $successtied; |
my $successtied; |
Line 61 sub attemptread {
|
Line 62 sub attemptread {
|
} |
} |
} |
} |
|
|
|
sub mapread { |
|
my $fn=shift; |
|
&Apache::lonnet::repcopy($fn); |
|
if (-e $fn) { |
|
return &Apache::lonratedt::mapread($fn,''); |
|
} else { |
|
return (); |
|
} |
|
} |
|
|
# ---------------------------------------------------------------- View Handler |
# ---------------------------------------------------------------- View Handler |
|
|
sub viewmap { |
sub viewmap { |
Line 89 function queue(val) {
|
Line 100 function queue(val) {
|
</script> |
</script> |
ENDSCRIPT |
ENDSCRIPT |
} |
} |
$r->print('<body bgcolor="#FFFFFF">'); |
$r->print(&Apache::loncommon::bodytag('Map Contents').'<h1>'.$url.'</h1>'); |
# ------------------ This is trying to select. Provide buttons and tie %selhash |
# ------------------ This is trying to select. Provide buttons and tie %selhash |
if ($ENV{'form.forceselect'}) { $r->print(<<ENDSELECT); |
if ($ENV{'form.forceselect'}) { $r->print(<<ENDSELECT); |
<form name=fileattr><input type=hidden name=acts value=''> |
<form name=fileattr><input type=hidden name=acts value=''> |
Line 151 ENDSELECT
|
Line 162 ENDSELECT
|
} |
} |
} |
} |
# ----------------------------- successtied is now '1' if in working selectmode |
# ----------------------------- successtied is now '1' if in working selectmode |
|
my ($errtext,$fatal)=&mapread(&Apache::lonnet::filelocation('',$url),''); |
|
if ($fatal==1) { |
|
$r->print('<p><b><font color="red">Map contents are not shown in order.</font></b></p><br />'); |
|
} |
my $idx=0; |
my $idx=0; |
foreach (&attemptread(&Apache::lonnet::filelocation('',$url))) { |
foreach (&attemptread(&Apache::lonnet::filelocation('',$url))) { |
if (defined($_)) { |
if (defined($_)) { |