'; // Si on a un rapport $rapports = Doctrine_Query::create() ->from('Report') ->where('identifier = ?', $identifier) ->orderby('id desc') ->execute(); if ($rapports != false && count($rapports) > 0) { $id = $rapports[0]->order_id; // Si la commande appartient a cet utilisateur if (Doctrine_Query::create() ->from('Commandes') ->where('id = ?', $id) ->fetchOne()->user == $_SESSION['tabInfo']['login']) { $commande_id = $id; } else { $commande_id = copieDesRapports($id, $identifier, $pidentifier); } } else { $commande_id = getIdentite($identifier, $pidentifier); } if ($commande_id > 0) { header('Location: ?page=international_commandes&id='.$commande_id); print 'Veuillez suivre ce lien'; } print ''; exit; } $tabInfo = $_SESSION['tabInfo']; $pays = $_SESSION['graydon']['pays']; $paysCode = $_SESSION['graydon']['paysCode']; $mode = $_SESSION['graydon']['mode']; $message = ''; $firephp->log($pays, 'pays'); if (isset($_POST['submit'])) { $firephp->log('Soumission formulaire'); // Vérification des informations $formError = false; $fields = array(); // Info utilisateur obligatoire : if ($_POST['InfoUser']['Identite'] == '') { $fields[] = 'Votre Identite'; $formError = true; } if ($_POST['InfoUser']['Tel'] == '') { $fields[] = 'Votre Téléphone'; $formError = true;} if ($_POST['InfoUser']['Email'] == '') { $fields[] = 'Votre Email'; $formError = true; } // Info entreprise obligatoire : if (!isset($_POST['pidentifier'])) { if ($_POST['InfoEnq']['Name'] == '') { $fields[] = 'Raison Sociale'; $formError = true; } // if ($_POST['InfoEnq']['Telephone'] == '') { // $fields[] = 'Téléphone'; // $formError = true; // } if ($_POST['InfoEnq']['Adresse'] == '') { $fields[] = 'Adresse'; $formError = true; } } if ($_POST['InfoEnq']['Servicespeed'] == '') { $fields[] = 'Type d\'enquête'; $formError = true; } if ($formError == true){ $message = ''; $message .= 'Veuillez remplir les champs suivants : '; $message .= join(', ', $fields); $message .= ''; } else { $commande_id = setEnquete($pays); require_once 'mail/mail.php'; sendMail("DEBUG - Commandes de rapport graydon", "Commandes\n". "Utilisateur :\n".print_r($_POST['InfoUser'], true)."\n". "Enquêtes : \n".print_r($_POST['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

0) { $message = 'Commande enregistrée.'; } else { $message = ''. 'Erreur lors de la soumission de l\'enquête.'; } print '
'.$message.'
'; print '
'; exit; } print '
'.$message.'
'; // --------------------------------------------------------------------------- // // Formulaire // --------------------------------------------------------------------------- // try { $O = $client->getInfosLogin($tabInfo['login']); $user = $O['result']; $firephp->log($user, 'user'); } catch (SoapFault $fault) { } print '
'. '

Entreprise concernée :

'; $Companyproducts = getCompanyProducts($_REQUEST['identifier']); $company = $Companyproducts['Company']; $products = $Companyproducts['Products']; if ($company->Name != '') { $name = $company->Name; } else { $name = $_SESSION['graydon']['name']; } if (isset($_REQUEST['pidentifier']) == true) { print ''; } if (isset($_REQUEST['identifier']) == true) { print ''; } if (isset($_REQUEST['pidentifier']) == true) { ?>
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 = ?', $pays) ->fetchArray(); // Lecture des délais $countryavailability = Doctrine_Query::create() ->from('Countryavailability') ->where('country = ?', $pays) ->fetchOne(); if ($countryavailability != false) { $availability = unserialize($countryavailability->availability); } else { $availability = array(); } ?>
ServiceSpeed, $serviceActif) == true) { $key = array_search($item->ServiceSpeed, $serviceActif); $firephp->log($item->ServiceSpeed, 'ServiceSpeed'); $select = ''; if ((isset($_POST['InfoEnq']['Servicespeed']) && $_POST['InfoEnq']['Servicespeed'] == $item->ServiceSpeed) || (isset($_GET['speed']) == true && ucfirst($_GET['speed']) == $item->ServiceSpeed)) { $select = 'checked'; } ?> > (Tarif : ServiceSpeed)]; ?> €, Délai : DaysFrom) == true) { print $item->DaysFrom.' à '; } print $item->DaysTo.' jours'; ?> )