Sid Gifari From Gifari Industries - BD Cyber Security Team
Home
/
home
/
airmobeuag
/
2020
/
lpf
/
✏️
Editing: index.php
<!DOCTYPE html> <html lang="fr"> <head> <title>Les p'tits fayots</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script> <link href="https://fonts.googleapis.com/css?family=Raleway:400,700&display=swap" rel="stylesheet"> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.0/css/all.css" integrity="sha384-aOkxzJ5uQz7WBObEZcHvV5JvRW3TUc2rNPA7pe3AwnsUohiw1Vj2Rgx2KSOkF5+h" crossorigin="anonymous"> <link rel="stylesheet" href="./css/animate.css" > <link rel="stylesheet" href="./css/global.css?<?php echo time();?>" /> <link rel="stylesheet" href="./css/lpf.css?<?php echo time();?>" > <style> html,body { height: 100%; } #yellow { height: 100%; background: #f2f2f2; } </style> </head> <?php session_start(); error_reporting(E_ALL); ini_set("display_errors", 0); include ('./lib/ClassLpf.php'); require ("./lib/config.ini.php"); $ClassLpf = new ClassLpf(); $ClassLpf->Etape(); $Etape = $_SESSION['LPF']['Etape']; ?> <body style="background: rgb(248, 248, 248);"> <?php if ($Etape==0 && !$_REQUEST['PAIEMENT']) { // REset le menu unset($_SESSION['LPF']); ?> <div class="container-fluid h-100"> <form action="" method="post"> <div class="row justify-content-center "> <div class="card shadow margin100" style="width:600px"> <div class="card-body" style="margin:0px; padding:0px;"> <div class="media" > <img id="portrait" class="animated fadeIn align-self-start mr-3" style="" src="images/chef.jpg" alt=""> <div class="media-body" style="padding:15px; text-align:center"> <br class ="d-none d-sm-block"> <h4 class="card-title"><b>LES P'TITS FAYOTS</b></h4> <i class="fas fa-leaf" style="color:#e5692c"></i> <p class="card-text"><?php $Msg = $ClassLpf->Accueil_Msg(); echo $Msg[2];?></p> </div> </div> </div> </div> </div> <div class="row justify-content-center margin50" style="color:#e5692c"> <h4><?php $Msg = $ClassLpf->Accueil_Msg(); echo $Msg[0];?></h4> </div> <div class="row justify-content-center" style="margin-top:100px;"> <input type="hidden" name="etape" value="1"> <button type="submit" class="btn btn-orange" style="width:200px" >PASSER MA COMMANDE</button> </div> </form> </div> <?php } elseif($Etape>0 && !$_REQUEST['PAIEMENT']) { $ClassLpf->Selection(); $Etape = $_SESSION['LPF']['Etape']; if ($_SESSION['LPF']['Commande']['mnu_suite'][$Etape + 1] == "entree") { $img = "images/entree.jpg"; $pos = "28.4772% 93.038%;"; } else if ($_SESSION['LPF']['Commande']['mnu_suite'][$Etape + 1] == "plat") { $img = "images/plat.jpg"; $pos = "36.9188% 58.2278%;"; } else if ($_SESSION['LPF']['Commande']['mnu_suite'][$Etape + 1] == "dessert") { $img = "images/dessert.jpg"; $pos = "44.0942% 53.1646%;"; } else if ($_SESSION['LPF']['Commande']['mnu_suite'][$Etape + 1] == "vin") { $img = "images/vin.jpg"; $pos = "50% 50%;"; } else { $pos = "23.4123% 51.2658%;"; $img = "images/default.jpg"; } ?> <div class="container-fluid h-100"> <div class="row justify-content-center h-100"> <div class="col-12 d-block d-sm-none" style="padding:0px; background:blue;"> <img alt="" src="<?=$img?>" style="display: block; margin: 0px auto; width: 100%; height: 100%; object-fit: cover; object-position: <?=$pos?>"> </div> <div class="col-12 col-sm-12 col-md-12 col-lg-6 col-xl-6 " id="yellow"> <form action="" method="post"><?php $ClassLpf->ChargeSelection();?></form> </div> <div id="" class="col-6 d-none d-sm-block" style="padding:0px; background:#f2f2f2;"> <img alt="" src="<?=$img?>" class="animated fadeIn" style="display: block; margin: 0px auto; width: 100%; height: 100%; object-fit: cover; object-position: 23.4123% 51.2658%;"> </div> </div> </div> <?php } elseif ( $_REQUEST['PAIEMENT'] ) { // Une fois le récap validé attribuer un BDC $ConfirmCmd = $ClassLpf->EnregCmd(''); $_SESSION['LPF']['Commande']['BDC'] = $ConfirmCmd; if($ConfirmCmd['valide']=="OK") include "rubriques/paiement.php"; else {?> <div class="alert alert-danger" role="alert"> <b>L'application a rencontrée un problème</b> et nous ne pouvons pas enregistrer votre commande.<br> Nous vous invitons à renouveler l'opération. </div> <?php } } ?> <?php // echo "<pre>"; print_r($_SESSION['LPF']); echo "</pre>"; ?> </body> </html>
💾 Save
❌ Cancel