Search(); $params->Search->IncludePhoneticMatches = false; $params->Search->IncludeSuggestions = false; $params->Search->NumRows = $_SESSION['nbReponses']; $params->Search->StartRows = setPosition($position); if ($AdvencedSearch == true) { $params->Search->Query = new AdvancedSearch($formR); $service = 'AdvancedSearch'; } else { $query = new SimpleSearch($formR); $params->Search->Query = $query->Query; $service = 'Search'; } try { $informations = SwitchWSDLFunction($service, $params->Search, $soap_client); } catch (SoapFault $fault) { getErreurSoap($soap_client, $fault); } if ($informations->Results->Company == true) { // Dans le cas ou nous avont plusieurs reponses (foreach). if(is_array($informations->Results->Company)) $manyResponses = true; require_once 'giant/templates/NbOfHits.tpl.php'; require_once 'giant/templates/Search.tpl.php'; require_once 'giant/templates/Pagination.tpl.php'; } else echo 'Aucun résultat.'; ?>