/application/modules_core/mcb_menu/config/mcb_menu.php
https://github.com/shykre/ProjetZ · PHP · 254 lines · 243 code · 11 blank · 0 comment · 0 complexity · 0cba5da684283f7daf556f442291b17d MD5 · raw file
- <?php
- $config = array(
- 'mcb_menu' => array(
- 'dashboard' => array(
- 'title' => 'dashboard',
- 'href' => 'dashboard'
- ),
- 'clients' => array(
- 'title' => 'clients',
- 'href' => 'clients/index',
- 'submenu' => array(
- 'clients' => array(
- 'title' => 'view_clients',
- 'href' => 'clients/index'
- ),
- 'clients/form' => array(
- 'title' => 'add_client',
- 'href' => 'clients/form'
- )
- )
- ),
- 'invoices' => array(
- 'title' => 'invoices',
- 'href' => 'invoices/index',
- 'submenu' => array(
- 'invoices/create' => array(
- 'title' => 'create_invoice',
- 'href' => 'invoices/create'
- ),
- 'invoices/index' => array(
- 'title' => 'view_invoices',
- 'href' => 'invoices/index'
- ),
- 'invoice_search' => array(
- 'title' => 'invoice_search',
- 'href' => 'invoice_search'
- ),
- 'quotes' => array(
- 'title' => 'quotes',
- 'href' => 'invoices/index/is_quote/1',
- 'submenu' => array(
- 'invoices/index/is_quote/1' => array(
- 'title' => 'view_quotes',
- 'href' => 'invoices/index/is_quote/1'
- ),
- 'invoices/create/quote' => array(
- 'title' => 'create_quote',
- 'href' => 'invoices/create/quote'
- ),
- 'invoices/index/is_quote/1' => array(
- 'title' => 'view_quotes',
- 'href' => 'invoices/index/is_quote/1'
- )
- )
- ),
- 'payments' => array(
- 'title' => 'payments',
- 'href' => 'payments/index',
- 'submenu' => array(
- 'payments/index' => array(
- 'title' => 'view_payments',
- 'href' => 'payments/index'
- ),
- 'payments/form' => array(
- 'title' => 'enter_payment',
- 'href' => 'payments/form'
- ),
- 'payments/payment_methods' => array(
- 'title' => 'payment_methods',
- 'href' => 'payments/payment_methods',
- 'global_admin' => TRUE
- ),
- 'templates/index/type/payment_receipts' => array(
- 'title' => 'receipt_templates',
- 'href' => 'templates/index/type/payment_receipts',
- 'global_admin' => TRUE
- )
- )
- ),
-
- 'templates/index/type/invoices' => array(
- 'title' => 'invoice_templates',
- 'href' => 'templates/index/type/invoices',
- 'global_admin' => TRUE
- )
- )
- ),
- 'inventory' => array(
- 'title' => 'inventory',
- 'href' => 'inventory/index',
- 'submenu' => array(
- 'inventory/index' => array(
- 'title' => 'inventory_items',
- 'href' => 'inventory/index'
- ),
- 'inventory/inventory_types' => array(
- 'title' => 'inventory_types',
- 'href' => 'inventory/inventory_types'
- )
- )
- ),
- 'suppliers' => array(
- 'title' => 'suppliers',
- 'href' => 'suppliers/index',
- 'submenu' => array(
- 'suppliers' => array(
- 'title' => 'view_suppliers',
- 'href' => 'suppliers/index'
- ),
- 'suppliers/form' => array(
- 'title' => 'add_supplier',
- 'href' => 'suppliers/form'
- )
-
- )
- ),
- 'bills' => array(
- 'title' => 'bills',
- 'href' => 'bills/index',
- 'submenu' => array(
- 'bills/create' => array(
- 'title' => 'create_bill',
- 'href' => 'bills/create'
- ),
- 'bills/index' => array(
- 'title' => 'view_bills',
- 'href' => 'bills/index'
- ),
- 'bill_search' => array(
- 'title' => 'bill_search',
- 'href' => 'bill_search'
- )
- ),
- 'quotes' => array(
- 'title' => 'quotes',
- 'href' => 'bills/index/is_quote/1',
- 'submenu' => array(
- 'bills/index/is_quote/1' => array(
- 'title' => 'view_quotes',
- 'href' => 'bills/index/is_quote/1'
- ),
- 'bills/create/quote' => array(
- 'title' => 'create_quote',
- 'href' => 'bills/create/quote'
- ),
- 'bills/index/is_quote/1' => array(
- 'title' => 'view_quotes',
- 'href' => 'bills/index/is_quote/1'
- )
- )
- ),
- 'payments' => array(
- 'title' => 'payments',
- 'href' => 'payments/index',
- 'submenu' => array(
- 'payments/index' => array(
- 'title' => 'view_payments',
- 'href' => 'payments/index'
- ),
- 'payments/form' => array(
- 'title' => 'enter_payment',
- 'href' => 'payments/form'
- ),
- 'payments/payment_methods' => array(
- 'title' => 'payment_methods',
- 'href' => 'payments/payment_methods',
- 'global_admin' => TRUE
- ),
- 'templates/index/type/payment_receipts' => array(
- 'title' => 'receipt_templates',
- 'href' => 'templates/index/type/payment_receipts',
- 'global_admin' => TRUE
- )
- )
- )
- ),
-
-
- 'reports' => array(
- 'title' => 'reports',
- 'submenu' => array(
- 'client_list' => array(
- 'title' => 'client_list',
- 'href' => 'reports/client_list'
- ),
- 'client_statement' => array(
- 'title' => 'client_statement',
- 'href' => 'reports/client_statement'
- ),
- 'inventory_history' => array(
- 'title' => 'inventory_history',
- 'href' => 'reports/inventory_history'
- ),
- 'inventory_sales' => array(
- 'title' => 'inventory_sales',
- 'href' => 'reports/inventory_sales'
- )
- )
- ),
-
-
- 'system' => array(
- 'title' => 'system',
- 'href' => 'settings',
- 'global_admin' => TRUE,
- 'submenu' => array(
- 'client_center' => array(
- 'title' => 'client_center',
- 'href' => 'client_center/admin',
- 'global_admin' => TRUE
- ),
- 'mcb_modules' => array(
- 'title' => 'custom_modules',
- 'href' => 'mcb_modules/index',
- 'global_admin' => TRUE,
- ),
- 'fields' => array(
- 'title' => 'custom_fields',
- 'href' => 'fields/index',
- 'global_admin' => TRUE,
- ),
- 'invoices/invoice_groups' => array(
- 'title' => 'invoice_groups',
- 'href' => 'invoices/invoice_groups'
- ),
- 'invoice_statuses' => array(
- 'title' => 'invoice_statuses',
- 'href' => 'invoice_statuses/index',
- 'global_admin' => TRUE,
- ),
- 'settings' => array(
- 'title' => 'system_settings',
- 'href' => 'settings/index',
- 'global_admin' => TRUE,
- ),
- 'tax_rates' => array(
- 'title' => 'tax_rates',
- 'href' => 'tax_rates/index'
- ),
- 'users' => array(
- 'title' => 'user_accounts',
- 'href' => 'users/index',
- 'global_admin' => TRUE,
- )
- )
- )
- )
- );
- ?>