Beispiel #1
0
    <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') {
        $formframe = $formframeno = '';
        include 'framesearch.php';
    }
Beispiel #2
0
class WizardExtender extends CommonExtender
{
    function FormatLink($type, $dataItem, $catalog, $renderer)
    {
        if ($type == 'vehicles') {
            return 'vehicles.php?ft=findByWizard2&c=' . $catalog . '&ssd=' . $renderer->wizard->row['ssd'];
        } else {
            return 'wizard2.php?c=' . $catalog . '&ssd=$ssd$';
        }
    }
}
// Create request object
$request = new GuayaquilRequest($_GET['c'], $_GET['ssd'], Config::$catalog_data);
// Append commands to request
$request->appendGetCatalogInfo();
$request->appendGetWizard2($_GET['ssd']);
// 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>