giant: ajout des pays bas
This commit is contained in:
parent
eb2b0f295e
commit
54b18ee1b6
@ -2,16 +2,29 @@
|
||||
// --------------------------------------------------------------------------- //
|
||||
// Recherche Giant
|
||||
// --------------------------------------------------------------------------- //
|
||||
$pays = $formR['pays'];
|
||||
|
||||
define('NUM_ROWS', 10);
|
||||
define('MAX_ROWS', 200);
|
||||
|
||||
$gServiceHeader = new StdClass;
|
||||
$gServiceHeader->ConsumerId = '006';
|
||||
$gServiceHeader->Provider = new StdClass;
|
||||
$gServiceHeader->Provider->ProviderId = '001';
|
||||
$gServiceHeader->Provider->CountryCode = 'BE';
|
||||
$gServiceHeader->TimeStamp = date('Y-m-d\TH:i:s');
|
||||
$gServiceHeader->TestIndication = true;
|
||||
$gServiceHeader = new StdClass;
|
||||
$gServiceHeader->ConsumerId = '006';
|
||||
$gServiceHeader->Provider = new StdClass;
|
||||
switch ($pays) {
|
||||
case 1:
|
||||
$gServiceHeader->Provider->ProviderId = '001';
|
||||
$gServiceHeader->Provider->CountryCode = 'BE';
|
||||
break;
|
||||
case 2:
|
||||
$gServiceHeader->Provider->ProviderId = '003';
|
||||
$gServiceHeader->Provider->CountryCode = 'NL';
|
||||
break;
|
||||
default:
|
||||
print 'Erreur sur le pays';
|
||||
exit;
|
||||
}
|
||||
$gServiceHeader->TimeStamp = date('Y-m-d\TH:i:s');
|
||||
$gServiceHeader->TestIndication = true;
|
||||
|
||||
$soap_header =
|
||||
new SoapHeader('http://services.giant-net.com/'.
|
||||
@ -29,7 +42,7 @@ $o = new StdClass;
|
||||
$o->IncludePhoneticMatches = 'false';
|
||||
if (empty($siret) == false) {
|
||||
$o->Query = new StdClass;
|
||||
$o->Query->VatNumber = $siret;
|
||||
$o->Query->CompanyId = $siret;
|
||||
$o->IncludeSuggestions = 'false';
|
||||
$fonction = 'AdvancedSearch';
|
||||
} else {
|
||||
|
@ -61,7 +61,8 @@ if (isset($formR['pays']) == false) {
|
||||
}
|
||||
if ($_SESSION['tabInfo']['international_giant'] == 1) {
|
||||
$recherchePaysListe = array('France',
|
||||
'Belgique');
|
||||
'Belgique',
|
||||
'Pays bas');
|
||||
print '<div class="fieldgrp">';
|
||||
print '<label>Pays</label>';
|
||||
print '<select name="formR[pays]">';
|
||||
|
Loading…
x
Reference in New Issue
Block a user