all days, weekdays, weekend only for mutiple rows

This commit is contained in:
Ralf Becker 2004-10-07 22:09:02 +00:00
parent 95375f467c
commit 930db9f0c0

View File

@ -301,11 +301,15 @@
define('MCAL_M_ALLDAYS',127); define('MCAL_M_ALLDAYS',127);
} }
$weekstart = $GLOBALS['phpgw_info']['user']['preferences']['calendar']['weekdaystarts']; $weekstart = $GLOBALS['phpgw_info']['user']['preferences']['calendar']['weekdaystarts'];
$cell['sel_options'] = array( $cell['sel_options'] = array();
MCAL_M_ALLDAYS => 'all days', if ($rows >= 2)
MCAL_M_WEEKDAYS => 'working days', {
MCAL_M_WEEKEND => 'weekend', $cell['sel_options'] = array(
); MCAL_M_ALLDAYS => 'all days',
MCAL_M_WEEKDAYS => 'working days',
MCAL_M_WEEKEND => 'weekend',
);
}
if ($weekstart == 'Saturday') $cell['sel_options'][MCAL_M_SATURDAY] = 'saturday'; if ($weekstart == 'Saturday') $cell['sel_options'][MCAL_M_SATURDAY] = 'saturday';
if ($weekstart != 'Monday') $cell['sel_options'][MCAL_M_SUNDAY] = 'sunday'; if ($weekstart != 'Monday') $cell['sel_options'][MCAL_M_SUNDAY] = 'sunday';
$cell['sel_options'] += array( $cell['sel_options'] += array(