Sid Gifari From Gifari Industries - BD Cyber Security Team
Home
/
home
/
airmobeuag
/
pro
/
commande
/
✏️
Editing: index.09042019.php
<!doctype html> <html lang="fr"> <head> <meta charset="utf-8"> <!--<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">--> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <!--<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">--> <link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css"> <link rel = "stylesheet" href = "css/airmob.css?<?=time();?>"> <link rel = "stylesheet" href = "css/step.css?<?=time();?>"> <link rel = "stylesheet" href = "css/switch.css?<?=time();?>"> <title>Airmob</title> </head> <body> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Comfortaa" rel="stylesheet"> <style> /* input[type="file"] { display: none; } .custom-file-upload { background: #f3f3f3; border: 1px solid #ccc; border-radius:10px; display: inline-block; padding: 6px 12px; cursor: pointer; } */ input[type=file]::-webkit-file-upload-button { border-radius:10px; border: 1px solid #ccc; background: #f3f3f3; font-size: 1.0em; padding-left:20px; padding-right:20px; } input[type="file"] { border: 0px solid #ccc; padding:5px; ont-size: 0.2em; } </style> <div class="container-fluid"> <?php session_start(); error_reporting(E_ALL); ini_set("display_errors", 0); if( @$_REQUEST['reset']) { unset($_SESSION['airmob']); die('Reset commande !'); } elseif(md5($_REQUEST['debug'])=="3e20fdb3880682a70e9482c30c7451f1") { $_SESSION['airmob']['debug']=true; } elseif($_REQUEST['debug']=="false") { $_SESSION['airmob']['debug']=false; } // Prérequis include_once ("./lib/commande.lib.php"); $MyCde = new ClassCde(); include "./lib/etapes.php"; // DEBUG : affichage if($_SESSION['airmob']['debug']) { echo "<div style='height:700px; overflow-y: scroll; background:#ffe87c'>"; echo "MODE DEBUG uniquement LV"; echo "<pre style='border:1px solid #000'>DEBUG : "; echo "Commande<br>"; print_r($_SESSION['airmob']['macommande']); echo "Etape<br>"; print_r($_SESSION['airmob']['etape']); print_r($_SESSION['airmob']['lesoffres']); echo "</pre>"; echo "</div>"; } ?> </div> <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> </body> <script> // $(function () { $('[data-toggle="tooltip"]').tooltip() }) function Obligatoire() { // CocheCGV = sessionStorage.getItem("CocheCGV"); // $('#txt').html(CocheCGV); //console.debug("2-->"+CocheCGV); //console.debug( "A ::> "+$('.onoffswitch-checkbox').is(':checked') ); //var Coche=false; //ar Valide = $('#BtnCGV').is(':checked'); //if ( Coche==true ) Coche=false; else Coche = true; //if ( !$('#Coche').val() ) $('#Coche').val('1'); else $('#Coche').val(''); //console.debug('Obligatoire' + CocheCGV); //var status = $('#BTN1').attr('checked'); //console.debug( $('#coche_ActiveSecu').is(':checked') ); //console.debug( $('#BtnCGV').is(':checked') ); //console.debug( $('#BTN1').prop( "checked" ) ) ); Go(); } // Coche CGV $('.onoffswitch-checkbox').click(function() { // sessionStorage.setItem("CocheCGV",$('#BtnCGV').is(':checked')) }); function Go() { console.debug('GO'); if( $('#form_nomsociete').val()!='' ) { $("#BTN2").attr('class', 'btn btn-primary'); $("#BTN2").removeAttr('disabled'); } else { $("#BTN2").attr('class', 'btn btn-default'); $("#BTN2").attr("disabled", "disabled"); } if( $('#form_nomprenom').val()!='' && $('#form_email').val()!='' && $('input[name=onoffswitch]:checked').val()=='oui' ) { $("#BTN1").attr('class', 'btn btn-primary'); $("#BTN1").removeAttr('disabled'); } else { $("#BTN1").attr('class', 'btn btn-default'); $("#BTN1").attr("disabled", "disabled"); } } Go(); $( "#coche_CGV" ).click(function() { /* if ($('input[name=onoffswitch]:checked').val() == "oui"){ sessionStorage.setItem("CocheCGV", true); } else { sessionStorage.setItem("CocheCGV", false); }*/ setTimeout(function() { Go(); }, 500); }); $(document).ready(function() { //sessionStorage.setItem("CocheCGV",false) if($('input[name=onoffswitch-checkbox]:checked').val()=="oui") { } // Mobile // ----------------------------- if($('input[name=form_porta_mobile]:checked').val()=="oui") { ActivePortaMobile() } $('.form_porta_mobile-checkbox').click(function() { if ($(this).is(':checked')) ActivePortaMobile() // AVEC PORTA else DesactivePortaMobile(); // SANS PORTA }); // Active function ActivePortaMobile() { $('#GardeNumero' ).css('display','block'); $("#form_rio_mobile" ).prop('required', true); $("#form_numero_mobile" ).prop('required', true); } function DesactivePortaMobile() { $('#GardeNumero' ).css('display','none'); $("#form_rio_mobile" ).removeAttr("required"); $("#form_rio_mobile").val(''); $("#form_numero_mobile" ).removeAttr("required"); $("#form_numero_mobile" ).val(''); //$("#form_nomprenom_mobile" ).val(''); } // Ligne // ----------------------------- if($('input[name=form_porta_ligne]:checked').val()=="oui") { ActivePortaLigne() } $('.form_porta_ligne-checkbox').click(function() { if ($(this).is(':checked')) ActivePortaLigne() // AVEC PORTA else DesactivePortaLigne(); // SANS PORTA }); // Active function ActivePortaLigne() { $('#GardeNumeroLigne' ).css('display','block'); $("#form_telephone_ligne" ).prop('required', true); } function DesactivePortaLigne() { $('#GardeNumeroLigne' ).css('display','none'); $("#form_telephone_ligne" ).removeAttr("required"); $("#form_telephone_ligne" ).val(''); } //Obligatoire(); }); window.parent.parent.scrollTo(0,0); // $(document) .ready (function () { //var Valide = $('#BtnCGV').is(':checked'); //alert(''); // // console.debug("--->"+$(this).parents('label').attr('id')); //var retour=$('').attr('id'); // }); /* $( ".form_offre_mobile" ).on( "click", function() { console.debug( "----->"+$( "input:checked" ).val() + " is checked!" ); }); */ </script> </html>
💾 Save
❌ Cancel