// 990search.php - 10/04/2006 - /phpApps/990search/ - Displays 990 pdfs from ERI site. // test Urban Inst: 520880375 session_start(); require_once('Bootstrap.php'); $bootstrap = Bootstrap::create(); /* name like '%MACARTHUR%' AND NAME LIKE '%CATH%' ENHANCEMENTS: - Taxyr - Advanced search (free form) textarea - Include only latest return? - "Detail" - show gross receipts, assets, state, ntee etc. from BMF GET: liventee=1: Makes NTEE search fully interactive. (A change in nteedoc is immediately reflected in search and display, but it is slow.) $liveNteeSearch: 1 -- only search with nteedraft if = 1 bad links: http://204.203.220.33/EINS/912003780/912003780_2004_024BDDFB.pdf http://204.203.220.33/EINS/841513143/841513143_2005_023382F6.pdf http://204.203.220.33/EINS/596063228/596063228_2005_023D7C7E.pdf USE THIS TO TEST LINK FIRST 11/2006: function http_test_existance($url) { return (($fp = @fopen($url, 'r')) === false) ? false : @fclose($fp); } IMPORTANT NOTE!!! A list of records that should NOT be displayed due to their inclusion of confidential information can be found below by searching for the following comment: "list of records to exclude due to privacy issues:" NOTE ON PERFORMANCE: // qryCode ='C' (IMAGELIST SEARCH) 3/2008: left join or inner join: seems like big performance difference: */ session_register('state'); session_register('irsType'); session_register('orderBy'); $getInput = '0'; if (isset($HTTP_POST_VARS['getInput'])){ $getInput = '1'; } else { $field1 = 'orgname'; // name of field to get focus. Put this line before: } include($bootstrap->libraryDirectory.'settings.php'); include($bootstrap->libraryDirectory.'head.php'); include($bootstrap->libraryDirectory.'datacon.php'); require($bootstrap->libraryDirectory.'proclib.php'); // echo "