You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

56 lines
1.9 KiB

<div class="content-wrapper">
<section class="content-header">
<h1>
Espace
<small>commercial</small>
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Accueil</a></li>
<li class="active">Espace commercial</li>
</ol>
</section>
<section class="content">
<div class="row">
<div class="col-md-12 col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">Listes des produits en ventes</h3>
</div>
<div class="box-body">
<table id="manageTable" class="table table-bordered table-striped">
<thead>
<tr>
<th>Image</th>
<th>Numéro de série</th>
<th>Motos</th>
<th>Prix</th>
<th>Puissances</th>
<th> Moteur</th>
<th>Action</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</section>
</div>
<script>
$(document).ready(function() {
$("#espaceMainMenu").addClass('active');
const id = <?php echo json_encode($id); ?>;
manageTable = $('#manageTable').DataTable({
'ajax': `<?= base_url('ventes/fetchProductVente') ?>/${id}`,
'order': [],
'columnDefs': [{
targets: 3,
className: 'text-right'
} // Column index 3 corresponds to "Prix"
]
});
})
</script>