|
|
|
|
@ -6661,7 +6661,7 @@ class SessionManager |
|
|
|
|
$userInfo = api_get_user_info(); |
|
|
|
|
|
|
|
|
|
$categoriesOptions = array( |
|
|
|
|
'0' => get_lang('None'), |
|
|
|
|
'0' => get_lang('None') |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
if ($categoriesList != false) { |
|
|
|
|
@ -6784,12 +6784,12 @@ class SessionManager |
|
|
|
|
|
|
|
|
|
$options = [ |
|
|
|
|
0 => get_lang('ByDuration'), |
|
|
|
|
1 => get_lang('ByDates'), |
|
|
|
|
1 => get_lang('ByDates') |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
$form->addSelect('access', get_lang('Access'), $options, array( |
|
|
|
|
'onchange' => 'accessSwitcher()', |
|
|
|
|
'id' => 'access', |
|
|
|
|
'id' => 'access' |
|
|
|
|
)); |
|
|
|
|
|
|
|
|
|
$form->addElement('html', '<div id="duration" style="display:none">'); |
|
|
|
|
@ -6807,11 +6807,9 @@ class SessionManager |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$form->addElement('html', '</div>'); |
|
|
|
|
|
|
|
|
|
$form->addElement('html', '<div id="date_fields" style="display:none">'); |
|
|
|
|
|
|
|
|
|
// Dates |
|
|
|
|
|
|
|
|
|
$form->addDateTimePicker( |
|
|
|
|
'access_start_date', |
|
|
|
|
array(get_lang('SessionStartDate'), get_lang('SessionStartDateComment')), |
|
|
|
|
|