--- rat/lonratedt.pm 2002/05/13 14:33:50 1.11 +++ rat/lonratedt.pm 2002/05/13 15:36:05 1.12 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Edit Handler for RAT Maps # -# $Id: lonratedt.pm,v 1.11 2002/05/13 14:33:50 www Exp $ +# $Id: lonratedt.pm,v 1.12 2002/05/13 15:36:05 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -166,10 +166,46 @@ sub buttons { sub smpedt { my ($r,$errtext)=@_; my $buttons=&buttons(2); + +# ---------------------------------------------------------- Process form input + + my @importselect=(); + my @targetselect=(); + undef @importselect; + undef @targetselect; + if (defined($ENV{'form.import'})) { + if (ref($ENV{'form.import'})) { + @importselect=$ENV->{'form.import'}; + } else { + @importselect=($ENV{'form.import'}); + } + } + if (defined($ENV{'form.target'})) { + if (ref($ENV{'form.target'})) { + @targetselect=$ENV->{'form.target'}; + } else { + @targetselect=($ENV{'form.target'}); + } + } +# --------------------------------------------------------- + + my $targetdetail=(); + + my @imporder=(); + my @impresources=(); + my $importdetail=''; +# ------------------------------------------------------------ Assemble windows + + my $importwindow=join("\n",map { + my ($name)=split(/\:/,$impresources[$_]); + unless ($name) { $name='UNKNOWN'; } + ''; + } @imporder); + my $targetwindow=join("\n",map { my ($name)=split(/\:/,$resources[$_]); unless ($name) { $name='UNKNOWN'; } - ''; + ''; } @order); # ----------------------------------------------------- Start simple RAT screen @@ -263,23 +299,36 @@ $buttons
- - - + + + + - -
Import Target
-Group Search -Group Import -   
+
Import Target
+ + + +   + +
+ +Cut selected

+


+Paste after selected
+
+ + +
+ ENDSMPHEAD - - $r->print(''); } # ----------------------------------------------------------------- No such dir