| 1 |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); |
| 2 |
$CI =& ci_get_instance(); |
| 3 |
|
| 4 |
$config[User_model::LEVEL_ADMIN] = array( |
| 5 |
array( |
| 6 |
lang('schedules'), |
| 7 |
'admin/schedules', |
| 8 |
10 |
| 9 |
), |
| 10 |
array( |
| 11 |
lang('users'), |
| 12 |
'admin/users', |
| 13 |
20 |
| 14 |
), |
| 15 |
array( |
| 16 |
lang('timeoffs'), |
| 17 |
'admin/timeoffs', |
| 18 |
30 |
| 19 |
), |
| 20 |
); |
| 21 |
|
| 22 |
$config[User_model::LEVEL_ADMIN]['conf'] = array( |
| 23 |
lang('menu_conf'), |
| 24 |
'', |
| 25 |
100, |
| 26 |
'locations' => array( |
| 27 |
lang('locations'), |
| 28 |
'admin/locations', |
| 29 |
10 |
| 30 |
), |
| 31 |
'templates' => array( |
| 32 |
lang('shift_templates'), |
| 33 |
'admin/shift-templates', |
| 34 |
20 |
| 35 |
), |
| 36 |
'settings' => array( |
| 37 |
lang('menu_conf_settings'), |
| 38 |
'conf/admin', |
| 39 |
100 |
| 40 |
), |
| 41 |
); |
| 42 |
|
| 43 |
$config[User_model::LEVEL_MANAGER] = array( |
| 44 |
array( |
| 45 |
lang('schedules'), |
| 46 |
'admin/schedules', |
| 47 |
10 |
| 48 |
), |
| 49 |
array( |
| 50 |
lang('timeoffs'), |
| 51 |
'admin/timeoffs', |
| 52 |
30 |
| 53 |
), |
| 54 |
); |
| 55 |
|
| 56 |
$config[User_model::LEVEL_STAFF][] = array( |
| 57 |
lang('my_schedule'), |
| 58 |
'staff/shifts', |
| 59 |
10 |
| 60 |
); |
| 61 |
$config[User_model::LEVEL_STAFF][] = array( |
| 62 |
lang('my_timeoffs'), |
| 63 |
'staff/timeoffs', |
| 64 |
20 |
| 65 |
); |
| 66 |
|
| 67 |
$promo_url = $CI->config->item( 'nts_promo_url' ); |
| 68 |
if( $promo_url ) |
| 69 |
{ |
| 70 |
$promo_title = $CI->config->item( 'nts_promo_title' ); |
| 71 |
$config[User_model::LEVEL_ADMIN]['promo'] = array( |
| 72 |
$promo_title, |
| 73 |
$promo_url, |
| 74 |
200 |
| 75 |
); |
| 76 |
} |
| 77 |
/* End of file menu.php */ |
| 78 |
/* Location: ./application/config/menu.php */ |