indexes).', '."'".$key."'".')" onclick="filter_show_only_selection(this, '.json_encode($value->indexes).', '."'".$key."'".')" onfocus="filter_show_only_selection(this, '.json_encode($value->indexes).', '."'".$key."'".')" onclick="filter_show_only_selection(this, '.json_encode(array()).', '."'".$key."'".')" onchange="filter_show_only_selection(this, '.json_encode($value->indexes).', '."'".$key."'".')" onchange="filter_show_only_selection(this, '.json_encode(array()).', '."'".$key."'".')" onchange="filter_event(this, this.options[this.selectedIndex], \''.$key.'\')" */ $menu_name_class = 'filter_menu_'.str_replace(" ", "_", $key).''; $id = "filter_" . $key . "_" . $key ; $content = ' '; return $content; }; function mp_filter_buttons($key, &$filter) { /* onclick="filter_show_only_selection(this, '.json_encode($value->indexes).', '."'".$key."'".', true)" */ $menu_name_class = 'filter_menu_'.str_replace(" ", "_", $key).''; $content = ''; foreach ($filter as $key_filter => $value) { $id = "filter_" . $key . "_" . str_replace( " ", "_", $value->_name) ; $content .= ' '; } return $content; }; function mp_create_div(&$filters) { $mp_map_div = '
'; foreach ($filters as $key => $filter) { if ($key == "mode") $mp_map_div .= mp_filter_buttons($key, $filter); else $mp_map_div .= mp_filter_drop_down($key, $filter); }; $mp_map_div .= ' '; $mp_map_div .= '
'; return $mp_map_div; }; ?>