<!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 GuayaquilRequestAM('en_US'); if (Config::$useLoginAuthorizationMethod) { $request->setUserAuthorizationMethod(Config::$userLogin, Config::$userKey); } $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'];
<!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'; $request = new GuayaquilRequestAM('en_US'); if (Config::$useLoginAuthorizationMethod) { $request->setUserAuthorizationMethod(Config::$userLogin, Config::$userKey); } $request->appendListManufacturer(); $data = $request->query(); if ($request->error != '') { echo $request->error; } else { $data = simplexml_load_string($data); $rows = $data[0]->ListManufacturer->row; echo '<table>'; foreach ($rows as $row) { echo '<tr><td>' . $row['name'] . '</td><td>' . $row['alias'] . '</td><td>' . $row['searchurl'] . '</td></tr>'; } echo '</table>'; } ?> </body> </html>
$replacementtypes = @$_GET['replacementtypes']; $replacementtypes = implode($replacementtypes, ','); $request = new GuayaquilRequestAM('en_US'); if (Config::$useLoginAuthorizationMethod) { $request->setUserAuthorizationMethod(Config::$userLogin, Config::$userKey); } $request->appendFindOEM($oem, $options, $brand, $replacementtypes); $data = $request->query(); if ($request->error != '') { echo $request->error; } else { echo '<hr><div>'; $data = simplexml_load_string($data); $data = $data[0]->FindOEM->detail; if (!$data || !(string) $data['manufacturerid']) { $request = new GuayaquilRequestAM('en_US'); if (Config::$useLoginAuthorizationMethod) { $request->setUserAuthorizationMethod(Config::$userLogin, Config::$userKey); } $request->appendFindOEMCorrection($oem); $data = $request->query(); $data = simplexml_load_string($data); $data = $data[0]->FindOEMCorrection->detail; if (!$data || !(string) $data['manufacturerid']) { echo "<p>Article {$oem} not found.</p>"; } else { echo "<p>Article {$oem} not found. Please select it from list</p>"; } } if ($data) { foreach ($data as $detail) {
<!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'; $manufacturerid = $_GET['manufacturerid']; $request = new GuayaquilRequestAM('en_US'); if (Config::$useLoginAuthorizationMethod) { $request->setUserAuthorizationMethod(Config::$userLogin, Config::$userKey); } $request->appendManufacturerInfo($manufacturerid); $data = $request->query(); if ($request->error != '') { echo $request->error; } else { $data = simplexml_load_string($data); $data = $data[0]->ManufacturerInfo->row; echo '<div> name: ' . $data['name'] . '</div>'; echo '<div> alias: ' . $data['alias'] . '</div>'; echo '<div> searchurl: ' . $data['searchurl'] . '</div>'; } ?> </body> </html>