Web Listings for $term
Home / Terms / Web / $term

Web Listings    Publications    News Topics    Information

"; CarpConf('shownoitems',1); CarpConf('noitems',''); // CarpConf('encodingin','UTF-8'); // CarpConf('encodingout','UTF-8'); // CarpConf('fixentities',1); CarpConf('cborder',''); CarpConf('cacheinterval',2800); CarpConf('iorder','link,desc'); CarpConf('bi',''); CarpConf('aidesc','

'); CarpConf('linktarget',1); CarpConf('poweredby',''); CarpCacheShow("http://beta.search.msn.com/results.aspx?q=$myterm&format=rss"); } elseif($action == 'books'){ $result = mysql_query("select * from flowmeter_terms where id='$_REQUEST[id]'", $db); $myrow = mysql_fetch_array($result); $term = ucwords($myrow[term]); $myterm = str_replace(' ', '+', $myrow[term]); $dev_token = 'D2WMCOIPS9D14E'; $mode = 'books'; $product_type = 'Books'; $type ='lite'; $show_xml=false; $f_rich=true; $page = $_REQUEST[page]; if (!$page) { $page=1; } $file="onca/xml3?". "dev-t=$dev_token".'&'. "f=xml".'&'. "KeywordSearch=$search".'&'. "mode=$mode".'&'. "page=$page".'&'. "t=$associates_id".'&'. "type=$type".'&'. "v=1"; //global variables: $totalresults='unknown'; if (false) { //change this to true if you want this debugging info to be shown print "
"; print "Debugging:
\n"; print "Asking Amazon's XML interface for:
\n"; print $file."
\n"; } if ($A=getAmazon($file)) { printAmazon($A); } else { if (!$show_xml) { $nodata = 1; echo "

Books on $term
Home / Terms / Books / $term

Web Listings    Publications    News Topics    Information


No publications found for $term

"; } } } elseif($action == 'news'){ $result = mysql_query("select * from flowmeter_terms where id='$_REQUEST[id]'", $db); $myrow = mysql_fetch_array($result); $term = ucwords($myrow[term]); $myterm = str_replace(' ', '+', $myrow[term]); echo "

News about $term
Home / Terms / News / $term

Web Listings    Publications    News Topics    Information

"; CarpConf('shownoitems',1); CarpConf('noitems',''); // CarpConf('encodingin','UTF-8'); // CarpConf('encodingout','UTF-8'); // CarpConf('fixentities',1); CarpConf('cborder',''); CarpConf('aidesc','

'); CarpConf('cacheinterval',2800); CarpConf('poweredby',''); CarpConf('linktarget', 1); CarpCacheShow("http://news.google.com/news?q=$myterm&output=rss"); } elseif($action == 'info'){ $result = mysql_query("select * from flowmeter_terms where id='$_REQUEST[id]'", $db); $myrow = mysql_fetch_array($result); $term = ucwords($myrow[term]); $myterm = str_replace(' ', '+', $myrow[term]); echo "

Information on $term
Home / Terms / $term

Web Listings    Publications    News Topics    Information

$myrow[definition]

"; CarpConf('shownoitems',1); CarpConf('noitems',''); CarpConf('cborder',''); CarpConf('aidesc','

'); CarpConf('cacheinterval',2800); CarpConf('maxitems',2); CarpConf('poweredby',' '); CarpConf('linktarget', 1); CarpCacheShow("http://news.google.com/news?q=$myterm&output=rss"); echo "

\n"; CarpConf('iorder','link,desc'); CarpConf('bi',''); CarpConf('aidesc','

'); CarpConf('cacheinterval',2880); CarpConf('maxitems',2); CarpConf('linktarget',1); CarpConf('poweredby',''); CarpCacheShow("http://beta.search.msn.com/results.aspx?q=$myterm&format=rss"); } else { echo "

Common Terms associated with Flow Meters
Home / Terms

Below are terms and phrases which are commonly associated with flow meters. You can get more detailed information by clicking the info links after each term. Information available includes web results, definitions, publications, and news topics concerning that term.

"; echo "\n"; $result = mysql_query("select * from flowmeter_terms", $db); while($myrow = mysql_fetch_array($result)){ $term = ucwords($myrow[term]); echo "\n"; } echo "
$termMore Information
\n"; } echo "

  

\n"; include("includes/footer.php"); //get the data from amazon function getAmazon($file) { global $host; global $show_xml; global $totalresults; if ($hf=fopen("http://xml.amazon.com/$file",'r')) { //open a file from Amazon if ($show_xml) { //print the raw XML instead of parsing it into an array? print "
\n";
    }
    while ($line=fgets($hf,10000)) {     //handle each line of XML
      $line=utf8_decode($line);          //convert the UTF8 characters, 20041207/JvG added
      if ($show_xml) {                   //print the raw XML instead of parsing it into an array?
        print   htmlentities(rtrim($line))."\n";
      }
      if      (ereg('HTTP/[0-9]\.[0-9] ([13-9].*)$',$line,$Atmp)) {
        if (!$show_xml) print "HTTP error: ".$Atmp[1]."
\n"; } else if (eregi('(.*)',$line,$Atmp)) { if (!$show_xml) print "Database Error: ".$Atmp[1]."
\n"; } else if (eregi('(.*)',$line,$Atmp)) { $totalresults=$Atmp[1]; } else if (eregi('
',$line,$Atmp)) { $E[url]=$Atmp[1]; } else if (eregi("<(.*)>(.*)",$line,$Ares)) { $tag =$Ares[1]; $data=$Ares[2]; if ($tag=='Author') { //there can be multiple authors so put in sub array $E[$tag][]=$data; } else { $E[$tag]=$data; } } else if (eregi("
",$line)) { $A[]=$E; $E=array(); //empty array again } } if ($show_xml) { //print the raw XML instead of parsing it into an array? print "
\n"; } } else die("Can't open socket for xml.amazon.com.
\n"); return $A; } //print the array function printAmazon($A) { global $associates_id; global $f_rich; //do you want 15% or 5%? global $totalresults; echo "

Books on $term
Home / Books / $term

Web Listings    Publications    News Topics    Information

"; print "Total number of " . ucwords(strtolower($search)) . " Books in Stock: $totalresults


\n"; print "
\n"; print "\n"; while (list($key,$E)=each($A)) { if ($E) { $url=$f_rich?'http://www.amazon.com/exec/obidos/ASIN/'.$E[Asin]."/ref=nosim/".$associates_id:$E[url]; print ''; print ''; print ''; print "\n"; } } print "
'; print ""; print ''; //print "".$E[ProductName].'
'; print "".$E[ProductName].'
'; print 'by: '; if (is_array($E[Author])) { while (list($kau,$dau)=each($E[Author])) { if ($kau) print ', '; $dau = ucwords(strtolower($dau)); print $dau; } } else print 'Unknown'; print '
'; print 'Price: '.$E[OurPrice].'
'; print "Buy this Book.
"; print '
 
\n"; print "
\n"; } ?>