--- rat/lonratedt.pm 2002/05/13 19:23:52 1.13 +++ rat/lonratedt.pm 2002/05/13 19:38:32 1.14 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Edit Handler for RAT Maps # -# $Id: lonratedt.pm,v 1.13 2002/05/13 19:23:52 www Exp $ +# $Id: lonratedt.pm,v 1.14 2002/05/13 19:38:32 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -189,12 +189,13 @@ sub smpedt { } # ============================================================ Process commands - my $targetdetail=''; - my $importdetail=''; + my $targetdetail=$ENV{'form.targetdetail'}; + my $importdetail=$ENV{'form.curimpdetail'}; # ---------------------------------------------------- Importing from groupsort if ($ENV{'form.importdetail'}) { + $importdetail=''; my @curimport=split(/\&/,$ENV{'form.curimpdetail'}); my $lastsel; @@ -225,7 +226,24 @@ sub smpedt { $importdetail=~s/\&+/\&/g; $importdetail=~s/^\&//; -# -------------------------------------------------------- +# ------------------------------------------------------------------- Clear all + } elsif ($ENV{'form.clear'}) { + $importdetail=''; +# ------------------------------------------------------------ Discard selected + } elsif ($ENV{'form.discard'}) { + $importdetail=''; + my @curimport=split(/\&/,$ENV{'form.curimpdetail'}); + foreach (@importselect) { + $curimport[$_]=''; + } + for (my $i=0;$i<=$#curimport;$i++) { + my ($name,$url)=split(/\=/,$curimport[$i]); + if ($url) { + $importdetail.='&'.&Apache::lonnet::escape($name).'='. + &Apache::lonnet::escape($url); + } + } +# --------------------------- } # ------------------------------------------------------------ Assemble windows @@ -348,6 +366,10 @@ $buttons +
after selected +
+ +