first commit

This commit is contained in:
BACHIR SOULDI
2025-09-28 08:49:37 +01:00
commit 2794e62571
16819 changed files with 2664196 additions and 0 deletions

132
MonitoringVmProduit.php Normal file
View File

@@ -0,0 +1,132 @@
<?php
require_once 'MonitoringVMHeader.php';
require_once 'MonitoringDBRequest.php';
if(isset($_POST['year'])){
$year = $_POST['year'];
}
$result = getResultatVMProduit($year,$roleid);
echo getMonitoringMainBar(2,$roleid).getMonitoringVisiteSubBar(6,$roleid).
'<div class="main-container main-container-Accounts">
<div id="scrollbar" style="margin:15px 15px 15px 15px; border:1px solid #ecf0f1; overflow-y: scroll; overflow-x: scroll; height:462.709px ;border:1px solid #bdc3c7;">'.
getTopTextSelect('Nombre de visites par produit en', $year).
'<hr>
<div class="form-row">
<div class="form-group col-md-4">
<label for="Produit">Produit</label>
<input class="form-control mb-4 w-20" type="text" name="Produit" placeholder="Rechercher" onKeyUp="ProduitFiltre(this)">
</div>
</div>';
echo '<table id="tabcenter" class="table table-bordered table-striped" >
<tr class="center borderline">
<th id="productname" >Produit</th>
<th> janvier</th>
<th> février</th>
<th> mars</th>
<th>avril</th>
<th> mai</th>
<th>juin</th>
<th>juillet</th>
<th> août</th>
<th> septembre</th>
<th> octobre</th>
<th>novembre</th>
<th>décembre</th>
<th>Total</th>
</tr>
<tbody id="values"></tbody>
</table>
</div></div>';
$viewer->view('CustomDashboardFooter.tpl');
?>
<script>
function convertArray(data){
var a=[];
var c=[];
if(data.length > 0) {
for(var i = 0; i < data.length; i++){
var row = data[i];
if(row['month'] !== null && row['nbr'] !== null){
if(a.indexOf(row[0]) == -1){
var b=[0,0,0,0,0,0,0,0,0,0,0,0,0];
a.push(row[0]);
b[0]=row[0];
b[row['month']]=parseInt(row['nbr']);
c[a.length-1]=b;
} else{
b[row['month']]=parseInt(row['nbr']);
c[a.length-1]=b;