Eliminated non-static method calls and other bulk fixes to fix php5 warnings
[fa-stable.git] / purchasing / allocations / supplier_allocation_main.php
index 8c11ea9e563d11ea4b7488a399c5b38e140ae79f..69d342fa9996f31e619e78252432bf3b566cc636 100644 (file)
@@ -9,8 +9,8 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-$path_to_root="../..";
-$page_security = 3;
+$page_security = 'SA_SUPPLIERALLOC';
+$path_to_root = "../..";
 include($path_to_root . "/includes/db_pager.inc");
 include_once($path_to_root . "/includes/session.inc");
 
@@ -26,7 +26,6 @@ if ($use_popup_windows)
 page(_("Supplier Allocations"), false, false, "", $js);
 
 //--------------------------------------------------------------------------------
-set_editor('supplier', 'supplier_id' , 'ShowSettled');
 
 start_form();
 
@@ -48,7 +47,7 @@ start_form();
        end_form();
        set_global_supplier($_POST['supplier_id']);
 
-       if (isset($_POST['supplier_id']) && ($_POST['supplier_id'] == reserved_words::get_all())) 
+       if (isset($_POST['supplier_id']) && ($_POST['supplier_id'] == ALL_TEXT)) 
        {
                unset($_POST['supplier_id']);
        }
@@ -63,7 +62,9 @@ start_form();
 //--------------------------------------------------------------------------------
 function systype_name($dummy, $type)
 {
-       return systypes::name($type);
+       global $systypes_array;
+
+       return $systypes_array[$type;
 }
 
 function trans_view($trans)