<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <body> <?php include 'am_searchpanel.php'; // Include soap request class include 'guayaquillib' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'requestAm.php'; $detail_id = $_GET['detail_id']; $options = $_GET['options']; $request = new GuayaquilRequest('en_US'); $request->appendFindDetail($detail_id, $options); $data = $request->query(); if ($request->error != '') { echo $request->error; } else { $data = simplexml_load_string($data); $data = $data[0]->FindDetails->detail; foreach ($data as $detail) { echo '<hr>'; echo '<div><a href="am_manufacturerinfo.php?manufacturerid=' . $detail['manufacturerid'] . '">' . $detail['manufacturer'] . '</a> <a href="am_finddetail.php?detail_id=' . $detail['detailid'] . '">' . $detail['formattedoem'] . '</a> ' . $detail['name'] . '</div>'; $weight = (double) $detail['weight']; if ($weight) { echo '<div>Weight ' . $weight . '</div>'; } $volume = (double) $detail['volume']; if ($volume) { echo '<div>Volume ' . $volume . '</div>'; }