Fixed record selection on pages using non-numeric selectors with simple_page_mode...
[fa-stable.git] / admin / view_print_transaction.php
index 70c5ca51620b9cd048d7fde52173c6c9b7368938..da479c6ba01006fb8a7139735602193f5107ac27 100644 (file)
@@ -36,7 +36,7 @@ function viewing_controls()
 
     ref_cells(_("to #:"), 'ToTransNo');
 
-    submit_cells('ProcessSearch', _("Search"));
+    submit_cells('ProcessSearch', _("Search"), '', '', true);
 
        end_row();
     end_table(1);
@@ -59,7 +59,7 @@ function check_valid_entries()
                echo _("The ending transaction number is expected to be numeric and greater than zero.");
                return false;
        }
-       if ($_POST['filterType'] == "")
+       if (!isset($_POST['filterType']) || $_POST['filterType'] == "")
                return false;
 
        return true;
@@ -121,6 +121,7 @@ function handle_search()
                        else
                                $th = array(_("#"), _("View"), _("GL"));
                }
+               div_start('transactions');
                start_table($table_style);
                table_header($th);
                $k = 0;
@@ -142,6 +143,7 @@ function handle_search()
                }
 
                end_table();
+               div_end();
        }
 }
 
@@ -151,6 +153,7 @@ if (isset($_POST['ProcessSearch']))
 {
        if (!check_valid_entries())
                unset($_POST['ProcessSearch']);
+       $Ajax->activate('transactions');
 }
 
 //----------------------------------------------------------------------------------------