<!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 soap request class include 'guayaquillib' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'request.php'; include 'extender.php'; // Create request object $request = new GuayaquilRequest($_GET['c'], $_GET['ssd'], Config::$catalog_data); // Append commands to request $request->appendGetCatalogInfo(); if (@$_GET['spi'] == 't') { $request->appendGetWizard(); } if (@$_GET['spi2'] == 't') { $request->appendGetWizard2(); } // Execute request $data = $request->query(); // Check errors if ($request->error != '') { echo $request->error; } else { $cataloginfo = $data[0]->row; if (@$cataloginfo['supportvinsearch'] == 'true') { include 'vinsearch.php'; } if (@$cataloginfo['supportframesearch'] == 'true') {
class WizardExtender extends CommonExtender { function FormatLink($type, $dataItem, $catalog, $renderer) { if ($type == 'vehicles') { return 'vehicles.php?ft=findByWizard&c=' . $catalog . '&wid=' . $renderer->wizard->row['wizardid'] . '&ssd=' . $renderer->wizard->row['ssd']; } else { return 'wizard.php?c=' . $catalog . '&wizardid=' . $renderer->wizard->row['wizardid'] . '&valueid=$valueid$&ssd=' . $renderer->wizard->row['ssd']; } } } // Create request object $request = new GuayaquilRequest($_GET['c'], $_GET['ssd'], Config::$catalog_data); // Append commands to request $request->appendGetCatalogInfo(); $request->appendGetWizard($_GET['wizardid'], $_GET['valueid']); // Execute request $data = $request->query(); // Check errors if ($request->error != '') { echo $request->error; } else { $wizard = $data[1]; $cataloginfo = $data[0]->row; echo '<h1>' . CommonExtender::LocalizeString('Search by wizard') . ' - ' . $cataloginfo['name'] . '</h1>'; $renderer = new GuayaquilWizard(new WizardExtender()); echo $renderer->Draw($_GET['c'], $wizard); } ?> </body> </html>