version 1.60, 2004/09/02 13:21:53
|
version 1.62, 2004/11/17 19:59:29
|
Line 977 sub smpedt {
|
Line 977 sub smpedt {
|
|
|
# ----------------------------------------------------- Start simple RAT screen |
# ----------------------------------------------------- Start simple RAT screen |
my $editscript=&editscript('simple'); |
my $editscript=&editscript('simple'); |
my $bodytag=&Apache::loncommon::bodytag(undef,undef,undef,1). |
my $bodytag=&Apache::loncommon::bodytag(undef,undef,undef, |
|
($ENV{'environment.remote'} ne 'off')). |
&Apache::loncommon::help_open_menu('','Sequence_Simple_Editor_Creation','Sequence_Simple_Editor_Creation','',6,'RAT'); |
&Apache::loncommon::help_open_menu('','Sequence_Simple_Editor_Creation','Sequence_Simple_Editor_Creation','',6,'RAT'); |
my %lt=&Apache::lonlocal::texthash( |
my %lt=&Apache::lonlocal::texthash( |
'sa' => 'Save', |
'sa' => 'Save', |
Line 1147 sub viewmap {
|
Line 1148 sub viewmap {
|
foreach (&attemptread(&Apache::lonnet::filelocation('',$url))) { |
foreach (&attemptread(&Apache::lonnet::filelocation('',$url))) { |
if (defined($_)) { |
if (defined($_)) { |
$idx++; |
$idx++; |
my ($title,$url)=split(/\:/,$_); |
my ($title,$url,$cond)=split(/\:/,$_); |
|
if ($cond eq 'cond') { next; } |
$title=~s/\&colon\;/\:/g; |
$title=~s/\&colon\;/\:/g; |
$url=~s/\&colon\;/\:/g; |
$url=~s/\&colon\;/\:/g; |
unless ($title) { $title=(split(/\//,$url))[-1] }; |
unless ($title) { $title=(split(/\//,$url))[-1] }; |
Line 1157 sub viewmap {
|
Line 1159 sub viewmap {
|
} |
} |
$r->print(&Apache::lonratsrv::qtescape($title)); |
$r->print(&Apache::lonratsrv::qtescape($title)); |
if ($url) { $r->print('</a>'); } |
if ($url) { $r->print('</a>'); } |
$r->print('<br>'); |
$r->print("<br />\n"); |
} |
} |
} |
} |
$r->print('</body></html>'); |
$r->print('</body></html>'); |