Updated security areas for all menu options.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 10 Oct 2009 16:33:34 +0000 (16:33 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 10 Oct 2009 16:33:34 +0000 (16:33 +0000)
applications/customers.php
applications/dimensions.php
applications/generalledger.php
applications/inventory.php
applications/manufacturing.php
applications/setup.php
applications/suppliers.php

index 20e3e212940bc132ee81d9f8ebcd8efaea02dc14..08bfddf7cac3b5db1e70e0e7cc6587169bdbd729 100644 (file)
@@ -9,60 +9,85 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-       class customers_app extends application 
+class customers_app extends application 
+{
+       function customers_app() 
        {
-               function customers_app() 
-               {
-                       global $installed_extensions;
-                       $this->application("orders",_("&Sales"));
-               
-                       $this->add_module(_("Transactions"));
-                       $this->add_lapp_function(0, _("Sales &Quotation Entry"),"sales/sales_order_entry.php?NewQuotation=Yes");
-                       $this->add_lapp_function(0, _("Sales &Order Entry"),"sales/sales_order_entry.php?NewOrder=Yes");
-                       $this->add_lapp_function(0, _("Direct &Delivery"),"sales/sales_order_entry.php?NewDelivery=0");                 
-                       $this->add_lapp_function(0, _("Direct &Invoice"),"sales/sales_order_entry.php?NewInvoice=0");
-                       $this->add_lapp_function(0, "","");
-                       $this->add_lapp_function(0, _("&Delivery Against Sales Orders"),"sales/inquiry/sales_orders_view.php?OutstandingOnly=1");
-                       $this->add_lapp_function(0, _("&Invoice Against Sales Delivery"),"sales/inquiry/sales_deliveries_view.php?OutstandingOnly=1");
+               global $installed_extensions;
+               $this->application("orders",_("&Sales"));
+       
+               $this->add_module(_("Transactions"));
+               $this->add_lapp_function(0, _("Sales &Quotation Entry"),
+                       "sales/sales_order_entry.php?NewQuotation=Yes", 'SA_SALESORDER');
+               $this->add_lapp_function(0, _("Sales &Order Entry"),
+                       "sales/sales_order_entry.php?NewOrder=Yes", 'SA_SALESORDER');
+               $this->add_lapp_function(0, _("Direct &Delivery"),
+                       "sales/sales_order_entry.php?NewDelivery=0", 'SA_SALESDELIVERY');
+               $this->add_lapp_function(0, _("Direct &Invoice"),
+                       "sales/sales_order_entry.php?NewInvoice=0", 'SA_SALESINVOICE');
+               $this->add_lapp_function(0, "","");
+               $this->add_lapp_function(0, _("&Delivery Against Sales Orders"),
+                       "sales/inquiry/sales_orders_view.php?OutstandingOnly=1", 'SA_SALESDELIVERY');
+               $this->add_lapp_function(0, _("&Invoice Against Sales Delivery"),
+                       "sales/inquiry/sales_deliveries_view.php?OutstandingOnly=1", 'SA_SALESINVOICE');
+
+               $this->add_rapp_function(0, _("&Template Delivery"),
+                       "sales/inquiry/sales_orders_view.php?DeliveryTemplates=Yes", 'SA_SALESINVOICE');
+               $this->add_rapp_function(0, _("&Template Invoice"),
+                       "sales/inquiry/sales_orders_view.php?InvoiceTemplates=Yes", 'SA_SALESDELIVERY');
+               $this->add_rapp_function(0, _("&Create and Print Recurrent Invoices"),
+                       "sales/create_recurrent_invoices.php?", 'SA_SALESINVOICE');
+               $this->add_rapp_function(0, "","");
+               $this->add_rapp_function(0, _("Customer &Payments"),
+                       "sales/customer_payments.php?", 'SA_SALESPAYMNT');
+               $this->add_rapp_function(0, _("Customer &Credit Notes"),
+                       "sales/credit_note_entry.php?NewCredit=Yes", 'SA_SALESCREDIT');
+               $this->add_rapp_function(0, _("&Allocate Customer Payments or Credit Notes"),
+                       "sales/allocations/customer_allocation_main.php?", 'SA_SALESALLOC');
 
-                       $this->add_rapp_function(0, _("&Template Delivery"),"sales/inquiry/sales_orders_view.php?DeliveryTemplates=Yes");
-                       $this->add_rapp_function(0, _("&Template Invoice"),"sales/inquiry/sales_orders_view.php?InvoiceTemplates=Yes");
-                       $this->add_rapp_function(0, _("&Create and Print Recurrent Invoices"),"sales/create_recurrent_invoices.php?");
-                       $this->add_rapp_function(0, "","");
-                       $this->add_rapp_function(0, _("Customer &Payments"),"sales/customer_payments.php?");
-                       $this->add_rapp_function(0, _("Customer &Credit Notes"),"sales/credit_note_entry.php?NewCredit=Yes");
-                       $this->add_rapp_function(0, _("&Allocate Customer Payments or Credit Notes"),"sales/allocations/customer_allocation_main.php?");
+               $this->add_module(_("Inquiries and Reports"));
+               $this->add_lapp_function(1, _("Sales Quotation I&nquiry"),
+                       "sales/inquiry/sales_orders_view.php?type=32", 'SA_SALESTRANSVIEW');
+               $this->add_lapp_function(1, _("Sales Order &Inquiry"),
+                       "sales/inquiry/sales_orders_view.php?type=30", 'SA_SALESTRANSVIEW');
+               $this->add_lapp_function(1, _("Customer Transaction &Inquiry"),
+                       "sales/inquiry/customer_inquiry.php?", 'SA_SALESTRANSVIEW');
+               $this->add_lapp_function(1, "","");
+               $this->add_lapp_function(1, _("Customer Allocation &Inquiry"),
+                       "sales/inquiry/customer_allocation_inquiry.php?", 'SA_SALESALLOC');
 
-                       $this->add_module(_("Inquiries and Reports"));
-                       $this->add_lapp_function(1, _("Sales Quotation I&nquiry"),"sales/inquiry/sales_orders_view.php?type=32");
-                       $this->add_lapp_function(1, _("Sales Order &Inquiry"),"sales/inquiry/sales_orders_view.php?type=30");
-                       $this->add_lapp_function(1, _("Customer Transaction &Inquiry"),"sales/inquiry/customer_inquiry.php?");
-                       $this->add_lapp_function(1, "","");
-                       $this->add_lapp_function(1, _("Customer Allocation &Inquiry"),"sales/inquiry/customer_allocation_inquiry.php?");
-                       
-                       $this->add_rapp_function(1, _("Customer and Sales &Reports"),"reporting/reports_main.php?Class=0");
-                       
-                       $this->add_module(_("Maintenance"));
-                       $this->add_lapp_function(2, _("Add and Manage &Customers"),"sales/manage/customers.php?");
-                       $this->add_lapp_function(2, _("Customer &Branches"),"sales/manage/customer_branches.php?");
-                       $this->add_lapp_function(2, _("Sales &Groups"),"sales/manage/sales_groups.php?");
-                       $this->add_lapp_function(2, _("Recurrent &Invoices"),"sales/manage/recurrent_invoices.php?");
-                       $this->add_rapp_function(2, _("Sales T&ypes"),"sales/manage/sales_types.php?");
-                       $this->add_rapp_function(2, _("Sales &Persons"),"sales/manage/sales_people.php?");
-                       $this->add_rapp_function(2, _("Sales &Areas"),"sales/manage/sales_areas.php?");
-                       $this->add_rapp_function(2, _("Credit &Status Setup"),"sales/manage/credit_status.php?");
-                       if (count($installed_extensions) > 0)
+               $this->add_rapp_function(1, _("Customer and Sales &Reports"),
+                       "reporting/reports_main.php?Class=0", 'SA_SALESTRANSVIEW');
+
+               $this->add_module(_("Maintenance"));
+               $this->add_lapp_function(2, _("Add and Manage &Customers"),
+                       "sales/manage/customers.php?", 'SA_CUSTOMER');
+               $this->add_lapp_function(2, _("Customer &Branches"),
+                       "sales/manage/customer_branches.php?", 'SA_CUSTOMER');
+               $this->add_lapp_function(2, _("Sales &Groups"),
+                       "sales/manage/sales_groups.php?", 'SA_SALESGROUP');
+               $this->add_lapp_function(2, _("Recurrent &Invoices"),
+                       "sales/manage/recurrent_invoices.php?", 'SA_SRECURRENT');
+               $this->add_rapp_function(2, _("Sales T&ypes"),
+                       "sales/manage/sales_types.php?", 'SA_SALESTYPES');
+               $this->add_rapp_function(2, _("Sales &Persons"),
+                       "sales/manage/sales_people.php?", 'SA_SALESMAN');
+               $this->add_rapp_function(2, _("Sales &Areas"),
+                       "sales/manage/sales_areas.php?", 'SA_SALESAREA');
+               $this->add_rapp_function(2, _("Credit &Status Setup"),
+                       "sales/manage/credit_status.php?", 'SA_CRSTATUS');
+               if (count($installed_extensions) > 0)
+               {
+                       foreach ($installed_extensions as $mod)
                        {
-                               foreach ($installed_extensions as $mod)
-                               {
-                                       if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "orders")
-                                               $this->add_rapp_function(2, $mod["title"], 
-                                                       "modules/".$mod["path"]."/".$mod["filename"]."?",
-                                                       isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
-                               }
-                       }       
+                               if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "orders")
+                                       $this->add_rapp_function(2, $mod["title"], 
+                                               "modules/".$mod["path"]."/".$mod["filename"]."?",
+                                               isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
+                       }
                }
        }
+}
        
 
 ?>
\ No newline at end of file
index 66f628db33558facabd943eb98a5442eb0d196f0..3a1cca71b1650cccda2ba36fba0ffbf9d9e03dc1 100644 (file)
@@ -9,42 +9,46 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-       class dimensions_app extends application
+class dimensions_app extends application
+{
+       function dimensions_app()
        {
-               function dimensions_app()
-               {
-                       global $installed_extensions;
-                       $dim = get_company_pref('use_dimension');
-                       $this->application("proj",_("&Dimensions"), $dim);
+               global $installed_extensions;
+               $dim = get_company_pref('use_dimension');
+               $this->application("proj",_("&Dimensions"), $dim);
 
-                       if ($dim > 0)
-                       {
-                               $this->add_module(_("Transactions"));
-                               $this->add_lapp_function(0, _("Dimension &Entry"),"dimensions/dimension_entry.php?");
-                               $this->add_lapp_function(0, _("&Outstanding Dimensions"),"dimensions/inquiry/search_dimensions.php?outstanding_only=1");
+               if ($dim > 0)
+               {
+                       $this->add_module(_("Transactions"));
+                       $this->add_lapp_function(0, _("Dimension &Entry"),
+                               "dimensions/dimension_entry.php?", 'SA_DIMENSION');
+                       $this->add_lapp_function(0, _("&Outstanding Dimensions"),
+                               "dimensions/inquiry/search_dimensions.php?outstanding_only=1", 'SA_DIMTRANSVIEW');
 
-                               $this->add_module(_("Inquiries and Reports"));
-                               $this->add_lapp_function(1, _("Dimension &Inquiry"),"dimensions/inquiry/search_dimensions.php?");
+                       $this->add_module(_("Inquiries and Reports"));
+                       $this->add_lapp_function(1, _("Dimension &Inquiry"),
+                               "dimensions/inquiry/search_dimensions.php?", 'SA_DIMTRANSVIEW');
 
-                               $this->add_rapp_function(1, _("Dimension &Reports"),"reporting/reports_main.php?Class=4");
-                               if (count($installed_extensions) > 0)
+                       $this->add_rapp_function(1, _("Dimension &Reports"),
+                               "reporting/reports_main.php?Class=4", 'SA_DIMENSIONREP');
+                       if (count($installed_extensions) > 0)
+                       {
+                               $i = 0;
+                               foreach ($installed_extensions as $mod)
                                {
-                                       $i = 0;
-                                       foreach ($installed_extensions as $mod)
+                                       if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "proj")
                                        {
-                                               if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "proj")
-                                               {
-                                                       if ($i++ == 0)
-                                                               $this->add_module(_("Maintenance"));
-                                                       $this->add_rapp_function(2, $mod["title"], 
-                                                               "modules/".$mod["path"]."/".$mod["filename"]."?",
-                                                               isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
-                                               }
+                                               if ($i++ == 0)
+                                                       $this->add_module(_("Maintenance"));
+                                               $this->add_rapp_function(2, $mod["title"], 
+                                                       "modules/".$mod["path"]."/".$mod["filename"]."?",
+                                                       isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
                                        }
                                }
                        }
                }
        }
+}
 
 
 ?>
\ No newline at end of file
index 1b1690af81a29359fb4094119014b66a948f3b1c..062eef687d59c0e4b1788ecfda7b9b848d0aa03e 100644 (file)
@@ -9,52 +9,73 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-       class general_ledger_app extends application 
+class general_ledger_app extends application 
+{
+       function general_ledger_app() 
        {
-               function general_ledger_app() 
-               {
-                       global $installed_extensions;
-                       $this->application("GL",_("&Banking and General Ledger"));
+               global $installed_extensions;
+               $this->application("GL",_("&Banking and General Ledger"));
 
-                       $this->add_module(_("Transactions"));
-                       $this->add_lapp_function(0, _("&Payments"),"gl/gl_bank.php?NewPayment=Yes");
-                       $this->add_lapp_function(0, _("&Deposits"),"gl/gl_bank.php?NewDeposit=Yes");
-                       $this->add_lapp_function(0, _("Bank Account &Transfers"),"gl/bank_transfer.php?");
-                       $this->add_rapp_function(0, _("&Journal Entry"),"gl/gl_journal.php?NewJournal=Yes");
-                       $this->add_rapp_function(0, _("&Budget Entry"),"gl/gl_budget.php?");
-            $this->add_rapp_function(0, _("&Reconcile Bank Account"),"gl/bank_account_reconcile.php?");
-                       $this->add_module(_("Inquiries and Reports"));
-                       $this->add_lapp_function(1, _("&Journal Inquiry"),"gl/inquiry/journal_inquiry.php?");
-                       $this->add_lapp_function(1, _("GL Account &Inquiry"),"gl/inquiry/gl_account_inquiry.php?");
-                       $this->add_lapp_function(1, _("Bank Account &Inquiry"),"gl/inquiry/bank_inquiry.php?");
-                       $this->add_lapp_function(1, _("Ta&x Inquiry"),"gl/inquiry/tax_inquiry.php?");
+               $this->add_module(_("Transactions"));
+               $this->add_lapp_function(0, _("&Payments"),
+                       "gl/gl_bank.php?NewPayment=Yes", 'SA_PAYMENT');
+               $this->add_lapp_function(0, _("&Deposits"),
+                       "gl/gl_bank.php?NewDeposit=Yes", 'SA_DEPOSIT');
+               $this->add_lapp_function(0, _("Bank Account &Transfers"),
+                       "gl/bank_transfer.php?", 'SA_BANKTRANSFER');
+               $this->add_rapp_function(0, _("&Journal Entry"),
+                       "gl/gl_journal.php?NewJournal=Yes", 'SA_JOURNALENTRY');
+               $this->add_rapp_function(0, _("&Budget Entry"),
+                       "gl/gl_budget.php?", 'SA_BUDGETENTRY');
+               $this->add_rapp_function(0, _("&Reconcile Bank Account"),
+                       "gl/bank_account_reconcile.php?", 'SA_RECONCILE');
+                       
+               $this->add_module(_("Inquiries and Reports"));
+               $this->add_lapp_function(1, _("&Journal Inquiry"),
+                       "gl/inquiry/journal_inquiry.php?", 'SA_GLANALYTIC');
+               $this->add_lapp_function(1, _("GL Account &Inquiry"),
+                       "gl/inquiry/gl_account_inquiry.php?", 'SA_GLTRANSVIEW');
+               $this->add_lapp_function(1, _("Bank Account &Inquiry"),
+                       "gl/inquiry/bank_inquiry.php?", 'SA_BANKTRANSVIEW');
+               $this->add_lapp_function(1, _("Ta&x Inquiry"),
+                       "gl/inquiry/tax_inquiry.php?", 'SA_TAXREP');
 
-                       $this->add_rapp_function(1, _("Trial &Balance"),"gl/inquiry/gl_trial_balance.php?");
-                       $this->add_rapp_function(1, _("Banking &Reports"),"reporting/reports_main.php?Class=5");
-                       $this->add_rapp_function(1, _("General Ledger &Reports"),"reporting/reports_main.php?Class=6");
+               $this->add_rapp_function(1, _("Trial &Balance"),
+                       "gl/inquiry/gl_trial_balance.php?", 'SA_GLANALYTIC');
+               $this->add_rapp_function(1, _("Banking &Reports"),
+                       "reporting/reports_main.php?Class=5", 'SA_BANKREP');
+               $this->add_rapp_function(1, _("General Ledger &Reports"),
+                       "reporting/reports_main.php?Class=6", 'SA_GLREP');
 
-                       $this->add_module(_("Maintenance"));
-                       $this->add_lapp_function(2, _("Bank &Accounts"),"gl/manage/bank_accounts.php?");
-                       $this->add_lapp_function(2, _("&Quick Entries"),"gl/manage/gl_quick_entries.php?");
-                       $this->add_lapp_function(2, "","");
-                       $this->add_lapp_function(2, _("&Currencies"),"gl/manage/currencies.php?");
-                       $this->add_lapp_function(2, _("&Exchange Rates"),"gl/manage/exchange_rates.php?");
+               $this->add_module(_("Maintenance"));
+               $this->add_lapp_function(2, _("Bank &Accounts"),
+                       "gl/manage/bank_accounts.php?", 'SA_BANKACCOUNT');
+               $this->add_lapp_function(2, _("&Quick Entries"),
+                       "gl/manage/gl_quick_entries.php?", 'SA_QUICKENTRY');
+               $this->add_lapp_function(2, "","");
+               $this->add_lapp_function(2, _("&Currencies"),
+                       "gl/manage/currencies.php?", 'SA_CURRENCY');
+               $this->add_lapp_function(2, _("&Exchange Rates"),
+                       "gl/manage/exchange_rates.php?", 'SA_EXCHANGERATE');
 
-                       $this->add_rapp_function(2, _("&GL Accounts"),"gl/manage/gl_accounts.php?");
-                       $this->add_rapp_function(2, _("GL Account &Groups"),"gl/manage/gl_account_types.php?");
-                       $this->add_rapp_function(2, _("GL Account &Classes"),"gl/manage/gl_account_classes.php?");
-                       if (count($installed_extensions) > 0)
+               $this->add_rapp_function(2, _("&GL Accounts"),
+                       "gl/manage/gl_accounts.php?", 'SA_GLACCOUNT');
+               $this->add_rapp_function(2, _("GL Account &Groups"),
+                       "gl/manage/gl_account_types.php?", 'SA_GLACCOUNTGROUP');
+               $this->add_rapp_function(2, _("GL Account &Classes"),
+                       "gl/manage/gl_account_classes.php?", 'SA_GLACCOUNTCLASS');
+               if (count($installed_extensions) > 0)
+               {
+                       foreach ($installed_extensions as $mod)
                        {
-                               foreach ($installed_extensions as $mod)
-                               {
-                                       if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "GL")
-                                               $this->add_rapp_function(2, $mod["title"], 
-                                                       "modules/".$mod["path"]."/".$mod["filename"]."?",
-                                                       isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
-                               }
-                       }       
+                               if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "GL")
+                                       $this->add_rapp_function(2, $mod["title"], 
+                                               "modules/".$mod["path"]."/".$mod["filename"]."?",
+                                               isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
+                       }
                }
        }
+}
 
 
 ?>
\ No newline at end of file
index 7a892dd554eb75283a2eb95d814bfa18dc1eda61..308c93b0d7922b17d4079ffc6ee3620021ba86a2 100644 (file)
@@ -9,48 +9,64 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-       class inventory_app extends application 
+class inventory_app extends application 
+{
+       function inventory_app() 
        {
-               function inventory_app() 
-               {
-                       global $installed_extensions;
-                       $this->application("stock",_("&Items and Inventory"));
+               global $installed_extensions;
+               $this->application("stock",_("&Items and Inventory"));
 
-                       $this->add_module(_("Transactions"));
-                       $this->add_lapp_function(0, _("Inventory Location &Transfers"),"inventory/transfers.php?NewTransfer=1");
-                       $this->add_lapp_function(0, _("Inventory &Adjustments"),"inventory/adjustments.php?NewAdjustment=1");
+               $this->add_module(_("Transactions"));
+               $this->add_lapp_function(0, _("Inventory Location &Transfers"),
+                       "inventory/transfers.php?NewTransfer=1", 'SA_LOCATIONTRANSFER');
+               $this->add_lapp_function(0, _("Inventory &Adjustments"),
+                       "inventory/adjustments.php?NewAdjustment=1", 'SA_INVENTORYADJUSTMENT');
 
-                       $this->add_module(_("Inquiries and Reports"));
-                       $this->add_lapp_function(1, _("Inventory Item &Movements"),"inventory/inquiry/stock_movements.php?");
-                       $this->add_lapp_function(1, _("Inventory Item &Status"),"inventory/inquiry/stock_status.php?");
-                       $this->add_rapp_function(1, _("Inventory &Reports"),"reporting/reports_main.php?Class=2");
+               $this->add_module(_("Inquiries and Reports"));
+               $this->add_lapp_function(1, _("Inventory Item &Movements"),
+                       "inventory/inquiry/stock_movements.php?", 'SA_ITEMSTRANSVIEW');
+               $this->add_lapp_function(1, _("Inventory Item &Status"),
+                       "inventory/inquiry/stock_status.php?", 'SA_ITEMSSTATVIEW');
+               $this->add_rapp_function(1, _("Inventory &Reports"),
+                       "reporting/reports_main.php?Class=2", 'SA_ITEMSTRANSVIEW');
 
-                       $this->add_module(_("Maintenance"));
-                       $this->add_lapp_function(2, _("&Items"),"inventory/manage/items.php?");
-                       $this->add_lapp_function(2, _("&Foreign Item Codes"),"inventory/manage/item_codes.php?");
-                       $this->add_lapp_function(2, _("Sales &Kits"),"inventory/manage/sales_kits.php?");
-                       $this->add_lapp_function(2, _("Item &Categories"),"inventory/manage/item_categories.php?");
-                       $this->add_lapp_function(2, _("Inventory &Locations"),"inventory/manage/locations.php?");
-                       $this->add_rapp_function(2, _("Inventory &Movement Types"),"inventory/manage/movement_types.php?");
-                       $this->add_rapp_function(2, _("&Units of Measure"),"inventory/manage/item_units.php?");
-                       $this->add_rapp_function(2, _("&Reorder Levels"),"inventory/reorder_level.php?");
+               $this->add_module(_("Maintenance"));
+               $this->add_lapp_function(2, _("&Items"),
+                       "inventory/manage/items.php?", 'SA_ITEM');
+               $this->add_lapp_function(2, _("&Foreign Item Codes"),
+                       "inventory/manage/item_codes.php?", 'SA_FORITEMCODE');
+               $this->add_lapp_function(2, _("Sales &Kits"),
+                       "inventory/manage/sales_kits.php?", 'SA_SALESKIT');
+               $this->add_lapp_function(2, _("Item &Categories"),
+                       "inventory/manage/item_categories.php?", 'SA_ITEMCATEGORY');
+               $this->add_lapp_function(2, _("Inventory &Locations"),
+                       "inventory/manage/locations.php?", 'SA_INVENTORYLOCATION');
+               $this->add_rapp_function(2, _("Inventory &Movement Types"),
+                       "inventory/manage/movement_types.php?", 'SA_INVENTORYMOVETYPE');
+               $this->add_rapp_function(2, _("&Units of Measure"),
+                       "inventory/manage/item_units.php?", 'SA_UOM');
+               $this->add_rapp_function(2, _("&Reorder Levels"),
+                       "inventory/reorder_level.php?", 'SA_REORDER');
 
-                       $this->add_module(_("Pricing and Costs"));
-                       $this->add_lapp_function(3, _("Sales &Pricing"),"inventory/prices.php?");
-                       $this->add_lapp_function(3, _("Purchasing &Pricing"),"inventory/purchasing_data.php?");
-                       $this->add_rapp_function(3, _("Standard &Costs"),"inventory/cost_update.php?");
-                       if (count($installed_extensions) > 0)
+               $this->add_module(_("Pricing and Costs"));
+               $this->add_lapp_function(3, _("Sales &Pricing"),
+                       "inventory/prices.php?", 'SA_SALESPRICE');
+               $this->add_lapp_function(3, _("Purchasing &Pricing"),
+                       "inventory/purchasing_data.php?", 'SA_PURCHASEPRICING');
+               $this->add_rapp_function(3, _("Standard &Costs"),
+                       "inventory/cost_update.php?", 'SA_STANDARDCOST');
+               if (count($installed_extensions) > 0)
+               {
+                       foreach ($installed_extensions as $mod)
                        {
-                               foreach ($installed_extensions as $mod)
-                               {
-                                       if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "stock")
-                                               $this->add_rapp_function(2, $mod["title"], 
-                                                       "modules/".$mod["path"]."/".$mod["filename"]."?",
-                                                       isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
-                               }
-                       }       
+                               if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "stock")
+                                       $this->add_rapp_function(2, $mod["title"], 
+                                               "modules/".$mod["path"]."/".$mod["filename"]."?",
+                                               isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
+                       }
                }
        }
+}
 
 
 ?>
\ No newline at end of file
index fc8e5a8e639184f6ea41b7a24d5f8005b91c76e9..60650c690282c51678a5b9cb6dcd9070d2b446c9 100644 (file)
@@ -9,38 +9,46 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-       class manufacturing_app extends application
+class manufacturing_app extends application
+{
+       function manufacturing_app()
        {
-               function manufacturing_app()
-               {
-                       global $installed_extensions;
-                       $this->application("manuf",_("&Manufacturing"));
+               global $installed_extensions;
+               $this->application("manuf",_("&Manufacturing"));
 
-                       $this->add_module(_("Transactions"));
-                       $this->add_lapp_function(0, _("Work &Order Entry"),"manufacturing/work_order_entry.php?");
-                       $this->add_lapp_function(0, _("&Outstanding Work Orders"),"manufacturing/search_work_orders.php?outstanding_only=1");
+               $this->add_module(_("Transactions"));
+               $this->add_lapp_function(0, _("Work &Order Entry"),
+                       "manufacturing/work_order_entry.php?", 'SA_WORKORDERENTRY');
+               $this->add_lapp_function(0, _("&Outstanding Work Orders"),
+                       "manufacturing/search_work_orders.php?outstanding_only=1", 'SA_MANUFTRANSVIEW');
 
-                       $this->add_module(_("Inquiries and Reports"));
-                       $this->add_lapp_function(1, _("Costed Bill Of Material Inquiry"),"manufacturing/inquiry/bom_cost_inquiry.php?");
-                       $this->add_lapp_function(1, _("Inventory Item Where Used &Inquiry"),"manufacturing/inquiry/where_used_inquiry.php?");
-                       $this->add_lapp_function(1, _("Work Order &Inquiry"),"manufacturing/search_work_orders.php?");
-                       $this->add_rapp_function(1, _("Manufacturing &Reports"),"reporting/reports_main.php?Class=3");
+               $this->add_module(_("Inquiries and Reports"));
+               $this->add_lapp_function(1, _("Costed Bill Of Material Inquiry"),
+                       "manufacturing/inquiry/bom_cost_inquiry.php?", 'SA_WORKORDERCOST');
+               $this->add_lapp_function(1, _("Inventory Item Where Used &Inquiry"),
+                       "manufacturing/inquiry/where_used_inquiry.php?", 'SA_WORKORDERANALYTIC');
+               $this->add_lapp_function(1, _("Work Order &Inquiry"),
+                       "manufacturing/search_work_orders.php?", 'SA_MANUFTRANSVIEW');
+               $this->add_rapp_function(1, _("Manufacturing &Reports"),
+                       "reporting/reports_main.php?Class=3", 'SA_MANUFTRANSVIEW');
 
-                       $this->add_module(_("Maintenance"));
-                       $this->add_lapp_function(2, _("&Bills Of Material"),"manufacturing/manage/bom_edit.php?");
-                       $this->add_lapp_function(2, _("&Work Centres"),"manufacturing/manage/work_centres.php?");
-                       if (count($installed_extensions) > 0)
+               $this->add_module(_("Maintenance"));
+               $this->add_lapp_function(2, _("&Bills Of Material"),
+                       "manufacturing/manage/bom_edit.php?", 'SA_BOM');
+               $this->add_lapp_function(2, _("&Work Centres"),
+                       "manufacturing/manage/work_centres.php?", 'SA_WORKCENTRES');
+               if (count($installed_extensions) > 0)
+               {
+                       foreach ($installed_extensions as $mod)
                        {
-                               foreach ($installed_extensions as $mod)
-                               {
-                                       if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "manuf")
-                                               $this->add_rapp_function(2, $mod["title"], 
-                                                       "modules/".$mod["path"]."/".$mod["filename"]."?",
-                                                       isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
-                               }
+                               if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "manuf")
+                                       $this->add_rapp_function(2, $mod["title"], 
+                                               "modules/".$mod["path"]."/".$mod["filename"]."?",
+                                               isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
                        }
                }
        }
+}
 
 
 ?>
\ No newline at end of file
index 892b67f2a4dbbcd1cdf2a2ea8d8bbb098ab78758..21adb18f32e1ca723ba25a7e5c45929e3f2d3696 100644 (file)
@@ -9,53 +9,76 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-       class setup_app extends application
+class setup_app extends application
+{
+       function setup_app()
        {
-               function setup_app()
-               {
-                       global $installed_extensions;
-                       $this->application("system",_("S&etup"));
+               global $installed_extensions;
+               $this->application("system",_("S&etup"));
 
-                       $this->add_module(_("Company Setup"));
-                       $this->add_lapp_function(0, _("&Company Setup"),"admin/company_preferences.php?");
-                       $this->add_lapp_function(0, _("&User Accounts Setup"),"admin/users.php?", 'SA_USERS');
-                       $this->add_lapp_function(0, _("&Access Setup"),"admin/security_roles.php?", 'SA_SECROLES');
-                       $this->add_lapp_function(0, _("&Display Setup"),"admin/display_prefs.php?");
-                       $this->add_lapp_function(0, _("&Forms Setup"),"admin/forms_setup.php?");
-                       $this->add_rapp_function(0, _("&Taxes"),"taxes/tax_types.php?");
-                       $this->add_rapp_function(0, _("Tax &Groups"),"taxes/tax_groups.php?");
-                       $this->add_rapp_function(0, _("Item Ta&x Types"),"taxes/item_tax_types.php?");
-                       $this->add_rapp_function(0, _("System and &General GL Setup"),"admin/gl_setup.php?");
-                       $this->add_rapp_function(0, _("&Fiscal Years"),"admin/fiscalyears.php?");
-                       $this->add_rapp_function(0, _("&Print Profiles"),"admin/print_profiles.php?");
+               $this->add_module(_("Company Setup"));
+               $this->add_lapp_function(0, _("&Company Setup"),
+                       "admin/company_preferences.php?", 'SA_SETUPCOMPANY');
+               $this->add_lapp_function(0, _("&User Accounts Setup"),
+                       "admin/users.php?", 'SA_USERS');
+               $this->add_lapp_function(0, _("&Access Setup"),
+                       "admin/security_roles.php?", 'SA_SECROLES');
+               $this->add_lapp_function(0, _("&Display Setup"),
+                       "admin/display_prefs.php?", 'SA_SETUPDISPLAY');
+               $this->add_lapp_function(0, _("&Forms Setup"),
+                       "admin/forms_setup.php?", 'SA_FORMSETUP');
+               $this->add_rapp_function(0, _("&Taxes"),
+                       "taxes/tax_types.php?", 'SA_TAXRATES');
+               $this->add_rapp_function(0, _("Tax &Groups"),
+                       "taxes/tax_groups.php?", 'SA_TAXGROUPS');
+               $this->add_rapp_function(0, _("Item Ta&x Types"),
+                       "taxes/item_tax_types.php?", 'SA_ITEMTAXTYPE');
+               $this->add_rapp_function(0, _("System and &General GL Setup"),
+                       "admin/gl_setup.php?", 'SA_GLSETUP');
+               $this->add_rapp_function(0, _("&Fiscal Years"),
+                       "admin/fiscalyears.php?", 'SA_FISCALYEARS');
+               $this->add_rapp_function(0, _("&Print Profiles"),
+                       "admin/print_profiles.php?", 'SA_PRINTPROFILE');
 
-                       $this->add_module(_("Miscellaneous"));
-                       $this->add_lapp_function(1, _("Pa&yment Terms"),"admin/payment_terms.php?");
-                       $this->add_lapp_function(1, _("Shi&pping Company"),"admin/shipping_companies.php?");
-                       $this->add_rapp_function(1, _("&Points of Sale"),"sales/manage/sales_points.php?");
-                       $this->add_rapp_function(1, _("&Printers"),"admin/printers.php?");
+               $this->add_module(_("Miscellaneous"));
+               $this->add_lapp_function(1, _("Pa&yment Terms"),
+                       "admin/payment_terms.php?", 'SA_PAYTERMS');
+               $this->add_lapp_function(1, _("Shi&pping Company"),
+                       "admin/shipping_companies.php?", 'SA_SHIPPING');
+               $this->add_rapp_function(1, _("&Points of Sale"),
+                       "sales/manage/sales_points.php?", 'SA_POSSETUP');
+               $this->add_rapp_function(1, _("&Printers"),
+                       "admin/printers.php?", 'SA_PRINTERS');
 
-                       $this->add_module(_("Maintenance"));
-                       $this->add_lapp_function(2, _("&Void a Transaction"),"admin/void_transaction.php?");
-                       $this->add_lapp_function(2, _("View or &Print Transactions"),"admin/view_print_transaction.php?");
-                       $this->add_lapp_function(2, _("&Attach Documents"),"admin/attachments.php?filterType=20");
-                       $this->add_rapp_function(2, _("&Backup and Restore"),"admin/backups.php?", 'SA_BACKUP');
-                       $this->add_rapp_function(2, _("Create/Update &Companies"),"admin/create_coy.php?", 'SA_CREATECOMPANY');
-                       $this->add_rapp_function(2, _("Install/Update &Languages"),"admin/inst_lang.php?", 'SA_CREATELANGUAGE');
-                       $this->add_rapp_function(2, _("Install/Activate &Extensions"),"admin/inst_module.php?", 'SA_CREATEMODULES');
-                       $this->add_rapp_function(2, _("Software &Upgrade"),"admin/inst_upgrade.php?", 'SA_SOFTWAREUPGRADE');
-                       if (count($installed_extensions) > 0)
+               $this->add_module(_("Maintenance"));
+               $this->add_lapp_function(2, _("&Void a Transaction"),
+                       "admin/void_transaction.php?", 'SA_VOIDTRANSACTION');
+               $this->add_lapp_function(2, _("View or &Print Transactions"),
+                       "admin/view_print_transaction.php?", 'SA_VIEWPRINTTRANSACTION');
+               $this->add_lapp_function(2, _("&Attach Documents"),
+                       "admin/attachments.php?filterType=20", 'SA_ATTACHDOCUMENT');
+               $this->add_rapp_function(2, _("&Backup and Restore"),
+                       "admin/backups.php?", 'SA_BACKUP');
+               $this->add_rapp_function(2, _("Create/Update &Companies"),
+                       "admin/create_coy.php?", 'SA_CREATECOMPANY');
+               $this->add_rapp_function(2, _("Install/Update &Languages"),
+                       "admin/inst_lang.php?", 'SA_CREATELANGUAGE');
+               $this->add_rapp_function(2, _("Install/Activate &Extensions"),
+                       "admin/inst_module.php?", 'SA_CREATEMODULES');
+               $this->add_rapp_function(2, _("Software &Upgrade"),
+                       "admin/inst_upgrade.php?", 'SA_SOFTWAREUPGRADE');
+               if (count($installed_extensions) > 0)
+               {
+                       foreach ($installed_extensions as $mod)
                        {
-                               foreach ($installed_extensions as $mod)
-                               {
-                                       if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "system")
-                                               $this->add_rapp_function(2, $mod["title"], 
-                                                       "modules/".$mod["path"]."/".$mod["filename"]."?",
-                                                       isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
-                               }
+                               if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "system")
+                                       $this->add_rapp_function(2, $mod["title"], 
+                                               "modules/".$mod["path"]."/".$mod["filename"]."?",
+                                               isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
                        }
                }
        }
+}
 
 
 ?>
\ No newline at end of file
index 68595a8f94aa5d48dad418eaead52c1ad1f04a96..1e5c73e04e2b1d8aa33a4fd21ace7a23464eff44 100644 (file)
@@ -9,44 +9,55 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-       class suppliers_app extends application 
+class suppliers_app extends application 
+{
+       function suppliers_app() 
        {
-               function suppliers_app() 
+               global $installed_extensions;
+               $this->application("AP",_("&Purchases"));
+
+               $this->add_module(_("Transactions"));
+               $this->add_lapp_function(0, _("Purchase &Order Entry"),
+                       "purchasing/po_entry_items.php?NewOrder=Yes", 'SA_PURCHASEORDER');
+               $this->add_lapp_function(0, _("&Outstanding Purchase Orders Maintenance"),
+                       "purchasing/inquiry/po_search.php?", 'SA_SUPPTRANSVIEW');
+               $this->add_rapp_function(0, _("&Payments to Suppliers"),
+                       "purchasing/supplier_payment.php?", 'SA_SUPPLIERPAYMNT');
+               $this->add_rapp_function(0, "","");
+               $this->add_rapp_function(0, _("Supplier &Invoices"),
+                       "purchasing/supplier_invoice.php?New=1", 'SA_SUPPLIERINVOICE');
+               $this->add_rapp_function(0, _("Supplier &Credit Notes"),
+                       "purchasing/supplier_credit.php?New=1", 'SA_SUPPLIERCREDIT');
+               $this->add_rapp_function(0, _("&Allocate Supplier Payments or Credit Notes"),
+                       "purchasing/allocations/supplier_allocation_main.php?", 'SA_SUPPLIERALLOC');
+
+               $this->add_module(_("Inquiries and Reports"));
+               $this->add_lapp_function(1, _("Purchase Orders &Inquiry"),
+                       "purchasing/inquiry/po_search_completed.php?", 'SA_SUPPTRANSVIEW');
+               $this->add_lapp_function(1, _("Supplier Transaction &Inquiry"),
+                       "purchasing/inquiry/supplier_inquiry.php?", 'SA_SUPPTRANSVIEW');
+               $this->add_lapp_function(1, "","");
+               $this->add_lapp_function(1, _("Supplier Allocation &Inquiry"),
+                       "purchasing/inquiry/supplier_allocation_inquiry.php?", 'SA_SUPPLIERALLOC');
+
+               $this->add_rapp_function(1, _("Supplier and Purchasing &Reports"),
+                       "reporting/reports_main.php?Class=1", 'SA_SUPPTRANSVIEW');
+
+               $this->add_module(_("Maintenance"));
+               $this->add_lapp_function(2, _("&Suppliers"),
+                       "purchasing/manage/suppliers.php?", 'SA_SUPPLIER');
+               if (count($installed_extensions) > 0)
                {
-                       global $installed_extensions;
-                       $this->application("AP",_("&Purchases"));
-                       
-                       $this->add_module(_("Transactions"));
-                       $this->add_lapp_function(0, _("Purchase &Order Entry"),"purchasing/po_entry_items.php?NewOrder=Yes");
-                       $this->add_lapp_function(0, _("&Outstanding Purchase Orders Maintenance"),"purchasing/inquiry/po_search.php?");
-                       $this->add_rapp_function(0, _("&Payments to Suppliers"),"purchasing/supplier_payment.php?");
-                       $this->add_rapp_function(0, "","");
-                       $this->add_rapp_function(0, _("Supplier &Invoices"),"purchasing/supplier_invoice.php?New=1");                   
-                       $this->add_rapp_function(0, _("Supplier &Credit Notes"),"purchasing/supplier_credit.php?New=1");
-                       $this->add_rapp_function(0, _("&Allocate Supplier Payments or Credit Notes"),"purchasing/allocations/supplier_allocation_main.php?");
-                       
-                       $this->add_module(_("Inquiries and Reports"));
-                       $this->add_lapp_function(1, _("Purchase Orders &Inquiry"),"purchasing/inquiry/po_search_completed.php?");
-                       $this->add_lapp_function(1, _("Supplier Transaction &Inquiry"),"purchasing/inquiry/supplier_inquiry.php?");
-                       $this->add_lapp_function(1, "","");
-                       $this->add_lapp_function(1, _("Supplier Allocation &Inquiry"),"purchasing/inquiry/supplier_allocation_inquiry.php?");
-                       
-                       $this->add_rapp_function(1, _("Supplier and Purchasing &Reports"),"reporting/reports_main.php?Class=1");
-                       
-                       $this->add_module(_("Maintenance"));
-                       $this->add_lapp_function(2, _("&Suppliers"),"purchasing/manage/suppliers.php?");
-                       if (count($installed_extensions) > 0)
+                       foreach ($installed_extensions as $mod)
                        {
-                               foreach ($installed_extensions as $mod)
-                               {
-                                       if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "AP")
-                                               $this->add_rapp_function(2, $mod["title"], 
-                                                       "modules/".$mod["path"]."/".$mod["filename"]."?",
-                                                       isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
-                               }
-                       }       
+                               if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "AP")
+                                       $this->add_rapp_function(2, $mod["title"], 
+                                               "modules/".$mod["path"]."/".$mod["filename"]."?",
+                                               isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
+                       }
                }
        }
-       
+}
+
 
 ?>
\ No newline at end of file