give up on ajax selection of checkboxes
This commit is contained in:
@@ -36,6 +36,7 @@ function booking_manual_email()
|
|||||||
'#options' => $email_options_array,
|
'#options' => $email_options_array,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/*
|
||||||
$form['select-type'] = array(
|
$form['select-type'] = array(
|
||||||
'#type' => 'select',
|
'#type' => 'select',
|
||||||
'#title' => t('Pre-Select People'),
|
'#title' => t('Pre-Select People'),
|
||||||
@@ -47,7 +48,7 @@ function booking_manual_email()
|
|||||||
'event' => 'change',
|
'event' => 'change',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
|
|
||||||
$header = array(
|
$header = array(
|
||||||
'booking_nid' => array('data' => t('Id'), 'field' => 'nid', 'sort' => 'asc'),
|
'booking_nid' => array('data' => t('Id'), 'field' => 'nid', 'sort' => 'asc'),
|
||||||
@@ -62,7 +63,7 @@ function booking_manual_email()
|
|||||||
'welfare_required' => array('data' => t('Welfare Required?'), 'field' => 'booking_welfare_required'),
|
'welfare_required' => array('data' => t('Welfare Required?'), 'field' => 'booking_welfare_required'),
|
||||||
'travel_form' => array('data' => t('Travel Submitted?'), 'field' => 'tid'),
|
'travel_form' => array('data' => t('Travel Submitted?'), 'field' => 'tid'),
|
||||||
);
|
);
|
||||||
/*
|
|
||||||
if (variable_get('booking_enable_studygroups', 0) == 1)
|
if (variable_get('booking_enable_studygroups', 0) == 1)
|
||||||
{
|
{
|
||||||
//select entries from the study groups mapping table
|
//select entries from the study groups mapping table
|
||||||
@@ -119,15 +120,15 @@ function booking_manual_email()
|
|||||||
$options[$data->nid]['group_roles'] = $group_text;
|
$options[$data->nid]['group_roles'] = $group_text;
|
||||||
}
|
}
|
||||||
|
|
||||||
$values[$data->nid] = ($data->booking_payment_complete == 'Y' || $data->booking_status != 1) ? FALSE : TRUE;
|
//$values[$data->nid] = ($data->booking_payment_complete == 'Y' || $data->booking_status != 1) ? FALSE : TRUE;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
$form['table'] = array (
|
$form['table'] = array (
|
||||||
'#type' => 'tableselect',
|
'#type' => 'tableselect',
|
||||||
'#multiple' => TRUE,
|
'#multiple' => TRUE,
|
||||||
'#header' => $header,
|
'#header' => $header,
|
||||||
'#options' => _booking_manual_email_generate_options(),
|
'#options' => $options,
|
||||||
'#default_value' => array("1812" => TRUE, "1813" => FALSE),
|
//'#default_value' => array("1812" => TRUE, "1813" => FALSE),
|
||||||
'#empty' => t('No attendees found.'),
|
'#empty' => t('No attendees found.'),
|
||||||
'#attributes' => array('id' => 'sort-table'),
|
'#attributes' => array('id' => 'sort-table'),
|
||||||
'#prefix' => '<div id="manual-email-attendees-items">',
|
'#prefix' => '<div id="manual-email-attendees-items">',
|
||||||
|
Reference in New Issue
Block a user