public static function show($name, $value, $options, $extra = [])
 {
     $defaults = ['name' => $name, 'autocomplete' => 'off', 'style' => '', 'id' => $name, 'class' => '', 'empty' => FALSE, 'key_value' => 'id', 'value_value' => 'name'];
     $list = array_merge($defaults, (array) $extra);
     $list['class'] .= ' o_combobox';
     $options[$value] = $value;
     echo o::element_rtn('select', $list);
     echo o::dropdown_options($value, $options, $list);
     echo '</select>';
 }
Beispiel #2
0
 public static function footer_button($href, $text, $extra = [], $type = 'button')
 {
     $defaults = ['class' => 'btn btn-default js-' . o::websafe($text), 'href' => $href];
     $list = array_merge($defaults, (array) $extra);
     echo '&nbsp;&nbsp;&nbsp;';
     echo o::element_rtn($type, $list, $text);
 }