public function getFilterInput($value) { $items = $this->getListItems(); if (!$this->getOption('filter_multiple')) { $items = array('' => '') + $items; // array_pad($items, (sizeof($items)+1)*-1, ''); return html_select($this->name, $items, $value); } else { $value = is_array($value) ? $value : array(); return html_select_multiple($this->name, $items, $value); } }
public function getFilterInput($value) { $items = $this->getListItems(); if (is_array($value)) { foreach ($value as $k => $v) { if (is_numeric($v)) { $value[$k] = intval($v); } } } else { $value = array(); } return html_select_multiple($this->name, $items, $value); }
public function getFilterInput($value) { $items = $this->getListItems(); $value = is_array($value) ? $value : array(); return html_select_multiple($this->name, $items, $value); }
<?php if ($field->title) { ?> <label for="<?php echo $field->id; ?> "><?php echo $field->title; ?> </label><?php } echo html_select_multiple($field->element_name, $field->data['groups'], $value, array('id' => $field->id)); ?> <script type="text/javascript"> $(function() { $('#<?php echo $field->id; ?> input').on('click', function (){ v = $(this).val(); p = $(this).parents('.input_checkbox_list'); if(v==0){ $('input', p).not('input[value="0"]').prop('checked', false); } else { $('input[value="0"]', p).prop('checked', false); } }); }); </script>
<?php if ($field->title) { ?> <label for="<?php echo $field->id; ?> "><?php echo $field->title; ?> </label><?php } echo html_select_multiple($field->element_name, $field->data['items'], $field->data['selected'], array('id' => $field->id));
<?php if ($field->title) { ?> <label for="<?php echo $field->id; ?> "><?php echo $field->title; ?> </label><?php } if ($field->data['is_multiple']) { echo html_select_multiple($field->element_name, $field->data['items'], $value, $field->data['dom_attr'], $field->data['is_tree']); } else { if (!$field->native_tag) { $this->addJSFromContext('templates/default/js/jquery-chosen.js'); $this->addCSSFromContext('templates/default/css/jquery-chosen.css'); } echo html_select($field->element_name, $field->data['items'], $value, $field->data['dom_attr']); } ?> <script type="text/javascript"> <?php if ($field->data['parent']) { ?> $('#<?php echo str_replace(':', '_', $field->data['parent']['list']); ?> ').on('change', function(){ icms.forms.updateChildList('<?php