/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

  1. <?php
  2. $config = array(
  3. 'mcb_menu' => array(
  4. 'dashboard' => array(
  5. 'title' => 'dashboard',
  6. 'href' => 'dashboard'
  7. ),
  8. 'clients' => array(
  9. 'title' => 'clients',
  10. 'href' => 'clients/index',
  11. 'submenu' => array(
  12. 'clients' => array(
  13. 'title' => 'view_clients',
  14. 'href' => 'clients/index'
  15. ),
  16. 'clients/form' => array(
  17. 'title' => 'add_client',
  18. 'href' => 'clients/form'
  19. )
  20. )
  21. ),
  22. 'invoices' => array(
  23. 'title' => 'invoices',
  24. 'href' => 'invoices/index',
  25. 'submenu' => array(
  26. 'invoices/create' => array(
  27. 'title' => 'create_invoice',
  28. 'href' => 'invoices/create'
  29. ),
  30. 'invoices/index' => array(
  31. 'title' => 'view_invoices',
  32. 'href' => 'invoices/index'
  33. ),
  34. 'invoice_search' => array(
  35. 'title' => 'invoice_search',
  36. 'href' => 'invoice_search'
  37. ),
  38. 'quotes' => array(
  39. 'title' => 'quotes',
  40. 'href' => 'invoices/index/is_quote/1',
  41. 'submenu' => array(
  42. 'invoices/index/is_quote/1' => array(
  43. 'title' => 'view_quotes',
  44. 'href' => 'invoices/index/is_quote/1'
  45. ),
  46. 'invoices/create/quote' => array(
  47. 'title' => 'create_quote',
  48. 'href' => 'invoices/create/quote'
  49. ),
  50. 'invoices/index/is_quote/1' => array(
  51. 'title' => 'view_quotes',
  52. 'href' => 'invoices/index/is_quote/1'
  53. )
  54. )
  55. ),
  56. 'payments' => array(
  57. 'title' => 'payments',
  58. 'href' => 'payments/index',
  59. 'submenu' => array(
  60. 'payments/index' => array(
  61. 'title' => 'view_payments',
  62. 'href' => 'payments/index'
  63. ),
  64. 'payments/form' => array(
  65. 'title' => 'enter_payment',
  66. 'href' => 'payments/form'
  67. ),
  68. 'payments/payment_methods' => array(
  69. 'title' => 'payment_methods',
  70. 'href' => 'payments/payment_methods',
  71. 'global_admin' => TRUE
  72. ),
  73. 'templates/index/type/payment_receipts' => array(
  74. 'title' => 'receipt_templates',
  75. 'href' => 'templates/index/type/payment_receipts',
  76. 'global_admin' => TRUE
  77. )
  78. )
  79. ),
  80. 'templates/index/type/invoices' => array(
  81. 'title' => 'invoice_templates',
  82. 'href' => 'templates/index/type/invoices',
  83. 'global_admin' => TRUE
  84. )
  85. )
  86. ),
  87. 'inventory' => array(
  88. 'title' => 'inventory',
  89. 'href' => 'inventory/index',
  90. 'submenu' => array(
  91. 'inventory/index' => array(
  92. 'title' => 'inventory_items',
  93. 'href' => 'inventory/index'
  94. ),
  95. 'inventory/inventory_types' => array(
  96. 'title' => 'inventory_types',
  97. 'href' => 'inventory/inventory_types'
  98. )
  99. )
  100. ),
  101. 'suppliers' => array(
  102. 'title' => 'suppliers',
  103. 'href' => 'suppliers/index',
  104. 'submenu' => array(
  105. 'suppliers' => array(
  106. 'title' => 'view_suppliers',
  107. 'href' => 'suppliers/index'
  108. ),
  109. 'suppliers/form' => array(
  110. 'title' => 'add_supplier',
  111. 'href' => 'suppliers/form'
  112. )
  113. )
  114. ),
  115. 'bills' => array(
  116. 'title' => 'bills',
  117. 'href' => 'bills/index',
  118. 'submenu' => array(
  119. 'bills/create' => array(
  120. 'title' => 'create_bill',
  121. 'href' => 'bills/create'
  122. ),
  123. 'bills/index' => array(
  124. 'title' => 'view_bills',
  125. 'href' => 'bills/index'
  126. ),
  127. 'bill_search' => array(
  128. 'title' => 'bill_search',
  129. 'href' => 'bill_search'
  130. )
  131. ),
  132. 'quotes' => array(
  133. 'title' => 'quotes',
  134. 'href' => 'bills/index/is_quote/1',
  135. 'submenu' => array(
  136. 'bills/index/is_quote/1' => array(
  137. 'title' => 'view_quotes',
  138. 'href' => 'bills/index/is_quote/1'
  139. ),
  140. 'bills/create/quote' => array(
  141. 'title' => 'create_quote',
  142. 'href' => 'bills/create/quote'
  143. ),
  144. 'bills/index/is_quote/1' => array(
  145. 'title' => 'view_quotes',
  146. 'href' => 'bills/index/is_quote/1'
  147. )
  148. )
  149. ),
  150. 'payments' => array(
  151. 'title' => 'payments',
  152. 'href' => 'payments/index',
  153. 'submenu' => array(
  154. 'payments/index' => array(
  155. 'title' => 'view_payments',
  156. 'href' => 'payments/index'
  157. ),
  158. 'payments/form' => array(
  159. 'title' => 'enter_payment',
  160. 'href' => 'payments/form'
  161. ),
  162. 'payments/payment_methods' => array(
  163. 'title' => 'payment_methods',
  164. 'href' => 'payments/payment_methods',
  165. 'global_admin' => TRUE
  166. ),
  167. 'templates/index/type/payment_receipts' => array(
  168. 'title' => 'receipt_templates',
  169. 'href' => 'templates/index/type/payment_receipts',
  170. 'global_admin' => TRUE
  171. )
  172. )
  173. )
  174. ),
  175. 'reports' => array(
  176. 'title' => 'reports',
  177. 'submenu' => array(
  178. 'client_list' => array(
  179. 'title' => 'client_list',
  180. 'href' => 'reports/client_list'
  181. ),
  182. 'client_statement' => array(
  183. 'title' => 'client_statement',
  184. 'href' => 'reports/client_statement'
  185. ),
  186. 'inventory_history' => array(
  187. 'title' => 'inventory_history',
  188. 'href' => 'reports/inventory_history'
  189. ),
  190. 'inventory_sales' => array(
  191. 'title' => 'inventory_sales',
  192. 'href' => 'reports/inventory_sales'
  193. )
  194. )
  195. ),
  196. 'system' => array(
  197. 'title' => 'system',
  198. 'href' => 'settings',
  199. 'global_admin' => TRUE,
  200. 'submenu' => array(
  201. 'client_center' => array(
  202. 'title' => 'client_center',
  203. 'href' => 'client_center/admin',
  204. 'global_admin' => TRUE
  205. ),
  206. 'mcb_modules' => array(
  207. 'title' => 'custom_modules',
  208. 'href' => 'mcb_modules/index',
  209. 'global_admin' => TRUE,
  210. ),
  211. 'fields' => array(
  212. 'title' => 'custom_fields',
  213. 'href' => 'fields/index',
  214. 'global_admin' => TRUE,
  215. ),
  216. 'invoices/invoice_groups' => array(
  217. 'title' => 'invoice_groups',
  218. 'href' => 'invoices/invoice_groups'
  219. ),
  220. 'invoice_statuses' => array(
  221. 'title' => 'invoice_statuses',
  222. 'href' => 'invoice_statuses/index',
  223. 'global_admin' => TRUE,
  224. ),
  225. 'settings' => array(
  226. 'title' => 'system_settings',
  227. 'href' => 'settings/index',
  228. 'global_admin' => TRUE,
  229. ),
  230. 'tax_rates' => array(
  231. 'title' => 'tax_rates',
  232. 'href' => 'tax_rates/index'
  233. ),
  234. 'users' => array(
  235. 'title' => 'user_accounts',
  236. 'href' => 'users/index',
  237. 'global_admin' => TRUE,
  238. )
  239. )
  240. )
  241. )
  242. );
  243. ?>