--- loncom/interface/lonindexer.pm 2001/05/31 14:29:03 1.7 +++ loncom/interface/lonindexer.pm 2001/06/15 19:05:26 1.10 @@ -9,6 +9,9 @@ # 05/21/2001 H. K. Ng # 05/23/2001 H. K. Ng # 05/31/2001 Scott Harrison +# 06/01/2001 Scott Harrison +# 06/02/2001 Scott Harrison +# 06/15/2001 Scott Harrison package Apache::lonindexer; @@ -23,7 +26,7 @@ my %dirs; my %language; my $hidden; my $extrafield; - +my $fnum; sub BEGIN { my $fh=Apache::File->new($Apache::lonnet::perlvar{'lonTabDir'}.'/language.tab'); map { @@ -37,8 +40,8 @@ sub handler { $r->content_type('text/html'); $r->send_http_header; return OK if $r->header_only; - - my $iconpath= $r->dir_config('lonIconsURL'); + $fnum=0; + my $iconpath= $r->dir_config('lonIconsURL') . "/"; my $domain = $r->dir_config('lonDefDomain'); my $role = $r->dir_config('lonRole'); my $loadlim = $r->dir_config('lonLoadLim'); @@ -47,7 +50,7 @@ sub handler { my $lonhost = $r->dir_config('lonHostID'); my $tabdir = $r->dir_config('lonTabDir'); - my $iconpath='/res/adm/pages/indexericons/'; +# my $iconpath='/res/adm/pages/indexericons/'; my $fileclr='#ffffe6'; # -------------------------------------- see if called from an interactive mode map { @@ -75,6 +78,9 @@ END END } elsif ($ENV{'form.catalogmode'} eq 'groupimport') { + $extrafield=''. + ''; $colspan=" colspan='2' "; $hidden=< @@ -83,7 +89,7 @@ END END $groupimportbutton=< + END } @@ -94,6 +100,49 @@ END function select_data(title,url) { changeTitle(title); changeURL(url); + self.close(); +} +function save_group() { + for (var num=0; numprint("
"); + $r->print("
"); $r->print(""); $r->print(""); $r->print("\n"); @@ -324,7 +375,8 @@ sub display_line{ my (@pathfn, $fndir, $fnptr); my $dirptr=16384; my $fileclr="#ffffe6"; - my $iconpath="/res/adm/pages/indexericons/"; + my $iconpath= $r->dir_config('lonIconsURL') . "/"; +# my $iconpath="/res/adm/pages/indexericons/"; my @filecom = split (/\&/,$line); my @pathcom = split (/\//,$filecom[0]); @@ -348,7 +400,7 @@ sub display_line{ &begin_form ($r,$filecom[0].'/'); my $anchor = $filecom[0].'/'; $anchor =~ s/\///g; - $r->print ("
\nprint ("\nprint (" name=\"$msg\" height=\"22\" type=\"image\" border=\"0\">\n"); $r->print("Domain - $listname $tabtag\n"); return OK; @@ -375,17 +427,32 @@ sub display_line{ my @file_ext = split (/\./,$listname); my $curfext = $file_ext[scalar(@file_ext)-1]; my $filelink = $startdir.$filecom[0]; - $r->print(""); + $r->print(""); my $metafile = grep /^$filecom[0]\.meta\&/, @list; my $title; if ($ENV{'form.catalogmode'} eq 'interactive') { $title=$listname; - $title = &Apache::lonnet::metadata($filelink,'title') if ($metafile == 1); + $title = &Apache::lonnet::metadata($filelink,'title') + if ($metafile == 1); $title=$listname unless $title; $r->print(""); $r->print("\n"); - $r->print(""); + $r->print(""); + } + elsif ($ENV{'form.catalogmode'} eq 'groupimport') { + $title=$listname; + $title = &Apache::lonnet::metadata($filelink,'title') + if ($metafile == 1); + $title=$listname unless $title; + $r->print("
\n"); + $r->print("\n"); + $r->print("\n"); + $r->print("
\n"); + $r->print(""); + $fnum++; } if ($indent < 11) {