[LON-CAPA-cvs] cvs: rat / lonratedt.pm

www lon-capa-cvs@mail.lon-capa.org
Sat, 25 May 2002 18:50:46 -0000


www		Sat May 25 14:50:46 2002 EDT

  Modified files:              
    /rat	lonratedt.pm 
  Log:
  Can now add resources to the top of both the import and the target area.
  
  
Index: rat/lonratedt.pm
diff -u rat/lonratedt.pm:1.28 rat/lonratedt.pm:1.29
--- rat/lonratedt.pm:1.28	Thu May 23 06:19:30 2002
+++ rat/lonratedt.pm	Sat May 25 14:50:46 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Edit Handler for RAT Maps
 #
-# $Id: lonratedt.pm,v 1.28 2002/05/23 10:19:30 www Exp $
+# $Id: lonratedt.pm,v 1.29 2002/05/25 18:50:46 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -540,7 +540,9 @@
 # ------------------------------------------------------------ Assemble windows
    
    my $idx=-1;
-   my $importwindow=join("\n",map {
+   my $importwindow=
+       '<option value="-1"> ---- Import and Paste Area ---- </option>'.
+     join("\n",map {
        $idx++;
        if ($_) { 
           my ($name,$url)=split(/\=/,$_);
@@ -552,7 +554,9 @@
    } split(/\&/,$importdetail));
 
    $idx=0;
-   my $targetwindow=join("\n",map { 
+   my $targetwindow=       
+       '<option value="0"> ------- Target Edit Map ------- </option>'.
+     join("\n",map { 
        my ($name,$url)=split(/\:/,$resources[$_]);
        unless ($name) {  $name=(split(/\//,$url))[-1]; }
        unless ($name) { $name='EMPTY'; }
@@ -693,6 +697,7 @@
 <body bgcolor='#FFFFFF'>
 $buttons
 <font color=red>$errtext</font>
+<h1>$url</h1>
 <form name=simpleedit method=post>
 <input type=hidden name=forcesmp value=1>
 <table>