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

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Wed, 27 Aug 2008 19:50:49 -0000


raeburn		Wed Aug 27 15:50:49 2008 EDT

  Modified files:              
    /loncom/interface	lonsearchcat.pm 
  Log:
  Display "Revise search" button to right of data table containing Search progress information so isn't out of sight below the frame boundary. 
  
  
Index: loncom/interface/lonsearchcat.pm
diff -u loncom/interface/lonsearchcat.pm:1.298 loncom/interface/lonsearchcat.pm:1.299
--- loncom/interface/lonsearchcat.pm:1.298	Fri Aug  8 04:51:39 2008
+++ loncom/interface/lonsearchcat.pm	Wed Aug 27 15:50:46 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Search Catalog
 #
-# $Id: lonsearchcat.pm,v 1.298 2008/08/08 08:51:39 bisitz Exp $
+# $Id: lonsearchcat.pm,v 1.299 2008/08/27 19:50:46 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2489,8 +2489,6 @@
     $r->print(<<END);
 $start_page
 $breadcrumbs
-<form name="statusform" action="" method="post">
-<input type="hidden" name="acts" value="" />
 END
     # Remove leading and trailing <br />
     $pretty_string =~ s:^\s*<br />::i;
@@ -2556,22 +2554,22 @@
     my $server; 
     my $status;
     my $revise = &revise_button();
-    $r->print(&Apache::loncommon::start_data_table());
+    $r->print('<form name="statusform" action="" method="post">'."\n".
+              '<input type="hidden" name="acts" value="" />'."\n".
+              '<table border="0"><tr><td>'."\n".
+              &Apache::loncommon::start_data_table());
     $r->print(&Apache::loncommon::start_data_table_header_row()
              .'<th>'.&mt('Status').'</th>'
              .'<th>'.&mt('Total Matches').'</th>'
              .'<th>'.&mt('Time Remaining').'</th>'
-#             .'<th>&nbsp;</th>'
-             .&Apache::loncommon::end_data_table_header_row());
-    $r->print(&Apache::loncommon::start_data_table_row()
+             .&Apache::loncommon::end_data_table_header_row()
+             .&Apache::loncommon::start_data_table_row()
              .'<td><input type="text" name="status"  value="" size="50" readonly="readonly" /></td>'
              .'<td><input type="text" name="count"   value="" size="10" readonly="readonly" /></td>'
              .'<td><input type="text" name="seconds" value="" size="8" readonly="readonly" /></td>'
-#             ."<td>$revise</td>"
-             .&Apache::loncommon::end_data_table_row());
-    $r->print(&Apache::loncommon::start_data_table());
-    $r->print($revise
-             .'</form>');
+             .&Apache::loncommon::end_data_table_row()
+             .&Apache::loncommon::end_data_table()
+             .'</td><td>&nbsp;</td><td>'.$revise.'</td></tr></table></form>');
     $r->rflush();
     &reset_timing();
     &update_seconds($r);