Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="fr">
- <head>
- <meta charset="UTF-8">
- <title>Food'In Vaison</title>
- <LINK REL="SHORTCUT ICON" href="img/favicon.png">
- <!-- Latest compiled and minified CSS -->
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
- <!-- jQuery library -->
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
- <!-- Latest compiled JavaScript -->
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
- <?php
- include("header_no_aff.php");
- ?>
- <?PHP
- if (isset($_GET['numerointer']))
- {
- mysqli_set_charset($connect, "utf8");
- $log = $_COOKIE['cookie_authentification'];
- $victi = $_GET['numerointer'];
- $victi = substr($victi, 10);
- $sql = "INSERT INTO food_pannier (pannier_nom_carte,pannier_id_user ) VALUES ('$victi' , '$log') ";
- $rs_insert = $connect->query($sql)or die($connect->error);
- exit();
- }
- if (isset($_GET['supprimerval']))
- {
- mysqli_set_charset($connect, "utf8");
- $log = $_COOKIE['cookie_authentification'];
- $victi = $_GET['supprimerval'];
- $victi = substr($victi, 10);
- $sql = "DELETE from food_pannier WHERE pannier_nom_carte = '$victi' AND pannier_id_user = '$log'";
- $rs_insert = $connect->query($sql)or die($connect->error);
- exit();
- }
- ?>
- <style>
- .navbar-inverse{
- background-color : white ;
- }
- .navbar-inverse .navbar-nav > .active > a{
- background-color: limegreen;
- }
- .navbar{
- border: none;
- font-family: "vaisonRegular";
- font-size: large;
- }
- .navbar-inverse .navbar-nav > li > a:hover{
- background-color: grey;
- }
- .navbar-inverse .navbar-brand:hover{
- color:grey;
- }
- @font-face {
- font-family: "vaisonRegular";
- src: url('police/ .ttf');
- }
- .foodstyle{
- font-size: large;
- font-family: "vaisonRegular";
- }
- .tailleicon{
- width: 20px;
- height: 20px;
- }
- .navbar-right {
- float: right !important;
- margin-right: 20px;
- }
- </style>
- </head>
- <script>
- function supprimer(mabalise)
- {
- // alert($(mabalise).val);
- /*
- alert($("#autrevictime").is(':checked')?1:0);
- alert($("#serviceGM").is(':checked')?1:0);
- alert($("#prenomvictime").val());
- alert($("#victimeage").val());
- alert($("#victimemaladie").val());
- alert($("#victimetraitement").val());
- alert($("#victimehospitalisation").val());
- alert($("#victimealergie").val());
- */
- $.ajax(
- {
- // url: "script_ajax.php", // par défaut, c'est la même page qui est appelée
- type: "GET", // GET est le type par défaut. À utiliser si vous voulez travailler en POST.
- data: "supprimerval=" + $(mabalise).val(), // id intervention (this).attr("name");
- success: function(result) // fonction qui va traiter la réponse du serveur
- {
- $(mabalise).css("background-color", "grey" );
- $(".spanessais").html(result); // par exemple, on écrit la réponse du serveur dans une balise div
- }
- });
- }
- function envoyer(mabalise)
- {
- //alert($(mabalise).val);
- /*
- alert($("#autrevictime").is(':checked')?1:0);
- alert($("#serviceGM").is(':checked')?1:0);
- alert($("#prenomvictime").val());
- alert($("#victimeage").val());
- alert($("#victimemaladie").val());
- alert($("#victimetraitement").val());
- alert($("#victimehospitalisation").val());
- alert($("#victimealergie").val());
- */
- $.ajax(
- {
- // url: "script_ajax.php", // par défaut, c'est la même page qui est appelée
- type: "GET", // GET est le type par défaut. À utiliser si vous voulez travailler en POST.
- data: "numerointer=" + $(mabalise).val(), // id intervention (this).attr("name");
- success: function(result) // fonction qui va traiter la réponse du serveur
- {
- $(mabalise).css("background-color", "grey" );
- $(".spanessais").html(result); // par exemple, on écrit la réponse du serveur dans une balise div
- }
- });
- }
- </script>
- <nav class="navbar navbar-inverse">
- <div class="container-fluid">
- <div class="navbar-header">
- <a class="navbar-brand" href="index.php">Food'in Vaison</a>
- </div>
- <ul class="nav navbar-nav">
- <li class="active"><a href="index.php">Accueil</a></li>
- <li><a href="carteonline.php">La Carte</a></li>
- <li><a href="formule.php">Nos formules</a></li>
- <li><a href="#">Notre histoire</a></li>
- </ul>
- <ul class="nav navbar-nav navbar-right decale">
- <?php
- if (isset($_COOKIE['cookie_authentification']))
- {
- // verification cookies modifié
- if (sha1($_COOKIE['cookie_authentification'].$gds.'cookies') != $_COOKIE['cookie_authentification_hash'])
- {
- echo "Tu m'auras pas ;) ! ";
- }
- else
- {
- $log = $_COOKIE['cookie_authentification'];
- $sql = "select mail from food_user where id = '$log'";
- $rs_user = $connect->query($sql)or die($connect->error);
- if ($utilisateur = $rs_user->fetch_assoc() )
- {
- $nom = $utilisateur['mail'];
- echo"<li><a href='pannier.php'><span class='glyphicon glyphicon-log-in'></span> Votre pannier</a></li>";
- echo"<li><a href='profil.php'><span class='fi-person'></span>$nom</a></li>";
- }
- }
- }
- else
- {
- }
- ?>
- <li><a href='connection.php'><span class='glyphicon glyphicon-log-in'></span> Commandez !</a></li>
- </ul>
- </div>
- </nav>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement