[Weberp-svn] SF.net SVN: weberp:[9377] trunk
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2012-07-05 09:22:48
|
Revision: 9377 http://weberp.svn.sourceforge.net/weberp/?rev=9377&view=rev Author: tim_schofield Date: 2012-07-05 09:22:36 +0000 (Thu, 05 Jul 2012) Log Message: ----------- Add menu to the new index.php script Modified Paths: -------------- trunk/css/silverwolf/sub.css trunk/includes/MainMenuLinksArray.php trunk/includes/main_header.inc trunk/javascripts/FormFunctions.js Added Paths: ----------- trunk/index.php trunk/javascripts/script.js Removed Paths: ------------- trunk/index.php trunk/new_index.php Modified: trunk/css/silverwolf/sub.css =================================================================== --- trunk/css/silverwolf/sub.css 2012-07-05 09:22:12 UTC (rev 9376) +++ trunk/css/silverwolf/sub.css 2012-07-05 09:22:36 UTC (rev 9377) @@ -26,10 +26,10 @@ border-radius: 17px; position: absolute; display: inline; - top: 10px; - right: 10px; - bottom: 20px; - left: 20px; + top: 1%; + right: 1%; + bottom: 1%; + left: 1%; background: #000000; color: #FFFFFF; opacity: 0.85; @@ -96,10 +96,96 @@ margin-top: 2px; margin-left: 4px; margin-right: 4px; - font-size: 200%; padding-left: 10px; } +div.menu_bar { + font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif; + font-size: 100%; + margin-top: 2px; + margin-left: 4px; + margin-right: 4px; + padding-left: 10px; + width: 98%; +} + +ul.menu { + list-style:none; + margin:0; + padding:0; + opacity:0.9; +} + +ul.menu * { + margin:0; + padding:0; +} + +ul.menu a { + display:block; + color:#000; + text-decoration:none; +} + +ul.menu li { + position:relative; + float:left; + margin-right:2px; +} + +ul.menu ul { + position:absolute; + top:26px; + left:0; + background:#d1d1d1; + display:none; + opacity:0.9; + list-style:none; +} + +ul.menu ul li { + position:relative; + border:1px solid #aaa; + border-top:none; + width:148px; + margin:0; +} + +ul.menu ul li a { + display:block; + padding:3px 7px 5px; + background-color:#d1d1d1; +} + +ul.menu ul li a:hover { + background-color:#c5c5c5; +} + +ul.menu ul ul { + left:148px; + top:-1px; +} + +ul.menu .menulink { + border:1px solid #aaa; + padding:5px 7px 7px; + font-weight:bold; + background:#d1d1d1; + width:134px; +} + +ul.menu .menulink:hover, ul.menu .menuhover { + background:#d1d1d1; +} + +ul.menu .sub { + background:#d1d1d1 136px 8px no-repeat; +} + +ul.menu .topline { + border-top:1px solid #aaa; +} + div.manual_title_bar { font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif; font-size: 24px; Modified: trunk/includes/MainMenuLinksArray.php =================================================================== --- trunk/includes/MainMenuLinksArray.php 2012-07-05 09:22:12 UTC (rev 9376) +++ trunk/includes/MainMenuLinksArray.php 2012-07-05 09:22:36 UTC (rev 9377) @@ -34,13 +34,13 @@ _('Recurring Order Template'), _('Process Recurring Orders') ); -$MenuItems['orders']['Transactions']['URL'] = array( '/SelectOrderItems.php?NewOrder=Yes', - '/CounterSales.php', - '/PDFPickingList.php', - '/SelectSalesOrder.php', - '/SpecialOrder.php', - '/SelectRecurringSalesOrder.php', - '/RecurringSalesOrdersProcess.php' +$MenuItems['orders']['Transactions']['URL'] = array( 'SelectOrderItems.php?NewOrder=Yes', + 'CounterSales.php', + 'PDFPickingList.php', + 'SelectSalesOrder.php', + 'SpecialOrder.php', + 'SelectRecurringSalesOrder.php', + 'RecurringSalesOrdersProcess.php' ); $MenuItems['orders']['Reports']['Caption'] = array( _('Order Inquiry'), @@ -59,28 +59,28 @@ _('Sales With Low Gross Profit Report') ); -$MenuItems['orders']['Reports']['URL'] = array( '/SelectCompletedOrder.php', - '/PDFPriceList.php', - '/PDFOrderStatus.php', - '/PDFOrdersInvoiced.php', - '/DailySalesInquiry.php', - '/SalesByTypePeriodInquiry.php', - '/SalesCategoryPeriodInquiry.php', - '/SalesTopItemsInquiry.php', - '/PDFDeliveryDifferences.php', - '/PDFDIFOT.php', - '/SalesInquiry.php', - '/NoSalesItems.php', - '/TopItems.php', - '/PDFLowGP.php' +$MenuItems['orders']['Reports']['URL'] = array( 'SelectCompletedOrder.php', + 'PDFPriceList.php', + 'PDFOrderStatus.php', + 'PDFOrdersInvoiced.php', + 'DailySalesInquiry.php', + 'SalesByTypePeriodInquiry.php', + 'SalesCategoryPeriodInquiry.php', + 'SalesTopItemsInquiry.php', + 'PDFDeliveryDifferences.php', + 'PDFDIFOT.php', + 'SalesInquiry.php', + 'NoSalesItems.php', + 'TopItems.php', + 'PDFLowGP.php' ); $MenuItems['orders']['Maintenance']['Caption'] = array( _('Select Contract'), _('Create Contract') ); -$MenuItems['orders']['Maintenance']['URL'] = array( '/SelectContract.php', - '/Contracts.php' +$MenuItems['orders']['Maintenance']['URL'] = array( 'SelectContract.php', + 'Contracts.php' ); $MenuItems['AR']['Transactions']['Caption'] = array (_('Select Order to Invoice'), @@ -88,10 +88,10 @@ _('Enter Receipts'), _('Allocate Receipts or Credit Notes') ); -$MenuItems['AR']['Transactions']['URL'] = array ('/SelectSalesOrder.php', - '/SelectCreditItems.php?NewCredit=Yes', - '/CustomerReceipt.php?NewReceipt=Yes&Type=Customer', - '/CustomerAllocations.php' +$MenuItems['AR']['Transactions']['URL'] = array ('SelectSalesOrder.php', + 'SelectCreditItems.php?NewCredit=Yes', + 'CustomerReceipt.php?NewReceipt=Yes&Type=Customer', + 'CustomerAllocations.php' ); $MenuItems['AR']['Reports']['Caption'] = array (_('Where Allocated Inquiry'), @@ -107,31 +107,31 @@ _('Customer Transaction Inquiries') ); -$MenuItems['AR']['Reports']['URL'] = array ('/CustWhereAlloc.php', - '/PrintCustTrans.php', - '/PrintCustStatements.php', - '/SalesAnalRepts.php', - '/AgedDebtors.php', - '/PDFBankingSummary.php', - '/DebtorsAtPeriodEnd.php', - '/PDFCustomerList.php', - '/SalesGraph.php', - '/PDFCustTransListing.php', - '/CustomerTransInquiry.php' +$MenuItems['AR']['Reports']['URL'] = array ('CustWhereAlloc.php', + 'PrintCustTrans.php', + 'PrintCustStatements.php', + 'SalesAnalRepts.php', + 'AgedDebtors.php', + 'PDFBankingSummary.php', + 'DebtorsAtPeriodEnd.php', + 'PDFCustomerList.php', + 'SalesGraph.php', + 'PDFCustTransListing.php', + 'CustomerTransInquiry.php' ); $MenuItems['AR']['Maintenance']['Caption'] = array (_('Add Customer'), _('Customers') ); -$MenuItems['AR']['Maintenance']['URL'] = array ('/Customers.php', - '/SelectCustomer.php' +$MenuItems['AR']['Maintenance']['URL'] = array ('Customers.php', + 'SelectCustomer.php' ); $MenuItems['AP']['Transactions']['Caption'] = array (_('Select Supplier'), _('Supplier Allocations') ); -$MenuItems['AP']['Transactions']['URL'] = array ('/SelectSupplier.php', - '/SupplierAllocations.php' +$MenuItems['AP']['Transactions']['URL'] = array ('SelectSupplier.php', + 'SupplierAllocations.php' ); $MenuItems['AP']['Reports']['Caption'] = array (_('Aged Supplier Report'), @@ -143,20 +143,20 @@ _('Supplier Transaction Inquiries') ); -$MenuItems['AP']['Reports']['URL'] = array ('/AgedSuppliers.php', - '/SuppPaymentRun.php', - '/PDFRemittanceAdvice.php', - '/OutstandingGRNs.php', - '/SupplierBalsAtPeriodEnd.php', - '/PDFSuppTransListing.php', - '/SupplierTransInquiry.php' +$MenuItems['AP']['Reports']['URL'] = array ('AgedSuppliers.php', + 'SuppPaymentRun.php', + 'PDFRemittanceAdvice.php', + 'OutstandingGRNs.php', + 'SupplierBalsAtPeriodEnd.php', + 'PDFSuppTransListing.php', + 'SupplierTransInquiry.php' ); $MenuItems['AP']['Maintenance']['Caption'] = array (_('Add Supplier'), _('Maintain Factor Companies') ); -$MenuItems['AP']['Maintenance']['URL'] = array ('/Suppliers.php', - '/Factors.php' +$MenuItems['AP']['Maintenance']['URL'] = array ('Suppliers.php', + 'Factors.php' ); $MenuItems['PO']['Transactions']['Caption'] = array (_('Purchase Orders'), @@ -168,14 +168,14 @@ _('Shipment Entry'), _('Select A Shipment') ); -$MenuItems['PO']['Transactions']['URL'] = array ('/PO_SelectOSPurchOrder.php', - '/PO_Header.php?NewOrder=Yes', - '/SupplierTenderCreate.php?New=Yes', - '/SupplierTenderCreate.php?Edit=Yes', - '/OffersReceived.php', - '/PO_AuthoriseMyOrders.php', - '/SelectSupplier.php', - '/Shipt_Select.php' +$MenuItems['PO']['Transactions']['URL'] = array ('PO_SelectOSPurchOrder.php', + 'PO_Header.php?NewOrder=Yes', + 'SupplierTenderCreate.php?New=Yes', + 'SupplierTenderCreate.php?Edit=Yes', + 'OffersReceived.php', + 'PO_AuthoriseMyOrders.php', + 'SelectSupplier.php', + 'Shipt_Select.php' ); $MenuItems['PO']['Reports']['Caption'] = array (_('Purchase Order Inquiry'), @@ -183,14 +183,14 @@ _('Supplier Price List') ); -$MenuItems['PO']['Reports']['URL'] = array ('/PO_SelectPurchOrder.php', - '/POReport.php', - '/SuppPriceList.php' +$MenuItems['PO']['Reports']['URL'] = array ('PO_SelectPurchOrder.php', + 'POReport.php', + 'SuppPriceList.php' ); $MenuItems['PO']['Maintenance']['Caption'] = array (_('Maintain Supplier Price Lists') ); -$MenuItems['PO']['Maintenance']['URL'] = array ('/SupplierPriceList.php' +$MenuItems['PO']['Maintenance']['URL'] = array ('SupplierPriceList.php' ); $MenuItems['stock']['Transactions']['Caption'] = array (_('Receive Purchase Orders'), _('Bulk Inventory Transfer') . ' - ' . _('Dispatch'), @@ -203,16 +203,16 @@ _('Authorise Internal Stock Requests'), _('Fulfill Internal Stock Requests') ); -$MenuItems['stock']['Transactions']['URL'] = array ('/PO_SelectOSPurchOrder.php', - '/StockLocTransfer.php', - '/StockLocTransferReceive.php', - '/StockTransfers.php?New=Yes', - '/StockAdjustments.php?NewAdjustment=Yes', - '/ReverseGRN.php', - '/StockCounts.php', - '/InternalStockRequest.php?New=Yes', - '/InternalStockRequestAuthorisation.php', - '/InternalStockRequestFulfill.php' +$MenuItems['stock']['Transactions']['URL'] = array ('PO_SelectOSPurchOrder.php', + 'StockLocTransfer.php', + 'StockLocTransferReceive.php', + 'StockTransfers.php?New=Yes', + 'StockAdjustments.php?NewAdjustment=Yes', + 'ReverseGRN.php', + 'StockCounts.php', + 'InternalStockRequest.php?New=Yes', + 'InternalStockRequestAuthorisation.php', + 'InternalStockRequestFulfill.php' ); $MenuItems['stock']['Reports']['Caption'] = array (_('Serial Item Research Tool'), @@ -239,28 +239,28 @@ _('Stock Transfer Note') ); -$MenuItems['stock']['Reports']['URL'] = array ('/StockSerialItemResearch.php', - '/PDFPrintLabel.php', - '/ReprintGRN.php', - '/PDFStockLocTransfer.php', - '/StockMovements.php', - '/StockStatus.php', - '/StockUsage.php', - '/InventoryQuantities.php', - '/ReorderLevel.php', - '/StockDispatch.php', - '/InventoryValuation.php', - '/InventoryPlanning.php', - '/InventoryPlanningPrefSupplier.php', - '/StockCheck.php', - '/StockQties_csv.php', - '/PDFStockCheckComparison.php', - '/StockLocMovements.php', - '/StockLocStatus.php', - '/StockQuantityByDate.php', - '/PDFStockNegatives.php', - '/PDFPeriodStockTransListing.php', - '/PDFStockTransfer.php' +$MenuItems['stock']['Reports']['URL'] = array ('StockSerialItemResearch.php', + 'PDFPrintLabel.php', + 'ReprintGRN.php', + 'PDFStockLocTransfer.php', + 'StockMovements.php', + 'StockStatus.php', + 'StockUsage.php', + 'InventoryQuantities.php', + 'ReorderLevel.php', + 'StockDispatch.php', + 'InventoryValuation.php', + 'InventoryPlanning.php', + 'InventoryPlanningPrefSupplier.php', + 'StockCheck.php', + 'StockQties_csv.php', + 'PDFStockCheckComparison.php', + 'StockLocMovements.php', + 'StockLocStatus.php', + 'StockQuantityByDate.php', + 'PDFStockNegatives.php', + 'PDFPeriodStockTransListing.php', + 'PDFStockTransfer.php' ); $MenuItems['stock']['Maintenance']['Caption'] = array (_('Add A New Item'), @@ -271,20 +271,20 @@ _('Reorder Level By Category/Location'), _('Item Manufacturers') ); -$MenuItems['stock']['Maintenance']['URL'] = array ('/Stocks.php', - '/SelectProduct.php', - '/SalesCategories.php', - '/PricesBasedOnMarkUp.php', - '/PricesByCost.php', - '/ReorderLevelLocation.php', - '/Manufacturers.php' +$MenuItems['stock']['Maintenance']['URL'] = array ('Stocks.php', + 'SelectProduct.php', + 'SalesCategories.php', + 'PricesBasedOnMarkUp.php', + 'PricesByCost.php', + 'ReorderLevelLocation.php', + 'Manufacturers.php' ); $MenuItems['manuf']['Transactions']['Caption'] = array (_('Work Order Entry'), _('Select A Work Order') ); -$MenuItems['manuf']['Transactions']['URL'] = array ('/WorkOrderEntry.php', - '/SelectWorkOrder.php' +$MenuItems['manuf']['Transactions']['URL'] = array ('WorkOrderEntry.php', + 'SelectWorkOrder.php' ); $MenuItems['manuf']['Reports']['Caption'] = array ( _('Costed Bill Of Material Inquiry'), @@ -300,17 +300,17 @@ _('MRP Reschedules Required') ); -$MenuItems['manuf']['Reports']['URL'] = array ( '/BOMInquiry.php', - '/WhereUsedInquiry.php', - '/BOMListing.php', - '/BOMIndented.php', - '/BOMExtendedQty.php', - '/BOMIndentedReverse.php', - '/MRPReport.php', - '/MRPShortages.php', - '/MRPPlannedPurchaseOrders.php', - '/MRPPlannedWorkOrders.php', - '/MRPReschedules.php' +$MenuItems['manuf']['Reports']['URL'] = array ( 'BOMInquiry.php', + 'WhereUsedInquiry.php', + 'BOMListing.php', + 'BOMIndented.php', + 'BOMExtendedQty.php', + 'BOMIndentedReverse.php', + 'MRPReport.php', + 'MRPShortages.php', + 'MRPPlannedPurchaseOrders.php', + 'MRPPlannedWorkOrders.php', + 'MRPReschedules.php' ); $MenuItems['manuf']['Maintenance']['Caption'] = array (_('Work Centre'), @@ -321,13 +321,13 @@ _('MRP Calculation') ); -$MenuItems['manuf']['Maintenance']['URL'] = array ('/WorkCentres.php', - '/BOMs.php', - '/CopyBOM.php', - '/MRPDemands.php', - '/MRPCreateDemands.php', - '/MRP.php' - ); +$MenuItems['manuf']['Maintenance']['URL']=array('WorkCentres.php', + 'BOMs.php', + 'CopyBOM.php', + 'MRPDemands.php', + 'MRPCreateDemands.php', + 'MRP.php' + ); $MenuItems['GL']['Transactions']['Caption'] = array (_('Bank Account Payments Entry'), _('Bank Account Receipts Entry'), @@ -336,12 +336,12 @@ _('Bank Account Receipts Matching') ); -$MenuItems['GL']['Transactions']['URL'] = array ('/Payments.php?NewPayment=Yes', - '/CustomerReceipt.php?NewReceipt=Yes&Type=GL', - '/GLJournal.php?NewJournal=Yes', - '/BankMatching.php?Type=Payments', - '/BankMatching.php?Type=Receipts' - ); +$MenuItems['GL']['Transactions']['URL'] = array('Payments.php?NewPayment=Yes', + 'CustomerReceipt.php?NewReceipt=Yes&Type=GL', + 'GLJournal.php?NewJournal=Yes', + 'BankMatching.php?Type=Payments', + 'BankMatching.php?Type=Receipts' + ); $MenuItems['GL']['Reports']['Caption'] = array (_('Trial Balance'), _('Account Inquiry'), @@ -357,18 +357,18 @@ _('Tax Reports') ); -$MenuItems['GL']['Reports']['URL'] = array ('/GLTrialBalance.php', - '/SelectGLAccount.php', - '/GLAccountReport.php', - '/GLAccountCSV.php', - '/GLJournalInquiry.php', - '/BankReconciliation.php', - '/PDFChequeListing.php', - '/DailyBankTransactions.php', - '/GLProfit_Loss.php', - '/GLBalanceSheet.php', - '/GLTagProfit_Loss.php', - '/Tax.php' +$MenuItems['GL']['Reports']['URL'] = array ('GLTrialBalance.php', + 'SelectGLAccount.php', + 'GLAccountReport.php', + 'GLAccountCSV.php', + 'GLJournalInquiry.php', + 'BankReconciliation.php', + 'PDFChequeListing.php', + 'DailyBankTransactions.php', + 'GLProfit_Loss.php', + 'GLBalanceSheet.php', + 'GLTagProfit_Loss.php', + 'Tax.php' ); $MenuItems['GL']['Maintenance']['Caption'] = array (_('GL Account'), @@ -378,11 +378,11 @@ _('GL Tags') ); -$MenuItems['GL']['Maintenance']['URL'] = array ('/GLAccounts.php', - '/GLBudgets.php', - '/AccountGroups.php', - '/AccountSections.php', - '/GLTags.php' +$MenuItems['GL']['Maintenance']['URL'] = array ('GLAccounts.php', + 'GLBudgets.php', + 'AccountGroups.php', + 'AccountSections.php', + 'GLTags.php' ); $MenuItems['FA']['Transactions']['Caption'] = array (_('Add a new Asset'), @@ -391,24 +391,24 @@ _('Depreciation Journal') ); -$MenuItems['FA']['Transactions']['URL'] = array ('/FixedAssetItems.php', - '/SelectAsset.php', - '/FixedAssetTransfer.php', - '/FixedAssetDepreciation.php' +$MenuItems['FA']['Transactions']['URL'] = array('FixedAssetItems.php', + 'SelectAsset.php', + 'FixedAssetTransfer.php', + 'FixedAssetDepreciation.php' ); $MenuItems['FA']['Reports']['Caption'] = array (_('Asset Register'), ); -$MenuItems['FA']['Reports']['URL'] = array ('/FixedAssetRegister.php', +$MenuItems['FA']['Reports']['URL'] = array ('FixedAssetRegister.php', ); $MenuItems['FA']['Maintenance']['Caption'] = array (_('Asset Categories Maintenance'), _('Add or Maintain Asset Locations') ); -$MenuItems['FA']['Maintenance']['URL'] = array ('/FixedAssetCategories.php', - '/FixedAssetLocations.php' +$MenuItems['FA']['Maintenance']['URL'] = array ('FixedAssetCategories.php', + 'FixedAssetLocations.php' ); $MenuItems['PC']['Transactions']['Caption'] = array (_('Assign Cash to PC Tab'), @@ -416,15 +416,15 @@ _('Expenses Authorisation') ); -$MenuItems['PC']['Transactions']['URL'] = array ('/PcAssignCashToTab.php', - '/PcClaimExpensesFromTab.php', - '/PcAuthorizeExpenses.php' +$MenuItems['PC']['Transactions']['URL'] = array('PcAssignCashToTab.php', + 'PcClaimExpensesFromTab.php', + 'PcAuthorizeExpenses.php' ); $MenuItems['PC']['Reports']['Caption'] = array (_('PC Tab General Report'), ); -$MenuItems['PC']['Reports']['URL'] = array ('/PcReportTab.php', +$MenuItems['PC']['Reports']['URL'] = array ('PcReportTab.php', ); $MenuItems['PC']['Maintenance']['Caption'] = array (_('Types of PC Tabs'), @@ -433,13 +433,13 @@ _('Expenses for Type of PC Tab') ); -$MenuItems['PC']['Maintenance']['URL'] = array ('/PcTypeTabs.php', - '/PcTabs.php', - '/PcExpenses.php', - '/PcExpensesTypeTab.php' +$MenuItems['PC']['Maintenance']['URL'] = array ('PcTypeTabs.php', + 'PcTabs.php', + 'PcExpenses.php', + 'PcExpensesTypeTab.php' ); -$MenuItems['system']['Transactions']['Caption'] = array (_('Company Preferences'), +$MenuItems['system']['General Setup Options']['Caption'] = array (_('Company Preferences'), _('Configuration Settings'), _('User Maintenance'), _('Maintain Security Tokens'), @@ -460,28 +460,28 @@ _('SMTP Server Details') ); -$MenuItems['system']['Transactions']['URL'] = array ('/CompanyPreferences.php', - '/SystemParameters.php', - '/WWW_Users.php', - '/SecurityTokens.php', - '/WWW_Access.php', - '/PageSecurity.php', - '/BankAccounts.php', - '/Currencies.php', - '/TaxAuthorities.php', - '/TaxGroups.php', - '/TaxProvinces.php', - '/TaxCategories.php', - '/PeriodsInquiry.php', - '/reportwriter/admin/ReportCreator.php', - '/AuditTrail.php', - '/GeocodeSetup.php', - '/FormDesigner.php', - '/Labels.php', - '/SMTPServer.php' - ); +$MenuItems['system']['General Setup Options']['URL'] =array('CompanyPreferences.php', + 'SystemParameters.php', + 'WWW_Users.php', + 'SecurityTokens.php', + 'WWW_Access.php', + 'PageSecurity.php', + 'BankAccounts.php', + 'Currencies.php', + 'TaxAuthorities.php', + 'TaxGroups.php', + 'TaxProvinces.php', + 'TaxCategories.php', + 'PeriodsInquiry.php', + 'reportwriter/admin/ReportCreator.php', + 'AuditTrail.php', + 'GeocodeSetup.php', + 'FormDesigner.php', + 'Labels.php', + 'SMTPServer.php' + ); -$MenuItems['system']['Reports']['Caption'] = array (_('Sales Types'), +$MenuItems['system']['Receivables/Payables Setup']['Caption'] = array (_('Sales Types'), _('Customer Types'), _('Supplier Types'), _('Credit Status'), @@ -497,23 +497,23 @@ _('Discount Matrix') ); -$MenuItems['system']['Reports']['URL'] = array ('/SalesTypes.php', - '/CustomerTypes.php', - '/SupplierTypes.php', - '/CreditStatus.php', - '/PaymentTerms.php', - '/PO_AuthorisationLevels.php', - '/PaymentMethods.php', - '/SalesPeople.php', - '/Areas.php', - '/Shippers.php', - '/SalesGLPostings.php', - '/COGSGLPostings.php', - '/FreightCosts.php', - '/DiscountMatrix.php' +$MenuItems['system']['Receivables/Payables Setup']['URL'] = array ('SalesTypes.php', + 'CustomerTypes.php', + 'SupplierTypes.php', + 'CreditStatus.php', + 'PaymentTerms.php', + 'PO_AuthorisationLevels.php', + 'PaymentMethods.php', + 'SalesPeople.php', + 'Areas.php', + 'Shippers.php', + 'SalesGLPostings.php', + 'COGSGLPostings.php', + 'FreightCosts.php', + 'DiscountMatrix.php' ); -$MenuItems['system']['Maintenance']['Caption'] = array (_('Inventory Categories Maintenance'), +$MenuItems['system']['Inventory Setup']['Caption'] = array (_('Inventory Categories Maintenance'), _('Inventory Locations Maintenance'), _('Discount Category Maintenance'), _('Units of Measure'), @@ -523,45 +523,45 @@ _('Maintain Internal Departments') ); -$MenuItems['system']['Maintenance']['URL'] = array ('/StockCategories.php', - '/Locations.php', - '/DiscountCategories.php', - '/UnitsOfMeasure.php', - '/MRPCalendar.php', - '/MRPDemandTypes.php', - '/BackupDatabase.php', - '/Departments.php' +$MenuItems['system']['Inventory Setup']['URL'] = array ('StockCategories.php', + 'Locations.php', + 'DiscountCategories.php', + 'UnitsOfMeasure.php', + 'MRPCalendar.php', + 'MRPDemandTypes.php', + 'BackupDatabase.php', + 'Departments.php' ); $MenuItems['Utilities']['Transactions']['Caption'] = array (_('Change A Customer Code'), - _('Change A Customer Branch Code'), - _('Change An Inventory Item Code'), - _('Change A Supplier Code'), - _('Change A Location Code'), - _('Update costs for all BOM items, from the bottom up'), - _('Re-apply costs to Sales Analysis'), - _('Delete sales transactions'), - _('Reverse all supplier payments on a specified date')); + _('Change A Customer Branch Code'), + _('Change An Inventory Item Code'), + _('Change A Supplier Code'), + _('Change A Location Code'), + _('Update costs for all BOM items, from the bottom up'), + _('Re-apply costs to Sales Analysis'), + _('Delete sales transactions'), + _('Reverse all supplier payments on a specified date')); -$MenuItems['Utilities']['Transactions']['URL'] = array ('/Z_ChangeCustomerCode.php', - '/Z_ChangeBranchCode.php', - '/Z_ChangeStockCode.php', - '/Z_ChangeSupplierCode.php', - '/Z_ChangeLocationCode.php', - '/Z_BottomUpCosts.php', - '/Z_ReApplyCostToSA.php', - '/Z_DeleteSalesTransActions.php', - '/Z_ReverseSuppPaymentRun.php'); +$MenuItems['Utilities']['Transactions']['URL'] = array ('Z_ChangeCustomerCode.php', + 'Z_ChangeBranchCode.php', + 'Z_ChangeStockCode.php', + 'Z_ChangeSupplierCode.php', + 'Z_ChangeLocationCode.php', + 'Z_BottomUpCosts.php', + 'Z_ReApplyCostToSA.php', + 'Z_DeleteSalesTransActions.php', + 'Z_ReverseSuppPaymentRun.php'); $MenuItems['Utilities']['Reports']['Caption'] = array (_('Show Local Currency Total Debtor Balances'), _('Show Local Currency Total Suppliers Balances'), _('Show General Transactions That Do Not Balance'), _('Sales Integrity Check')); -$MenuItems['Utilities']['Reports']['URL'] = array ('/Z_CurrencyDebtorsBalances.php', - '/Z_CurrencySuppliersBalances.php', - '/Z_CheckGLTransBalance.php', - '/Z_SalesIntegrityCheck.php'); +$MenuItems['Utilities']['Reports']['URL']=array('Z_CurrencyDebtorsBalances.php', + 'Z_CurrencySuppliersBalances.php', + 'Z_CheckGLTransBalance.php', + 'Z_SalesIntegrityCheck.php'); $MenuItems['Utilities']['Maintenance']['Caption'] = array (_('Maintain Language Files'), _('Make New Company'), @@ -573,13 +573,13 @@ _('Re-Post all GL transactions from a specified period') ); -$MenuItems['Utilities']['Maintenance']['URL'] = array ('/Z_poAdmin.php', - '/Z_MakeNewCompany.php', - '/Z_DataExport.php', - '/Z_ImportStocks.php', - '/Z_ImportFixedAssets.php', - '/Z_CreateCompanyTemplateFile.php', - '/Z_UpdateChartDetailsBFwd.php', - '/Z_RePostGLFromPeriod.php' +$MenuItems['Utilities']['Maintenance']['URL']=array('Z_poAdmin.php', + 'Z_MakeNewCompany.php', + 'Z_DataExport.php', + 'Z_ImportStocks.php', + 'Z_ImportFixedAssets.php', + 'Z_CreateCompanyTemplateFile.php', + 'Z_UpdateChartDetailsBFwd.php', + 'Z_RePostGLFromPeriod.php' ); ?> \ No newline at end of file Modified: trunk/includes/main_header.inc =================================================================== --- trunk/includes/main_header.inc 2012-07-05 09:22:12 UTC (rev 9376) +++ trunk/includes/main_header.inc 2012-07-05 09:22:36 UTC (rev 9377) @@ -30,9 +30,11 @@ echo '<meta http-equiv="Content-Type" content="application/html; charset=utf-8" />'; } echo '<link href="' . $rootpath . '/css/'. $_SESSION['Theme'] .'/sub.css" rel="stylesheet" type="text/css" />'; +echo '<link href="' . $rootpath . '/css/'. $_SESSION['Theme'] .'/style.css" rel="stylesheet" type="text/css" />'; echo '<script type="text/javascript" src = "'.$rootpath.'/javascripts/MiscFunctions.js"></script>'; echo '<script type="text/javascript" src = "'.$rootpath.'/javascripts/FormFunctions.js"></script>'; echo '<script type="text/javascript" src = "'.$rootpath.'/javascripts/GraphFunctions.js"></script>'; +echo '<script type="text/javascript" src = "'.$rootpath.'/javascripts/script.js"></script>'; echo '</head>'; echo '<body onload="startTime()">'; @@ -41,4 +43,36 @@ <span id="clock" style="float: right; margin-right: 5px;"></span> </div>'; +include('includes/MainMenuLinksArray.php'); + +echo '<div class="menu_bar">'; + +echo '<ul class="menu" id="menu"> + <li><a href="#" class="menulink">Menu</a> + <ul>'; + for ($i=0; $i<sizeOf($ModuleList); $i++) { + echo '<li><a href="#" class="sub">' . $ModuleList[$i] . '</a>'; + echo '<ul>'; + foreach ($MenuItems[$ModuleLink[$i]] as $name=>$value) { + echo '<li class="sub" class="sub"><a href="#">'.$name.'</a>'; + echo '<ul>'; + $j=0; + foreach ($value['Caption'] as $MenuItem) { + echo '<li class="topline">'.InternalLink('',$value['URL'][$j],$MenuItem).'</li>'; + $j++; + } + echo '</li></ul>'; + } + echo '</ul></li>'; + } + +echo '</ul></li>'; +echo '</ul>'; + +echo '<script type="text/javascript"> + var menu=new menu.dd("menu"); + menu.init("menu","menuhover"); +</script>'; +echo '</div>'; + ?> \ No newline at end of file Deleted: trunk/index.php =================================================================== --- trunk/index.php 2012-07-05 09:22:12 UTC (rev 9376) +++ trunk/index.php 2012-07-05 09:22:36 UTC (rev 9377) @@ -1,251 +0,0 @@ -<?php -$PageSecurity=0; - -include('includes/session.inc'); -$title=_('Main Menu'); -include('includes/main_header.inc'); -echo '<script type="text/javascript" src = "'.$rootpath.'/javascripts/FormFunctions.js"></script>'; - -/*The module link codes are hard coded in a switch statement below to determine the options to show for each tab */ -include('includes/IndexArray.php'); -echo '<link href="' . $rootpath . '/css/'. $_SESSION['Theme'] .'/sub.css" rel="stylesheet" type="text/css" />'; -echo '<div id="Mask"></div>'; -echo '<div id="SubWindow"></div>'; -echo '<div id="HelpWindow"></div>'; - -if ($_SESSION['UserSupplierID']!=''){ - echo '<table class="table_index"> - <tr> - <td class="menu_group_item"> - <p>• <a href="' . $rootpath . '/SupplierTenders.php?TenderType=1">' . _('View or Amend outstanding offers') . '</a></p> - </td> - </tr> - <tr> - <td class="menu_group_item"> - <p>• <a href="' . $rootpath . '/SupplierTenders.php?TenderType=2">' . _('Create a new offer') . '</a></p> - </td> - </tr> - <tr> - <td class="menu_group_item"> - <p>• <a href="' . $rootpath . '/SupplierTenders.php?TenderType=3">' . _('View any open tenders without an offer') . '</a></p> - </td> - </tr> - </table>'; - include('includes/main_footer.inc'); - exit; -} elseif ($_SESSION['UserCustomerID']!=''){ - echo '<table class="table_index"> - <tr> - <td class="menu_group_item"> - <p>• <a href="' . $rootpath . '/CustomerInquiry.php?CustomerID=' . $_SESSION['CustomerID'] . '">' . _('Account Status') . '</a></p> - </td> - </tr> - <tr> - <td class="menu_group_item"> - <p>• <a href="' . $rootpath . '/SelectOrderItems.php?NewOrder=Yes">' . _('Place An Order') . '</a></p> - </td> - </tr> - <tr> - <td class="menu_group_item"> - <p>• <a href="' . $rootpath . '/SelectCompletedOrder.php?SelectedCustomer=' . $_SESSION['CustomerID'] . '">' . _('Order Status') . '</a></p> - </td> - </tr> - </table>'; - include('includes/main_footer.inc'); - exit; -} - -if (isset($_GET['Application'])){ /*This is sent by this page (to itself) when the user clicks on a tab */ - $_SESSION['Module'] = $_GET['Application']; -} - -echo '<table width="99%"> - <tr> - <td style="width:10%" valign="top">'; -echo '<table class="main_menu" width="100%" cellspacing="0" cellpadding="0" border="0">'; - - $i=0; - -while ($i < count($ModuleLink)){ - - // This determines if the user has display access to the module see config.php and header.inc - // for the authorisation and security code - if ($_SESSION['ModulesEnabled'][$i]==1) { - // If this is the first time the application is loaded then it is possible that - // SESSION['Module'] is not set if so set it to the first module that is enabled for the user - if (!isset($_SESSION['Module'])OR $_SESSION['Module']==''){ - $_SESSION['Module']=$ModuleLink[$i]; - } - if ($ModuleLink[$i] == $_SESSION['Module']){ - echo '<tr><td class="main_menu_selected"><a href="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '?Application='. $ModuleLink[$i] . '">' . $ModuleList[$i] . '</a></td></tr>'; - } else { - echo '<tr><td class="main_menu_unselected"><a href="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '?Application='. $ModuleLink[$i] . '">' . $ModuleList[$i] . '</a></td></tr>'; - } - } - $i++; -} - -echo '</table>'; - -echo '</td>'; -echo '<td style="width:30%" valign="top">'; -if ($_SESSION['Module']=='system') { - $Header='<img src="' . $rootpath . '/css/' . $theme . '/images/company.png" title="' . _('General Setup Options') . '" alt="' . _('General Setup Options') . '" /><b>' . _('General Setup Options') . '</b>'; -} else { - $Header='<img src="' . $rootpath . '/css/' . $theme . '/images/transactions.png" title="' . _('Transactions') . '" alt="' . _('Transactions') . '" /><b>'. _('Transactions') . '</b>'; -} -echo ' <table width="100%" class="selection"> - <tr> - <td class="menu_group_headers"> - <div class="centre"> - ' . $Header . ' - </div> - </td> - </tr>'; - -$i=0; -foreach ($MenuItems[$_SESSION['Module']]['Transactions']['Caption'] as $Caption) { -/* Transactions Menu Item */ - $ScriptNameArray = explode('?', substr($MenuItems[$_SESSION['Module']]['Transactions']['URL'][$i],1)); - $PageSecurity = $_SESSION['PageSecurityArray'][$ScriptNameArray[0]]; - if ((in_array($PageSecurity, $_SESSION['AllowedPageSecurityTokens']) OR !isset($PageSecurity))) { - echo '<tr> - <td class="menu_group_item"> - <p>• <a onclick="return OpenSubWindow(\'' . $rootpath . $MenuItems[$_SESSION['Module']]['Transactions']['URL'][$i] .'\')" href="' . $rootpath . $MenuItems[$_SESSION['Module']]['Transactions']['URL'][$i] .'">' . $Caption . '</a></p> - </td> - </tr>'; - } - $i++; -} -echo '</table>'; -echo '</td>'; - - -echo '<td style="width:30%" valign="top">'; -if ($_SESSION['Module']=='system') { - $Header='<img src="' . $rootpath . '/css/' . $theme . '/images/ar.png" title="' . _('Receivables/Payables Setup') . '" alt="' . _('Receivables/Payables Setup') . '" /><b>' . _('Receivables/Payables Setup') . '</b>'; -} else { - $Header='<img src="' . $rootpath . '/css/' . $theme . '/images/reports.png" title="' . _('Inquiries and Reports') . '" alt="' . _('Inquiries and Reports') . '" /><b>'. _('Inquiries and Reports') . '</b>'; -} -echo ' <table width="100%" class="selection"> - <tr> - <td class="menu_group_headers"> - <div class="centre"> - ' . $Header . ' - </div> - </td> - </tr>'; -$i=0; -foreach ($MenuItems[$_SESSION['Module']]['Reports']['Caption'] as $Caption) { -/* Transactions Menu Item */ - $ScriptNameArray = explode('?', substr($MenuItems[$_SESSION['Module']]['Reports']['URL'][$i],1)); - $PageSecurity = $_SESSION['PageSecurityArray'][$ScriptNameArray[0]]; - if ((in_array($PageSecurity, $_SESSION['AllowedPageSecurityTokens']) OR !isset($PageSecurity))) { - echo '<tr> - <td class="menu_group_item"> - <p>• <a href="' . $rootpath . $MenuItems[$_SESSION['Module']]['Reports']['URL'][$i] .'">' . $Caption . '</a></p> - </td> - </tr>'; - } - $i++; -} -echo GetRptLinks($_SESSION['Module']); -echo '</table>'; -echo '</td>'; - - -echo '<td style="width:30%" valign="top">'; -if ($_SESSION['Module']=='system') { - $Header='<img src="' . $rootpath . '/css/' . $theme . '/images/inventory.png" title="' . _('Inventory Setup') . '" alt="' . _('Inventory Setup') . '" /><b>' . _('Inventory Setup') . '</b>'; -} else { - $Header='<img src="' . $rootpath . '/css/' . $theme . '/images/maintenance.png" title="' . _('Maintenance') . '" alt="' . _('Maintenance') . '" /><b>'. _('Maintenance') . '</b>'; -} -echo ' <table width="100%" class="selection"> - <tr> - <td class="menu_group_headers"> - <div class="centre"> - ' . $Header . ' - </div> - </td> - </tr>'; -$i=0; -foreach ($MenuItems[$_SESSION['Module']]['Maintenance']['Caption'] as $Caption) { -/* Transactions Menu Item */ - $ScriptNameArray = explode('?', substr($MenuItems[$_SESSION['Module']]['Maintenance']['URL'][$i],1)); - $PageSecurity = $_SESSION['PageSecurityArray'][$ScriptNameArray[0]]; - if ((in_array($PageSecurity, $_SESSION['AllowedPageSecurityTokens']) OR !isset($PageSecurity))) { - echo '<tr> - <td class="menu_group_item"> - <p>• <a onclick="return OpenSubWindow(\'' . $rootpath . $MenuItems[$_SESSION['Module']]['Maintenance']['URL'][$i] .'\')" href="' . $rootpath . $MenuItems[$_SESSION['Module']]['Maintenance']['URL'][$i] .'">' . $Caption . '</a></p> - </td> - </tr>'; - } - $i++; -} -echo '</table>'; -echo '</td>'; - -echo '</tr> - </table>'; - -include('includes/main_footer.inc'); - -function GetRptLinks($GroupID) { -/* -This function retrieves the reports given a certain group id as defined in /reports/admin/defaults.php -in the acssociative array $ReportGroups[]. It will fetch the reports belonging solely to the group -specified to create a list of links for insertion into a table to choose a report. Two table sections will -be generated, one for standard reports and the other for custom reports. -*/ - global $db, $rootpath, $ReportList; - require_once('reportwriter/languages/en_US/reports.php'); - require_once('reportwriter/admin/defaults.php'); - $GroupID=$ReportList[$GroupID]; - $Title= array(_('Custom Reports'), _('Standard Reports and Forms')); - - $sql= "SELECT id, - reporttype, - defaultreport, - groupname, - reportname - FROM reports - ORDER BY groupname, - reportname"; - $Result=DB_query($sql,$db,'','',false,true); - $ReportList = ''; - while ($Temp = DB_fetch_array($Result)) $ReportList[] = $Temp; - - $RptLinks = ''; - for ($Def=1; $Def>=0; $Def--) { - $RptLinks .= '<tr><td class="menu_group_headers"><div style="text-align:center">'.$Title[$Def].'</div></td></tr>'; - $NoEntries = true; - if ($ReportList) { // then there are reports to show, show by grouping - foreach ($ReportList as $Report) { - if ($Report['groupname']==$GroupID AND $Report['defaultreport']==$Def) { - $RptLinks .= '<tr><td class="menu_group_item">'; - $RptLinks .= '<p>• <a href="' . $rootpath . '/reportwriter/ReportMaker.php?action=go&reportid=' . $Report['id'] . '">' . _($Report['reportname']) . '</a></p>'; - $RptLinks .= '</td></tr>'; - $NoEntries = false; - } - } - // now fetch the form groups that are a part of this group (List after reports) - $NoForms = true; - foreach ($ReportList as $Report) { - $Group=explode(':',$Report['groupname']); // break into main group and form group array - if ($NoForms AND $Group[0]==$GroupID AND $Report['reporttype']=='frm' AND $Report['defaultreport']==$Def) { - $RptLinks .= '<tr><td class="menu_group_item">'; - $RptLinks .= '<img src="' . $rootpath . '/css/' . $_SESSION['Theme'] . '/images/folders.gif" width="16" height="13" alt="" /> '; - $RptLinks .= '<p>• <a href="' . $rootpath . '/reportwriter/FormMaker.php?id=' . $Report['groupname'] . '"></p>'; - $RptLinks .= $FormGroups[$Report['groupname']] . '</a>'; - $RptLinks .= '</td></tr>'; - $NoForms = false; - $NoEntries = false; - } - } - } - if ($NoEntries) $RptLinks .= '<tr><td class="menu_group_item">' . _('There are no reports to show!') . '</td></tr>'; - } - return $RptLinks; -} - -?> \ No newline at end of file Copied: trunk/index.php (from rev 9376, trunk/new_index.php) =================================================================== --- trunk/index.php (rev 0) +++ trunk/index.php 2012-07-05 09:22:36 UTC (rev 9377) @@ -0,0 +1,16 @@ +<?php + +$PageSecurity = 1; +include('includes/session.inc'); + +$title = $ProjectName . ' - ' . _('Main Dashboard'); +include('includes/main_header.inc'); +echo '<div id="Mask"></div>'; +echo '<div id="SubWindow"></div>'; + +include('dashboard/CompanyInfo.php'); +include('dashboard/UserInfo.php'); +include('dashboard/SalesGraph.php'); +include('dashboard/StockBelowReorderLevel.php'); + +?> \ No newline at end of file Modified: trunk/javascripts/FormFunctions.js =================================================================== --- trunk/javascripts/FormFunctions.js 2012-07-05 09:22:12 UTC (rev 9376) +++ trunk/javascripts/FormFunctions.js 2012-07-05 09:22:36 UTC (rev 9377) @@ -77,6 +77,12 @@ return false; } +function sleep(ms) { + var dt = new Date(); + dt.setTime(dt.getTime() + ms); + while (new Date().getTime() < dt.getTime()); +} + function OpenSubWindow(TargetURL) { document.getElementById("Mask").setAttribute("class", "mask"); document.getElementById("SubWindow").setAttribute("class", "inputbox"); Added: trunk/javascripts/script.js =================================================================== --- trunk/javascripts/script.js (rev 0) +++ trunk/javascripts/script.js 2012-07-05 09:22:36 UTC (rev 9377) @@ -0,0 +1,33 @@ +var menu=function(){ + var t=15,z=50,s=6,a; + function dd(n){this.n=n; this.h=[]; this.c=[]} + dd.prototype.init=function(p,c){ + a=c; var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, i=0; + for(i;i<l;i++){ + var h=s[i].parentNode; this.h[i]=h; this.c[i]=s[i]; + h.onmouseover=new Function(this.n+'.st('+i+',true)'); + h.onmouseout=new Function(this.n+'.st('+i+')'); + } + } + dd.prototype.st=function(x,f){ + var c=this.c[x], h=this.h[x], p=h.getElementsByTagName('a')[0]; + clearInterval(c.t); c.style.overflow='hidden'; + if(f){ + p.className+=' '+a; + if(!c.mh){c.style.display='block'; c.style.height=''; c.mh=c.offsetHeight; c.style.height=0} + if(c.mh==c.offsetHeight){c.style.overflow='visible'} + else{c.style.zIndex=z; z++; c.t=setInterval(function(){sl(c,1)},t)} + }else{p.className=p.className.replace(a,''); c.t=setInterval(function(){sl(c,-1)},t)} + } + function sl(c,f){ + var h=c.offsetHeight; + if((h<=0&&f!=1)||(h>=c.mh&&f==1)){ + if(f==1){c.style.filter=''; c.style.opacity=1; c.style.overflow='visible'} + clearInterval(c.t); return + } + var d=(f==1)?Math.ceil((c.mh-h)/s):Math.ceil(h/s), o=h/c.mh; + c.style.opacity=o; c.style.filter='alpha(opacity='+(o*100)+')'; + c.style.height=h+(d*f)+'px' + } + return{dd:dd} +}(); \ No newline at end of file Deleted: trunk/new_index.php =================================================================== --- trunk/new_index.php 2012-07-05 09:22:12 UTC (rev 9376) +++ trunk/new_index.php 2012-07-05 09:22:36 UTC (rev 9377) @@ -1,16 +0,0 @@ -<?php - -$PageSecurity = 1; -include('includes/session.inc'); - -$title = $ProjectName . ' - ' . _('Main Dashboard'); -include('includes/main_header.inc'); -echo '<div id="Mask"></div>'; -echo '<div id="SubWindow"></div>'; - -include('dashboard/CompanyInfo.php'); -include('dashboard/UserInfo.php'); -include('dashboard/SalesGraph.php'); -include('dashboard/StockBelowReorderLevel.php'); - -?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |