}
 //envoi SMS et récupération du hash d'envoi
 // require('/js/thecallR/src/ThecallrClient.php');
 $config = APP::getInstance()->config['thecallr'];
 $thecallrLogin = $config['login'];
 $thecallrPassword = $config['password'];
 $THECALLR = new ThecallrClient($thecallrLogin, $thecallrPassword);
 $settings = $config['settings'];
 $res = $THECALLR->send($config['order']['set'], array($settings));
 // Options
 $options = new stdClass();
 $options->flash_message = FALSE;
 // "sms.send" method execution
 $result = $THECALLR->call($config['order']['send'], $sender, $tel, $text, $options);
 // The method returns the SMS ID
 $nModif = $DB->setSmsSend($lastid, $result);
 if ($nModif != 1) {
     throw new Exception("l'envoi du sms a échoué");
 }
 // Renvoi au navigateur du succès de l'envoi du sms
 $html = '</br>
      <table id="sms-table">
         <thead> <!-- En-tête du tableau -->
            <tr>
                <th>TEL</th>
      		   <th>STATUT</th>
      		   <th style="display:none;">HASH</th>
      		</tr>
         </thead>
         <tbody style="text-align:left">
            <tr>