require_once('Bootstrap.php'); $bootstrap = Bootstrap::create(); // session_start(); include($bootstrap->libraryDirectory."head.php"); include($bootstrap->libraryDirectory."datacon.php"); include($bootstrap->libraryDirectory."proclibUI.php"); $codeSearchTerm = $HTTP_POST_VARS['search']; $codeSearchTerm2 = $HTTP_POST_VARS['search2']; $details = $HTTP_POST_VARS['details']; $details2 = $HTTP_POST_VARS['details2']; $nameOnly = $HTTP_POST_VARS['nameOnly']; if ( strlen($_GET['codeType']) > 0){ $codeType = $_GET['codeType']; } elseif ( strlen($HTTP_POST_VARS['codeType']) > 0){ $codeType = $HTTP_POST_VARS['codeType']; } else { $codeType = 'NTEE'; } if ($codeType == 'NTEE'){ $codeNameFld = 'TERM_NAME'; $codeFld = 'CODE'; $otherFlds = 'KEYWORDS, SCOPE_NOTE, EXAMPLES'; } else { $codeNameFld = 'NAME'; $codeFld = 'code'; $otherFlds = 'BROADER, NARROWER, SCOPE_NOTES, EXAMPLES'; } if ($details === 0) {$details = 1; } if ( strlen($codeSearchTerm) == 0 and strlen($codeSearchTerm2) == 0 ) {$details =1;} // $details = 1; //------------------- CHANGE PARAMETERS IF FILE CHANGES ------------- if ($codeType == 'NTEE'){ // $codeFile = 'lookup.ntee2004a'; $codeFile = 'lookup.ntee2007a'; } else { $codeFile = 'lookup.npc2004a'; } /***********************************************************/ $debug = 0; $getVal = $_GET['gQry']; if ( strlen($codeSearchTerm2) > 0 and strlen( $codeSearchTerm) == 0) { $codeSearchTerm = $codeSearchTerm2;} echo "