log($pays, 'pays'); require_once 'dbbootstrap.php'; require_once 'graydon/graydon.php'; require_once 'graydon/graydon_wsfunctions.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'); // Vérification des informations $formError = false; $fields = array(); // Info utilisateur obligatoire : if ($_REQUEST['InfoUser']['Identite'] == '') { $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); require_once 'mail/mail.php'; sendMail("DEBUG - Commandes de rapport graydon", "Commandes\n". "Utilisateur :\n".print_r($_REQUEST['InfoUser'], true)."\n". "Enquêtes : \n".print_r($_REQUEST['InfoEnq' ], true)."\n", // From array('email' => 'contact@scores-decisions.com', 'name' => 'Serveur SD-13408', ), // To array(0 => array('email' => EMAIL_SUPPORTDEV, 'name' => 'Support'))); } } ?>

ENQUÊTE INTERNATIONALE

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

Entreprise concernée :

Name != '') { $name = $company->Name; } else { $name = $_SESSION['graydon']['name']; } if (isset($_GET['pidentifier']) == true) { print ''; } if (isset($_GET['identifier']) == true) { print ''; } if(isset($_REQUEST['pidentifier'])) { ?>
Telephone) == true) { print 'value="'.$company->Telephone.'"'; } ?> readonly="readonly"/>
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(); if ($countryavailability != false) { $availability = unserialize($countryavailability->availability); } else { $availability = array(); } ?>
ServiceSpeed, $serviceActif) == true) { $key = array_search($item->ServiceSpeed, $serviceActif); $speed = $_REQUEST['speed']; $firephp->log($speed, 'speed'); $firephp->log($item->ServiceSpeed, 'ServiceSpeed'); $select = ''; if((isset($_REQUEST['InfoEnq']['Servicespeed']) && $_REQUEST['InfoEnq']['Servicespeed'] == $item->ServiceSpeed) || ucfirst($speed) == $item->ServiceSpeed) { $select = 'checked'; } ?> > (Tarif : ServiceSpeed)]; ?> €, Délai : DaysFrom) == true) { print $item->DaysFrom.' à '; } print $item->DaysTo.' jours'; ?> )