-
Notifications
You must be signed in to change notification settings - Fork 4
docs14 Criteria AUTOCOMPLETE
Christos Pontikis edited this page Jul 2, 2017
·
4 revisions
// define operators
$criteria_operator_patients_id = C_PHP_BS_GRID_CRITERIA_AUTOCOMPLETE_EQUAL;
$criteria_isnull_checked_patients_id = '';
if(isset($_POST['criteria_patients_id_isnull'])) {
$criteria_operator_patients_id = C_PHP_BS_GRID_CRITERIA_AUTOCOMPLETE_IS_NULL;
$criteria_isnull_checked_patients_id = ' checked';
}
// define html params
$a_criteria_params_html_patients_id = array(
'wrapper_id' => 'criteria_patients_id_wrapper',
'wrapper_class' => '',
'autocomplete_wrapper_class' => 'col-xs-12 col-sm-12 col-md-6 col-lg-6',
'autocomplete_group_wrapper_class' => 'form-group',
'autocomplete_label_id' => 'criteria_patients_fullname_label',
'autocomplete_label_class' => '',
'autocomplete_label' => 'Appointment for patient',
'autocomplete_id' => 'criteria_patients_fullname',
'autocomplete_name' => 'criteria_patients_fullname',
'autocomplete_class' => 'form-control',
'autocomplete_style' => '',
'autocomplete_placeholder' => 'a few letters from the patient\'s name',
'autocomplete_value' => $criteria_patients_fullname,
'autocomplete_params' => array(
'source' => '/url/to/ajax_patient_autocomplete.php',
'minLength' => 2,
'delay' => 500,
'html' => true
),
'filter_wrapper_class' => 'col-xs-12 col-sm-12 col-md-3 col-lg-3',
'filter_group_wrapper_class' => 'form-group',
'filter_label_id' => 'criteria_patients_id_label',
'filter_label_class' => '',
'filter_label' => 'Code',
'filter_id' => 'criteria_patients_id',
'filter_name' => 'criteria_patients_id',
'filter_class' => 'form-control',
'filter_style' => 'width: 100px;',
'filter_value' => $criteria_patients_id,
'display_is_null_option' => C_PHP_BS_GRID_CRITERIA_AUTOCOMPLETE_DISPLAY_IS_NULL_YES,
'is_null_wrapper_class' => 'col-xs-12 col-sm-12 col-md-3 col-lg-3',
'is_null_class' => 'checkbox',
'is_null_style' => '',
'is_null_label_id' => '',
'is_null_label_class' => '',
'is_null_label' => gettext('not given'),
'is_null_id' => 'criteria_patients_id_isnull',
'is_null_name' => 'criteria_patients_id_isnull',
'is_null_checked' => $criteria_isnull_checked_patients_id
);