libraryDirectory.'settings.php'); include($bootstrap->libraryDirectory.'head.php'); include($bootstrap->libraryDirectory.'datacon.php'); require($bootstrap->libraryDirectory.'proclib.php'); // echo "

user: $user

"; $maxRecs = 650; $action = ''; $gEin = getVal('ein','','get'); $gAction = getVal('a', '', 'get'); $gBmfOnly = getVal('bmf','', 'get'); $getVal = getVal('gQry','', 'get'); $debug = getVal('debug','0', 'get'); $filers = getVal('filers','0', 'get'); // passed from nteeSearch $nteeFilter = getVal('ntee','','get'); $bmfOnly = $gBmfOnly; // confirm that action should be run: // $getInput = getVal('getInput','0','post'); $liveNtee = getVal('liventee','1','get'); $liveNteeSearch == 0; if ($getInput == '1'){ // $q = $HTTP_POST_VARS['q']; $ein = $HTTP_POST_VARS['ein']; $orgname = $HTTP_POST_VARS['orgname']; $state = $HTTP_POST_VARS['state']; $ntee = strtoupper($HTTP_POST_VARS['ntee']); $latest = $HTTP_POST_VARS['latest']; $bmfOnly = $HTTP_POST_VARS['bmfOnly']; $irsType = $HTTP_POST_VARS['irsType']; $filers = $HTTP_POST_VARS['filers']; $orgSearchType = $HTTP_POST_VARS['orgSearchType']; $freeform = $HTTP_POST_VARS['freeform']; $orderBy = $HTTP_POST_VARS['orderBy']; } $start = date('m/d/Y H:i:s'); $startTime = time(); /***********************************************************/ /* new server: */ /***********************************************************/ if ($gBmfOnly == 1 or $bmfOnly == 1) { $debug = 0; } $debug = 0; // echo "user: $gUser
"; if ($gUser == 'tpollak'){ $debug = 0; } if ($bmfOnly == '1' or $gBmfOnly == '1'){ $title = 'NCCS - Search IRS Business Master Files'; $param = '&bmf=1'; } elseif ($bmfOnly == 'M' or $gBmfOnly == 'M'){ $title = 'NCCS - Search NCCS Master File'; $param = '&bmf=M'; $bmfFile = $masterFile; } else { $title = 'NCCS - Search 990 Images'; $param = ''; } $eonUser = checkUserAccessRights($gUser,'EON',0); // 1=yes echo "$title\n"; ?> libraryDirectory.'head2.php'); // echo "Form view? "; echo "
Search Again - Advanced Search  
\n"; echo "

$title

\n"; // echo "(2.5 million returns.)
"; // $x = strlen(trim($ein).trim($orgname).trim($state)); // debug("ein $ein name $orgname state $state getinput: '$getInput'"); //echo 'x = '.$x; // dumpStuff(); // if ( $getInput <> '1' OR strlen($gAction)>=1 or (strlen($gEin)==0 and (strlen($ein.$ntee.$orgname.$state.$freeform)< 2 // OR ( strlen($ntee.$orgname.$state.$freeform)< 2) and strlen($ein)<7 ))){ /***********************************************************/ // get user input: /***********************************************************/ if ($getInput <>'1'){ if (! isset($orgname)){ $orgname = ''; } if (! isset($ein)){ $ein = ''; } $action = 'form'; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; if (! ($gBmfOnly == '1' OR $gBmfOnly == 'M')){ $latestChecked = 'CHECKED'; // set latest to unchecked if using advanced search: if ($gAction == 'a'){ $latestChecked = ''; } echo "\n"; } else { echo "\n"; } echo "\n"; echo "\n"; if ($gBmfOnly == '1' or $gBmfOnly == 'M'){ echo "\n"; echo "\n"; } else { echo "\n"; } if ($gAction =='a'){ echo "\n"; } else { echo "\n"; } // echo "\n"; echo '
Enter information on the organization(s) you wish you to find in the boxes below.\n"; echo "
Name:\n"; echo "
How should the name be searched?\n"; // echo "
State:\n"; echo "
State:\n"; echo "\n"; echo "
Organization type:\n"; echo showCheckBox('filers', $filers)." Limit to current 990 filers?\n"; echo "
NTEE purpose/activity code:     Click here to list or search.\n"; echo "
Show only the latest returns?\n"; echo "
Federal Employer ID Number (EIN)
(hyphen optional):
\n"; echo "
Order by"; echo "\n"; echo "
Freeform filter:
Search tips:
  • Search for KEY PARTS of an organization name. Example: To find "Admiral Jeremiah Denton Foundation," search for "Jeremiah Denton".
  • Using the default settings, the ORDER of the words DOES NOT matter. So, LAZARUS ORDER retrieves the "ORDER OF ST. LAZARUS".
  • Spelling must be PERFECT, so avoid words that may be abbreviated. Example: "ST." IN "ST. LAZARUS".
  • Some names are abbreviated (e.g., INSTITUTION is INST or UNIVERSITY is UNIV.) For best results, try both. (We plan to standardize these soon.)
  • The search is NOT case sensitive.
  • Surround multiple words with QUOTATION MARKS if the words must appear together (e.g., "SIERRA CLUB" instead of SIERRA CLUB).
  • If you include only a common word ("theater"), include the STATE to limit the results.
  • Advanced search only: Put a space on either side of a word to exclude, for example, "Buford" from a search for "Ford".
    In this example, type " Ford " in the search box.
'."\n"; if ($gAction =='a'){ echo "Freeform Filter examples:
  • NAME like '%MACARTHUR%' AND NAME LIKE '%CATH%'
  • INCOME BETWEEN 1000000 AND 1000000
    (INCOME=gross receipts; ASSETS=total end-of-year assets; you can also use '1e6' for $1 mil., '1.2e7' for $12 mil., etc.)
  • NTEECC LIKE 'P2%'
  • EIN in ('541282616', '510169168', '112697261', '592174510', '131656634', '136110212') AND taxyr ='2004'
\n"; } echo "
\n"; echo "\n"; //$detailsChecked =''; //if ($details == 1 or $details2 == 1) { $detailsChecked ='CHECKED';} //echo "
View all codes - Help"; // echo "
"; } elseif ( strlen( $gEin) > 0){ //echo "Displaying pdf ...
"; $ok2run = 1; $action = 'display'; $gEin = str_replace("-", "", $gEin); $q = "SELECT * FROM $imageFile WHERE EIN = '$gEin' ORDER BY taxyr"; // } elseif ($bmfOnly == 1 OR $bmfOnly = 'M') { // $action = 'display'; // $q = "SELECT *, name as PreferredName FROM $bmfFile WHERE EIN = '$gEin'"; /***********************************************************/ // main display screen: /***********************************************************/ } elseif ($getInput == '1') { $q = ''; if (strlen($ein.$ntee.$orgname.$state.$freeform.$gEin)< 2){ echo "You must select a value first. Press the Back button to return to the form.
\n"; return; } // echo "Displaying results...bmfOnly=$bmfOnly
"; $action = 'display'; $ok2run = 0; $ein = trim($ein); if ( strlen($ein) >=9){ $ein = str_replace("-", "", $ein); $ok2run = 1; if ($bmfOnly == 1 OR $bmfOnly == 'M'){ $q = "b.EIN = '$ein'"; } else { $q = "a.EIN = '$ein'"; } } $state = trim($state); if ( strlen($state) >=2){ if (strlen($q)>0){ $q = $q.' AND '; } $ok2run = 1; $q = $q."b.STATE = '$state'"; } if ( $filers = '1' or strtoupper($filers) == 'ON'){ if (strlen($q)>0){ $q = $q.' AND '; } $ok2run = 1; // added 3/11: if ( $bmfOnly <> 'M'){ $q = $q."b.filer = 'Y'"; } else { $q = $q."b.cTaxPer >= YEAR(CURRENT_DATE()) - 2"; } } $ntee = trim($ntee); $nteeLen = strlen($ntee); if ( strlen($ntee) >=1){ if (strlen($q)>0){ $q = $q.' AND '; } if ($eonUser == 1 and $liveNteeSearch == 1){ $nteeFld = "IF( c.confidenceDraft in ('A','B') and length(c.nteeDraft)>= 3, c.nteeDraft, c.nteeFinal) "; if ( $nteeLen < 3){ $nteeFld = "SUBSTRING( $nteeFld, 1,$nteeLen) "; } $q = $q."$nteeFld = '$ntee'"; } elseif ($eonUser == 1 and $liveNteeSearch == 0){ $nteeFld = "c.nteeFinal "; if ( $nteeLen < 3){ $nteeFld = "SUBSTRING( $nteeFld, 1,$nteeLen) "; } $q = $q."$nteeFld = '$ntee'"; // echo "liventee=0"; } else { //$nteeFld = 'b.Ntee2006'; $nteeFld = 'b.Ntee2007a'; if ( $nteeLen < 3){ $nteeFld = "SUBSTRING( $nteeFld, 1,$nteeLen) "; } $q = $q."$nteeFld = '$ntee'"; } $ok2run = 1; } if ( strlen($latest) ==1 and $bmfOnly <> 1 AND $bmfOnly <> 'M'){ if (strlen($q)>0){ $q = $q.' AND '; } $q = $q."a.latest = 1"; } if ( $irsType <> 'ALL'){ if (strlen($q)>0){ $q = $q.' AND '; } if ($irsType == 'PF'){ $q = $q." b.subseccd = '03' AND b.fndncd in ('02','03','04')"; } if ($irsType == 'PC'){ $q = $q." b.subseccd = '03' AND b.fndncd NOT IN ('02','03','04')"; } if ($irsType == 'OTHER'){ $q = $q." b.subseccd <> '03'"; } } // echo "orgname: ".$orgname." orgsrchtype= ".$orgSearchType."
"; if ( strlen($orgname) >=2){ if (strlen($q)>0){ $q = $q.' AND '; } if ($orgSearchType == 'Exact'){ $searchType = 'EXACT'; $q = "b.NAME = '$orgname'"; $ok2run = 1; } elseif ($orgSearchType == 'Begins'){ $q = $q. "b.NAME LIKE '$orgname%'"; $searchType = 'BEGINS'; $ok2run = 1; } else { // use 'like' if double quotes in name: if ( strpos( ' '.$orgname, '"') > 0 ){ // echo "Found quote
"; $orgname = str_replace('"','', $orgname); $q = $q." b.NAME LIKE '%$orgname%'"; $searchType = 'LIKE'; $ok2run = 1; } else { $searchType = 'FULLTEXT'; // "Includes" anywhere in name: // parse words // add 's' to end of singular words? $terms = explode(' ',trim($orgname)); $num_terms = count($terms); // Array length, number of elements // $stopWordList = "& - ' about behind from on toward above below in on top of under across beneath in front of onto underneath after beside inside out of until against between instead of outside up along by into over upon among down like past with around during near since within at except of through without before for off to"; $stopWordList = "a's able about above according accordingly across actually after afterwards again against ain't all allow allows almost alone along already also although always am among amongst an and another any anybody anyhow anyone anything anyway anyways anywhere apart appear appreciate appropriate are aren't around as aside ask asking associated at available away awfully be became because become becomes becoming been before beforehand behind being believe below beside besides best better between beyond both brief but by c'mon c's came can can't cannot cant cause causes certain certainly changes clearly co com come comes concerning consequently consider considering contain containing contains corresponding could couldn't course currently definitely described despite did didn't different do does doesn't doing don't done down downwards during each edu eg eight either else elsewhere enough entirely especially et etc even ever every everybody everyone everything everywhere ex exactly example except far few fifth first five followed following follows for former formerly forth four from further furthermore get gets getting given gives go goes going gone got gotten greetings had hadn't happens hardly has hasn't have haven't having he he's hello help hence her here here's hereafter hereby herein hereupon hers herself hi him himself his hither hopefully how howbeit however i'd i'll i'm i've ie if ignored immediate in inasmuch inc indeed indicate indicated indicates inner insofar instead into inward is isn't it it'd it'll it's its itself just keep keeps kept know knows known last lately later latter latterly least less lest let let's like liked likely little look looking looks ltd mainly many may maybe me mean meanwhile merely might more moreover most mostly much must my myself name namely nd near nearly necessary need needs neither never nevertheless new next nine no nobody non none noone nor normally not nothing novel now nowhere obviously of off often oh ok okay old on once one ones only onto or other others otherwise ought our ours ourselves out outside over overall own particular particularly per perhaps placed please plus possible presumably probably provides que quite qv rather rd re really reasonably regarding regardless regards relatively respectively right said same saw say saying says second secondly see seeing seem seemed seeming seems seen self selves sensible sent serious seriously seven several shall she should shouldn't since six so some somebody somehow someone something sometime sometimes somewhat somewhere soon sorry specified specify specifying still sub such sup sure t's take taken tell tends th than thank thanks thanx that that's thats the their theirs them themselves then thence there there's thereafter thereby therefore therein theres thereupon these they they'd they'll they're they've think third this thorough thoroughly those though three through throughout thru thus to together too took toward towards tried tries truly try trying twice two un under unfortunately unless unlikely until unto up upon us use used useful uses using usually value various very via viz vs want wants was wasn't way we we'd we'll we're we've welcome well went were weren't what what's whatever when whence whenever where where's whereafter whereas whereby wherein whereupon wherever whether which while whither who who's whoever whole whom whose why will willing wish with within without won't wonder would would wouldn't yes yet you you'd you'll you're you've your yours yourself yourselves zero"; $stopWords = explode( ' ', trim($stopWordList)); $numStopWords = count($stopWords); $badwords = ''; $fullTextOk = 0; $k = 0; for ( $i=0; $i < $num_terms; $i++) { $term = trim($terms[$i]); for ($j = 0; $j < $numStopWords ; $j++){ if (strtoupper($term) == strtoupper($stopWords[$j])){ $badwords = $badwords.' '.$term; $term =''; } /* $term = str_replace('&',' ', $term); $term = str_replace('-',' ', $term); $term = str_replace(' the ',' ', strtolower($term)); $term = str_replace(' and ',' ', $term); $term = str_replace(' of ',' ', $term); $term = str_replace(' on ',' ', $term); $term = str_replace(' in ',' ', $term); $term = str_replace("'",'', $term); */ } // returns error??? http://dev.mysql.com/doc/refman/4.1/en/fulltext-query-expansion.html // $q = $q." MATCH (b.Name) AGAINST ('$term' WITH QUERY EXPANSION)"; if (strlen($term)>=4) { if (strlen($term)>0 and $i > 0 and strlen($q)>3 and $k > 0){ $q = $q.' AND '; } $k = $k+1; $q = $q." MATCH (b.Name) AGAINST ('$term')"; $ok2run = 1; $fullTextOk = 1; } } if ($fullTextOk == 0 and strlen(trim($orgname))>0){ // if words too short or only stopwords, change type of search: for ( $i=0; $i < $num_terms; $i++) { $term = trim($terms[$i]); if (strlen($q)>0){ $q = $q.' AND '; } $q = "b.name LIKE '%". $term. "%'"; $ok2run = 1; } } } } } if ( strlen($freeform) >=2){ if (strlen($q)>0){ $q = $q.' AND '; } $ok2run = 1; $freeform = strtolower(' '.$freeform); // add aliases if missing for some key fields: $alias = ($bmfOnly == 1 OR $bmfOnly == 'M') ? 'b.' : 'a.'; $freeform = stripslashes(str_replace( 'ein', $alias.'ein', $freeform)); $freeform = str_replace("''","'", $freeform); $q = $q.$freeform; } if ($debug == 1){ echo 'q:
'.$q."
"; } if (strlen($q)< 3 or $ok2run ==0){ echo "

Error: No query was specified. Try again.

\n"; } else { // always do join (ver.2): if ( ! $bmfOnly == 1 ){ $orderBy = 'name'; } if (strlen(trim($state).trim($ntee))>0 or 1){ // echo "bmf query
"; /* ver 1 2006 file: $q = "SELECT a.*, b.state, b.nteecc, b.name as PreferredName FROM $imageFile a, $bmfFile b WHERE a.ein = b.ein AND ($q) ORDER BY b.name, a.taxyr DESC"; */ if ($eonUser == 1 and $liveNtee == 1 and ($bmfOnly == 1 OR $bmfOnly == 'M')){ // $q = "SELECT *, ruledate as Rule_Date, name as PreferredName FROM $bmfFile b WHERE $q ORDER BY name"; // new version 5/10/07 adds image: $q = "SELECT b.*, b.ruledate as Rule_Date, b.name as PreferredName, IF( c.confidenceDraft = 'A' and length(c.nteeDraft)>= 3, c.nteeDraft, c.nteeFinal) as Ntee, i.Filename as ImageFilename FROM $bmfFile b LEFT JOIN $imageFile i ON b.ein = i.ein, $nteeFile c WHERE (b.ein = c.ein) AND ($q) AND (i.latestOne is null or i.latestOne = 1) ORDER BY $orderBy"; $qryCode = 'I'; } elseif ($eonUser == 1 and $liveNtee == 0 and ($bmfOnly == 1 OR $bmfOnly == 'M')){ // $q = "SELECT *, ruledate as Rule_Date, name as PreferredName FROM $bmfFile b WHERE $q ORDER BY name"; // new version 5/10/07 adds image: $q = "SELECT b.*, b.ruledate as Rule_Date, b.name as PreferredName, c.nteeFinal as Ntee, i.Filename as ImageFilename FROM $bmfFile b LEFT JOIN $imageFile i ON b.ein = i.ein LEFT JOIN $nteeFile c ON b.ein = c.ein WHERE $q AND (i.latestOne is null or i.latestOne = 1) ORDER BY $orderBy"; $qryCode = 'A'; } elseif ($bmfOnly == 1 OR $bmfOnly == 'M'){ // $q = "SELECT *, ruledate as Rule_Date, name as PreferredName FROM $bmfFile b WHERE $q ORDER BY name"; // new version 5/10/07 adds image: $q = "SELECT b.*, b.ruledate as Rule_Date, b.name as PreferredName, i.Filename as ImageFilename FROM $bmfFile b LEFT JOIN $imageFile i ON b.ein = i.ein WHERE $q AND (i.latestOne is null or i.latestOne = 1) ORDER BY $orderBy"; $qryCode = 'B'; } else { /* old: $q = "SELECT a.*, b.state, b.nteecc, b.name as PreferredName FROM $imageFile a LEFT JOIN $bmfFile b ON a.ein = b.ein WHERE ($q) ORDER BY b.name, a.taxyr DESC"; */ // 3/2008: left join or inner join: seems like big performance difference: $nteeLink = ''; if (eregi('ntee', $q ) ){ $nteeLink = " LEFT JOIN $nteeFileNarrow c ON a.ein = c.ein"; } $q = "SELECT a.*, b.state, b.nteecc, b.name as PreferredName FROM $imageFile a LEFT JOIN $bmfFile b ON a.ein = b.ein $nteeLink WHERE ($q) ORDER BY b.name, a.taxyr DESC"; // echo $q.'
'; /* INNER JOIN: FAST $q = "SELECT a.*, b.state, b.nteecc, b.name as PreferredName FROM $imageFile a, $bmfFile b WHERE a.ein = b.ein AND ($q) ORDER BY b.name, a.taxyr DESC"; // echo $q.'
'; */ $qryCode = 'C'; // SAMPLE: // SELECT a.*, b.state, b.nteecc, b.name as PreferredName // FROM digdata.imagesEri20070910 a LEFT JOIN bmf.bm0701 b ON a.ein = b.ein // WHERE (b.STATE = 'MD' AND a.latest = 1 AND MATCH (b.Name) AGAINST ('POLLAK')) // ORDER BY b.name, a.taxyr DESC // Why slow? Need index: b.name, a.taxyr, latest } } else { // echo "Quick
"; if ($bmfOnly == 1 or $bmfOnly == 'M'){ $q = "SELECT *,name as PreferredName FROM $bmfFile b WHERE $q ORDER BY name"; $qryCode = 'D'; } else { $q = "SELECT * FROM $imageFile a WHERE $q ORDER BY b.name, a.taxyr DESC"; $qryCode = 'E'; } } } if ($debug == 1){ echo 'q:
'.$q."
"; } $q .= " LIMIT $maxRecs"; if ( strlen( $q) > 0 and $ok2run == 1 and $action =='display'){ $results = mysql_query($q); if (strlen( mysql_error())>0){ echo ''.mysql_error()."

$q

"; return 0; } $numResults = mysql_num_rows($results); if ( $searchType=='FULLTEXT' and strlen($badwords)>1){ echo "Our database system excluded the following common words from your query: $badwords

\n"; // (The next version of our search tool will eliminate these exclusions.)

\n"; } if ( $numResults == 0) { // echo "Query:
$codeSearchQry

\n"; // echo "'$q' -- NO RECORDS FOUND.


\n"; echo "NO RECORDS FOUND. Click here to try again.\n"; echo "

Tip: Reduce the number of words in your search and remove smaller words that might have been dropped from the name.
\n"; if ($searchType =='FULLTEXT'){ // echo "

Tip: Put quotes around the text.\n"; } echo "


"; //echo ''.mysql_error()."

"; return 0; } else { echo "Number found: ".number_format($numResults)." - Click on any line in the list of results to view the return.
\n"; } if ($debug == 1) { echo "Query:
$q
\n"; echo "Org searchtype:$orgSearchType


\n"; } if ($numResults > $maxRecs) { echo "Only the first $maxRecs records will be displayed.
\n"; $numResults = $maxRecs; } else { // echo 'max: '.$maxRecs. ' num: '.$numResults.'
'; } echo "
\n"; if ($bmfOnly == 1 OR $bmfOnly == 'M'){ echo "\n"; $eon = ''; if ($eonUser == 1){ $eon = ""; } echo " $eon \n"; } for ( $i=0; $i < $numResults; $i++) { if ($i % 2 == 1) { $color = $bcolor; } else {$color = 'white';} $row = mysql_fetch_array($results); $filename = getVal('Filename', '','row'); // $row['Filename']; $orgname = getVal('NAME','','row'); $ein = $row['EIN']; $ein2show = ' '.$row['EIN'].' '; $ruledate = substr($row['Rule_Date'],0,4); $taxyr = getVal('Taxyr','','row'); $fisyr = getVal('FisYr','','row'); $orgname1 = $row['PreferredName']; $secname = getVal('SEC_NAME','','row'); if (strlen($secname)>0){ $orgname1 .= ', '.$secname; } $taxper = $row['cTaxPer']; $income = number_format($row['cTotRev']); $assets = number_format($row['cAssets']); $ntee = getVal('Ntee','','row'); if ( ! strlen($income)>0){ $income = ' ';} if (strlen($orgname1)>0){ $orgname = $orgname1; } $orgname = fixcase($orgname); if ($bmfOnly == 1 OR $bmfOnly == 'M'){ // show bmf info: // $sql2 = "SELECT * FROM $bmfFile WHERE EIN = '$ein'"; $url = "showVals.php?ft=bmf&ein=$ein"; $fisyr = substr($taxper,0,4) ; $imageLink = ' '; if ( strlen($row['ImageFilename'])>1){ $imageLink = '990'; } $subsec2 = getVal('SUBSECCD','','row'); if ( $subsec2 == '03' and strpos('X02,03,04', $row['FNDNCD']) >0){ $subsec2 .= '-pf'; } $city = fixcase(getVal('CITY','','row')); $dState = getVal('STATE','','row'); $moreInfo = ''."'; $moreInfo .= "'. "'. "'. "'. "'; // Show EON link if registered user: if (strlen($eon)>0){ $eonUrl = "$baseURL/new/sampleTest3AC.php?action=drill&doEdit=1&filter=$ein"; $winControl = 'onclick='.'"window.open('."'$eonUrl','name','height=400, width=700,toolbar=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=yes'); return false;".'"'; // test version: $moreInfo = $moreInfo.""; $moreInfo = $moreInfo.""; } if (strlen($fisyr)== 0){ $fisyr = ' '; } $link = "'. ""; // OLD VERSION: ""; } else { // show image link: $link = ''.$fisyr.' - '.$orgname.' ('.$ein.')
'; // list of records to exclude due to privacy issues: if ( ($ein =='411912573' and $fisyr == '2005') OR ($ein == '592332638' and $fisyr ='2005') OR ($ein == '910673185' and $fisyr == '2005') ) { $link = ''.$fisyr.' - '.$orgname.' ('.$ein.') - Image temporarily unavailable.
'; } } // for ($i=0; $i < count($row); $i++) { // echo 'row: '.$i.'. '. $row[$i]. "
\n"; // } // print_r(array_keys($row)); echo $link; } if ($bmfOnly == 1 or $bmfOnly == 'M'){ echo "
EON
Most Recent Tax Period EIN Name State Rule Date IRS Sub- section Total Revenue Total Assets 990 Image
". $city. ', '. $dState. '". $ruledate.'".$subsec2.' ".$income.'".$assets.'".$imageLink.'"."EON"."$ntee
".$fisyr.'$ein2show ".$orgname."$moreInfo
".$orgname.' ('.$ein.")$moreInfo
\n"; } } } // end of "query ok: display results" echo "
"; echo "
\n"; ?>
A service of the National Center for Charitable Statistics at the Urban Institute
ERI Economic Research Institute
'; } echo "'
IRS Business Master File - "; echo 'NCCS Cumulative Master File - '; echo '990 Images
'."\n"; // echo '
bmfonly: '.$bmfOnly; ?>
"; include($bootstrap->libraryDirectory.'footer.php'); if ( strlen( $q) > 0 and $ok2run == 1 and $action =='display'){ $date = date('m/d/Y'); $today = elapsedTime($startTime, $date); echo "
$today (qcode: $qryCode)\n"; } ?>