input->post('ids'); if($people_to_email!=false) { $mailto_url='mailto:'; foreach($this->Person->get_multiple_info($people_to_email)->result() as $person) { $mailto_url.=$person->email.','; } //remove last comma $mailto_url=substr($mailto_url,0,strlen($mailto_url)-1); echo $mailto_url; exit; } echo '#'; } /* Gives search suggestions based on what is being searched for */ function suggest() { $suggestions = $this->Person->get_search_suggestions($this->input->post('q'),$this->input->post('limit')); echo implode("\n",$suggestions); } /* Gets one row for a person manage table. This is called using AJAX to update one row. */ function get_row($row_id) { $data_row=get_person_data_row($this->Person->get_info($row_id),$this); echo json_encode($data_row); } } ?>