[LON-CAPA-cvs] cvs: loncom /interface portfolio.pm

banghart lon-capa-cvs@mail.lon-capa.org
Mon, 23 Aug 2004 21:16:43 -0000


banghart		Mon Aug 23 17:16:43 2004 EDT

  Modified files:              
    /loncom/interface	portfolio.pm 
  Log:
  
  	Recent dropdown now populated through lonhtmlcommon routines
  
  
  
Index: loncom/interface/portfolio.pm
diff -u loncom/interface/portfolio.pm:1.20 loncom/interface/portfolio.pm:1.21
--- loncom/interface/portfolio.pm:1.20	Thu Jul 29 13:04:21 2004
+++ loncom/interface/portfolio.pm	Mon Aug 23 17:16:43 2004
@@ -260,7 +260,7 @@
     $r->print($displayOut);
 	$r->print('</td></tr></table>');	  
     my @tree = split (/\//,$currentPath);
-    $r->print('<font size="+2">'.makeAnchor('portfolio','/').'/');
+    $r->print('<font size="+2">'.makeAnchor('/','/'));
     if (@tree > 1){
         my $newCurrentPath = '';
         for (my $i = 1; $i< @tree; $i++){
@@ -269,6 +269,10 @@
         }
     }
     $r->print('</font>');
+    &Apache::lonhtmlcommon::store_recent('portfolio',$currentPath,$currentPath);
+	$r->print('<br /><form method=post action="/adm/portfolio">'.&Apache::lonhtmlcommon::select_recent('portfolio','currentpath',
+'this.form.submit();'));
+    $r->print("</form>");
     $r->print('<table border="0" cellspacing="2" cellpadding="2">'.
             '<tr><th>&nbsp;</th><th>Actions</th><th>Name</th><th>Title</th><th>Status</th><th>Last Modified</th></tr>');
     foreach my $line (@dirList) {