Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.taxi-78.com
/
htdocs
/
pages
/
/srv/data/web/vhosts/www.taxi-78.com/htdocs/pages/reservation.php
<?php //start_block('title','keywords','description') start_block('', '', ''); ?> <br> <br> <h1>Réserver un taxi dans les Yvelines</h1> <div id="plan1"> <img loading="lazy" src="img/TAXI78_BACKGROUND_PNG.png" alt="Dessin avec une voiture alliance taxi et 3 personnages" class="img-responsive" style="margin-left: auto;margin-right: auto;width: 81%;"> </div> <div id="plan2"> <div style="width:100%;height:auto;background-color:rgb(255, 255, 255);border-radius:10px;padding-top:10px;box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);"> <div class="card-body text-center"> <style> #stage_selector { position: absolute; left: 15px; right: 15px; top: 15px; height: 100px; display: flex; flex-direction: row; justify-content: space-between; } .stage { width: 100px; height: 100px; display: block; text-decoration: none; } .stage:hover { background: rgba(0, 0, 0, 0.1); } </style> <!-- step one enter the city --> <div class="card" id="selectCity" style="padding: 15px;"> <img loading="lazy" src="img/stape/1.jpg" alt="icone localisation et téléphone" class="img-responsive" style="height:auto;width: 100%;"> <hr size="5"> <div class="card-body"> <div class="row pad20"> <div class="col-xs-offset-4"> <a class="findMoreDriver" style="pointer-events: none;"> <!-- <img loading="lazy" src="img/call_output.png"alt="call log" width="100" height="100">--> </a> </div> <div class="col-xs-offset-1 col-xs-10" id="message_holder"> <span id="defaultText"> <p class="card-text text-justify"> <strong> Pour contacter un taxi, veuillez renseigner votre ville ou adresse à destination ou départ des Yvelines. </strong> </p> </span> <div id="serverError" hidden> Erreur de serveur, veuillez contacter l'administrateur. </div> <div id="select2box2"> <label>Sélectionnez une ville ci-dessous</label> <div class="form-group"> <select class="select_city form-control" name="city"> </select> </div> </div> <div id="dataEmpty" hidden> <p class="card-text text-justify"> <strong> Votre requête est hors secteur, veuillez renseigner une ville ou adresse à destination ou départ des Yvelines. </strong> </p> <p class="card-text text-justify"> <!-- <strong> En cliquant sur l'icône, vous serez mis directement en relation avec votre interlocuteur. </strong> <br><br> <div class="text-center"> <button class="findMoreDriver res" style="width:50%; border:none; color:white; padding:5px;">Nouvelle recherche</button> </div>--> <BR> <BR> <a href="<?= $routes['reservation'] ?>" style=""> <button class="findMoreDriver res " style="border:none; color:white; float:right!important; margin-right:40px; padding:10px">Nouvelle recherche</button></a> <br> </p> </div> <div id="dataEmpty" hidden> <p class="card-text text-justify"> <strong> Votre requête est hors secteur, veuillez renseigner une ville ou adresse à destination ou départ des Yvelines. </strong> </p> <p class="card-text text-justify"> <!-- <strong> En cliquant sur l'icône, vous serez mis directement en relation avec votre interlocuteur. </strong> <br><br> <div class="text-center"> <button class="findMoreDriver res" style="width:50%; border:none; color:white; padding:5px;">Nouvelle recherche</button> </div>--> <BR> <BR> <a href="<?= $routes['reservation'] ?>" style=""> <button class="findMoreDriver res " style="border:none; color:white; float:right!important; margin-right:40px; padding:10px">Nouvelle recherche</button></a> <br> </p> </div> </div> </div> </div> </div> <!-- step two if the driver contact number found in api--> <div class="card pad20" id="driverFound" hidden style="position: relative"> <div id="stage_selector"> <a class="stage" onclick="location.reload()" title="Nouvelle recherche"></a> <a class="stage" title="Appeler" id="stage_call"></a> <div style="width: 100px"></div> </div> <img loading="lazy" src="img/stape/2.jpg" alt="icone rose de localisation et téléphone" class="img-responsive" style="height:90px;width: 100%;"> <hr size="5"> <div class="card-body"> <div class="row pad20"> <div class="col-xs-offset-1 col-xs-10"> <p class="card-text"> <div id="mainContactNumber" class="margin:auto"></div> </p> <p class="card-text"> <div class="phone" id="contactNumber"> <br> </div> Ou étendez votre recherche sur les villes alentours <br><br> <div class="text-center"> <button class="findMoreDriver res " style="width:100%; border:none; color:white; padding:10px; border-radius: 8px">Etendre votre recherche</button> </div> </p> <br><br><br><br><br><br><br> <h4>Vous souhaitez changer votre ville de départ ?</h3> <!-- <p>Sélectionnez parmis les villes ci-dessous</p> --> <div id="select2box"> <div class="form-group"> <!-- <select class="select_city form-control" name="city"></select>--> <a href="<?= $routes['reservation'] ?>" style="width: 100%; margin: auto; display: block"> <button class="findMoreDriver res " style="width:100%; border:none; color:white; padding:10px; border-radius: 8px">Nouvelle recherche</button></a> </div> </div> </div> </div> </div> </div> <!-- step three if the driver contact number from nearest city--> <div class="card pad20" id="moreDriver" hidden> <img loading="lazy" src="img/stape/3.jpg" alt="icone rose de localisation et téléphone" class="img-responsive" style="height:90px;width: 100%;"> <hr size="5"> <div class="card-body"> <div class="row pad20"> <div class="col-xs-offset-1 col-xs-10"> <!--Voici les numéros à contacter:--> <br> <p class="card-text text-justify"> <div id="otherContactNumber"> </div> </p> <p class="card-text" id="recherche-vide"><BR> Aucun taxi disponible ou pas de taxi partenaire stationnant sur la ville sélectionnée. Étendez votre recherche ou effectuez en une nouvelle. <br><br> </p> </div> <div class="col-sm-12"> <div id="message-recherche" style="display: none; text-align: center; margin: 15px 45px">Aucun des taxis présents sur la zone n'est disponible ? Nous vous invitons à effectuer une nouvelle recherche.</div> </div> <!--<a href="<?= $routes['reservation'] ?>" style="width: 80%; margin: auto; display: block">--> <div style="width: 80%; margin: auto"> <button class="findMoreDriver res " id="enlarge-search" type="button" style="width:100%; border:none; color:white; padding:10px; border-radius: 8px">Étendre la recherche</button> <a class="findMoreDriver res " href="" style="width:100%; border:none; color:white; padding:10px; border-radius: 8px; display: inline-block; margin-top: 15px">Nouvelle recherche</a> </div> <!-- </a> --> </div> </div> </div> </div> </div> </div> <style> #plan1 { /* background-color: RED; */ width: 100%; height: 636px; position: absolute; z-index: 0; } #plan2 { /* background-color: BLUE; */ width: 600px; margin: 0 auto !important; position: relative; z-index: 1; padding-top: 30px; } .select2-container .select2-selection--single { border: 1px solid #EAECEE; border-radius: 22px; height: 40px; background-color: #EAECEE; } .select2-container--open .select2-dropdown--below { background: rgb(234, 236, 238); border: none; padding-bottom: 50px; border-radius: 0 0 22px 22px; } .select2-results__option .select2-results__message { text-align: center !important; } .select2-container { box-sizing: border-box; display: inline-block; margin: 0; position: relative; vertical-align: middle; width: 100% !important; } .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background-color: #e9d0cf !important; color: black !important } @media all and (max-device-width: 480px) { #plan2 { width: auto !important; } .navbar-toggle { background-color: #e80a5a; } section.slider { background-image: none !important; min-height: 0px !important; } } .select2-container--default .select2-selection--single .select2-selection__rendered { display: none !important; } </style> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> <br<br><br><br><br> <script> //Ce script reprend celui du javascript-bottom, avec une modification de l'addresse, qui est maintenant renseigné depuis la page précédente via la // fonction // function setPrefillInfo(){ // document.cookie = "prefillsearch=Châteaufort - 78117"; // // texte du formulaire de la page réservation correspondant à la PP + code insee correspondant (PAS LE CODE POSTAL !!) // location.href="reservation"; // } if (document.cookie.includes('prefillsearch')) { let message = document.createElement('div'); message.innerHTML = "Nous recherchons un taxi ..."; message.style.background = "#E80A5A"; message.style.color = "white"; message.style.padding = "10px"; message.style.borderRadius = "5px"; message.id = "taxi_message"; document.getElementById('message_holder').appendChild(message) } window.onload = function() { if (document.cookie.includes('prefillsearch')) { var urlTaximoove = 'https://api.taximoove.fr/referencement/phone-numbers'; var apiKey = '116687a6-d680-4f6e-afe2-806a890e07ac'; var insee = document.cookie.split("prefillsearch=")[1].split(";")[0].split(" - ")[1]; var text = document.cookie.split("prefillsearch=")[1].split(";")[0].split(" - ")[0]; document.cookie = "prefillsearch= ; expires = Thu, 01 Jan 1970 00:00:00 GMT"; console.log(text, insee) var settings = { //"url": "modules/nodata.json", "url": `${urlTaximoove}?api_key=${apiKey}&insee=${insee}`, "method": "GET", "timeout": 0, "cache": false, "crossDomain": true, "headers": { 'Content-Type': 'text/plain', "Access-Control-Allow-Credentials": true }, }; $.ajax(settings).done(function(response) { console.log(response); document.getElementById('taxi_message').remove(); var contactNumbers = []; console.log(Object.keys(response).length); if (Object.keys(response).length > 0) { console.log('dataFound'); console.log(typeof(response)); console.log('changes'); var res = JSON.parse(response); // var res = response; // local if (typeof(res.main) !== 'undefined' && res.main.length > 1) { console.log('Number in main'); $('.call-button').remove(); $("#mainContactNumber").append( `<h1 style="font-size: 25px; font-weight: bold">Pour réserver votre course dès maintenant, contactez-nous au </h1><br><div style="margin-bottom:25px;padding: 50px; 0px"><a class="call-button main" href="tel:${res.main}">${res.main}</a></div>` ); document.getElementById("stage_call").setAttribute("href", "tel:" + res.main); /* document.getElementById("select2box").style.display = "none" document.getElementById("select2box2").style.display = "none" */ contactNumbers.push(res.main); } if (typeof(res.others) !== 'undefined' && res.others.length > 0) { Array.prototype.push.apply(contactNumbers, res.others); console.log(contactNumbers); } if (contactNumbers.length > 0) { var count = 0; $("#contactNumber").append( `<p style="font-size: 14px; font-weight: bold; text-align: center">Votre interlocuteur est injoignable ?</p> Contactez un des taxis partenaires de notre réseau autorisé à stationner sur la ville à un des numéros suivants: <br><br>` ); contactNumbers.forEach(num => { if (count > 1 && num != "PHONE") { $("#contactNumber").append( `<li class="list-unstyled pad5" style="margin-bottom:5px;"><a class="call-button others" href="tel:${num}" style="color: #D90854">${num}</a></li>` ); } count++; }); $('#selectCity').attr("hidden", true); $('#driverFound').removeAttr('hidden'); $('.select2-selection__placeholder').text(text) } else { emptyDataErrorMessage(); } } else { emptyDataErrorMessage(); $('#selectCity').attr("hidden", true); $('#moreDriver').removeAttr('hidden'); } }).fail(function(e) { $('#defaultText').attr("hidden", true); $('#serverError').removeAttr('hidden'); }); } } </script> <?php end_block(); ?>