version 1.26, 2004/01/19 18:17:29
|
version 1.30, 2005/02/17 08:29:42
|
Line 39 use Apache::Constants qw(:common);
|
Line 39 use Apache::Constants qw(:common);
|
use GDBM_File; |
use GDBM_File; |
use Apache::loncommon; |
use Apache::loncommon; |
use Apache::lonlocal; |
use Apache::lonlocal; |
|
use Apache::lonnet; |
|
|
my %hash; # variable to tie to user specific database |
my %hash; # variable to tie to user specific database |
my $iconpath; # variable to be accessible to multiple subroutines |
my $iconpath; # variable to be accessible to multiple subroutines |
Line 104 ENDADV
|
Line 105 ENDADV
|
} |
} |
|
|
# output start of web page |
# output start of web page |
|
my $html=&Apache::lonxml::xmlbegin(); |
$r->print(<<END); |
$r->print(<<END); |
<html> |
$html |
<head> |
<head> |
<title>The LearningOnline Network With CAPA Group Sorter</title> |
<title>The LearningOnline Network With CAPA Group Sorter</title> |
<script language='javascript'> |
<script language='javascript'> |
Line 234 END
|
Line 235 END
|
my $key = $_; |
my $key = $_; |
$key =~ s/^store_//; |
$key =~ s/^store_//; |
$shash{$key} = $hash{'storectr_'.$key}; |
$shash{$key} = $hash{'storectr_'.$key}; |
$thash{$key} = $hash{'store_'.$key}; |
if (&Apache::lonnet::gettitle($key) eq '') { |
|
$thash{$key} = $hash{'store_'.$key}; |
|
} else { |
|
$thash{$key} = &Apache::lonnet::gettitle($key); |
|
} |
} |
} |
} |
} |
if ($ENV{'form.oldval'}) { |
if ($ENV{'form.oldval'}) { |
Line 314 END
|
Line 319 END
|
|
|
# --- Expand here if "GO BACK" button desired |
# --- Expand here if "GO BACK" button desired |
if ($ENV{'form.catalogmode'} eq 'groupimport') { |
if ($ENV{'form.catalogmode'} eq 'groupimport') { |
|
my $resurl = &Apache::loncommon::lastresurl(); |
$r->print(<<END); |
$r->print(<<END); |
<input type="button" name="alter" value="$lt{'gb'}" |
<input type="button" name="alter" value="$lt{'gb'}" |
onClick="window.location='/res/?catalogmode=groupimport'" /> |
onClick="window.location='$resurl?catalogmode=groupimport'" /> |
END |
END |
} |
} |
if ($ENV{'form.catalogmode'} eq 'groupsearch') { |
if ($ENV{'form.catalogmode'} eq 'groupsearch') { |