Changed context help organization to enable use of central, multilanguage wiki.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 29 Oct 2009 22:05:40 +0000 (22:05 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 29 Oct 2009 22:05:40 +0000 (22:05 +0000)
134 files changed:
admin/attachments.php
admin/backups.php
admin/change_current_user_password.php
admin/company_preferences.php
admin/create_coy.php
admin/display_prefs.php
admin/fiscalyears.php
admin/forms_setup.php
admin/gl_setup.php
admin/inst_lang.php
admin/inst_module.php
admin/inst_upgrade.php
admin/payment_terms.php
admin/print_profiles.php
admin/printers.php
admin/security_roles.php
admin/shipping_companies.php
admin/tags.php
admin/users.php
admin/view_print_transaction.php
admin/void_transaction.php
applications/application.php
applications/customers.php
applications/dimensions.php
applications/generalledger.php
applications/inventory.php
applications/manufacturing.php
applications/setup.php
applications/suppliers.php
dimensions/dimension_entry.php
dimensions/inquiry/search_dimensions.php
dimensions/view/view_dimension.php
gl/bank_account_reconcile.php
gl/bank_transfer.php
gl/gl_bank.php
gl/gl_budget.php
gl/gl_journal.php
gl/inquiry/bank_inquiry.php
gl/inquiry/gl_account_inquiry.php
gl/inquiry/gl_trial_balance.php
gl/inquiry/journal_inquiry.php
gl/inquiry/tax_inquiry.php
gl/manage/bank_accounts.php
gl/manage/currencies.php
gl/manage/exchange_rates.php
gl/manage/gl_account_classes.php
gl/manage/gl_account_types.php
gl/manage/gl_accounts.php
gl/manage/gl_quick_entries.php
gl/view/bank_transfer_view.php
gl/view/gl_deposit_view.php
gl/view/gl_payment_view.php
gl/view/gl_trans_view.php
includes/page/header.inc
inventory/adjustments.php
inventory/cost_update.php
inventory/inquiry/stock_movements.php
inventory/inquiry/stock_status.php
inventory/manage/item_categories.php
inventory/manage/item_codes.php
inventory/manage/item_units.php
inventory/manage/items.php
inventory/manage/locations.php
inventory/manage/movement_types.php
inventory/manage/sales_kits.php
inventory/prices.php
inventory/purchasing_data.php
inventory/reorder_level.php
inventory/transfers.php
inventory/view/view_adjustment.php
inventory/view/view_transfer.php
manufacturing/inquiry/bom_cost_inquiry.php
manufacturing/inquiry/where_used_inquiry.php
manufacturing/manage/bom_edit.php
manufacturing/manage/work_centres.php
manufacturing/search_work_orders.php
manufacturing/view/wo_issue_view.php
manufacturing/view/wo_production_view.php
manufacturing/view/work_order_view.php
manufacturing/work_order_add_finished.php
manufacturing/work_order_costs.php
manufacturing/work_order_entry.php
manufacturing/work_order_issue.php
manufacturing/work_order_release.php
purchasing/allocations/supplier_allocate.php
purchasing/allocations/supplier_allocation_main.php
purchasing/inquiry/po_search.php
purchasing/inquiry/po_search_completed.php
purchasing/inquiry/supplier_allocation_inquiry.php
purchasing/inquiry/supplier_inquiry.php
purchasing/manage/suppliers.php
purchasing/po_entry_items.php
purchasing/po_receive_items.php
purchasing/supplier_credit.php
purchasing/supplier_invoice.php
purchasing/supplier_payment.php
purchasing/view/view_grn.php
purchasing/view/view_po.php
purchasing/view/view_supp_credit.php
purchasing/view/view_supp_invoice.php
purchasing/view/view_supp_payment.php
reporting/reports_main.php
sales/allocations/customer_allocate.php
sales/allocations/customer_allocation_main.php
sales/create_recurrent_invoices.php
sales/credit_note_entry.php
sales/customer_credit_invoice.php
sales/customer_delivery.php
sales/customer_invoice.php
sales/customer_payments.php
sales/inquiry/customer_allocation_inquiry.php
sales/inquiry/customer_inquiry.php
sales/inquiry/sales_deliveries_view.php
sales/manage/credit_status.php
sales/manage/customer_branches.php
sales/manage/customers.php
sales/manage/recurrent_invoices.php
sales/manage/sales_areas.php
sales/manage/sales_groups.php
sales/manage/sales_people.php
sales/manage/sales_points.php
sales/manage/sales_types.php
sales/sales_order_entry.php
sales/view/view_credit.php
sales/view/view_dispatch.php
sales/view/view_invoice.php
sales/view/view_receipt.php
sales/view/view_sales_order.php
taxes/item_tax_types.php
taxes/tax_groups.php
taxes/tax_types.php
themes/aqua/renderer.php
themes/cool/renderer.php
themes/default/renderer.php

index 3b39aa94bdeb22e7d28fa9394366a8950f3ac495..dafa3e022fb1ea592e93b3415269b6aa5ced7ffc 100644 (file)
@@ -68,7 +68,7 @@ if ($download_id != -1)
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(800, 500);
-page(_("Attach Documents"), false, false, "", $js);
+page(_($help_context = "Attach Documents"), false, false, "", $js);
 
 simple_page_mode(true);
 //----------------------------------------------------------------------------------------
index d501999deab6af47a55f16293febb763e43d99b0..3f45f522872a00c5ff51528cb05881cb376513b4 100644 (file)
@@ -34,7 +34,7 @@ if (get_post('download')) {
        exit;
 }
 
-page(_("Backup and Restore Database"), false, false, '', '');
+page(_($help_context = "Backup and Restore Database"), false, false, '', '');
 
 check_paths();
 
index 9b205e19f2299d27b79d14b410fff0443b8c03b0..bb7c9cb0736be78c9dbc2f3de0c19d289657de54 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_CHGPASSWD';
 $path_to_root="..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("Change password"));
+page(_($help_context = "Change password"));
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index 66a11281fa9cabb3711b2440bf36ec3961d2bd12..366fc852613328c472df27031ce3af399a249e8b 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_SETUPCOMPANY';
 $path_to_root = "..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Company Setup"));
+page(_($help_context = "Company Setup"));
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index d1050f0e321f0ebd846624e5e9c9f637071eebf6..e1b2882fb762ea95dd8111dec6bcae76d7f282e2 100644 (file)
@@ -18,7 +18,7 @@ include_once($path_to_root . "/admin/db/company_db.inc");
 include_once($path_to_root . "/admin/db/maintenance_db.inc");
 include_once($path_to_root . "/includes/ui.inc");
 
-page(_("Create/Update Company"));
+page(_($help_context = "Create/Update Company"));
 
 $comp_subdirs = array('images', 'pdf_files', 'backup','js_cache', 'reporting', 'attachments');
 
index b84c1da602b9de54b6e0f33ab5fa925ec9fbcd5e..1de931ebac1f3f0ff3d49389611b7ba045ce9be0 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_SETUPDISPLAY';
 $path_to_root="..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Display Setup"));
+page(_($help_context = "Display Setup"));
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index 7a4b2a36c4104141affa3f0f665e6963facf148c..a974e4a2d2a09bdc4fc5343879cf81b4ff537e74 100644 (file)
@@ -21,7 +21,7 @@ include_once($path_to_root . "/admin/db/maintenance_db.inc");
 $js = "";
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Fiscal Years"), false, false, "", $js);
+page(_($help_context = "Fiscal Years"), false, false, "", $js);
 
 simple_page_mode(true);
 //---------------------------------------------------------------------------------------------
index 9a6be87a3e81e90a0aa4cf0b455abac015a5790d..f282b92d9bde3e3db45d675c3e36d6af3463e5c1 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_FORMSETUP';
 $path_to_root = "..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Forms Setup"));
+page(_($help_context = "Forms Setup"));
 
 include($path_to_root . "/includes/ui.inc");
 
index 6aea5d3b9db5ab3aee3fd80c71806ca2b84c06d9..85f5b843d77aa881265911f78ed6369922b917a2 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_GLSETUP';
 $path_to_root="..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("System and General GL Setup"));
+page(_($help_context = "System and General GL Setup"));
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index 214a1dceb4d79823ab9c39b497f6f1eab04f0ff9..77fb8d091741dde20ff51731d46041662f697f20 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_CREATELANGUAGE';
 $path_to_root="..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("Install/Update Languages"));
+page(_($help_context = "Install/Update Languages"));
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/admin/db/company_db.inc");
index c85dd49ad11863599fca3c9aca5e2a615625116f..067e83f0281aba94f5d4d0975ac569ef216d5b30 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_CREATEMODULES';
 $path_to_root="..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("Install/Activate extensions"));
+page(_($help_context = "Install/Activate extensions"));
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/admin/db/company_db.inc");
index aa0d28388d35fad0459fb12a2277725ed2512c0d..1d646af2ed571835653f693a1418ce48597066ea 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_SOFTWAREUPGRADE';
 $path_to_root="..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("Software Upgrade"));
+page(_($help_context = "Software Upgrade"));
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/admin/db/company_db.inc");
index 5855b989dd78373afe723105712554bafc31f369..1e0f8c652bb8529c0e1605db8b1789692e378ac0 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_PAYTERMS';
 $path_to_root="..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Payment Terms"));
+page(_($help_context = "Payment Terms"));
 
 include($path_to_root . "/includes/ui.inc");
 
index 02e3701c55a9a2af8b13a55c1f5f53a16614ca96..1df47c67f512ca3a8c8c96e81a4d84c2e2c2dff6 100644 (file)
@@ -15,7 +15,7 @@ include($path_to_root . "/includes/session.inc");
 include($path_to_root . "/admin/db/printers_db.inc");
 include($path_to_root . "/includes/ui.inc");
 
-page(_("Printing Profiles"));
+page(_($help_context = "Printing Profiles"));
 
 $selected_id = get_post('profile_id','');
 
index 4c8ad144021e4b670a474469454ec81739dadcef..d46afeeb0f0ff9aaae9906eca2a20399d61690e7 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_PRINTERS';
 $path_to_root="..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Printer Locations"));
+page(_($help_context = "Printer Locations"));
 
 include($path_to_root . "/admin/db/printers_db.inc");
 include($path_to_root . "/includes/ui.inc");
index 8ca8ce2d6dd67068c54df810b2cfea27de858b63..bce6661f2e2cc88a414f68f4238f33c38ee44b10 100644 (file)
@@ -15,7 +15,7 @@ include_once($path_to_root . "/includes/session.inc");
 
 add_access_extensions();
 
-page(_("Access setup"));
+page(_($help_context = "Access setup"));
 
 include_once($path_to_root . "/includes/ui.inc");
 include_once($path_to_root . "/includes/access_levels.inc");
index cb08f69bc088c5fa63fcf454f9cc1ae55320f1cc..19f034b7408fc343c300539fb0a8d1b0052786d9 100644 (file)
@@ -12,7 +12,7 @@
 $page_security = 'SA_SHIPPING';
 $path_to_root="..";
 include($path_to_root . "/includes/session.inc");
-page(_("Shipping Company"));
+page(_($help_context = "Shipping Company"));
 include($path_to_root . "/includes/ui.inc");
 
 simple_page_mode(true);
index ff8cac51ab4975d514b005139e47cc2f8e20cc8b..761b0995296ca1f77e4ed072120cfd7211256e98 100644 (file)
@@ -42,11 +42,11 @@ if (!isset($_POST['type'])) {
 switch ($_POST['type']) {
        case TAG_ACCOUNT:
                // Account tags
-               $_SESSION['page_title'] = _("Account Tags");
+               $_SESSION['page_title'] = _($help_context = "Account Tags");
                break;
        case TAG_DIMENSION:
                // Dimension tags
-               $_SESSION['page_title'] = _("Dimension Tags");
+               $_SESSION['page_title'] = _($help_context = "Dimension Tags");
 }
 
 page($_SESSION['page_title']);
index e4446570ddc4b771e5081bcb464344464a08b8bc..52058b298df7d36a3d12bc6f7d5e995b2847d5db 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_USERS';
 $path_to_root = "..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("Users"));
+page(_($help_context = "Users"));
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index 3969418151680e4e5941a15115909e8e4f47506c..b3e35f6220ea3b95ee1b2c115f5acd94b5b4dc38 100644 (file)
@@ -23,7 +23,7 @@ include_once($path_to_root . "/reporting/includes/reporting.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(800, 500);
-page(_("View or Print Transactions"), false, false, "", $js);
+page(_($help_context = "View or Print Transactions"), false, false, "", $js);
 
 //----------------------------------------------------------------------------------------
 function view_link($trans)
index 55c6a9f0e3bc51c4f46e432e9da43492fff7575b..9fd0184b3e913d7438ffc4629c8a3241b0796ad7 100644 (file)
@@ -24,7 +24,7 @@ if ($use_date_picker)
 if ($use_popup_windows)
        $js .= get_js_open_window(800, 500);
        
-page(_("Void a Transaction"), false, false, "", $js);
+page(_($help_context = "Void a Transaction"), false, false, "", $js);
 
 //----------------------------------------------------------------------------------------
 function exist_transaction($type, $type_no)
index 9220d14315eadd9ef10d53db4249e52e32a3790f..cf8c7c39b2d957d8aedf08096ca4c8866578009d 100644 (file)
@@ -93,6 +93,7 @@
        {
                var $id;
                var $name;
+               var $help_context;
                var $modules;
                var $enabled;
                
index 446760fca126ee872c5a45780a67d3f6e6f6153c..1a385b9ef4d285224554d9dad07163311b4549ab 100644 (file)
@@ -14,7 +14,7 @@ class customers_app extends application
        function customers_app() 
        {
                global $installed_extensions;
-               $this->application("orders",_("&Sales"));
+               $this->application("orders", _($this->help_context = "&Sales"));
        
                $this->add_module(_("Transactions"));
                $this->add_lapp_function(0, _("Sales &Quotation Entry"),
index 39ab0a36ff32f63ff6d7be875215c1d3d760f433..bf46ef8d53284c3f5dbb2f2051d9253ea5a271eb 100644 (file)
@@ -15,7 +15,7 @@ class dimensions_app extends application
        {
                global $installed_extensions;
                $dim = get_company_pref('use_dimension');
-               $this->application("proj",_("&Dimensions"), $dim);
+               $this->application("proj", _($this->help_context = "&Dimensions"), $dim);
 
                if ($dim > 0)
                {
index 5a8a7612b2e2442f966282b94f77d18a06d25864..f4e4bc92fb8ef0489cf1c6e1cdc5d7657ae9851e 100644 (file)
@@ -14,7 +14,7 @@ class general_ledger_app extends application
        function general_ledger_app() 
        {
                global $installed_extensions;
-               $this->application("GL",_("&Banking and General Ledger"));
+               $this->application("GL", _($this->help_context = "&Banking and General Ledger"));
 
                $this->add_module(_("Transactions"));
                $this->add_lapp_function(0, _("&Payments"),
index 308c93b0d7922b17d4079ffc6ee3620021ba86a2..feb820bad12e4bd4c46218cc9d72caec181bc620 100644 (file)
@@ -14,7 +14,7 @@ class inventory_app extends application
        function inventory_app() 
        {
                global $installed_extensions;
-               $this->application("stock",_("&Items and Inventory"));
+               $this->application("stock", _($this->help_context = "&Items and Inventory"));
 
                $this->add_module(_("Transactions"));
                $this->add_lapp_function(0, _("Inventory Location &Transfers"),
index 60650c690282c51678a5b9cb6dcd9070d2b446c9..6892ecc290c4ac5a64e26946f0657438a42131ea 100644 (file)
@@ -14,7 +14,7 @@ class manufacturing_app extends application
        function manufacturing_app()
        {
                global $installed_extensions;
-               $this->application("manuf",_("&Manufacturing"));
+               $this->application("manuf", _($this->help_context = "&Manufacturing"));
 
                $this->add_module(_("Transactions"));
                $this->add_lapp_function(0, _("Work &Order Entry"),
index 21adb18f32e1ca723ba25a7e5c45929e3f2d3696..ac392123329281284e40f076559df9f8bb17457c 100644 (file)
@@ -14,7 +14,7 @@ class setup_app extends application
        function setup_app()
        {
                global $installed_extensions;
-               $this->application("system",_("S&etup"));
+               $this->application("system", _($this->help_context = "S&etup"));
 
                $this->add_module(_("Company Setup"));
                $this->add_lapp_function(0, _("&Company Setup"),
index 1e5c73e04e2b1d8aa33a4fd21ace7a23464eff44..304c653c731a79c0c8169c7751eb7eb51d41e586 100644 (file)
@@ -14,7 +14,7 @@ class suppliers_app extends application
        function suppliers_app() 
        {
                global $installed_extensions;
-               $this->application("AP",_("&Purchases"));
+               $this->application("AP", _($this->help_context = "&Purchases"));
 
                $this->add_module(_("Transactions"));
                $this->add_lapp_function(0, _("Purchase &Order Entry"),
index 5a5a88256310cef65490e3a80a70e07817b641b7..0777c2a3adc25f106dbb2fcacf0234e37522cbdb 100644 (file)
@@ -24,7 +24,7 @@ include_once($path_to_root . "/dimensions/includes/dimensions_ui.inc");
 $js = "";
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Dimension Entry"), false, false, "", $js);
+page(_($help_context = "Dimension Entry"), false, false, "", $js);
 
 //---------------------------------------------------------------------------------------
 
index 1c63c2fc89171f7019a3accdedcf2db29378ec06..29b58efe3f1a76a74ff3b4617587086729373050 100644 (file)
@@ -26,12 +26,12 @@ if ($use_date_picker)
 if (isset($_GET['outstanding_only']) && $_GET['outstanding_only'])
 {
        $outstanding_only = 1;
-       page(_("Search Outstanding Dimensions"), false, false, "", $js);
+       page(_($help_context = "Search Outstanding Dimensions"), false, false, "", $js);
 }
 else
 {
        $outstanding_only = 0;
-       page(_("Search Dimensions"), false, false, "", $js);
+       page(_($help_context = "Search Dimensions"), false, false, "", $js);
 }
 //-----------------------------------------------------------------------------------
 // Ajax updates
index bc0cdf5cf2a3361f3b0b9cdc7078cb78a807391e..2fe540712d37d2f498ba7365da593545119e518d 100644 (file)
@@ -17,7 +17,7 @@ include_once($path_to_root . "/includes/session.inc");
 $js = "";
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("View Dimension"), true, false, "", $js);
+page(_($help_context = "View Dimension"), true, false, "", $js);
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/data_checks.inc");
index d1dbba01c40d8d50af6ef9bd79f42dace4ce464d..2fca2b34c41805bf9fdd141d89d5fd74bf25811d 100644 (file)
@@ -30,7 +30,7 @@ if ($use_date_picker)
 
 add_js_file('reconcile.js');
 
-page(_("Reconcile Bank Account"), false, false, "", $js);
+page(_($help_context = "Reconcile Bank Account"), false, false, "", $js);
 
 check_db_has_bank_accounts(_("There are no bank accounts defined in the system."));
 
index f971fc569249772f9eced311c8d63ecd785dc6f6..2256a4a041aa93dee001f71e4c6372ccfc3db7af 100644 (file)
@@ -25,7 +25,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(800, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Transfer between Bank Accounts"), false, false, "", $js);
+page(_($help_context = "Transfer between Bank Accounts"), false, false, "", $js);
 
 check_db_has_bank_accounts(_("There are no bank accounts defined in the system."));
 
index 0458b15213402f25fe6d3d400290075a8cf6ea03..f0b007e0498f40ce289a6e3a461dac32fd43c96b 100644 (file)
@@ -30,11 +30,11 @@ if ($use_date_picker)
        $js .= get_js_date_picker();
 
 if (isset($_GET['NewPayment'])) {
-       $_SESSION['page_title'] = _("Bank Account Payment Entry");
+       $_SESSION['page_title'] = _($help_context = "Bank Account Payment Entry");
        handle_new_order(ST_BANKPAYMENT);
 
 } else if(isset($_GET['NewDeposit'])) {
-       $_SESSION['page_title'] = _("Bank Account Deposit Entry");
+       $_SESSION['page_title'] = _($help_context = "Bank Account Deposit Entry");
        handle_new_order(ST_BANKDEPOSIT);
 }
 page($_SESSION['page_title'], false, false, '', $js);
index c1236d182ca7bdcfa006d99bceda1ae8cb519464..2fc74cb4896336b1596c1d20aac798a788c0dbfe 100644 (file)
@@ -15,7 +15,7 @@ include($path_to_root . "/includes/session.inc");
 
 add_js_file('budget.js');
 
-page(_("Budget Entry"));
+page(_($help_context = "Budget Entry"));
 
 include($path_to_root . "/includes/ui.inc");
 include($path_to_root . "/gl/includes/gl_db.inc");
index 9cfc933295e1bc2b2d7f83da92d8e9589e6f9bf8..bd7595f76365dcc22e85f8877b411d6e9c53c627 100644 (file)
@@ -31,9 +31,9 @@ if ($use_date_picker)
 if (isset($_GET['ModifyGL'])) {
        $_SESSION['page_title'] = sprintf(_("Modifying Journal Transaction # %d."), 
                $_GET['trans_no']);
-       $help_page_title =_("Modifying Journal Transaction");
+       $help_context = "Modifying Journal Transaction";
 } else
-       $_SESSION['page_title'] = _("Journal Entry");
+       $_SESSION['page_title'] = _($help_context = "Journal Entry");
 
 page($_SESSION['page_title'], false, false,'', $js);
 //--------------------------------------------------------------------------------------------------
index 33112d70d3632651d6d251a00d73ff1677d5414c..b9dcf28eaa2ac93151a7eb978bb61e2b95d4fb6e 100644 (file)
@@ -25,7 +25,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(800, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Bank Statement"), false, false, "", $js);
+page(_($help_context = "Bank Statement"), false, false, "", $js);
 
 check_db_has_bank_accounts(_("There are no bank accounts defined in the system."));
 
index 3c415566d36937102ecfd4a73f02337dc634fd72..62fb64a2f0bd196b9186760635e705559ddb9c1f 100644 (file)
@@ -27,7 +27,7 @@ if ($use_popup_windows)
 if ($use_date_picker)
        $js .= get_js_date_picker();
 
-page(_("General Ledger Account Inquiry"), false, false, '', $js);
+page(_($help_context = "General Ledger Account Inquiry"), false, false, '', $js);
 
 //----------------------------------------------------------------------------------------------------
 // Ajax updates
index 895a2703497e2cfebd036008c50efc046d96a275..50ff2e3dead16a02e12f2ab774ec2a92db3bf707 100644 (file)
@@ -24,7 +24,7 @@ $js = "";
 if ($use_date_picker)
        $js = get_js_date_picker();
 
-page(_("Trial Balance"), false, false, "", $js);
+page(_($help_context = "Trial Balance"), false, false, "", $js);
 
 //----------------------------------------------------------------------------------------------------
 // Ajax updates
index 04092b75e47d8a46d4ed5cd517613c4e0a5a197b..9f551e0185df694965605ac14826b970e4c84ac0 100644 (file)
@@ -24,7 +24,7 @@ if ($use_popup_windows)
 if ($use_date_picker)
        $js .= get_js_date_picker();
 
-page(_("Journal Inquiry"), false, false, "", $js);
+page(_($help_context = "Journal Inquiry"), false, false, "", $js);
 
 //-----------------------------------------------------------------------------------
 // Ajax updates
index 13f61d5ad3d9e425e4efd98c96eb8d5f5f532a5b..394963abe42e037e0d2f8a63a726f322209af3bb 100644 (file)
@@ -27,7 +27,7 @@ if ($use_popup_windows)
 if ($use_date_picker)
        $js .= get_js_date_picker();
 
-page(_("Tax Inquiry"), false, false, '', $js);
+page(_($help_context = "Tax Inquiry"), false, false, '', $js);
 
 //----------------------------------------------------------------------------------------------------
 // Ajax updates
index 83d425f80093dc39f953b31ec3936f5757d243cd..ae1dc41e6f8cc7e924b4a1bc0ef88397afa17286 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_BANKACCOUNT';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Bank Accounts"));
+page(_($help_context = "Bank Accounts"));
 
 include($path_to_root . "/includes/ui.inc");
 
index bb83098ad3922c3242a64feb18f136b83b833187..9bf6a9cd9c6e6db2e4234e70fcc6926c49423826 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_CURRENCY';
 $path_to_root = "../..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("Currencies"));
+page(_($help_context = "Currencies"));
 
 include_once($path_to_root . "/includes/ui.inc");
 include_once($path_to_root . "/includes/banking.inc");
index 0127b40be7fa6212bd3b7ff8aaac7aacc98a470e..5bc3b25226e5aa84ef1bd97474e658a0ec991161 100644 (file)
@@ -21,7 +21,7 @@ include_once($path_to_root . "/includes/banking.inc");
 $js = "";
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Exchange Rates"), false, false, "", $js);
+page(_($help_context = "Exchange Rates"), false, false, "", $js);
 
 simple_page_mode(false);
 
index 70faccdb8818fc06fc2cc400420bacfc20361ed8..bc141c377828e0418ecef9d98f47ae7e04ec8e90 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_GLACCOUNTCLASS';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("GL Account Classes"));
+page(_($help_context = "GL Account Classes"));
 
 include($path_to_root . "/gl/includes/gl_db.inc");
 
index 27141d53d326f8f423c64a77079cdc8276cddf93..ac3b32cfd720288d5e7b6df568b16bc13d56f7d2 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_GLACCOUNTGROUP';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("GL Account Groups"));
+page(_($help_context = "GL Account Groups"));
 
 include($path_to_root . "/gl/includes/gl_db.inc");
 
index b5b6e6480ff0fc27e6dfd83c6e5d263cd1d3260f..e9efad86bedc6fcde3fde1f5c8292750dbf1f809 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_GLACCOUNT';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Chart of Accounts"));
+page(_($help_context = "Chart of Accounts"));
 
 include($path_to_root . "/includes/ui.inc");
 include($path_to_root . "/gl/includes/gl_db.inc");
index 5a8804cb12e0aacdc69f1fd617757aa95e82a343..f1f49536863f6a7c797f89fdb03a279db4f5bc94 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_QUICKENTRY';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Quick Entries"));
+page(_($help_context = "Quick Entries"));
 
 include($path_to_root . "/gl/includes/gl_db.inc");
 
index 8eaeb41cab7a4e86646ed99ec6944acc0eba9ea8..b56a331ca06635846eabb8aca15f38b3472fd0b2 100644 (file)
@@ -14,7 +14,7 @@ $path_to_root="../..";
 
 include($path_to_root . "/includes/session.inc");
 
-page(_("View Bank Transfer"), true);
+page(_($help_context = "View Bank Transfer"), true);
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index 04232dd7cc4df1ffa54154afe5aad36d83e40a1e..034d98ccd935037b8e7d25d847744f86ccb0f16f 100644 (file)
@@ -14,7 +14,7 @@ $path_to_root = "../..";
 
 include($path_to_root . "/includes/session.inc");
 
-page(_("View Bank Deposit"), true);
+page(_($help_context = "View Bank Deposit"), true);
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index e71e3dff2105011132771afda156686aaab1392e..582f2930d21606c94f2d31f1989b9eb11cf32ad1 100644 (file)
@@ -14,7 +14,7 @@ $path_to_root = "../..";
 
 include($path_to_root . "/includes/session.inc");
 
-page(_("View Bank Payment"), true);
+page(_($help_context = "View Bank Payment"), true);
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index 64e585a5a16b8f2530bfa84d9f0cc3d028b0dc26..3c74909471ef990e2491d36537bd55e18b3ebea3 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_GLTRANSVIEW';
 $path_to_root = "../..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("General Ledger Transaction Details"), true);
+page(_($help_context = "General Ledger Transaction Details"), true);
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index 65003be49eb533b62f2a61c7a44ecf83a3624f7c..bb8fbd3102c07f94789ec95fae215d906f3be766 100644 (file)
@@ -9,31 +9,38 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-function help_url($title, $app)
+/*
+       If no context is set current page/menu screen is selected.
+*/
+function help_url($context=null)
 {
 
-       global $help_page_url, $help_base_url, $applications, $help_page_title;
+       global $help_base_url, $help_context, $old_style_help;
 
-       if (isset($help_page_url))
+       $country = $_SESSION['language']->code;
+       $clean = 0;
+       
+       if ($context!=null)
        {
-               return $help_base_url.$help_page_url;
+               $help_page_url = $context;
        }
-
-       $help_page_url = '';
-       if (isset($help_page_title))
+       elseif (isset($help_context))
        {
-               $help_page_url = $help_page_title;
-       }
-       elseif ($title==_("Main Menu"))
+               $help_page_url = $help_context;
+       } else // main menu
        {
-               $help_page_url = access_string($_SESSION['App']->applications[$app]->name, true);
-       }
-       else
-       {
-               $help_page_url = $title;
+               $app = $_SESSION['sel_app'];
+               $help_page_url = $_SESSION['App']->applications[$app]->help_context;
+               $clean = 1;
        }
 
-       return $help_base_url.urlencode(str_replace(' ', '', ucwords($help_page_url)));
+       if (@$old_style_help)
+               $help_page_url = _($help_page_url);
+
+       if ($clean)
+               $help_page_url = access_string($help_page_url, true);
+
+       return $help_base_url.urlencode(str_replace(' ', '', ucwords($help_page_url))).'&lang='.$country;
 }
 
 function send_scripts()
index 3de3713f5494d0ed8a344410d4412de8deaa990b..20ac09d1971bb7fcc51ec29005663fcfb0f4859b 100644 (file)
@@ -25,7 +25,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(800, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Item Adjustments Note"), false, false, "", $js);
+page(_($help_context = "Item Adjustments Note"), false, false, "", $js);
 
 //-----------------------------------------------------------------------------------------------
 
index e268f360dbdcdca8d6200bf88d087a57ab98b36d..1c05c3bbecffd04dbf38e8af870aefb747c1ea11 100644 (file)
@@ -23,7 +23,7 @@ include_once($path_to_root . "/inventory/includes/inventory_db.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
-page(_("Inventory Item Cost Update"), false, false, "", $js);
+page(_($help_context = "Inventory Item Cost Update"), false, false, "", $js);
 
 //--------------------------------------------------------------------------------------
 
index 75837a11089860a0d6b75bc7bd8b228a5796e4d1..61388dd19469babef0f4aa7049254124e7414d53 100644 (file)
@@ -24,7 +24,7 @@ if ($use_popup_windows)
 if ($use_date_picker)
        $js .= get_js_date_picker();
 
-page(_("Inventory Item Movement"), false, false, "", $js);
+page(_($help_context = "Inventory Item Movement"), false, false, "", $js);
 //------------------------------------------------------------------------------------------------
 
 check_db_has_stock_items(_("There are no items defined in the system."));
index cd468744eb2e5ebc9bd305f5d4707756e166e06d..ee0e58716551cc5cfc0164cde0222a841ce91995 100644 (file)
@@ -15,9 +15,9 @@ include_once($path_to_root . "/includes/session.inc");
 
 if (isset($_GET['stock_id'])){
        $_POST['stock_id'] = $_GET['stock_id'];
-       page(_("Inventory Item Status"), true);
+       page(_($help_context = "Inventory Item Status"), true);
 } else {
-       page(_("Inventory Item Status"));
+       page(_($help_context = "Inventory Item Status"));
 }
 
 include_once($path_to_root . "/includes/date_functions.inc");
index 233d034b401bf3d361ef49f30621994dc6ab8ebc..a12f56ff0da23e06975e8a06d77615c27390831e 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_ITEMCATEGORY';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Item Categories"));
+page(_($help_context = "Item Categories"));
 
 include_once($path_to_root . "/includes/ui.inc");
 
index cde34f0ffe495dfd4db818cf89b3d555c0a1d17a..af88a52044a021b059f8e00fbdb02a14636d94e6 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_FORITEMCODE';
 $path_to_root = "../..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("Foreign Item Codes"));
+page(_($help_context = "Foreign Item Codes"));
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index a17ac69ff5045b085d7d114b2c25d35051917b1f..9a23f6450c19e433654fbeb6d6e0e0c133f61a97 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_UOM';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Units of Measure"));
+page(_($help_context = "Units of Measure"));
 
 include_once($path_to_root . "/includes/ui.inc");
 
index 9356e0b11fcc729fb06bed9e1a864f58861b95f7..0fadbe52b4d6d9be11ecd391613db456724e3355 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_ITEM';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Items"), @$_REQUEST['popup']);
+page(_($help_context = "Items"), @$_REQUEST['popup']);
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index d32d10a1ea7486fbd12768829fc365b1229ee107..6dae2fa31828ffe9b5307e449521cf041bd59deb 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_INVENTORYLOCATION';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Inventory Locations"));
+page(_($help_context = "Inventory Locations"));
 
 include_once($path_to_root . "/includes/ui.inc");
 
index 60b8e83e30ce52fcb6ac91659a4b68d18fefaf3d..259f6dce5d0f6f5cc71fa9b9778e9545a3412e62 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_INVENTORYMOVETYPE';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Inventory Movement Types"));
+page(_($help_context = "Inventory Movement Types"));
 
 include_once($path_to_root . "/inventory/includes/inventory_db.inc");
 
index 09cb731a5a7e0fd667c60f3f53ddba81112d8c02..30fcc48aff0cec88467782ab7e9f86cefc388765 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_SALESKIT';
 $path_to_root = "../..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("Sales Kits & Alias Codes"));
+page(_($help_context = "Sales Kits & Alias Codes"));
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index d6e75adc93a419e31d4471a4a1c5065aaac7a7ef..70bec34ec9fa4b4d570d9150f920c2852ef442d5 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_SALESPRICE';
 $path_to_root = "..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("Inventory Item Sales prices"));
+page(_($help_context = "Inventory Item Sales prices"));
 
 include_once($path_to_root . "/sales/includes/sales_db.inc");
 include_once($path_to_root . "/sales/includes/db/sales_types_db.inc");
index de9ed65e000d3a155f244ae3b1a3dc982db2503f..1970481ac52cce36506c54187bf2ce46fe0f6410 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_PURCHASEPRICING';
 $path_to_root = "..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("Supplier Purchasing Data"));
+page(_($help_context = "Supplier Purchasing Data"));
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index 7af7329e4b43bb65d44538f7dd4c42cfdcc1e0ed..49f5f5ca12f5abc8f0e41aa9817c2f4955de914d 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_REORDER';
 $path_to_root = "..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("Reorder Levels"));
+page(_($help_context = "Reorder Levels"));
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index e8e995a8d084770a6638cbff87a2f648f960deb3..49e66e5e2afa425d38f1776eb971d9c945f603be 100644 (file)
@@ -25,7 +25,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(800, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Inventory Location Transfers"), false, false, "", $js);
+page(_($help_context = "Inventory Location Transfers"), false, false, "", $js);
 
 //-----------------------------------------------------------------------------------------------
 
index 1db792698fc8e7ed34d7a0c610a5f3b123f84393..6bc5076480c97ef9bde002211158b9c477aad29a 100644 (file)
@@ -14,7 +14,7 @@ $path_to_root = "../..";
 
 include($path_to_root . "/includes/session.inc");
 
-page(_("View Inventory Adjustment"), true);
+page(_($help_context = "View Inventory Adjustment"), true);
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index 85c0ae85d4699bc3585bbcd1df3fb3be2fd7f476..195f91bcc2522ca0d4c0a5561076b7052b6b8fb4 100644 (file)
@@ -14,7 +14,7 @@ $path_to_root = "../..";
 
 include($path_to_root . "/includes/session.inc");
 
-page(_("View Inventory Transfer"), true);
+page(_($help_context = "View Inventory Transfer"), true);
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index 0552049d72ab1fcaaec68cd0d781dbc568c01b4f..9b311a7df29aa8b609331d1b4e714aef708797eb 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_WORKORDERCOST';
 $path_to_root = "../..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("Costed Bill Of Material Inquiry"));
+page(_($help_context = "Costed Bill Of Material Inquiry"));
 
 include_once($path_to_root . "/manufacturing/includes/manufacturing_ui.inc");
 include_once($path_to_root . "/includes/manufacturing.inc");
index c10dc2a7aa039af1ce06f44a5c493a7f69dcfe7e..016c336f73535e1dbab3b274c2a427b412faffd2 100644 (file)
@@ -14,7 +14,7 @@ $path_to_root = "../..";
 include($path_to_root . "/includes/db_pager.inc");
 include($path_to_root . "/includes/session.inc");
 
-page(_("Inventory Item Where Used Inquiry"));
+page(_($help_context = "Inventory Item Where Used Inquiry"));
 
 include($path_to_root . "/includes/ui.inc");
 
index fe373a1c373c3bcf9aa6812aea9b86c0fb81f601..dc89783a68452d63df10a7f58b94d1f23f33c037 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_BOM';
 $path_to_root = "../..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("Bill Of Materials"));
+page(_($help_context = "Bill Of Materials"));
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
index 716bb81886eca35c3be3eada781fc19618b9e2de..03014572f30f1e629aaf66ae5adff7068fabe124 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_WORKCENTRES';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Work Centres"));
+page(_($help_context = "Work Centres"));
 
 include($path_to_root . "/manufacturing/includes/manufacturing_db.inc");
 
index a088786cf897eacb2703b68b3035d317637cfbc4..3fdbf1df1db44d1c2c524625868a7ba69f890d5f 100644 (file)
@@ -23,12 +23,12 @@ if (isset($_GET['outstanding_only']) && ($_GET['outstanding_only'] == true))
 {
 // curently outstanding simply means not closed
        $outstanding_only = 1;
-       page(_("Search Outstanding Work Orders"), false, false, "", $js);
+       page(_($help_context = "Search Outstanding Work Orders"), false, false, "", $js);
 }
 else
 {
        $outstanding_only = 0;
-       page(_("Search Work Orders"), false, false, "", $js);
+       page(_($help_context = "Search Work Orders"), false, false, "", $js);
 }
 //-----------------------------------------------------------------------------------
 // Ajax updates
index 9f0a8d7e0ac5c7c7385f3d6adb4cdfd7bde3de30..d8cda6eb878d059dca1dfda5ccecc0e6fa252e29 100644 (file)
@@ -16,7 +16,7 @@ include_once($path_to_root . "/includes/session.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
-page(_("View Work Order Issue"), true, false, "", $js);
+page(_($help_context = "View Work Order Issue"), true, false, "", $js);
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/manufacturing.inc");
index ae486646ec19b04334e9defe110f7715b1e15903..3017ac31fefe97d1f8b0900ae3293c1b57695471 100644 (file)
@@ -17,7 +17,7 @@ include_once($path_to_root . "/includes/session.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
-page(_("View Work Order Production"), true, false, "", $js);
+page(_($help_context = "View Work Order Production"), true, false, "", $js);
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/manufacturing.inc");
index 62b3df66b715f04213b3361ee964ce1aaf95aac5..61dfbf3c05192da5bab37364b983f94e007af100 100644 (file)
@@ -23,7 +23,7 @@ include_once($path_to_root . "/manufacturing/includes/manufacturing_ui.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(800, 500);
-page(_("View Work Order"), true, false, "", $js);
+page(_($help_context = "View Work Order"), true, false, "", $js);
 
 //-------------------------------------------------------------------------------------------------
 $woid = 0;
index c61f19bbad2c952e5b95615e628301ec13b93faa..a5e03ecbb9f0c83ad189b973210643c557d528aa 100644 (file)
@@ -26,7 +26,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Produce or Unassemble Finished Items From Work Order"), false, false, "", $js);
+page(_($help_context = "Produce or Unassemble Finished Items From Work Order"), false, false, "", $js);
 
 if (isset($_GET['trans_no']) && $_GET['trans_no'] != "")
 {
index 7ce5e811c67bde915492f986b2564dd0bfe31848..4e7f05379b275601ee566f21911018e46e2dccc9 100644 (file)
@@ -26,7 +26,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Work Order Additional Costs"), false, false, "", $js);
+page(_($help_context = "Work Order Additional Costs"), false, false, "", $js);
 
 if (isset($_GET['trans_no']) && $_GET['trans_no'] != "")
 {
index 7e06ea45d2c0355caaf680c8070a09dcdde89b5e..d6bea933d76647788e1161a95238f55a52c8d4f3 100644 (file)
@@ -26,7 +26,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Work Order Entry"), false, false, "", $js);
+page(_($help_context = "Work Order Entry"), false, false, "", $js);
 
 
 check_db_has_manufacturable_items(_("There are no manufacturable items defined in the system."));
index e0349bb8c0ce3cd440146bde1f04c01d3026644a..1b129f35055ac5fdb48c290f70d669a375feb050 100644 (file)
@@ -26,7 +26,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(800, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Issue Items to Work Order"), false, false, "", $js);
+page(_($help_context = "Issue Items to Work Order"), false, false, "", $js);
 
 //-----------------------------------------------------------------------------------------------
 
index eee4ed95d1ed96e49e5777404b0ed552cedad289..0d58b749a550b8e9969f56f316e5a584537abe49 100644 (file)
@@ -24,7 +24,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(800, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Work Order Release to Manufacturing"), false, false, "", $js);
+page(_($help_context = "Work Order Release to Manufacturing"), false, false, "", $js);
 
 if (isset($_GET["trans_no"]))
 {
index 1e9e418d9be76f985af37bf2904422f21f7c6569..5f77c152afd5e620b533bdd17e110be36e02c4a1 100644 (file)
@@ -26,7 +26,7 @@ if ($use_popup_windows)
 
 add_js_file('allocate.js');
 
-page(_("Allocate Supplier Payment or Credit Note"), false, false, "", $js);
+page(_($help_context = "Allocate Supplier Payment or Credit Note"), false, false, "", $js);
 
 //--------------------------------------------------------------------------------
 
index a3b04a532bc269663d29d31630bddb3e63c51615..a14565946c0fc42463653043705c6ee1bd6c6d6d 100644 (file)
@@ -23,7 +23,7 @@ include_once($path_to_root . "/sales/includes/sales_db.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
-page(_("Supplier Allocations"), false, false, "", $js);
+page(_($help_context = "Supplier Allocations"), false, false, "", $js);
 
 //--------------------------------------------------------------------------------
 
index a455e56c326acbc4d7ab91bd88c6f0265c18c3bf..b43a99ffcc46a94fb5b16a6e668934e328155f57 100644 (file)
@@ -22,7 +22,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Search Outstanding Purchase Orders"), false, false, "", $js);
+page(_($help_context = "Search Outstanding Purchase Orders"), false, false, "", $js);
 
 if (isset($_GET['order_number']))
 {
index a7672f9931361580ca798328f1585c0238463052..1632f5b49de15f440d70011bdffddec4ba1231a1 100644 (file)
@@ -21,7 +21,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Search Purchase Orders"), false, false, "", $js);
+page(_($help_context = "Search Purchase Orders"), false, false, "", $js);
 
 if (isset($_GET['order_number']))
 {
index 2f80b49c88da0a2ba477c4b1f9bf9020068796c9..850dfc3081c344003cd61d7f7701aad1af71eaf3 100644 (file)
@@ -20,7 +20,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Supplier Allocation Inquiry"), false, false, "", $js);
+page(_($help_context = "Supplier Allocation Inquiry"), false, false, "", $js);
 
 if (isset($_GET['supplier_id']))
 {
index 3a78565948efb2f6f1e10943b99082a8352b9a34..264b551819974f904f8934ef6ffbe1ed4e41687b 100644 (file)
@@ -21,7 +21,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Supplier Inquiry"), false, false, "", $js);
+page(_($help_context = "Supplier Inquiry"), false, false, "", $js);
 
 if (isset($_GET['supplier_id'])){
        $_POST['supplier_id'] = $_GET['supplier_id'];
index bfed5d6c13cc0fbed01c0d9404901b5e24811c8d..0c94f251deb9a3e4ae8c82a6e53630df2a4e4f90 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_SUPPLIER';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Suppliers"), @$_REQUEST['popup']);
+page(_($help_context = "Suppliers"), @$_REQUEST['popup']);
 
 //include($path_to_root . "/includes/date_functions.inc");
 
index 2f903ba12be839caa38e95236ec79283cf17f080..988c90faf3a1b15af98e82d0c8eb5af3af9484cb 100644 (file)
@@ -24,11 +24,11 @@ if ($use_date_picker)
 
 if (isset($_GET['ModifyOrderNumber'])) 
 {
-       page(_("Modify Purchase Order #") . $_GET['ModifyOrderNumber'], false, false, "", $js);
+       page(_($help_context = "Modify Purchase Order #") . $_GET['ModifyOrderNumber'], false, false, "", $js);
 } 
 else 
 {
-       page(_("Purchase Order Entry"), false, false, "", $js);
+       page(_($help_context = "Purchase Order Entry"), false, false, "", $js);
 }
 
 //---------------------------------------------------------------------------------------------------
index 1c6e6d627a0280aff0a50deafff18578e7160f5b..bfb8371cc40a93de19563aa1d8be779002e6c0fe 100644 (file)
@@ -22,7 +22,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Receive Purchase Order Items"), false, false, "", $js);
+page(_($help_context = "Receive Purchase Order Items"), false, false, "", $js);
 
 //---------------------------------------------------------------------------------------------------------------
 
index c20abbcd38d7b56cbda1c49f16abc4be4af0d8c9..1a8d63e9bdca091b7b481876a72b7e6d01d80baa 100644 (file)
@@ -25,7 +25,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Supplier Credit Note"), false, false, "", $js);
+page(_($help_context = "Supplier Credit Note"), false, false, "", $js);
 
 //----------------------------------------------------------------------------------------
 
index afa2df18da28a0a573c37f9205c2c238e10f9381..3440678189c5c6a8f76c1007840e1851d0f76bb6 100644 (file)
@@ -25,7 +25,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Enter Supplier Invoice"), false, false, "", $js);
+page(_($help_context = "Enter Supplier Invoice"), false, false, "", $js);
 
 //----------------------------------------------------------------------------------------
 
index ce217913e0aefc4522fac4060232d13a12fc7617..68ed1c8f61b8762878d9c9528c21ebc1bc93d2c4 100644 (file)
@@ -28,7 +28,7 @@ if ($use_date_picker)
 
 add_js_file('payalloc.js');
 
-page(_("Supplier Payment Entry"), false, false, "", $js);
+page(_($help_context = "Supplier Payment Entry"), false, false, "", $js);
 
 if (isset($_GET['supplier_id']))
 {
index 0a94ac8c8912ad922e280a342343833056d776d2..71b5d12072372d70fbf2cab989a5da7afef56780 100644 (file)
@@ -18,7 +18,7 @@ include($path_to_root . "/includes/session.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
-page(_("View Purchase Order Delivery"), true, false, "", $js);
+page(_($help_context = "View Purchase Order Delivery"), true, false, "", $js);
 
 include($path_to_root . "/purchasing/includes/purchasing_ui.inc");
 
index 052103deeff636c073bf4161085a329996ee85aa..ce2df9341b9a29d49c0dba6d283baf4c492f723b 100644 (file)
@@ -19,7 +19,7 @@ include($path_to_root . "/purchasing/includes/purchasing_ui.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
-page(_("View Purchase Order"), true, false, "", $js);
+page(_($help_context = "View Purchase Order"), true, false, "", $js);
 
 
 if (!isset($_GET['trans_no']))
index 79e6e5b9b9d7ddf3bc80d22857559f4c02ce4a23..c0d921ecd7dcd5d70b6139cb6ddd3d766a3db962 100644 (file)
@@ -20,7 +20,7 @@ include_once($path_to_root . "/purchasing/includes/purchasing_ui.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
-page(_("View Supplier Credit Note"), true, false, "", $js);
+page(_($help_context = "View Supplier Credit Note"), true, false, "", $js);
 
 if (isset($_GET["trans_no"]))
 {
index bbab14eb2fb6428e64bca5f34021628f7dfc1046..ae97355f8caf63ffdb2f50505c6b9aae8ccb46e0 100644 (file)
@@ -20,7 +20,7 @@ include_once($path_to_root . "/purchasing/includes/purchasing_ui.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
-page(_("View Supplier Invoice"), true, false, "", $js);
+page(_($help_context = "View Supplier Invoice"), true, false, "", $js);
 
 if (isset($_GET["trans_no"]))
 {
index 554b34455acb8150c6e4c7a7cb41b8e1934e13c3..34fa9576121f52918a9ba028376f2363ebfe9a7e 100644 (file)
@@ -19,7 +19,7 @@ include_once($path_to_root . "/purchasing/includes/purchasing_db.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
-page(_("View Payment to Supplier"), true, false, "", $js);
+page(_($help_context = "View Payment to Supplier"), true, false, "", $js);
 
 if (isset($_GET["trans_no"]))
 {
index 75beda95d396e2db9954cf4ff27a924e916e2979..8babc61a5c7cc08d0cabb72b500a261141cff994 100644 (file)
@@ -20,7 +20,7 @@ include_once($path_to_root . "/reporting/includes/reports_classes.inc");
 $js = "";
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Reports and Analysis"), false, false, "", $js);
+page(_($help_context = "Reports and Analysis"), false, false, "", $js);
 
 $reports = new BoxReports;
 
index 6b0357e0db267db9454cce0c4695a974cb072f01..058605c6ff481dcee3d20eaf40998c0522056a37 100644 (file)
@@ -25,7 +25,7 @@ if ($use_popup_windows)
 
 add_js_file('allocate.js');
 
-page(_("Allocate Customer Payment or Credit Note"), false, false, "", $js);
+page(_($help_context = "Allocate Customer Payment or Credit Note"), false, false, "", $js);
 
 //--------------------------------------------------------------------------------
 
index edccecfa2155df60634b832b53084755d3459cc6..309bba50a92e06328a490c40bd5deca3c43af59a 100644 (file)
@@ -19,7 +19,7 @@ include_once($path_to_root . "/sales/includes/sales_db.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
-page(_("Customer Allocations"), false, false, "", $js);
+page(_($help_context = "Customer Allocations"), false, false, "", $js);
 
 //--------------------------------------------------------------------------------
 
index 492d8482e8c4e0e0bf6d147eb0168836ee25c061..dafc08ac7450adadcc448118a49de879b136a2f8 100644 (file)
@@ -21,7 +21,7 @@ $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 600);
 
-page(_("Create and Print Recurrent Invoices"), false, false, "", $js);
+page(_($help_context = "Create and Print Recurrent Invoices"), false, false, "", $js);
 
 function set_last_sent($id, $date)
 {
index 5d2ebb8d4ea17455f567d06cdc76af43ff609413..7723936c82078fa72987bf1557283161aafae3ec 100644 (file)
@@ -34,12 +34,12 @@ if ($use_date_picker) {
 }
 
 if(isset($_GET['NewCredit'])) {
-       $_SESSION['page_title'] = _("Customer Credit Note");
+       $_SESSION['page_title'] = _($help_context = "Customer Credit Note");
        handle_new_credit(0);
 } elseif (isset($_GET['ModifyCredit'])) {
        $_SESSION['page_title'] = sprintf(_("Modifying Customer Credit Note #%d"), $_GET['ModifyCredit']);
        handle_new_credit($_GET['ModifyCredit']);
-       $help_page_title = _("Modifying Customer Credit Note");
+       $help_context = "Modifying Customer Credit Note";
 }
 
 page($_SESSION['page_title'],false, false, "", $js);
index 5c62eba6e8a87deee9d311e09462e70ba999b416..77ef73366f72c89d39837f31628559227571af3d 100644 (file)
@@ -36,10 +36,10 @@ if ($use_date_picker) {
 
 if (isset($_GET['ModifyCredit'])) {
        $_SESSION['page_title'] = sprintf(_("Modifying Credit Invoice # %d."), $_GET['ModifyCredit']);
-       $help_page_title =_("Modifying Credit Invoice");
+       $help_context = "Modifying Credit Invoice";
        processing_start();
 } elseif (isset($_GET['InvoiceNumber'])) {
-       $_SESSION['page_title'] = _("Credit all or part of an Invoice");
+       $_SESSION['page_title'] = _($help_context = "Credit all or part of an Invoice");
        processing_start();
 }
 page($_SESSION['page_title'], false, false, "", $js);
index 26bd6eeccde8dd9dcc4790094ddf4556824c55c8..2049c49ed9952d54229dae3fb3d82cc8c13f7f80 100644 (file)
@@ -35,10 +35,10 @@ if ($use_date_picker) {
 
 if (isset($_GET['ModifyDelivery'])) {
        $_SESSION['page_title'] = sprintf(_("Modifying Delivery Note # %d."), $_GET['ModifyDelivery']);
-       $help_page_title = _("Modifying Delivery Note");
+       $help_context = "Modifying Delivery Note";
        processing_start();
 } elseif (isset($_GET['OrderNumber'])) {
-       $_SESSION['page_title'] = _("Deliver Items for a Sales Order");
+       $_SESSION['page_title'] = _($help_context = "Deliver Items for a Sales Order");
        processing_start();
 }
 
index acf3013712aad45cf9a4cfcf98a77db49843226c..d9196b37e9d897fb5d66d02ee5ccdd243dfa4d54 100644 (file)
@@ -35,11 +35,11 @@ if ($use_date_picker) {
 
 if (isset($_GET['ModifyInvoice'])) {
        $_SESSION['page_title'] = sprintf(_("Modifying Sales Invoice # %d.") ,$_GET['ModifyInvoice']);
-       $help_page_title = _("Modifying Sales Invoice");
+       $help_context = "Modifying Sales Invoice";
 } elseif (isset($_GET['DeliveryNumber'])) {
-       $_SESSION['page_title'] = _("Issue an Invoice for Delivery Note");
+       $_SESSION['page_title'] = _($help_context = "Issue an Invoice for Delivery Note");
 } elseif (isset($_GET['BatchInvoice'])) {
-       $_SESSION['page_title'] = _("Issue Batch Invoice for Delivery Notes");
+       $_SESSION['page_title'] = _($help_context = "Issue Batch Invoice for Delivery Notes");
 }
 
 page($_SESSION['page_title'], false, false, "", $js);
index a01bd2896df7df19760a7caa17dc94ce56f54b19..7170d4fdd9ee07433f43f7def08d373cb3be9b11 100644 (file)
@@ -29,7 +29,7 @@ if ($use_date_picker) {
 }
 add_js_file('payalloc.js');
 
-page(_("Customer Payment Entry"), false, false, "", $js);
+page(_($help_context = "Customer Payment Entry"), false, false, "", $js);
 
 //----------------------------------------------------------------------------------------------
 
index badd4b1899b3137f67c43eb4fd63a8fd60ba0e55..bbf82460ff61c32457445eaa03a7e30ec050913c 100644 (file)
@@ -22,7 +22,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Customer Allocation Inquiry"), false, false, "", $js);
+page(_($help_context = "Customer Allocation Inquiry"), false, false, "", $js);
 
 if (isset($_GET['customer_id']))
 {
index 9d397b946c8ecef2abd5ddabbcd866a73a3f671a..b2764d465595a2be828cda60e3f59921c316d165 100644 (file)
@@ -23,7 +23,7 @@ if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Customer Transactions"), false, false, "", $js);
+page(_($help_context = "Customer Transactions"), false, false, "", $js);
 
 
 if (isset($_GET['customer_id']))
index aaa3421ffee598e41aeeae5d4b59946bf5e1243c..e65602bf557f6a2fba83423691878fe92ad2f21d 100644 (file)
@@ -26,12 +26,12 @@ if ($use_date_picker)
 if (isset($_GET['OutstandingOnly']) && ($_GET['OutstandingOnly'] == true))
 {
        $_POST['OutstandingOnly'] = true;
-       page(_("Search Not Invoiced Deliveries"), false, false, "", $js);
+       page(_($help_context = "Search Not Invoiced Deliveries"), false, false, "", $js);
 }
 else
 {
        $_POST['OutstandingOnly'] = false;
-       page(_("Search All Deliveries"), false, false, "", $js);
+       page(_($help_context = "Search All Deliveries"), false, false, "", $js);
 }
 
 if (isset($_GET['selected_customer']))
index 8bc3683ca6c8215570f67f7ddf32d5ba490b3676..aed0b1ffc9a622d74836be1c6d083f8ffb0406f3 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_CRSTATUS';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Credit Status")); 
+page(_($help_context = "Credit Status")); 
 
 include($path_to_root . "/sales/includes/db/credit_status_db.inc");
 
index 849ac557786c42867421968265c7e6958ed49f73..6897178b85ede0d7f54adbe0ebee65933604e8ce 100644 (file)
@@ -15,7 +15,7 @@ $path_to_root="../..";
 include($path_to_root . "/includes/db_pager.inc");
 include($path_to_root . "/includes/session.inc");
 
-page(_("Customer Branches"), @$_REQUEST['popup']);
+page(_($help_context = "Customer Branches"), @$_REQUEST['popup']);
 
 include($path_to_root . "/includes/ui.inc");
 
index 3b967e886a210046fe6ab705e218503bc1e3f09f..dd2646834967b3ee61a78b50b8503eae90deb5a2 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_CUSTOMER';
 $path_to_root = "../..";
 
 include_once($path_to_root . "/includes/session.inc");
-page(_("Customers"), @$_REQUEST['popup']); 
+page(_($help_context = "Customers"), @$_REQUEST['popup']); 
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/banking.inc");
index a1b0bdec6f3595a41d836a5587fa70e348695f93..f646ff2af685d62bbdfcfabc8d4315b98dafbd57 100644 (file)
@@ -20,7 +20,7 @@ if ($use_popup_windows)
 if ($use_date_picker)
        $js .= get_js_date_picker();
 
-page(_("Recurrent Invoices"), false, false, "", $js);
+page(_($help_context = "Recurrent Invoices"), false, false, "", $js);
 
 simple_page_mode(true);
 
index 64f043fc2dd5a313719c00b2d5d08ab920bd0f73..8bb0ffd10af033d72d2c1a77f81f4841dc2210bd 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_SALESAREA';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Sales Areas"));
+page(_($help_context = "Sales Areas"));
 
 include($path_to_root . "/includes/ui.inc");
 
index 0a922d4cd0a2289bc16f9ab861780f0f7b277c9d..2ee95badf68fd9160ef04c7125e4581709ee3e8a 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_SALESGROUP';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Sales Groups"));
+page(_($help_context = "Sales Groups"));
 
 include($path_to_root . "/includes/ui.inc");
 
index 30e4c5561826a56edd26e1177166a2a36261adc1..1c398b61a37a8da5bcc705d384d363e8d3bf1126 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_SALESMAN';
 $path_to_root = "../..";
 include($path_to_root . "/includes/session.inc");
 
-page(_("Sales Persons"));
+page(_($help_context = "Sales Persons"));
 
 include($path_to_root . "/includes/ui.inc");
 
index c76196e50d557926d8a0b0c1ebc034810a530474..915911c384c08fe9c4f29bd2c2360c9cb9dced2c 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_POSSETUP';
 $path_to_root = "../..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("POS settings"));
+page(_($help_context = "POS settings"));
 
 include_once($path_to_root . "/includes/ui.inc");
 include_once($path_to_root . "/sales/includes/db/sales_points_db.inc");
index 4d9d1f08a54a753940613792eabd3f56d4643bfb..7ebd768594c14231cbbe796f329392a519601ac8 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_SALESTYPES';
 $path_to_root = "../..";
 include_once($path_to_root . "/includes/session.inc");
 
-page(_("Sales Types"));
+page(_($help_context = "Sales Types"));
 
 include_once($path_to_root . "/includes/ui.inc");
 include_once($path_to_root . "/sales/includes/db/sales_types_db.inc");
index cd9e48b24ff36911a758b9bfb29b0342b51e59a1..3dcebf0345a194b6d049134920194c456be4d26c 100644 (file)
@@ -53,36 +53,36 @@ if ($use_date_picker) {
 
 if (isset($_GET['NewDelivery']) && is_numeric($_GET['NewDelivery'])) {
 
-       $_SESSION['page_title'] = _("Direct Sales Delivery");
+       $_SESSION['page_title'] = _($help_context = "Direct Sales Delivery");
        create_cart(ST_CUSTDELIVERY, $_GET['NewDelivery']);
 
 } elseif (isset($_GET['NewInvoice']) && is_numeric($_GET['NewInvoice'])) {
 
-       $_SESSION['page_title'] = _("Direct Sales Invoice");
+       $_SESSION['page_title'] = _($help_context = "Direct Sales Invoice");
        create_cart(ST_SALESINVOICE, $_GET['NewInvoice']);
 
 } elseif (isset($_GET['ModifyOrderNumber']) && is_numeric($_GET['ModifyOrderNumber'])) {
 
-       $help_page_title = _('Modifying Sales Order');
+       $help_context = 'Modifying Sales Order';
        $_SESSION['page_title'] = sprintf( _("Modifying Sales Order # %d"), $_GET['ModifyOrderNumber']);
        create_cart(ST_SALESORDER, $_GET['ModifyOrderNumber']);
 
 } elseif (isset($_GET['ModifyQuotationNumber']) && is_numeric($_GET['ModifyQuotationNumber'])) {
 
-       $help_page_title = _('Modifying Sales Quotation');
+       $help_context = 'Modifying Sales Quotation';
        $_SESSION['page_title'] = sprintf( _("Modifying Sales Quotation # %d"), $_GET['ModifyQuotationNumber']);
        create_cart(ST_SALESQUOTE, $_GET['ModifyQuotationNumber']);
 
 } elseif (isset($_GET['NewOrder'])) {
 
-       $_SESSION['page_title'] = _("New Sales Order Entry");
+       $_SESSION['page_title'] = _($help_context = "New Sales Order Entry");
        create_cart(ST_SALESORDER, 0);
 } elseif (isset($_GET['NewQuotation'])) {
 
-       $_SESSION['page_title'] = _("New Sales Quotation Entry");
+       $_SESSION['page_title'] = _($help_context = "New Sales Quotation Entry");
        create_cart(ST_SALESQUOTE, 0);
 } elseif (isset($_GET['NewQuoteToSalesOrder'])) {
-       $_SESSION['page_title'] = _("Sales Order Entry");
+       $_SESSION['page_title'] = _($help_context = "Sales Order Entry");
        create_cart(ST_SALESQUOTE, $_GET['NewQuoteToSalesOrder']);
 }
 
index e1e51aa2b755d357717bd310f340b2bff41ff05d..0ca3c7f9737663873facaf1ec237223ca9161c1c 100644 (file)
@@ -21,7 +21,7 @@ include_once($path_to_root . "/sales/includes/sales_db.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 500);
-page(_("View Credit Note"), true, false, "", $js);
+page(_($help_context = "View Credit Note"), true, false, "", $js);
 
 if (isset($_GET["trans_no"]))
 {
index dac9f7dd71bededfff1a366df1e8c485b437798a..a5a1481316ab330df3585d55c61ec719543a9569 100644 (file)
@@ -20,7 +20,7 @@ include_once($path_to_root . "/sales/includes/sales_db.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 600);
-page(_("View Sales Dispatch"), true, false, "", $js);
+page(_($help_context = "View Sales Dispatch"), true, false, "", $js);
 
 
 if (isset($_GET["trans_no"]))
index 6a13b1aedba50b6c41947ccee8f77667fbb8cd92..c93a794c638e03128bf30f90446c55af487de435 100644 (file)
@@ -20,7 +20,7 @@ include_once($path_to_root . "/sales/includes/sales_db.inc");
 $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 600);
-page(_("View Sales Invoice"), true, false, "", $js);
+page(_($help_context = "View Sales Invoice"), true, false, "", $js);
 
 
 if (isset($_GET["trans_no"]))
index b2dd53ba14ce92e2c39c32ccbf191a70614cd945..8153b3ff82c11d55abfcfc37fb1bd69ee5cd464e 100644 (file)
@@ -21,7 +21,7 @@ $js = "";
 if ($use_popup_windows)
        $js .= get_js_open_window(900, 600);
 
-page(_("View Customer Payment"), true, false, "", $js);
+page(_($help_context = "View Customer Payment"), true, false, "", $js);
 
 if (isset($_GET["trans_no"]))
 {
index 8120332b5d265dc84a94268deb9e3bf16c72f002..4529e1d421e1773db7b13ea1d4d0f79d3a4d388c 100644 (file)
@@ -25,12 +25,12 @@ if ($use_popup_windows)
 
 if ($_GET['trans_type'] == ST_SALESQUOTE)
 {
-       page(_("View Sales Quotation"), true, false, "", $js);
+       page(_($help_context = "View Sales Quotation"), true, false, "", $js);
        display_heading(sprintf(_("Sales Quotation #%d"),$_GET['trans_no']));
 }      
 else
 {
-       page(_("View Sales Order"), true, false, "", $js);
+       page(_($help_context = "View Sales Order"), true, false, "", $js);
        display_heading(sprintf(_("Sales Order #%d"),$_GET['trans_no']));
 }
 
index e6c1b104ef8c2b1a6e1f15fc63405ad2f7d90651..f1414efcfe084145479ad4ac5c8ef2c80224bb7f 100644 (file)
@@ -14,7 +14,7 @@ $path_to_root = "..";
 
 include($path_to_root . "/includes/session.inc");
 
-page(_("Item Tax Types")); 
+page(_($help_context = "Item Tax Types")); 
 
 include_once($path_to_root . "/taxes/db/item_tax_types_db.inc");
 include_once($path_to_root . "/taxes/db/tax_types_db.inc");
index ea61fd3444f0fb71ecd96d8a6952fb30d6579d74..be6834826fb4ac384790bca52af2552592be8935 100644 (file)
@@ -14,7 +14,7 @@ $path_to_root = "..";
 
 include($path_to_root . "/includes/session.inc");
 
-page(_("Tax Groups"));
+page(_($help_context = "Tax Groups"));
 
 include_once($path_to_root . "/includes/data_checks.inc");
 include_once($path_to_root . "/includes/ui.inc");
index ca2f866f3ce06644fbda659225740dbbe8fe79e8..c76691830053dd31a44bf08aa1c9c30ef3ac1d4b 100644 (file)
@@ -13,7 +13,7 @@ $page_security = 'SA_TAXRATES';
 $path_to_root = "..";
 
 include($path_to_root . "/includes/session.inc");
-page(_("Tax Types"));
+page(_($help_context = "Tax Types"));
 
 include_once($path_to_root . "/includes/ui.inc");
 include_once($path_to_root . "/taxes/db/tax_types_db.inc");
index 415a500972a67a52462c109bf25834bb3aa21599..5c3f531063732719d33f1cc5c7fea51ba78aec0d 100644 (file)
@@ -13,7 +13,7 @@
        {
                function wa_header()
                {
-                       page(_("Main Menu"), false, true);
+                       page(_($help_context = "Main Menu"), false, true);
                }
 
                function wa_footer()
@@ -67,7 +67,7 @@
 
                                if ($help_base_url != null)
                                {
-                                       echo "$himg<a target = '_blank' onclick=" .'"'."javascript:openWindow(this.href,this.target); return false;".'" '. "href='". help_url($title, $sel_app)."'>" . _("Help") . "</a>&nbsp;&nbsp;&nbsp;";
+                                       echo "$himg<a target = '_blank' onclick=" .'"'."javascript:openWindow(this.href,this.target); return false;".'" '. "href='". help_url()."'>" . _("Help") . "</a>&nbsp;&nbsp;&nbsp;";
                                }
                                echo "$img<a href='$local_path_to_root/access/logout.php?'>" . _("Logout") . "</a>&nbsp;&nbsp;&nbsp;";
                                echo "</td></tr></table>";
index 178fb7e1a94b24fc987a3cbe7311973e5497811d..cd959edc06815167bd1fe0f08aa285ba078225c7 100644 (file)
@@ -13,7 +13,7 @@
        {
                function wa_header()
                {
-                       page(_("Main Menu"), false, true);
+                       page(_($help_context = "Main Menu"), false, true);
                }
 
                function wa_footer()
@@ -67,7 +67,7 @@
 
                                if ($help_base_url != null)
                                {
-                                       echo "$himg<a target = '_blank' onclick=" .'"'."javascript:openWindow(this.href,this.target); return false;".'" '. "href='". help_url($title, $sel_app)."'>" . _("Help") . "</a>&nbsp;&nbsp;&nbsp;";
+                                       echo "$himg<a target = '_blank' onclick=" .'"'."javascript:openWindow(this.href,this.target); return false;".'" '. "href='". help_url()."'>" . _("Help") . "</a>&nbsp;&nbsp;&nbsp;";
                                }
                                echo "$img<a href='$local_path_to_root/access/logout.php?'>" . _("Logout") . "</a>&nbsp;&nbsp;&nbsp;";
                                echo "</td></tr></table>";
index e7ec0c86805cc49aa41e5678848ad3868b484b55..5ba820da3ea10bf85c6bc2b50bc6d3e67a5bc1bc 100644 (file)
@@ -14,7 +14,7 @@
                function wa_header()
                {
 //                     add_js_ufile("themes/default/renderer.js");
-                       page(_("Main Menu"), false, true);
+                       page(_($help_context = "Main Menu"), false, true);
                }
 
                function wa_footer()
@@ -68,7 +68,7 @@
 
                                if ($help_base_url != null)
                                {
-                                       echo "$himg<a target = '_blank' onclick=" .'"'."javascript:openWindow(this.href,this.target); return false;".'" '. "href='". help_url($title, $sel_app)."'>" . _("Help") . "</a>&nbsp;&nbsp;&nbsp;";
+                                       echo "$himg<a target = '_blank' onclick=" .'"'."javascript:openWindow(this.href,this.target); return false;".'" '. "href='". help_url()."'>" . _("Help") . "</a>&nbsp;&nbsp;&nbsp;";
                                }
                                echo "$img<a href='$local_path_to_root/access/logout.php?'>" . _("Logout") . "</a>&nbsp;&nbsp;&nbsp;";
                                echo "</td></tr><tr><td colspan=3>";