Preparing for Graphic Links instead of Text Links (user display option, default)
[fa-stable.git] / sales / inquiry / sales_orders_view.php
index 2d4e5b31972b7e5f0414d24e3be9ad4b17e3bcab..aba6a1cf7703bd51578c1d72e9c910a12dad8111 100644 (file)
@@ -3,10 +3,10 @@
 $page_security = 2;
 $path_to_root="../..";
 
-include($path_to_root . "/sales/includes/sales_ui.inc");
 include($path_to_root . "/includes/db_pager.inc");
-include_once($path_to_root . "/reporting/includes/reporting.inc");
 include($path_to_root . "/includes/session.inc");
+include($path_to_root . "/sales/includes/sales_ui.inc");
+include_once($path_to_root . "/reporting/includes/reporting.inc");
 
 $js = "";
 if ($use_popup_windows)
@@ -185,7 +185,6 @@ end_row();
 
 end_table(1);
 end_form();
-
 //---------------------------------------------------------------------------------------------
 //     Orders inquiry table
 //
@@ -289,17 +288,15 @@ if ($_POST['order_view_mode'] == 'OutstandingOnly') {
 $table =& new_db_pager('orders_tbl', $sql, $cols);
 $table->set_marker('check_overdue', _("Marked items are overdue."));
 
-
-if (get_post('SearchOrders')) 
-{
+if (get_post('SearchOrders')) {
        $table->set_sql($sql);
        $table->set_columns($cols);
-       $Ajax->activate('orders_tbl');
-} 
-       start_form();
-       display_db_pager($table);
+}
+start_form();
 
-       submit_center('Update', _("Update"), true, '', null);
-       end_form();
+display_db_pager($table);
+submit_center('Update', _("Update"), true, '', null);
+
+end_form();
 end_page();
 ?>
\ No newline at end of file