Example #1
0
 /**
  * Savoir le cout d'une reservation
  */
 public function infos_reserv()
 {
     include_once 'class/info_reserv.php';
     $info = new info_reserv(intval($_GET['id']));
     $info->req_cout();
     $this->cout = $info->get_cout();
 }
Example #2
0
<?php

include 'class/requiert.php';
$authentification = new requiert();
$authentification->acces();
$authentification->admin();
// Valider les reservations
if (isset($_POST['valider']) and !empty($_POST['valide'])) {
    include_once 'class/update_reserv.php';
    foreach ($_POST['valide'] as $key => $elem) {
        $update = new update_reserv($key);
        $update->req_valide();
        include_once 'class/info_reserv.php';
        $info = new info_reserv($key);
        $info->req_data();
        $id_sl = $info->get_data();
    }
} elseif (isset($_POST['annuler']) and !empty($_POST['valide'])) {
    include_once 'class/update_reserv.php';
    foreach ($_POST['valide'] as $key => $elem) {
        $update = new update_reserv($key);
        $update->req_delete();
    }
}
include_once 'class/liste_reserv.php';
$liste = new liste_reserv();
$liste->req_data();
$liste->req_data_valide();
$reserv = $liste->get_data();
$valide = $liste->get_valide();
include_once 'header.php';