| 1 |
<?php |
| 2 |
$config['date_format'] = array( |
| 3 |
'default' => 'j M Y', |
| 4 |
'label' => lang('conf_date_format'), |
| 5 |
'type' => 'dropdown', |
| 6 |
'options' => array( |
| 7 |
'd/m/Y' => date('d/m/Y'), |
| 8 |
'd-m-Y' => date('d-m-Y'), |
| 9 |
'n/j/Y' => date('n/j/Y'), |
| 10 |
'Y/m/d' => date('Y/m/d'), |
| 11 |
'd.m.Y' => date('d.m.Y'), |
| 12 |
'j M Y' => date('j M Y') |
| 13 |
), |
| 14 |
); |
| 15 |
|
| 16 |
$config['time_format'] = array( |
| 17 |
'default' => 'g:ia', |
| 18 |
'label' => lang('conf_time_format'), |
| 19 |
'type' => 'dropdown', |
| 20 |
'options' => array( |
| 21 |
'g:ia' => date('g:ia'), |
| 22 |
'g:i A' => date('g:i A'), |
| 23 |
'H:i' => date('H:i'), |
| 24 |
), |
| 25 |
); |
| 26 |
|
| 27 |
$config['week_starts'] = array( |
| 28 |
'default' => 0, |
| 29 |
'label' => lang('conf_week_starts'), |
| 30 |
'type' => 'dropdown', |
| 31 |
'options' => array( |
| 32 |
1 => lang('time_monday'), |
| 33 |
0 => lang('time_sunday'), |
| 34 |
), |
| 35 |
); |
| 36 |
|
| 37 |
$config['email_from'] = array( |
| 38 |
'default' => '', |
| 39 |
'label' => lang('conf_email_from'), |
| 40 |
'type' => 'text', |
| 41 |
'rules' => 'trim|required|valid_email' |
| 42 |
); |
| 43 |
|
| 44 |
$config['email_from_name'] = array( |
| 45 |
'default' => '', |
| 46 |
'label' => lang('conf_email_from_name'), |
| 47 |
'type' => 'text', |
| 48 |
'rules' => 'trim|required' |
| 49 |
); |
| 50 |
|
| 51 |
$config['csv_separator'] = array( |
| 52 |
'default' => ',', |
| 53 |
'label' => lang('conf_csv_separator'), |
| 54 |
'type' => 'dropdown', |
| 55 |
'options' => array( |
| 56 |
',' => ',', |
| 57 |
';' => ';', |
| 58 |
), |
| 59 |
); |
| 60 |
|
| 61 |
$config['working_levels'] = array( |
| 62 |
'default' => array(USER_MODEL::LEVEL_STAFF, USER_MODEL::LEVEL_MANAGER, USER_MODEL::LEVEL_ADMIN), |
| 63 |
'label' => lang('staff_who_can_work'), |
| 64 |
'type' => 'checkbox_set', |
| 65 |
'options' => array( |
| 66 |
USER_MODEL::LEVEL_STAFF => lang('user_level_staff'), |
| 67 |
USER_MODEL::LEVEL_MANAGER => lang('user_level_manager'), |
| 68 |
USER_MODEL::LEVEL_ADMIN => lang('user_level_admin'), |
| 69 |
), |
| 70 |
'rules' => 'required' |
| 71 |
); |
| 72 |
|
| 73 |
|
| 74 |
$config['staff_pick_shifts'] = array( |
| 75 |
'default' => 1, |
| 76 |
'label' => lang('staff_can_pick_up_shifts'), |
| 77 |
'type' => 'checkbox', |
| 78 |
); |
| 79 |
|
| 80 |
$config['approve_pick_shifts'] = array( |
| 81 |
'default' => 1, |
| 82 |
'label' => lang('approve_shifts_pick_up'), |
| 83 |
'type' => 'checkbox', |
| 84 |
); |
| 85 |
|