get_sel_header_template(); print $this->get_js_script(); if(!$this->user_input) { $this->user_input = '*'; } print $this->get_display_list(); print $this->get_sel_footer_template(); } protected function get_values_list() { $values_list = array(); if($this->search_field_id) { if(!isset($this->search)) { $this->search = new search($this->search_xml_file); } $p=explode('_', $this->search_field_id); if($p[0] == 'f') { $values_list = $this->search->get_options_list_field($this->search->fixedfields[$p[1]]); } } return $values_list; } protected function get_display_list() { global $nb_per_page; global $page; global $msg; $display_list = ''; if(!$page) { $debut = 0; } else { $debut = ($page-1)*$nb_per_page; } $values_list = $this->get_values_list(); foreach($values_list as $index=>$value ) { $display_list .= $this->get_display_element($index, $value); } return $display_list; } protected function get_display_element($index='', $value='') { global $charset; global $caller; global $callback; $display = "
"; return $display; } public function get_title() { $title = ""; if($this->search_field_id) { if(!isset($this->search)) { $this->search = new search($this->search_xml_file); } $p=explode('_', $this->search_field_id); if($p[0] == 'f') { $title = $this->search->fixedfields[$p[1]]['TITLE']; } } return $title; } public static function get_params_url() { global $search_xml_file, $search_field_id; $params_url = parent::get_params_url(); $params_url .= ($search_xml_file ? "&search_xml_file=".$search_xml_file : "").($search_field_id ? "&search_field_id=".$search_field_id : ""); return $params_url; } public function set_search_xml_file($search_xml_file) { $this->search_xml_file = $search_xml_file; } public function set_search_field_id($search_field_id) { $this->search_field_id = $search_field_id; } } ?>