ÿØÿàJFIF``ÿþxØ Dre4m Was Here
Dre4m Shell
Server IP : 109.234.164.53  /  Your IP : 216.73.216.110
Web Server : Apache
System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64
User : computer3 ( 1098)
PHP Version : 7.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/computer3/lavignotte.com/cp-admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/lavignotte.com/cp-admin/reservation_ec.php
<?php
require_once('includes/header.php');
require_once('includes/menu.php');

//////////////////////////////////////////////////////////// PAGINATION
require_once('./pagination_fonction.php'); 
$commeo = "48";
//////////////////////////////////////////////////////////// PAGINATION

if (isset($_GET['valid'])) {
  $id = $_GET['valid'];
  $bdd->exec("UPDATE " . $GLOBALS['db_table']['reservation'] . " SET status = 1 WHERE id = $id");
  echo '<script>';
  echo 'window.location = "./reservation_ec.php"';
  echo '</script>';
}
if (isset($_GET['validon'])) {
  $id = $_GET['validon'];
  $bdd->exec("UPDATE " . $GLOBALS['db_table']['reservation'] . " SET status = 0 WHERE id = $id");
  echo '<script>';
  echo 'window.location = "./reservation_ec.php"';
  echo '</script>';
}

?>
<div class="container">
  <div class="row">
    <div class="span12">
      <div class="page-header">
        <h1>Liste des r&eacute;servations en cours</h1>

  
<br />
Classement par dates de r&eacute;servation en cours d&eacute;croissantes (par <?php echo$commeo ?>). 
<br /><br />

      </div>
    </div>
  </div>
  <table class="table table-bordered ">
    <thead>
      <tr>
        <th class="span1 center">N.Ordre</th>
        <th class="span2 center">Coordonn&eacute;es</th>

        <th class="span2 center">R&eacute;servation</th>
        <th class="span2 center">Lieu</th>

        <th class="span1 center">Statut</th>
        <th class="span1 center">Commentaires</th>

        <th class="span1 center">Op&eacute;rations</th>                                        
      </tr>
    </thead>
    <tbody>

      <?php

$comptc =0;

//////////////////////////////////////////////////////////// PAGINATION
    $res = $GLOBALS['bdd']->query("SELECT count(id) AS nb_total FROM reservation WHERE nom !='' AND status <1 ");
    $columns = $res->fetch();
    $nb_total = $columns['nb_total'];     
      
//////////////////////////////////////////////////////////// PAGINATION
	if (!isset($_GET['debut'])) $_GET['debut'] = 0;
	$nb_affichage_par_page = $commeo;
//////////////////////////////////////////////////////////// PAGINATION



    $requete = $bdd->query("SELECT * FROM reservation WHERE nom !=''  AND status <1  
      ORDER BY date_reserv DESC LIMIT ".$_GET['debut'].",".$nb_affichage_par_page." "); 
 
      if ($row = $requete->fetch()) {
        do {

     $idd = $row['id'];
     $nom = $row['nom'];
     $tel = $row['tel'];
     $email= $row['email'];
     $date_insere = $row['date_insere'];
     $date_reserv= $row['date_reserv'];
     $heure_reserv= $row['date_reserv'];
     $lieu= $row['lieu'];
     $commentaires = $row['commentaires'];
     $status = $row['status'];




// Colore les cellules tableau
/****************************/
$comptc = $comptc + 1;
if ($comptc % 2 == 1)
{
   $collo = "background:#ddd; border:1px solid #fff";   $collo2 = "background:#ddd; border:1px solid #fff;border:1px solid #fff; border-top:0;border-bottom:0";
}
elseif ($comptc % 2 == 0)
{
   $collo = "background:#fff; border:1 solid #ddd";   $collo2 = "background:#D9FFED; border:1px solid #ddd;border:1px solid #fff; border-left:1px solid #ddd;border-top:0;border-bottom:0";
}

    ?>

          <tr>
            <td class="center" style="<?php echo$collo2 ?>">
              <b><?php echo $comptc ?></b>
<br />
              du : 
<?php
                setlocale (LC_TIME, 'fr_FR.utf8','fra'); 
                echo utf8_encode(strftime("%d-%m-%Y", strtotime($row['date_insere'])));
                ?>  
            </td>






 
            <td class="center" style="<?php echo$collo2 ?>">
              <b><?php echo stripcslashes($nom) ?></b>
<br />
              <?php echo stripcslashes($tel) ?>
<br />
              <?php echo stripcslashes($email) ?>
</td>



           
            <td class="span1 font12 center" style="<?php echo$collo2 ?>">
              <b>Pour le :

<?php
                setlocale (LC_TIME, 'fr_FR.utf8','fra'); 
                echo utf8_encode(strftime("%A %d-%m-%Y", strtotime($row['date_reserv'])));
                ?>  
</b>
<br />
              <b>&agrave; :<?php echo stripcslashes($heure_reserv) ?></b>
<br />
              <?php echo stripcslashes($pers) ?>
            </td>
 



            <td class="span1 font12 center" style="<?php echo$collo2 ?>">
              <?php echo stripcslashes($lieu) ?>
            </td>


            <td class="center" style="<?php echo$collo2 ?>">
<?php if ($row['status'] == '1') { echo'Termin&eacute;'; } ?>       
<?php if ($row['status'] == '0') { echo'En attente'; } ?>       
            </td>



            <td class="span1 font12 center" style="<?php echo$collo2 ?>">
              <?php echo stripcslashes($commentaires) ?>
            </td>






            <td class="center" style="<?php echo$collo2 ?>">
<?php if ($row['status'] == '1') {  ?>       
              <a href="./reservation_ec.php?validon=<?php echo $row['id']; ?>" onclick="return confirm('Etes vous sur de vouloir lib&eacute;rer cette r&eacute;servation ?');">
                <img src="assets/img/offline.png" title="Remettre en cours">
              </a>

<?php  } else { ?>

              <a href="./reservation_ec.php?valid=<?php echo $row['id']; ?>" onclick="return confirm('Etes vous sur de vouloir valider cette r&eacute;servation ?');">
                <img src="assets/img/online.png" title="Valider comme termin&eacute; !">
              </a>

<?php  } ?>

&nbsp;
           </td>
          </tr>

 



<?php
        }while ($row = $requete->fetch());
      } else {
        echo 'Aucun avis &agrave; afficher !!!';
      }
      ?>

    </tbody>
  </table>
  
<div class="pagin">
<?php
//////////////////////////////////////////////////////////// PAGINATION
//mysql_free_result ($requete);
  echo '<b>'.barre_navigation($nb_total, $nb_affichage_par_page, $_GET['debut'], 8).'</b>';
// on lib?e l'espace m?oire allou?pour cette requ?e
// mysql_free_result ($resultat);
//////////////////////////////////////////////////////////// PAGINATION
?>
<br /><br />
</div>
  
</div>













<?php
include_once('includes/footer.php');
?>

Anon7 - 2022
AnonSec Team