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

www lon-capa-cvs@mail.lon-capa.org
Fri, 10 Jun 2005 21:45:46 -0000


www		Fri Jun 10 17:45:46 2005 EDT

  Modified files:              
    /rat	lonratedt.pm lonratmenu.pm 
  Log:
  Saving my work
  
  
Index: rat/lonratedt.pm
diff -u rat/lonratedt.pm:1.73 rat/lonratedt.pm:1.74
--- rat/lonratedt.pm:1.73	Fri Jun 10 12:56:08 2005
+++ rat/lonratedt.pm	Fri Jun 10 17:45:46 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Edit Handler for RAT Maps
 #
-# $Id: lonratedt.pm,v 1.73 2005/06/10 16:56:08 www Exp $
+# $Id: lonratedt.pm,v 1.74 2005/06/10 21:45:46 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1044,6 +1044,7 @@
                                       'cs' => 'Cut selected',
                                       'ps' => 'Copy selected',
                                       'pas' => 'Paste after selected',
+                                      'reco' => 'Recover Deleted'
 				      );
    $r->print(<<ENDSMPHEAD);
 <html>
@@ -1123,6 +1124,8 @@
 "javascript:impfortarget.value=1;groupsearch()" value="$lt{'se'}">
 <input type=button onClick=
 "javascript:impfortarget.value=1;groupimport();" value="$lt{'im'}">
+<input type=button onClick=
+"javascript:impfortarget.value=1;javascript:groupopen('$url',1);" value="$lt{'reco'}">
 $lt{'as'}
 <hr>
 <input type=submit name="moveup" value="$lt{'mu'}">
Index: rat/lonratmenu.pm
diff -u rat/lonratmenu.pm:1.2 rat/lonratmenu.pm:1.3
--- rat/lonratmenu.pm:1.2	Thu Apr  7 02:56:27 2005
+++ rat/lonratmenu.pm	Fri Jun 10 17:45:46 2005
@@ -44,11 +44,14 @@
                                         ($env{'environment.remote'} ne 'off')).
        &Apache::loncommon::help_open_menu('','Sequence_Advanced_Editor_Creation','Sequence_Advanced_Editor_Creation','',6,'RAT');
     $r->print($bodytag);
-    $r->print(&print_html());
+    my $readfile=$r->uri;
+    $readfile=~s/\/loadonly\/adveditmenu$//;
+    $r->print(&print_html($readfile));
     return OK;
 }
 
 sub print_html {
+    my $readfile=shift;
     my $pagetext = <<"END";
 <table border=0><tr><td bgcolor="#aaaaaa">
 <table border=0><tr>
@@ -60,6 +63,7 @@
 <td bgcolor="#ffffcc"><a href="javascript:revert();"><font size="-2">Revert</font></a></td>
 <td bgcolor="#ffffcc"><a href="javascript:undo();"><font size="-2">Undo</font></a></td>
 <td bgcolor="#ffffcc"><a href="javascript:redo();"><font size="-2">Redo</font></a></td>
+<td bgcolor="#ffffcc"><a href="javascript:groupopen('$readfile');"><font size="-2">Recover deleted</font></a></td>
 <td bgcolor="#ffffcc"><a href="javascript:groupsearch();"><font size="-2">Search</font></a></td>
 <td bgcolor="#ffffcc"><a href="javascript:groupimport();"><font size="-2">Import</font></a></td>
 <td bgcolor="#ffffcc"><a href="javascript:groupcopy();"><font size="-2">Copy</font></a></td>