// // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // // A copy of the GNU General Public License is included along with this program: // openemr/interface/login/GnuGPL.html // For more information write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // // Author: Eldho Chacko // Paul Simon K // // +------------------------------------------------------------------------------+ function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : strip_escape_custom($value); return $value; } //Parses the search value part of the criteria and prepares for sql. function PrepareSearchItem($SearchItem) { $SplitArray=split(' like ',$SearchItem); if(isset($SplitArray[1])) { $SplitArray[1] = substr($SplitArray[1], 0, -1); $SplitArray[1] = substr($SplitArray[1], 1); $SearchItem=$SplitArray[0].' like '."'".add_escape_custom($SplitArray[1])."'"; } else { $SplitArray=split(' = ',$SearchItem); if(isset($SplitArray[1])) { $SplitArray[1] = substr($SplitArray[1], 0, -1); $SplitArray[1] = substr($SplitArray[1], 1); $SearchItem=$SplitArray[0].' = '."'".add_escape_custom($SplitArray[1])."'"; } } return($SearchItem); } //Parses the database value and prepares for display. function BuildArrayForReport($Query) { $array_data=array(); $res = sqlStatement($Query); while($row=sqlFetchArray($res)) { $array_data[$row['id']]=htmlspecialchars($row['name'],ENT_QUOTES); } return $array_data; } //The criteria "Insurance Company" is coded here.The ajax one function InsuranceCompanyDisplay() { global $ThisPageSearchCriteriaDisplay,$ThisPageSearchCriteriaKey,$ThisPageSearchCriteriaIndex,$web_root; echo ''. ''. ''. ''. ''. ''. ''. ''. ''. '
'. ''. '
'. ''. '
'. '
'. ''. '
'. '
'.attr($_POST['hidden_type_code']).'
'. ''; } ?>