00001 <?php
00002 require_once GYRO_CORE_DIR . 'view/widgets/input/base/multiselect.input.widget.php';
00003
00004
00005
00006
00007
00008
00009
00010
00011 class InputWidgetMultiselect extends InputWidgetMultiselectBase {
00012
00013
00014
00015 protected function build_multiselect_checkbox($name, $key, $display, $values, $attrs, $lbl_class) {
00016 $ret = '';
00017 $attrs['value'] = $key;
00018 if (in_array($key, $values)) {
00019 $attrs['checked'] = 'checked';
00020 }
00021 $attrs['id'] = strtr($name, array(']' => '', '[' => '')) . '_' . $key;
00022 $checkbox_html = html::input('checkbox', $name, $attrs);
00023 $checkbox_html .= ' ';
00024 $checkbox_html .= html::label($display, $attrs['id']);
00025 $ret .= html::div($checkbox_html, 'type-check');
00026 return $ret;
00027 }
00028 }