From: <dai...@us...> - 2012-12-29 04:00:57
|
Revision: 5784 http://sourceforge.net/p/web-erp/reponame/5784 Author: daintree Date: 2012-12-29 04:00:43 +0000 (Sat, 29 Dec 2012) Log Message: ----------- ProperCase variable names Modified Paths: -------------- trunk/AccountGroups.php trunk/AccountSections.php trunk/AddCustomerContacts.php trunk/AddCustomerNotes.php trunk/AddCustomerTypeNotes.php trunk/AgedDebtors.php trunk/AgedSuppliers.php trunk/Areas.php trunk/AuditTrail.php trunk/BOMExtendedQty.php trunk/BOMIndented.php trunk/BOMIndentedReverse.php trunk/BOMInquiry.php trunk/BOMListing.php trunk/BOMs.php trunk/BackupDatabase.php trunk/BankAccounts.php trunk/BankMatching.php trunk/BankReconciliation.php trunk/COGSGLPostings.php trunk/CompanyPreferences.php trunk/ConfirmDispatchControlled_Invoice.php trunk/ConfirmDispatch_Invoice.php trunk/ContractBOM.php trunk/ContractCosting.php trunk/ContractOtherReqts.php trunk/Contracts.php trunk/CopyBOM.php trunk/CounterReturns.php trunk/CounterSales.php trunk/CreditItemsControlled.php trunk/CreditStatus.php trunk/Credit_Invoice.php trunk/Currencies.php trunk/CustEDISetup.php trunk/CustLoginSetup.php trunk/CustWhereAlloc.php trunk/CustomerAllocations.php trunk/CustomerBranches.php trunk/CustomerInquiry.php trunk/CustomerPurchases.php trunk/CustomerReceipt.php trunk/CustomerTransInquiry.php trunk/CustomerTypes.php trunk/Customers.php trunk/DailyBankTransactions.php trunk/DailySalesInquiry.php trunk/DebtorsAtPeriodEnd.php trunk/DeliveryDetails.php trunk/Departments.php trunk/DiscountCategories.php trunk/DiscountMatrix.php trunk/EDIMessageFormat.php trunk/EDIProcessOrders.php trunk/EmailConfirmation.php trunk/EmailCustTrans.php trunk/ExchangeRateTrend.php trunk/FTP_RadioBeacon.php trunk/Factors.php trunk/FixedAssetCategories.php trunk/FixedAssetDepreciation.php trunk/FixedAssetItems.php trunk/FixedAssetLocations.php trunk/FixedAssetRegister.php trunk/FixedAssetTransfer.php trunk/FormDesigner.php trunk/FreightCosts.php trunk/GLAccountCSV.php trunk/GLAccountInquiry.php trunk/GLAccountReport.php trunk/GLAccounts.php trunk/GLBalanceSheet.php trunk/GLBudgets.php trunk/GLCodesInquiry.php trunk/GLJournal.php trunk/GLJournalInquiry.php trunk/GLProfit_Loss.php trunk/GLTagProfit_Loss.php trunk/GLTags.php trunk/GLTransInquiry.php trunk/GLTrialBalance.php trunk/GeocodeSetup.php trunk/GetStockImage.php trunk/GoodsReceived.php trunk/GoodsReceivedControlled.php trunk/InternalStockCategoriesByRole.php trunk/InternalStockRequest.php trunk/InternalStockRequestAuthorisation.php trunk/InternalStockRequestFulfill.php trunk/InventoryPlanning.php trunk/InventoryPlanningPrefSupplier.php trunk/InventoryQuantities.php trunk/InventoryValuation.php trunk/Labels.php trunk/Locations.php trunk/Logout.php trunk/MRP.php trunk/MRPCalendar.php trunk/MRPCreateDemands.php trunk/MRPDemandTypes.php trunk/MRPDemands.php trunk/MRPPlannedPurchaseOrders.php trunk/MRPPlannedWorkOrders.php trunk/MRPReport.php trunk/MRPReschedules.php trunk/MRPShortages.php trunk/MailInventoryValuation.php trunk/NoSalesItems.php trunk/OffersReceived.php trunk/OrderDetails.php trunk/OutstandingGRNs.php trunk/PDFBankingSummary.php trunk/PDFChequeListing.php trunk/PDFCustTransListing.php trunk/PDFCustomerList.php trunk/PDFDIFOT.php trunk/PDFDeliveryDifferences.php trunk/PDFGLJournal.php trunk/PDFGrn.php trunk/PDFLowGP.php trunk/PDFOrderStatus.php trunk/PDFOrdersInvoiced.php trunk/PDFPeriodStockTransListing.php trunk/PDFPickingList.php trunk/PDFPriceList.php trunk/PDFPrintLabel.php trunk/PDFQuotation.php trunk/PDFQuotationPortrait.php trunk/PDFRemittanceAdvice.php trunk/PDFStockCheckComparison.php trunk/PDFStockLocTransfer.php trunk/PDFStockNegatives.php trunk/PDFStockTransfer.php trunk/PDFSuppTransListing.php trunk/POReport.php trunk/PO_AuthorisationLevels.php trunk/PO_AuthoriseMyOrders.php trunk/PO_Header.php trunk/PO_Items.php trunk/PO_OrderDetails.php trunk/PO_PDFPurchOrder.php trunk/PO_SelectOSPurchOrder.php trunk/PO_SelectPurchOrder.php trunk/PageSecurity.php trunk/PaymentAllocations.php trunk/PaymentMethods.php trunk/PaymentTerms.php trunk/Payments.php trunk/PcAssignCashToTab.php trunk/PcAuthorizeExpenses.php trunk/PcClaimExpensesFromTab.php trunk/PcExpenses.php trunk/PcExpensesTypeTab.php trunk/PcReportTab.php trunk/PcTabs.php trunk/PcTypeTabs.php trunk/PeriodsInquiry.php trunk/Prices.php trunk/PricesBasedOnMarkUp.php trunk/PricesByCost.php trunk/Prices_Customer.php trunk/PrintCustOrder.php trunk/PrintCustOrder_generic.php trunk/PrintCustStatements.php trunk/PrintCustTrans.php trunk/PrintCustTransPortrait.php trunk/PurchData.php trunk/RecurringSalesOrders.php trunk/RecurringSalesOrdersProcess.php trunk/ReorderLevel.php trunk/ReorderLevelLocation.php trunk/ReprintGRN.php trunk/ReverseGRN.php trunk/SMTPServer.php trunk/SalesAnalReptCols.php trunk/SalesAnalRepts.php trunk/SalesAnalysis_UserDefined.php trunk/SalesByTypePeriodInquiry.php trunk/SalesCategories.php trunk/SalesCategoryPeriodInquiry.php trunk/SalesGLPostings.php trunk/SalesGraph.php trunk/SalesInquiry.php trunk/SalesPeople.php trunk/SalesTopItemsInquiry.php trunk/SalesTypes.php trunk/SecurityTokens.php trunk/SelectAsset.php trunk/SelectCompletedOrder.php trunk/SelectContract.php trunk/SelectCreditItems.php trunk/SelectCustomer.php trunk/SelectGLAccount.php trunk/SelectOrderItems.php trunk/SelectProduct.php trunk/SelectRecurringSalesOrder.php trunk/SelectSalesOrder.php trunk/SelectSupplier.php trunk/SelectWorkOrder.php trunk/ShipmentCosting.php trunk/Shipments.php trunk/Shippers.php trunk/Shipt_Select.php trunk/ShiptsList.php trunk/SpecialOrder.php trunk/StockAdjustments.php trunk/StockAdjustmentsControlled.php trunk/StockCategories.php trunk/StockCheck.php trunk/StockCostUpdate.php trunk/StockCounts.php trunk/StockDispatch.php trunk/StockLocMovements.php trunk/StockLocStatus.php trunk/StockLocTransfer.php trunk/StockLocTransferReceive.php trunk/StockMovements.php trunk/StockQties_csv.php trunk/StockQuantityByDate.php trunk/StockReorderLevel.php trunk/StockSerialItemResearch.php trunk/StockSerialItems.php trunk/StockStatus.php trunk/StockTransferControlled.php trunk/StockTransfers.php trunk/StockUsage.php trunk/StockUsageGraph.php trunk/Stocks.php trunk/SuppContractChgs.php trunk/SuppCreditGRNs.php trunk/SuppFixedAssetChgs.php trunk/SuppInvGRNs.php trunk/SuppLoginSetup.php trunk/SuppPaymentRun.php trunk/SuppPriceList.php trunk/SuppShiptChgs.php trunk/SuppTransGLAnalysis.php trunk/SupplierAllocations.php trunk/SupplierBalsAtPeriodEnd.php trunk/SupplierContacts.php trunk/SupplierCredit.php trunk/SupplierInquiry.php trunk/SupplierInvoice.php trunk/SupplierPriceList.php trunk/SupplierTenderCreate.php trunk/SupplierTenders.php trunk/SupplierTransInquiry.php trunk/SupplierTypes.php trunk/Suppliers.php trunk/SystemParameters.php trunk/Tax.php trunk/TaxAuthorities.php trunk/TaxAuthorityRates.php trunk/TaxCategories.php trunk/TaxGroups.php trunk/TaxProvinces.php trunk/TopItems.php trunk/UnitsOfMeasure.php trunk/UpgradeDatabase.php trunk/UserSettings.php trunk/WOSerialNos.php trunk/WWW_Access.php trunk/WWW_Users.php trunk/WhereUsedInquiry.php trunk/WorkCentres.php trunk/WorkOrderCosting.php trunk/WorkOrderEntry.php trunk/WorkOrderIssue.php trunk/WorkOrderReceive.php trunk/WorkOrderStatus.php trunk/Z_BottomUpCosts.php trunk/Z_ChangeBranchCode.php trunk/Z_ChangeCustomerCode.php trunk/Z_ChangeLocationCode.php trunk/Z_ChangeStockCategory.php trunk/Z_ChangeStockCode.php trunk/Z_ChangeSupplierCode.php trunk/Z_CheckAllocationsFrom.php trunk/Z_CheckAllocs.php trunk/Z_CheckDebtorsControl.php trunk/Z_CheckGLTransBalance.php trunk/Z_CreateChartDetails.php trunk/Z_CreateCompany.php trunk/Z_CreateCompanyTemplateFile.php trunk/Z_CurrencyDebtorsBalances.php trunk/Z_CurrencySuppliersBalances.php trunk/Z_DataExport.php trunk/Z_DeleteCreditNote.php trunk/Z_DeleteInvoice.php trunk/Z_DeleteOldPrices.php trunk/Z_DeleteSalesTransActions.php trunk/Z_DescribeTable.php trunk/Z_ImportChartOfAccounts.php trunk/Z_ImportFixedAssets.php trunk/Z_ImportGLAccountGroups.php trunk/Z_ImportGLAccountSections.php trunk/Z_ImportPartCodes.php trunk/Z_ImportStocks.php trunk/Z_ItemsWithoutPicture.php trunk/Z_MakeNewCompany.php trunk/Z_MakeStockLocns.php trunk/Z_ReApplyCostToSA.php trunk/Z_RePostGLFromPeriod.php trunk/Z_ReverseSuppPaymentRun.php trunk/Z_SalesIntegrityCheck.php trunk/Z_UpdateChartDetailsBFwd.php trunk/Z_Upgrade3.10.php trunk/Z_Upgrade_3.01-3.02.php trunk/Z_Upgrade_3.04-3.05.php trunk/Z_Upgrade_3.05-3.06.php trunk/Z_Upgrade_3.07-3.08.php trunk/Z_Upgrade_3.08-3.09.php trunk/Z_Upgrade_3.09-3.10.php trunk/Z_Upgrade_3.10-3.11.php trunk/Z_Upgrade_3.11-4.00.php trunk/Z_UploadForm.php trunk/Z_UploadResult.php trunk/Z_poAddLanguage.php trunk/Z_poAdmin.php trunk/Z_poEditLangHeader.php trunk/Z_poEditLangModule.php trunk/Z_poEditLangRemaining.php trunk/Z_poRebuildDefault.php trunk/config.distrib.php trunk/doc/Manual/ManualAPIFunctions.php trunk/geo_displaymap_customers.php trunk/geo_displaymap_suppliers.php trunk/geocode.php trunk/geocode_genxml_customers.php trunk/geocode_genxml_suppliers.php trunk/includes/Add_SerialItems.php trunk/includes/ConstructSQLForUserDefinedSalesReport.inc trunk/includes/DefineLabelClass.php trunk/includes/InputSerialItemsFile.php trunk/includes/PDFPaymentRun_PymtFooter.php trunk/includes/PDFSalesAnalysis.inc trunk/includes/footer.inc trunk/includes/header.inc trunk/includes/phplot/phplot.php trunk/includes/session.inc trunk/includes/tcpdf/tcpdf.php trunk/index.php trunk/install/save.php trunk/reportwriter/FormMaker.php trunk/reportwriter/ReportMaker.php trunk/reportwriter/admin/ReportCreator.php trunk/reportwriter/install/ReportListForm.php trunk/reportwriter/install/ReportListLinks.php Modified: trunk/AccountGroups.php =================================================================== --- trunk/AccountGroups.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/AccountGroups.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -4,7 +4,7 @@ include('includes/session.inc'); -$title = _('Account Groups'); +$Title = _('Account Groups'); $ViewTopic= 'GeneralLedger'; $BookMark = 'AccountGroups'; @@ -259,7 +259,7 @@ $DbgMsg = _('The sql that was used to retrieve the account group information was '); $ErrMsg = _('Could not get account groups because'); $result = DB_query($sql,$db,$ErrMsg,$DbgMsg); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'<br /></p>'; + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $Title.'<br /></p>'; echo '<table class="selection"> <tr> Modified: trunk/AccountSections.php =================================================================== --- trunk/AccountSections.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/AccountSections.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -4,7 +4,7 @@ include('includes/session.inc'); -$title = _('Account Sections'); +$Title = _('Account Sections'); include('includes/header.inc'); @@ -166,7 +166,7 @@ $ErrMsg = _('Could not get account group sections because'); $result = DB_query($sql,$db,$ErrMsg); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'<br /></p>'; + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $Title.'<br /></p>'; echo '<table class="selection"> <tr> Modified: trunk/AddCustomerContacts.php =================================================================== --- trunk/AddCustomerContacts.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/AddCustomerContacts.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -3,7 +3,7 @@ /* $Id$*/ include('includes/session.inc'); -$title = _('Customer Contacts'); +$Title = _('Customer Contacts'); include('includes/header.inc'); include('includes/SQL_CommonFunctions.inc'); @@ -17,14 +17,14 @@ } elseif (isset($_GET['DebtorNo'])){ $DebtorNo = $_GET['DebtorNo']; } -echo '<a href="' . $rootpath . '/Customers.php?DebtorNo=' . $DebtorNo . '">' . _('Back to Customers') . '</a><br />'; +echo '<a href="' . $RootPath . '/Customers.php?DebtorNo=' . $DebtorNo . '">' . _('Back to Customers') . '</a><br />'; $SQLname="SELECT name FROM debtorsmaster WHERE debtorno='" . $DebtorNo . "'"; $Result = DB_query($SQLname,$db); $row = DB_fetch_array($Result); if (!isset($_GET['Id'])) { - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . _('Contacts for Customer') . ': <b>' . htmlspecialchars($row['name'], ENT_QUOTES, 'UTF-8') . '</b></p><br />'; + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . _('Contacts for Customer') . ': <b>' . htmlspecialchars($row['name'], ENT_QUOTES, 'UTF-8') . '</b></p><br />'; } else { - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . _('Edit contact for'). ': <b>' . htmlspecialchars($row['name'], ENT_QUOTES, 'UTF-8') . '</b></p><br />'; + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . _('Edit contact for'). ': <b>' . htmlspecialchars($row['name'], ENT_QUOTES, 'UTF-8') . '</b></p><br />'; } if ( isset($_POST['submit']) ) { Modified: trunk/AddCustomerNotes.php =================================================================== --- trunk/AddCustomerNotes.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/AddCustomerNotes.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -3,7 +3,7 @@ /* $Id$*/ include('includes/session.inc'); -$title = _('Customer Notes'); +$Title = _('Customer Notes'); include('includes/header.inc'); include('includes/SQL_CommonFunctions.inc'); @@ -18,7 +18,7 @@ $DebtorNo = $_GET['DebtorNo']; } -echo '<a href="' . $rootpath . '/SelectCustomer.php?DebtorNo=' . $DebtorNo . '">' . _('Back to Select Customer') . '</a> +echo '<a href="' . $RootPath . '/SelectCustomer.php?DebtorNo=' . $DebtorNo . '">' . _('Back to Select Customer') . '</a> <br />'; if ( isset($_POST['submit']) ) { @@ -98,7 +98,7 @@ WHERE debtorno='".$DebtorNo."'"; $Result = DB_query($SQLname,$db); $row = DB_fetch_array($Result); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . _('Notes for Customer').': <b>' .$row['name'].'</b></p> + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . _('Notes for Customer').': <b>' .$row['name'].'</b></p> <br />'; $sql = "SELECT noteid, Modified: trunk/AddCustomerTypeNotes.php =================================================================== --- trunk/AddCustomerTypeNotes.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/AddCustomerTypeNotes.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -2,7 +2,7 @@ /* $Id$*/ include('includes/session.inc'); -$title = _('Customer Type (Group) Notes'); +$Title = _('Customer Type (Group) Notes'); include('includes/header.inc'); include('includes/SQL_CommonFunctions.inc'); @@ -16,7 +16,7 @@ } elseif (isset($_GET['DebtorType'])){ $DebtorType = $_GET['DebtorType']; } -echo '<a href="' . $rootpath . '/SelectCustomer.php?DebtorType='.$DebtorType.'">' . _('Back to Select Customer') . '</a><br />'; +echo '<a href="' . $RootPath . '/SelectCustomer.php?DebtorType='.$DebtorType.'">' . _('Back to Select Customer') . '</a><br />'; if (isset($_POST['submit']) ) { @@ -91,7 +91,7 @@ $SQLname="SELECT typename from debtortype where typeid='".$DebtorType."'"; $result = DB_query($SQLname,$db); $myrow = DB_fetch_array($result); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/customer.png" title="' . _('Search') . '" alt="" />' . _('Notes for Customer Type').': <b>' .$myrow['typename'].'</b></p> + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/customer.png" title="' . _('Search') . '" alt="" />' . _('Notes for Customer Type').': <b>' .$myrow['typename'].'</b></p> <br />'; $sql = "SELECT noteid, Modified: trunk/AgedDebtors.php =================================================================== --- trunk/AgedDebtors.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/AgedDebtors.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -261,10 +261,10 @@ $CustomerResult = DB_query($SQL,$db,'','',False,False); /*dont trap errors handled below*/ if (DB_error_no($db) !=0) { - $title = _('Aged Customer Account Analysis') . ' - ' . _('Problem Report') . '.... '; + $Title = _('Aged Customer Account Analysis') . ' - ' . _('Problem Report') . '.... '; include('includes/header.inc'); prnMsg(_('The customer details could not be retrieved by the SQL because') . ' ' . DB_error_msg($db),'error'); - echo '<br /><a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; + echo '<br /><a href="' . $RootPath . '/index.php">' . _('Back to the menu') . '</a>'; if ($debug==1){ echo '<br />' . $SQL; } @@ -360,10 +360,10 @@ $DetailResult = DB_query($sql,$db,'','',False,False); /*Dont trap errors */ if (DB_error_no($db) !=0) { - $title = _('Aged Customer Account Analysis') . ' - ' . _('Problem Report') . '....'; + $Title = _('Aged Customer Account Analysis') . ' - ' . _('Problem Report') . '....'; include('includes/header.inc'); prnMsg(_('The details of outstanding transactions for customer') . ' - ' . $AgedAnalysis['debtorno'] . ' ' . _('could not be retrieved because') . ' - ' . DB_error_msg($db),'error'); - echo '<br /><a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; + echo '<br /><a href="' . $RootPath . '/index.php">' . _('Back to the menu') . '</a>'; if ($debug==1){ echo '<br />' . _('The SQL that failed was') . '<br />' . $sql; } @@ -425,10 +425,10 @@ $LeftOvers = $pdf->addTextWrap(460,$YPos,60,$FontSize,$DisplayTotOverdue2,'right'); if ($ListCount == 0) { - $title = _('Aged Customer Account Analysis') . ' - ' . _('Problem Report') . '....'; + $Title = _('Aged Customer Account Analysis') . ' - ' . _('Problem Report') . '....'; include('includes/header.inc'); prnMsg(_('There are no customers with balances meeting the criteria specified to list'),'info'); - echo '<br /><a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; + echo '<br /><a href="' . $RootPath . '/index.php">' . _('Back to the menu') . '</a>'; include('includes/footer.inc'); exit; } else { @@ -438,10 +438,10 @@ } else { /*The option to print PDF was not hit */ - $title=_('Aged Debtor Analysis'); + $Title=_('Aged Debtor Analysis'); include('includes/header.inc'); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . $Title.'</p><br />'; if ((!isset($_POST['FromCriteria']) or !isset($_POST['ToCriteria']))) { Modified: trunk/AgedSuppliers.php =================================================================== --- trunk/AgedSuppliers.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/AgedSuppliers.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -105,10 +105,10 @@ $SupplierResult = DB_query($SQL,$db,'','',False,False); /*dont trap errors */ if (DB_error_no($db) !=0) { - $title = _('Aged Supplier Account Analysis') . ' - ' . _('Problem Report') ; + $Title = _('Aged Supplier Account Analysis') . ' - ' . _('Problem Report') ; include('includes/header.inc'); prnMsg(_('The Supplier details could not be retrieved by the SQL because') . ' ' . DB_error_msg($db),'error'); - echo '<br /><a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; + echo '<br /><a href="' . $RootPath . '/index.php">' . _('Back to the menu') . '</a>'; if ($debug==1){ echo '<br />' . $SQL; } @@ -192,10 +192,10 @@ $DetailResult = DB_query($sql,$db,'','',False,False); /*dont trap errors - trapped below*/ if (DB_error_no($db) !=0) { - $title = _('Aged Supplier Account Analysis - Problem Report'); + $Title = _('Aged Supplier Account Analysis - Problem Report'); include('includes/header.inc'); prnMsg(_('The details of outstanding transactions for Supplier') . ' - ' . $AgedAnalysis['supplierid'] . ' ' . _('could not be retrieved because') . ' - ' . DB_error_msg($db),'error'); - echo '<br /><a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; + echo '<br /><a href="' . $RootPath . '/index.php">' . _('Back to the menu') . '</a>'; if ($debug==1){ echo '<br />' . _('The SQL that failed was') . '<br />' . $sql; } @@ -260,7 +260,7 @@ $pdf->line($Page_Width-$Right_Margin, $YPos ,220, $YPos); if ($ListCount == 0) { - $title = _('Aged Supplier Analysis'); + $Title = _('Aged Supplier Analysis'); include('includes/header.inc'); prnMsg(_('There are no results so the PDF is empty')); include('includes/footer.inc'); @@ -270,10 +270,10 @@ $pdf->__destruct(); } else { /*The option to print PDF was not hit */ - $title = _('Aged Supplier Analysis'); + $Title = _('Aged Supplier Analysis'); include('includes/header.inc'); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . $Title.'</p><br />'; if (!isset($_POST['FromCriteria']) or !isset($_POST['ToCriteria'])) { Modified: trunk/Areas.php =================================================================== --- trunk/Areas.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/Areas.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -4,7 +4,7 @@ include('includes/session.inc'); -$title = _('Sales Area Maintenance'); +$Title = _('Sales Area Maintenance'); $ViewTopic= 'CreatingNewSystem'; $BookMark = 'Areas'; include('includes/header.inc'); @@ -141,7 +141,7 @@ FROM areas"; $result = DB_query($sql,$db); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $Title.'</p><br />'; echo '<table class="selection"> <tr> Modified: trunk/AuditTrail.php =================================================================== --- trunk/AuditTrail.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/AuditTrail.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -4,11 +4,11 @@ include('includes/session.inc'); -$title = _('Audit Trail'); +$Title = _('Audit Trail'); include('includes/header.inc'); -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p>'; +echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $Title.'</p>'; if (!isset($_POST['FromDate'])){ $_POST['FromDate'] = Date($_SESSION['DefaultDateFormat'],mktime(0,0,0, Date('m')-$_SESSION['MonthsAuditTrail'])); Modified: trunk/BOMExtendedQty.php =================================================================== --- trunk/BOMExtendedQty.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/BOMExtendedQty.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -151,10 +151,10 @@ } // End of while $ComponentCounter > 0 if (DB_error_no($db) !=0) { - $title = _('Quantity Extended BOM Listing') . ' - ' . _('Problem Report'); + $Title = _('Quantity Extended BOM Listing') . ' - ' . _('Problem Report'); include('includes/header.inc'); prnMsg( _('The Quantiy Extended BOM Listing could not be retrieved by the SQL because') . ' ' . DB_error_msg($db),'error'); - echo '<br /><a href="' .$rootpath .'/index.php">' . _('Back to the menu') . '</a>'; + echo '<br /><a href="' .$RootPath .'/index.php">' . _('Back to the menu') . '</a>'; if ($debug==1){ echo '<br />' . $sql; } @@ -232,10 +232,10 @@ PrintHeader($pdf,$YPos,$PageNumber,$Page_Height,$Top_Margin,$Left_Margin,$Page_Width,$Right_Margin); } if ($ListCount == 0) { - $title = _('Print Indented BOM Listing Error'); + $Title = _('Print Indented BOM Listing Error'); include('includes/header.inc'); prnMsg(_('There were no items for the selected assembly'),'error'); - echo '<br /><a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; + echo '<br /><a href="' . $RootPath . '/index.php">' . _('Back to the menu') . '</a>'; include('includes/footer.inc'); exit; } else { @@ -245,9 +245,9 @@ } else { /*The option to print PDF was not hit so display form */ - $title=_('Quantity Extended BOM Listing'); + $Title=_('Quantity Extended BOM Listing'); include('includes/header.inc'); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $Title.'</p><br />'; echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post"> <div> Modified: trunk/BOMIndented.php =================================================================== --- trunk/BOMIndented.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/BOMIndented.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -147,10 +147,10 @@ } // End of if $_POST['Levels'] if (DB_error_no($db) !=0) { - $title = _('Indented BOM Listing') . ' - ' . _('Problem Report'); + $Title = _('Indented BOM Listing') . ' - ' . _('Problem Report'); include('includes/header.inc'); prnMsg( _('The Indented BOM Listing could not be retrieved by the SQL because') . ' ' . DB_error_msg($db),'error'); - echo '<br /><a href="' .$rootpath .'/index.php">' . _('Back to the menu') . '</a>'; + echo '<br /><a href="' .$RootPath .'/index.php">' . _('Back to the menu') . '</a>'; if ($debug==1){ echo '<br />' . $sql; } @@ -228,10 +228,10 @@ } if ($ListCount == 0) { - $title = _('Print Indented BOM Listing Error'); + $Title = _('Print Indented BOM Listing Error'); include('includes/header.inc'); prnMsg(_('There were no items for the selected assembly'),'error'); - echo '<br /><a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; + echo '<br /><a href="' . $RootPath . '/index.php">' . _('Back to the menu') . '</a>'; include('includes/footer.inc'); exit; } else { @@ -241,9 +241,9 @@ } else { /*The option to print PDF was not hit so display form */ - $title=_('Indented BOM Listing'); + $Title=_('Indented BOM Listing'); include('includes/header.inc'); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $Title.'</p><br />'; echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post"> <div> Modified: trunk/BOMIndentedReverse.php =================================================================== --- trunk/BOMIndentedReverse.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/BOMIndentedReverse.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -137,11 +137,11 @@ } // End of while $ComponentCounter > 0 if (DB_error_no($db) !=0) { - $title = _('Indented BOM Listing') . ' - ' . _('Problem Report'); + $Title = _('Indented BOM Listing') . ' - ' . _('Problem Report'); include('includes/header.inc'); prnMsg( _('The Indented BOM Listing could not be retrieved by the SQL because') . ' ' . DB_error_msg($db),'error'); echo '<br /> - <a href="' .$rootpath .'/index.php">' . _('Back to the menu') . '</a>'; + <a href="' .$RootPath .'/index.php">' . _('Back to the menu') . '</a>'; if ($debug==1){ echo '<br />' . $sql; } @@ -215,10 +215,10 @@ $Right_Margin,$AssemblyDesc); } if ($ListCount == 0) { - $title = _('Print Reverse Indented BOM Listing Error'); + $Title = _('Print Reverse Indented BOM Listing Error'); include('includes/header.inc'); prnMsg(_('There were no items for the selected component'),'error'); - echo '<br /><a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>'; + echo '<br /><a href="' . $RootPath . '/index.php">' . _('Back to the menu') . '</a>'; include('includes/footer.inc'); exit; } else { @@ -228,11 +228,11 @@ } else { /*The option to print PDF was not hit so display form */ - $title=_('Reverse Indented BOM Listing'); + $Title=_('Reverse Indented BOM Listing'); include('includes/header.inc'); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . - _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/maintenance.png" title="' . + _('Search') . '" alt="" />' . ' ' . $Title.'</p><br />'; echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post"> <div> <input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" /> Modified: trunk/BOMInquiry.php =================================================================== --- trunk/BOMInquiry.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/BOMInquiry.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -3,7 +3,7 @@ /* $Id$*/ include('includes/session.inc'); -$title = _('Costed Bill Of Material'); +$Title = _('Costed Bill Of Material'); include('includes/header.inc'); if (isset($_GET['StockID'])){ @@ -182,9 +182,9 @@ if (DB_num_rows($BOMResult)==0){ prnMsg(_('The bill of material for this part is not set up') . ' - ' . _('there are no components defined for it'),'warn'); } else { - echo '<a href="'.$rootpath.'/index.php">'._('Return to Main Menu').'</a>'; + echo '<a href="'.$RootPath.'/index.php">'._('Return to Main Menu').'</a>'; echo '<p class="page_title_text"> - <img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.' + <img src="'.$RootPath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $Title.' </p> <br />'; @@ -218,7 +218,7 @@ $k++; } - $ComponentLink = '<a href="' . $rootpath . '/SelectProduct.php?StockID=' . $myrow['component'] . '">' . $myrow['component'] . '</a>'; + $ComponentLink = '<a href="' . $RootPath . '/SelectProduct.php?StockID=' . $myrow['component'] . '">' . $myrow['component'] . '</a>'; /* Component Code Description Quantity Std Cost Total Cost */ printf('<td>%s</td> Modified: trunk/BOMListing.php =================================================================== --- trunk/BOMListing.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/BOMListing.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -38,10 +38,10 @@ $BOMResult = DB_query($SQL,$db,'','',false,false); //dont do error trapping inside DB_query if (DB_error_no($db) !=0) { - $title = _('Bill of Materials Listing') . ' - ' . _('Problem Report'); + $Title = _('Bill of Materials Listing') . ' - ' . _('Problem Report'); include('includes/header.inc'); prnMsg(_('The Bill of Material listing could not be retrieved by the SQL because'),'error'); - echo '<br /><a href="' .$rootpath .'/index.php">' . _('Back to the menu') . '</a>'; + echo '<br /><a href="' .$RootPath .'/index.php">' . _('Back to the menu') . '</a>'; if ($debug==1){ echo '<br />' . $SQL; } @@ -49,7 +49,7 @@ exit; } if (DB_num_rows($BOMResult)==0){ - $title = _('Bill of Materials Listing') . ' - ' . _('Problem Report'); + $Title = _('Bill of Materials Listing') . ' - ' . _('Problem Report'); include('includes/header.inc'); prnMsg( _('The Bill of Material listing has no bills to report on'),'warn'); include('includes/footer.inc'); @@ -104,10 +104,10 @@ } else { /*The option to print PDF was not hit */ - $title=_('Bill Of Material Listing'); + $Title=_('Bill Of Material Listing'); include('includes/header.inc'); - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/reports.png" title="' . _('Search') . - '" alt="" />' . ' ' . $title . '</p><br />'; + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/reports.png" title="' . _('Search') . + '" alt="" />' . ' ' . $Title . '</p><br />'; if (!isset($_POST['FromCriteria']) || !isset($_POST['ToCriteria'])) { /*if $FromCriteria is not set then show a form to allow input */ Modified: trunk/BOMs.php =================================================================== --- trunk/BOMs.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/BOMs.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -4,7 +4,7 @@ include('includes/session.inc'); -$title = _('Multi-Level Bill Of Materials Maintenance'); +$Title = _('Multi-Level Bill Of Materials Maintenance'); include('includes/header.inc'); include('includes/SQL_CommonFunctions.inc'); @@ -228,8 +228,8 @@ if (isset($Select)) { //Parent Stock Item selected so display BOM or edit Component $SelectedParent = $Select; unset($Select);// = NULL; - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . - '" alt="" />' . ' ' . $title.'</p><br />'; + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . + '" alt="" />' . ' ' . $Title.'</p><br />'; if (isset($SelectedParent) AND isset($_POST['Submit'])) { @@ -711,7 +711,7 @@ if (DB_num_rows($result)==0){ prnMsg( _('There are no work centres set up yet') . '. ' . _('Please use the link below to set up work centres') . '.','warn'); - echo '<a href="' . $rootpath . '/WorkCentres.php">' . _('Work Centre Maintenance') . '</a></td></tr></table><br />'; + echo '<a href="' . $RootPath . '/WorkCentres.php">' . _('Work Centre Maintenance') . '</a></td></tr></table><br />'; include('includes/footer.inc'); exit; } @@ -855,7 +855,7 @@ if (!isset($SelectedParent)) { - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . $title . '</p>'; + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . $Title . '</p>'; echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '" method="post">' . '<div class="page_help_text">'. _('Select a manufactured part') . ' (' . _('or Assembly or Kit part') . ') ' . _('to maintain the bill of material for using the options below') . '<br />' . _('Parts must be defined in the stock item entry') . '/' . _('modification screen as manufactured') . ', ' . _('kits or assemblies to be available for construction of a bill of material') .'</div>'. ' <div> Modified: trunk/BackupDatabase.php =================================================================== --- trunk/BackupDatabase.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/BackupDatabase.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -4,7 +4,7 @@ $PageSecurity = 15; //hard coded in case database is old and PageSecurity stuff cannot be retrieved include('includes/session.inc'); -$title = _('Backup webERP Database'); +$Title = _('Backup webERP Database'); include('includes/header.inc'); if (isset($_GET['BackupFile'])){ @@ -31,7 +31,7 @@ } } else { - $BackupFile = $rootpath . '/companies/' . $_SESSION['DatabaseName'] .'/' . _('Backup') . '_' . Date('Y-m-d-H-i-s') . '.sql.gz'; + $BackupFile = $RootPath . '/companies/' . $_SESSION['DatabaseName'] .'/' . _('Backup') . '_' . Date('Y-m-d-H-i-s') . '.sql.gz'; $Command = 'mysqldump --opt -h' . $host . ' -u' . $dbuser . ' -p' . $dbpassword . ' ' . $_SESSION['DatabaseName'] . '| gzip > ' . $_SERVER['DOCUMENT_ROOT'] . $BackupFile; Modified: trunk/BankAccounts.php =================================================================== --- trunk/BankAccounts.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/BankAccounts.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -4,12 +4,12 @@ include('includes/session.inc'); -$title = _('Bank Accounts Maintenance'); +$Title = _('Bank Accounts Maintenance'); $ViewTopic= 'GeneralLedger'; $BookMark = 'BankAccounts'; include('includes/header.inc'); -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Bank') . '" alt="" />' . ' ' . $title . '</p>'; +echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/money_add.png" title="' . _('Bank') . '" alt="" />' . ' ' . $Title . '</p>'; echo '<div class="page_help_text">' . _('Update Bank Account details. Account Code is for SWIFT or BSB type Bank Codes. Set Default for Invoices to Currency Default or Fallback Default to print Account details on Invoices (only one account should be set to Fall Back Default).') . '.</div><br />'; if (isset($_GET['SelectedBankAccount'])) { Modified: trunk/BankMatching.php =================================================================== --- trunk/BankMatching.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/BankMatching.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -3,7 +3,7 @@ /* $Id$*/ include('includes/session.inc'); -$title = _('Bank Account Matching'); +$Title = _('Bank Account Matching'); include('includes/header.inc'); if ((isset($_GET['Type']) AND $_GET['Type']=='Receipts') @@ -12,7 +12,7 @@ $Type = 'Receipts'; $TypeName =_('Receipts'); echo '<p class="page_title_text"> - <img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Bank Matching') . '" alt="" />' . ' ' . _('Bank Account Matching - Receipts') . ' + <img src="'.$RootPath.'/css/'.$theme.'/images/money_add.png" title="' . _('Bank Matching') . '" alt="" />' . ' ' . _('Bank Account Matching - Receipts') . ' </p>'; } elseif ((isset($_GET['Type']) AND $_GET['Type']=='Payments') @@ -21,7 +21,7 @@ $Type = 'Payments'; $TypeName =_('Payments'); echo '<p class="page_title_text"> - <img src="'.$rootpath.'/css/'.$theme.'/images/money_delete.png" title="' . _('Bank Matching') . '" alt="" />' . ' ' . _('Bank Account Matching - Payments') . ' + <img src="'.$RootPath.'/css/'.$theme.'/images/money_delete.png" title="' . _('Bank Matching') . '" alt="" />' . ' ' . _('Bank Account Matching - Payments') . ' </p>'; } else { @@ -161,7 +161,7 @@ <div class="centre"> <input tabindex="6" type="submit" name="ShowTransactions" value="' . _('Show selected') . ' ' . $TypeName . '" /> <p> - <a href="' . $rootpath . '/BankReconciliation.php?Account=' . $_POST['BankAccount'] . '">' . _('Show reconciliation') . '</a> + <a href="' . $RootPath . '/BankReconciliation.php?Account=' . $_POST['BankAccount'] . '">' . _('Show reconciliation') . '</a> </p> </div>'; Modified: trunk/BankReconciliation.php =================================================================== --- trunk/BankReconciliation.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/BankReconciliation.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -4,14 +4,14 @@ include ('includes/session.inc'); -$title = _('Bank Reconciliation'); +$Title = _('Bank Reconciliation'); include('includes/header.inc'); echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<div>'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; +echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/money_add.png" title="' . _('Search') . '" alt="" />' . ' ' . $Title.'</p><br />'; if (isset($_GET['Account'])) { $_POST['BankAccount']=$_GET['Account']; @@ -109,7 +109,7 @@ echo '</select></td> </tr> </table> - <p>' . _('Bank Accounts have not yet been defined') . '. ' . _('You must first') . '<a href="' . $rootpath . '/BankAccounts.php">' . _('define the bank accounts') . '</a>' . ' ' . _('and general ledger accounts to be affected') . '.'; + <p>' . _('Bank Accounts have not yet been defined') . '. ' . _('You must first') . '<a href="' . $RootPath . '/BankAccounts.php">' . _('define the bank accounts') . '</a>' . ' ' . _('and general ledger accounts to be affected') . '.'; include('includes/footer.inc'); exit; } else { @@ -378,18 +378,18 @@ if (isset($_POST['BankAccount'])) { echo '<div class="centre"> <p> - <a tabindex="4" href="' . $rootpath . '/BankMatching.php?Type=Payments&Account='.$_POST['BankAccount'].'">' . _('Match off cleared payments') . '</a> + <a tabindex="4" href="' . $RootPath . '/BankMatching.php?Type=Payments&Account='.$_POST['BankAccount'].'">' . _('Match off cleared payments') . '</a> </p> <br /> - <a tabindex="5" href="' . $rootpath . '/BankMatching.php?Type=Receipts&Account='.$_POST['BankAccount'].'">' . _('Match off cleared deposits') . '</a> + <a tabindex="5" href="' . $RootPath . '/BankMatching.php?Type=Receipts&Account='.$_POST['BankAccount'].'">' . _('Match off cleared deposits') . '</a> </div>'; } else { echo '<div class="centre"> <p> - <a tabindex="4" href="' . $rootpath . '/BankMatching.php?Type=Payments">' . _('Match off cleared payments') . '</a> + <a tabindex="4" href="' . $RootPath . '/BankMatching.php?Type=Payments">' . _('Match off cleared payments') . '</a> </p> <br /> - <a tabindex="5" href="' . $rootpath . '/BankMatching.php?Type=Receipts">' . _('Match off cleared deposits') . '</a> + <a tabindex="5" href="' . $RootPath . '/BankMatching.php?Type=Receipts">' . _('Match off cleared deposits') . '</a> </div>'; } echo '</div>'; Modified: trunk/COGSGLPostings.php =================================================================== --- trunk/COGSGLPostings.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/COGSGLPostings.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -4,7 +4,7 @@ include('includes/session.inc'); -$title = _('Cost Of Sales GL Postings Set Up'); +$Title = _('Cost Of Sales GL Postings Set Up'); $ViewTopic= 'CreatingNewSystem'; $BookMark = 'SalesGLPostings'; include('includes/header.inc'); @@ -16,7 +16,7 @@ $SelectedCOGSPostingID=$_GET['SelectedCOGSPostingID']; } -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $title.'</p><br />'; +echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . '" alt="" />' . ' ' . $Title.'</p><br />'; if (isset($_POST['submit'])) { Modified: trunk/CompanyPreferences.php =================================================================== --- trunk/CompanyPreferences.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/CompanyPreferences.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -4,7 +4,7 @@ include('includes/session.inc'); -$title = _('Company Preferences'); +$Title = _('Company Preferences'); /* webERP manual links before header.inc */ $ViewTopic= "CreatingNewSystem"; $BookMark = "CompanyParameters"; @@ -152,8 +152,8 @@ } /* end of if submit */ - echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . - '" alt="" />' . ' ' . $title.'</p>'; + echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . + '" alt="" />' . ' ' . $Title.'</p>'; echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; echo '<div>'; Modified: trunk/ConfirmDispatchControlled_Invoice.php =================================================================== --- trunk/ConfirmDispatchControlled_Invoice.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/ConfirmDispatchControlled_Invoice.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -5,7 +5,7 @@ include('includes/DefineCartClass.php'); include('includes/DefineSerialItems.php'); include('includes/session.inc'); -$title = _('Specify Dispatched Controlled Items'); +$Title = _('Specify Dispatched Controlled Items'); /* Session started in header.inc for password checking and authorisation level check */ include('includes/header.inc'); @@ -24,7 +24,7 @@ $LineNo = (int)$_POST['LineNo']; } else { echo '<div class="centre"> - <a href="' . $rootpath . '/ConfirmDispatch_Invoice.php">'. _('Select a line item to invoice').'</a> + <a href="' . $RootPath . '/ConfirmDispatch_Invoice.php">'. _('Select a line item to invoice').'</a> <br /> <br />'; prnMsg( _('This page can only be opened if a line item on a sales order to be invoiced has been selected') . '. ' . _('Please do that first'),'error'); @@ -36,7 +36,7 @@ if (!isset($_SESSION['Items'.$identifier]) OR !isset($_SESSION['ProcessingOrder'])) { /* This page can only be called with a sales order number to invoice */ echo '<div class="centre"> - <a href="' . $rootpath . '/SelectSalesOrder.php">'. _('Select a sales order to invoice') . '</a> + <a href="' . $RootPath . '/SelectSalesOrder.php">'. _('Select a sales order to invoice') . '</a> <br />'; prnMsg( _('This page can only be opened if a sales order and line item has been selected Please do that first'),'error'); echo '</div>'; @@ -51,7 +51,7 @@ //Make sure this item is really controlled if ( $LineItem->Controlled != 1 ){ - echo '<div class="centre"><a href="' . $rootpath . '/ConfirmDispatch_Invoice.php">'. _('Back to the Sales Order'). '</a></div>'; + echo '<div class="centre"><a href="' . $RootPath . '/ConfirmDispatch_Invoice.php">'. _('Back to the Sales Order'). '</a></div>'; echo '<br />'; prnMsg( _('The line item must be defined as controlled to require input of the batch numbers or serial numbers being sold'),'error'); include('includes/footer.inc'); @@ -63,7 +63,7 @@ ********************************************/ echo '<div class="centre">'; -echo '<br /><a href="'. $rootpath. '/ConfirmDispatch_Invoice.php?identifier=' . $identifier . '">'. _('Back to Confirmation of Dispatch') . '/' . _('Invoice'). '</a>'; +echo '<br /><a href="'. $RootPath. '/ConfirmDispatch_Invoice.php?identifier=' . $identifier . '">'. _('Back to Confirmation of Dispatch') . '/' . _('Invoice'). '</a>'; echo '<br /><b>'. _('Dispatch of up to').' '. locale_number_format($LineItem->Quantity-$LineItem->QtyInv, $LineItem->DecimalPlaces). ' '. _('Controlled items').' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription . ' '. _('on order').' ' . $_SESSION['Items'.$identifier]->OrderNo . ' '. _('to'). ' ' . $_SESSION['Items'.$identifier]->CustomerName . '</b></div>'; Modified: trunk/ConfirmDispatch_Invoice.php =================================================================== --- trunk/ConfirmDispatch_Invoice.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/ConfirmDispatch_Invoice.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -6,7 +6,7 @@ include('includes/DefineCartClass.php'); include('includes/DefineSerialItems.php'); include('includes/session.inc'); -$title = _('Confirm Dispatches and Invoice An Order'); +$Title = _('Confirm Dispatches and Invoice An Order'); include('includes/header.inc'); include('includes/SQL_CommonFunctions.inc'); @@ -24,7 +24,7 @@ if (!isset($_GET['OrderNumber']) AND !isset($_SESSION['ProcessingOrder'])) { /* This page can only be called with an order number for invoicing*/ echo '<div class="centre"> - <a href="' . $rootpath . '/SelectSalesOrder.php">' . _('Select a sales order to invoice'). '</a> + <a href="' . $RootPath . '/SelectSalesOrder.php">' . _('Select a sales order to invoice'). '</a> </div> <br /> <br />'; @@ -258,11 +258,11 @@ if ($_SESSION['Items'.$identifier]->SpecialInstructions) { prnMsg($_SESSION['Items'.$identifier]->SpecialInstructions,'warn'); } -echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/inventory.png" title="' . _('Confirm Invoice') . +echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$theme.'/images/inventory.png" title="' . _('Confirm Invoice') . '" alt="" />' . ' ' . _('Confirm Dispatch and Invoice'). '</p>'; echo '<table class="selection"> <tr> - <th><img src="'.$rootpath.'/css/'.$theme.'/images/customer.png" title="' . _('Customer') . '" alt="" />' . ' ' . _('Customer Code') . ' :<b> ' . $_SESSION['Items'.$identifier]->DebtorNo.'</b></th> + <th><img src="'.$RootPath.'/css/'.$theme.'/images/customer.png" title="' . _('Customer') . '" alt="" />' . ' ' . _('Customer Code') . ' :<b> ' . $_SESSION['Items'.$identifier]->DebtorNo.'</b></th> <th>' . _('Customer Name') . ' :<b> ' . $_SESSION['Items'.$identifier]->CustomerName. '</b></th> </tr> <tr> @@ -334,7 +334,7 @@ if (isset($_POST['ProcessInvoice'])) { echo '<td class="number">' . locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</td>'; } else { - echo '<td class="number"><input type="hidden" name="' . $LnItm->LineNumber . '_QtyDispatched" value="' . $LnItm->QtyDispatched . '" /><a href="' . $rootpath .'/ConfirmDispatchControlled_Invoice.php?identifier=' . $identifier . '&LineNo='. $LnItm->LineNumber.'">' .locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</a></td>'; + echo '<td class="number"><input type="hidden" name="' . $LnItm->LineNumber . '_QtyDispatched" value="' . $LnItm->QtyDispatched . '" /><a href="' . $RootPath .'/ConfirmDispatchControlled_Invoice.php?identifier=' . $identifier . '&LineNo='. $LnItm->LineNumber.'">' .locale_number_format($LnItm->QtyDispatched,$LnItm->DecimalPlaces) . '</a></td>'; } } else { if (isset($_POST['ProcessInvoice'])) { @@ -402,7 +402,7 @@ if ($LnItm->Controlled==1){ if (!isset($_POST['ProcessInvoice'])) { - echo '<td><a href="' . $rootpath . '/ConfirmDispatchControlled_Invoice.php?identifier=' . $identifier . '&LineNo='. $LnItm->LineNumber.'">'; + echo '<td><a href="' . $RootPath . '/ConfirmDispatchControlled_Invoice.php?identifier=' . $identifier . '&LineNo='. $LnItm->LineNumber.'">'; if ($LnItm->Serialised==1){ echo _('Enter Serial Numbers'); } else { /*Just batch/roll/lot control */ @@ -454,7 +454,7 @@ $BestShipper = $ShipperReturned[0]; } else { prnMsg( _('There are no shippers defined') . '. ' . _('Please use the link below to set up shipping freight companies, the system expects the shipping company to be selected or a default freight company to be used'),'error'); - echo '<a href="' . $rootpath . 'Shippers.php">'. _('Enter') . '/' . _('Amend Freight Companies'). '</a>'; + echo '<a href="' . $RootPath . 'Shippers.php">'. _('Enter') . '/' . _('Amend Freight Companies'). '</a>'; } } } @@ -714,7 +714,7 @@ echo '<br />'; - echo '<div class="centre"><a href="'. $rootpath . '/SelectSalesOrder.php">'. _('Select a sales order for confirming deliveries and invoicing'). '</a></div>'; + echo '<div class="centre"><a href="'. $RootPath . '/SelectSalesOrder.php">'. _('Select a sales order for confirming deliveries and invoicing'). '</a></div>'; unset($_SESSION['Items'.$identifier]->LineItems); unset($_SESSION['Items'.$identifier]); @@ -1621,12 +1621,12 @@ echo '<br /><div class="centre">'; if ($_SESSION['InvoicePortraitFormat']==0){ - echo '<img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" />' . ' ' . '<a target="_blank" href="'.$rootpath.'/PrintCustTrans.php?FromTransNo='.$InvoiceNo.'&InvOrCredit=Invoice&PrintPDF=True">'. _('Print this invoice'). ' (' . _('Landscape') . ')</a><br /><br />'; + echo '<img src="'.$RootPath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" />' . ' ' . '<a target="_blank" href="'.$RootPath.'/PrintCustTrans.php?FromTransNo='.$InvoiceNo.'&InvOrCredit=Invoice&PrintPDF=True">'. _('Print this invoice'). ' (' . _('Landscape') . ')</a><br /><br />'; } else { - echo '<img src="'.$rootpath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" />' . ' ' . '<a target="_blank" href="'.$rootpath.'/PrintCustTransPortrait.php?FromTransNo='.$InvoiceNo.'&InvOrCredit=Invoice&PrintPDF=True">'. _('Print this invoice'). ' (' . _('Portrait') . ')</a><br /><br />'; + echo '<img src="'.$RootPath.'/css/'.$theme.'/images/printer.png" title="' . _('Print') . '" alt="" />' . ' ' . '<a target="_blank" href="'.$RootPath.'/PrintCustTransPortrait.php?FromTransNo='.$InvoiceNo.'&InvOrCredit=Invoice&PrintPDF=True">'. _('Print this invoice'). ' (' . _('Portrait') . ')</a><br /><br />'; } - echo '<a href="'.$rootpath.'/SelectSalesOrder.php">'. _('Select another order for invoicing'). '</a><br /><br />'; - echo '<a href="'.$rootpath.'/SelectOrderItems.php?NewOrder=Yes">'._('Sales Order Entry').'</a></div><br />'; + echo '<a href="'.$RootPath.'/SelectSalesOrder.php">'. _('Select another order for invoicing'). '</a><br /><br />'; + echo '<a href="'.$RootPath.'/SelectOrderItems.php?NewOrder=Yes">'._('Sales Order Entry').'</a></div><br />'; /*end of process invoice */ Modified: trunk/ContractBOM.php =================================================================== --- trunk/ContractBOM.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/ContractBOM.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -5,7 +5,7 @@ include('includes/DefineContractClass.php'); include('includes/session.inc'); -$title = _('Contract Bill of Materials'); +$Title = _('Contract Bill of Materials'); $identifier=$_GET['identifier']; @@ -14,7 +14,7 @@ */ if (!isset($_SESSION['Contract'.$identifier])){ - header('Location:' . $rootpath . '/Contracts.php'); + header('Location:' . $RootPath . '/Contracts.php'); exit; } include('includes/header.inc'); @@ -34,9 +34,9 @@ if (isset($_POST['BackToHeader'])){ - echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/Contracts.php?identifier='.$identifier. '" />'; + echo '<meta http-equiv="Refresh" content="0; url=' . $RootPath . '/Contracts.php?identifier='.$identifier. '" />'; echo '<br />'; - prnMsg(_('You should automatically be forwarded to the Contract page. If this does not happen perhaps the browser does not support META Refresh') . '<a href="' . $rootpath . '/Contracts.php?identifier='.$identifier . '">' . _('click here') . '</a> ' . _('to continue'),'info'); + prnMsg(_('You should automatically be forwarded to the Contract page. If this does not happen perhaps the browser does not support META Refresh') . '<a href="' . $RootPath . '/Contracts.php?identifier='.$identifier . '">' . _('click here') . '</a> ' . _('to continue'),'info'); include('includes/footer.inc'); exit; } @@ -221,7 +221,7 @@ if (count($_SESSION['Contract'.$identifier]->ContractBOM)>0){ echo '<p class="page_title_text"> - <img src="'.$rootpath.'/css/'.$theme.'/images/contract.png" title="' . _('Contract Bill of Material') . '" alt="" /> '.$_SESSION['Contract'.$identifier]->CustomerName . ' + <img src="'.$RootPath.'/css/'.$theme.'/images/contract.png" title="' . _('Contract Bill of Material') . '" alt="" /> '.$_SESSION['Contract'.$identifier]->CustomerName . ' </p>'; echo '<table class="selection">'; @@ -291,7 +291,7 @@ $DbgMsg = _('The SQL used to retrieve the category details but failed was'); $result1 = DB_query($sql,$db,$ErrMsg,$DbgMsg); echo '<p class="page_title_text"> - <img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Print') . '" alt="" />' . ' ' . _('Search For Stock Items') . + <img src="'.$RootPath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Print') . '" alt="" />' . ' ' . _('Search For Stock Items') . '</p>'; echo '<table class="selection"> <tr></tr> @@ -328,7 +328,7 @@ </tr> <tr> <td></td> - <td><b>' . _('OR') . ' </b><a target="_blank" href="'.$rootpath.'/Stocks.php">' . _('Create a New Stock Item') . '</a></td> + <td><b>' . _('OR') . ' </b><a target="_blank" href="'.$RootPath.'/Stocks.php">' . _('Create a New Stock Item') . '</a></td> </tr> </table> <br /> Modified: trunk/ContractCosting.php =================================================================== --- trunk/ContractCosting.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/ContractCosting.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -4,7 +4,7 @@ include('includes/DefineContractClass.php'); include('includes/session.inc'); -$title = _('Contract Costing'); +$Title = _('Contract Costing'); /* Session started in header.inc for password checking and authorisation level check */ include('includes/header.inc'); @@ -55,7 +55,7 @@ } echo '<p class="page_title_text"> - <img src="'.$rootpath.'/css/'.$theme.'/images/contract.png" title="' . _('Contract') . '" alt="" />'; + <img src="'.$RootPath.'/css/'.$theme.'/images/contract.png" title="' . _('Contract') . '" alt="" />'; if ($_SESSION['Contract'.$identifier]->Status==3){ echo _('Closed') . ' '; } elseif ($_SESSION['Contract'.$identifier]->Status==2){ Modified: trunk/ContractOtherReqts.php =================================================================== --- trunk/ContractOtherReqts.php 2012-12-29 00:48:48 UTC (rev 5783) +++ trunk/ContractOtherReqts.php 2012-12-29 04:00:43 UTC (rev 5784) @@ -5,7 +5,7 @@ include('includes/DefineContractClass.php'); include('includes/session.inc'); -$title = _('Contract Other Requirements'); +$Title = _('Contract Other Requirements'); $identifier=$_GET['identifier']; @@ -14,7 +14,7 @@ */ if (!isset($_SESSION['Contract'.$identifier])){ - header('Location:' . $rootpath . '/Contracts.php'); + header('Location:' . $RootPath . '/Contracts.php'); exit; } include('includes/header.inc'); @@ -38,9 +38,9 @@ if (isset($_POST['BackToHeader'])){ - echo '<meta http-equiv="Refresh" content="0; url=' . $rootpath . '/Contracts.php?identifier='.$identifier. '" />'; + echo '<meta http-equiv="Refresh" content="0; url=' . $RootPath . '/Contracts.php?identifier='.$identifier. '" />'; echo '<br />'; - prnMsg(_('You should automatically be forwarded to the Contract page. If this does not happen perhaps the browser does not support META Refresh') . '<a href="' . $ro... [truncated message content] |