$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);
//----------------------------------------------------------------------------------------
exit;
}
-page(_("Backup and Restore Database"), false, false, '', '');
+page(_($help_context = "Backup and Restore Database"), false, false, '', '');
check_paths();
$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");
$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");
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');
$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");
$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);
//---------------------------------------------------------------------------------------------
$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");
$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");
$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");
$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");
$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");
$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");
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','');
$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");
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");
$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);
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']);
$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");
$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)
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)
{
var $id;
var $name;
+ var $help_context;
var $modules;
var $enabled;
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"),
{
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)
{
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"),
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"),
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"),
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"),
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"),
$js = "";
if ($use_date_picker)
$js .= get_js_date_picker();
-page(_("Dimension Entry"), false, false, "", $js);
+page(_($help_context = "Dimension Entry"), false, false, "", $js);
//---------------------------------------------------------------------------------------
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
$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");
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."));
$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."));
$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);
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");
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);
//--------------------------------------------------------------------------------------------------
$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."));
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
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
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
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
$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");
$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");
$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);
$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");
$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");
$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");
$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");
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");
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");
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");
$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");
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()
$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);
//-----------------------------------------------------------------------------------------------
$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);
//--------------------------------------------------------------------------------------
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."));
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");
$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");
$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");
$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");
$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");
$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");
$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");
$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");
$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");
$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");
$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");
$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);
//-----------------------------------------------------------------------------------------------
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");
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");
$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");
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");
$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");
$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");
{
// 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
$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");
$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");
$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;
$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'] != "")
{
$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'] != "")
{
$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."));
$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);
//-----------------------------------------------------------------------------------------------
$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"]))
{
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);
//--------------------------------------------------------------------------------
$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);
//--------------------------------------------------------------------------------
$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']))
{
$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']))
{
$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']))
{
$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'];
$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");
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);
}
//---------------------------------------------------------------------------------------------------
$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);
//---------------------------------------------------------------------------------------------------------------
$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);
//----------------------------------------------------------------------------------------
$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);
//----------------------------------------------------------------------------------------
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']))
{
$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");
$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']))
$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"]))
{
$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"]))
{
$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"]))
{
$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;
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);
//--------------------------------------------------------------------------------
$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);
//--------------------------------------------------------------------------------
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)
{
}
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);
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);
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();
}
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);
}
add_js_file('payalloc.js');
-page(_("Customer Payment Entry"), false, false, "", $js);
+page(_($help_context = "Customer Payment Entry"), false, false, "", $js);
//----------------------------------------------------------------------------------------------
$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']))
{
$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']))
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']))
$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");
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");
$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");
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);
$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");
$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");
$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");
$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");
$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");
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']);
}
$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"]))
{
$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"]))
$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"]))
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"]))
{
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']));
}
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");
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");
$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");
{
function wa_header()
{
- page(_("Main Menu"), false, true);
+ page(_($help_context = "Main Menu"), false, true);
}
function wa_footer()
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> ";
+ echo "$himg<a target = '_blank' onclick=" .'"'."javascript:openWindow(this.href,this.target); return false;".'" '. "href='". help_url()."'>" . _("Help") . "</a> ";
}
echo "$img<a href='$local_path_to_root/access/logout.php?'>" . _("Logout") . "</a> ";
echo "</td></tr></table>";
{
function wa_header()
{
- page(_("Main Menu"), false, true);
+ page(_($help_context = "Main Menu"), false, true);
}
function wa_footer()
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> ";
+ echo "$himg<a target = '_blank' onclick=" .'"'."javascript:openWindow(this.href,this.target); return false;".'" '. "href='". help_url()."'>" . _("Help") . "</a> ";
}
echo "$img<a href='$local_path_to_root/access/logout.php?'>" . _("Logout") . "</a> ";
echo "</td></tr></table>";
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()
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> ";
+ echo "$himg<a target = '_blank' onclick=" .'"'."javascript:openWindow(this.href,this.target); return false;".'" '. "href='". help_url()."'>" . _("Help") . "</a> ";
}
echo "$img<a href='$local_path_to_root/access/logout.php?'>" . _("Logout") . "</a> ";
echo "</td></tr><tr><td colspan=3>";