--- loncom/interface/lonindexer.pm 2001/08/07 14:02:27 1.14 +++ loncom/interface/lonindexer.pm 2001/08/07 15:14:51 1.15 @@ -56,6 +56,10 @@ sub handler { my $tabdir = $r->dir_config('lonTabDir'); my $fileclr='#ffffe6'; + my $line; + my (@attrchk,@openpath); + my $uri=$r->uri; + # -------------------------------------- see if called from an interactive mode map { my ($name, $value) = split(/=/,$_); @@ -63,7 +67,10 @@ sub handler { $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg; if ($name eq 'catalogmode') { $ENV{'form.'.$name}=$value; - } + } + if ($name eq 'launch') { + $ENV{'form.'.$name}=$value; + } } (split(/&/,$ENV{'QUERY_STRING'})); $hidden=''; my $closebutton=''; @@ -71,38 +78,53 @@ sub handler { my $colspan=''; $extrafield=''; - if ($ENV{'form.catalogmode'} eq 'interactive') { - $extrafield=''. - ''; - $colspan=" colspan='2' "; - $hidden=<'. + ''; + $colspan=" colspan='2' "; + $hidden=< END - $closebutton=< END - } - elsif ($ENV{'form.catalogmode'} eq 'groupimport') { - $extrafield=''. - ''; - $colspan=" colspan='2' "; - $hidden=<'. + ''; + $colspan=" colspan='2' "; + $hidden=< END - $closebutton=< END - $groupimportbutton=< END - } + } - my $catalogmodefunctions=''; - if ($ENV{'form.catalogmode'} eq 'interactive' or - $ENV{'form.catalogmode'} eq 'groupimport') { - $catalogmodefunctions=<print(<print(< The LearningOnline Network With CAPA Directory Browser @@ -184,14 +206,13 @@ function openWindow(url, wdwName, w, h, ENDHEADER - my $line; - my (@attrchk,@openpath); - my $uri=$r->uri; - - $r->print('

The LearningOnline With CAPA Network Directory Browser

'."\n"); - - my $diropendb = "/home/httpd/perl/tmp/$domain\_$ENV{'user.name'}_indexer.db"; - + $r->print('

The LearningOnline With CAPA Network Directory Browser

'."\n"); + } + else { + $r->print('Unable to tie hash to db file'); + return OK; + } + untie %hash; if (tie(%hash,'GDBM_File',$diropendb,&GDBM_WRCREAT,0640)) { if ($ENV{'form.attrs'} ne "") { @@ -207,7 +228,7 @@ ENDHEADER $attrchk[$i] = "checked" if $hash{'display_attrs_'.$i} == 1; } } - $r->print(<print(<Display file attributes
@@ -228,17 +249,17 @@ $groupimportbutton END - my $titleclr="#ddffff"; - $r->print("
\n"); - $r->print("\n"); - $r->print("\n"); - $r->print("\n") if ($hash{'display_attrs_0'} == 1); - $r->print("\n") if ($hash{'display_attrs_1'} == 1); - $r->print("\n") if ($hash{'display_attrs_2'} == 1); - $r->print("\n") if ($hash{'display_attrs_3'} == 1); - $r->print("\n") if ($hash{'display_attrs_4'} == 1); - $r->print("\n") if ($hash{'display_attrs_5'} == 1); - $r->print(""); + my $titleclr="#ddffff"; + $r->print("
NameSize (bytes) Last accessedLast modifiedAuthor(s)KeywordsLanguage
\n"); + $r->print("\n"); + $r->print("\n"); + $r->print("\n") if ($hash{'display_attrs_0'} == 1); + $r->print("\n") if ($hash{'display_attrs_1'} == 1); + $r->print("\n") if ($hash{'display_attrs_2'} == 1); + $r->print("\n") if ($hash{'display_attrs_3'} == 1); + $r->print("\n") if ($hash{'display_attrs_4'} == 1); + $r->print("\n") if ($hash{'display_attrs_5'} == 1); + $r->print(""); map { if ($_ =~ /^diropen_status_/) {
NameSize (bytes) Last accessedLast modifiedAuthor(s)KeywordsLanguage