log($pays, 'pays'); $mode = $_SESSION['graydon']['mode']; $message = ''; require_once 'dbbootstrap.php'; require_once 'graydon/graydonws.php'; require_once 'graydon/graydon_log.php'; setDbConn('graydon'); $country = Doctrine_Query::create() ->from('Country') ->where('code = ?', $paysCode) ->fetchOne(); $pays = $country->graydon_country; if(isset($_REQUEST['submit'])){ $firephp->log('Soumission formulaire'); //Enregistrement du formulaire /*print '
';
	print_r($_REQUEST['InfoUser']);
	print_r($_REQUEST['InfoEnq']);
	print '
';*/ //Vérification des informations $formError = FALSE; $fields = array(); //Info utilisateur obligatoire : if($_REQUEST['InfoUser']['dIdentite']==''){ $fields[] ='Votre Identite'; $formError=TRUE;} if($_REQUEST['InfoUser']['Tel']==''){ $fields[] ='Votre Téléphone'; $formError=TRUE;} if($_REQUEST['InfoUser']['Email']==''){ $fields[] ='Votre Email'; $formError=TRUE;} //Info entreprise obligatoire : if(!isset($_REQUEST['pidentifier'])){ if($_REQUEST['InfoEnq']['Name']==''){ $fields[] ='Raison Sociale'; $formError=TRUE;} if($_REQUEST['InfoEnq']['Telephone']==''){ $fields[] ='Téléphone'; $formError=TRUE;} if($_REQUEST['InfoEnq']['Adresse']==''){ $fields[] ='Adresse'; $formError=TRUE;} } if($_REQUEST['InfoEnq']['Servicespeed']==''){ $fields[] ='Type d\'enquête'; $formError=TRUE;} if ($formError==TRUE){ $message = ''; $message.= 'Veuillez remplir les champs suivants : '; $message.= join(', ', $fields); $message.= ''; }else{ $commandeOk = setEnquete($pays); }//Fin Erreur formulaire } ?>

ENQUÊTE INTERNATIONALE

Commande enregistré.
getInfosLogin($tabInfo['login']); $user = $O['result']; $firephp->log($user,'user'); } catch (SoapFault $fault) { } if(isset($commandeOk) && is_numeric($commandeOk)){ $message = 'Erreur lors de la soumission de l\'enquête.';} ?>

Entreprise concernée :

from('Companyproducts') ->where('identifiers = ?', $identifier); $companyproducts = new Companyproducts(); $companyproducts = $q->fetchOne(); $company = unserialize($companyproducts->company); $products = unserialize($companyproducts->products); $products = $products->Product; $count = count($company->CompanyIdentifiers->CompanyIdentifier); if ($count>1){ $identifiers = $company->CompanyIdentifiers->CompanyIdentifier; }elseif($count==1){ $identifiers[] = $company->CompanyIdentifiers->CompanyIdentifier; } foreach($identifiers as $identifier){ if($identifier->Type != 'Internal'){ ?>
Identifier;?>
log($identifiers,'identifiers'); //Affichage des identifiants //Ne pas afficher l'identifiant Internal if(is_array($identifiers)){ $firephp->log($identifiers,'identifiers'); $count = 0; foreach($identifiers as $identifier){ if($identifier->Type != 'Internal'){ ?>
Pas de recherche par identifiant possible pour ce pays.

Demandeur :

Enquête :

from('Price p') ->leftJoin('p.Country c') ->where('c.graydon_country = ?', array($pays)); $results = $q->fetchArray(); $firephp->log($results,'results'); //Lecture des délais $q = Doctrine_Query::create() ->from('Countryavailability') ->where('country = ?', $pays); $countryavailability = $q->fetchOne(); $availability = unserialize($countryavailability->availability); ?>
ServiceSpeed, $serviceActif)==TRUE){ $key = array_search($item->ServiceSpeed, $serviceActif); ?> ServiceSpeed){print 'selected="selected"';}?>> (Tarif : ServiceSpeed)]; ?> €, Délai :DaysFrom.' à '.$item->DaysTo.' jours';?>)