|
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 (0755) : /home/logmcpe/www/TEST/../TMCPRO/pages/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include 'includes/config_tmcpro.php' ;
include 'includes/stable_functions_tmcpro.php' ;
session_start();
// echo 'Bienvenue à la page numéro 1';
// $_SESSION['favcolor'] = 'green';
// echo "test <br/>" ;
if(!empty($_POST))
{
// echo "<pre>" ;
// print_r($_POST) ;
// echo "</pre>" ;
$date_jourr= date2int_DSI($_POST['date_jour']) ;
// echo "==>".$date_jourr."</br>" ;
// exit() ;
$_SESSION['ur'] = $_POST['admin_id'];
$_SESSION['date_jour'] = $date_jourr;
}
// echo "==>".$_SESSION['ur'] ;
?>
<!DOCTYPE html>
<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">
<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>
<?php echo '<a href="#myMal2" id="custId" data-toggle="modal" data-id="'.$c['Fournisseur_ID'].'"><h3></h3></a>';?>
</li>
</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 GetIdBureau()
{
var id="";
id = document.admin_form.admin_id.value ;
if( id > 0 || id=="INDEFINI" )
window.location = "control_admin.php?id="+id;
else
window.location = "control_admin.php";
}
</script>
<?php
// echo "<pre>" ;
// print_r($_GET) ;
// echo "</pre>" ;
// $where1="";
// $where1=" where `Admin_ID` = $Admin_ID ";
?>
<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">
<h3 class="card-title"> <i class="nav-icon fas fa-id-card"></i> Control Administratif </h3>
</div>
</div>
</div>
<div class="card-body">
<form id="bureau_mois" name="mois_form" method="POST" action="">
<div class="form-row">
<div class="form-group col-md-4">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="far fa-calendar-alt"></i></span>
</div>
<?php
// $date_jour = int2date_autre_format($_SESSION['date_jour'] ) ;
// echo "=========>".$_SESSION['date_jour']."<br/>" ;
// echo "===>".$date_jour."<br/>" ;
if($_SESSION['date_jour']=="")
{
$dt= date('Ymd') ;
// echo "ooo===".$dt."<br/>" ;
$date_jour = int2date_autre_format($dt) ;
}
else{
$date_jour = int2date_autre_format($_SESSION['date_jour']) ;
}
// echo "=e==>".$date_jour."<br/>" ;
?>
<input type="date" class="form-control" id="date_jour" name="date_jour" value='<?php echo $date_jour ; ?>' placeholder="jj/mm/aaaa"/>
</div>
</div>
<div class="form-group col-md-4">
<div class="input-group">
<select class="form-control select" style="width: 100%;" id="admin_id" name="admin_id" onchange="GetIdBureau()";>
<option selected="selected">Selectionner administratif </option>
<?php if(isset($etablissement_id) && isset($etablissement_nom)) { ?>
<?php
}
$etab=dbi_query("SELECT * FROM users where etat = '1' ");
// echo "==>".$_SESSION['ur'] ; $_SESSION['mois']
while($et=dbi_fetch_row($etab)){
?>
<option value="<?php echo $et['user_id'];?>" <?php if( $et['user_id'] == $_SESSION['ur']) echo "SELECTED"; ?> ><?php echo $et['user_nom']." ".$et['user_prenom']?></option>
<?php
}
?>
</select>
</div>
</div>
<div class="form-group col-md-4">
<div class="input-group">
<button type="submit" name="Afficher" class="btn btn-primary">Afficher </button>
</div>
</div>
</div>
</form>
<?php
echo " <b style='color:rgb(22,100,141)'> les actions ouvrir par le salarié </b> <br/>" ;
?>
<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-hover">
<thead>
<TR>
<th align="center">Date/Heure</th>
<th align="center">Administratif affectée</th>
<th align="center">Client</th>
<th align="center">Designation</th>
</TR>
</thead>
<tbody>
<?php
if(!empty($_POST))
{
// echo "<pre>" ;
// print_r($_POST);
// echo "</pre>" ;
$Admin_ID =$_POST['admin_id'];
// for($i=1 ; $i<=31; $i++)
// {
// $mois=date('Y').$_POST['mois'] ;
// if($i<10)
// {
// $date_control = $mois."0$i" ;
// }
// else
// {
// $date_control = $mois."$i" ;
// }
// echo "==>".$date_control."<br/>" ;
// $q=dbi_query("SELECT * FROM `test_suivi` WHERE `suivi_parent_id` != 0 and Admin_ID = $Admin_ID and date_control = $date_control ") ;
$q=dbi_query("SELECT * FROM sous_tache WHERE tache_id != 0 and user_id_creation = $Admin_ID and date_creation = ".$_SESSION['date_jour']) ;
// echo "SELECT * FROM sous_tache WHERE tache_id != 0 and user_id = $Admin_ID and date_creation = $date_control </br>" ;
while($suviO=dbi_fetch_row($q))
{
list($client_nom)=dbi_fetch_row(dbi_query("SELECT client_nom FROM tache t , client c where t.client_id = c.client_id and tache_id = ".$suviO['tache_id'])) ;
list($user_nom , $user_prenom)= dbi_fetch_row(dbi_query("SELECT user_nom , user_prenom FROM `users` WHERE user_id = ".$suviO['user_id'])) ;
$page = "control_adm.php" ;
?>
<tr>
<td> <a href="fetch_record.php?rowid=<?=$suviO['tache_id']?>&page=<?=$page?>"> <?php echo $suviO['date_heure_creation']; ?> </a></td>
<td><?php echo $user_nom." ".$user_prenom; ?> </td>
<td><?php echo $client_nom; ?> </td>
<td><?php echo $suviO['sous_tache_designation']; ?> </td>
</tr>
<?php
// echo "===>".int2date($date_control )."==> ".$suviO['annotation']."<br/>" ;
}
// }
}
?>
</tbody>
</table><!-- /.table -->
</div><!-- /.box-body -->
</div><!-- /.tab -->
</div><!-- /.header_ray -->
</div><!-- /.onglet_dotted -->
<?php
echo " <b style='color:rgb(22,100,141)'> les actions arréter par le salarié </b> <br/>" ;
?>
<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-hover">
<thead>
<TR>
<th align="center">Date/Heure</th>
<th align="center">Administratif affectée</th>
<th align="center">Client</th>
<th align="center">Designation</th>
</TR>
</thead>
<tbody>
<?php
if(!empty($_POST))
{
// echo "<pre>" ;
// print_r($_POST);
// echo "</pre>" ;
$Admin_ID =$_POST['admin_id'];
// for($i=1 ; $i<=31; $i++)
// {
// $mois=date('Y').$_POST['mois'] ;
// if($i<10)
// {
// $date_control = $mois."0$i" ;
// }
// else
// {
// $date_control = $mois."$i" ;
// }
// echo "==>".$date_control."<br/>" ;
// $q=dbi_query("SELECT * FROM `test_suivi` WHERE `suivi_parent_id` != 0 and Admin_ID = $Admin_ID and date_control = $date_control ") ;
$q=dbi_query("SELECT * FROM sous_tache WHERE tache_id != 0 and user_id_fin_tache = $Admin_ID and date_fin = ".$_SESSION['date_jour']) ;
// echo "SELECT * FROM sous_tache WHERE tache_id != 0 and user_id = $Admin_ID and date_creation = $date_control </br>" ;
while($suviO=dbi_fetch_row($q))
{
list($client_nom)=dbi_fetch_row(dbi_query("SELECT client_nom FROM tache t , client c where t.client_id = c.client_id and tache_id = ".$suviO['tache_id'])) ;
list($user_nom , $user_prenom)= dbi_fetch_row(dbi_query("SELECT user_nom , user_prenom FROM `users` WHERE user_id = ".$suviO['user_id'])) ;
$page = "control_adm.php" ;
?>
<tr>
<td> <a href="fetch_record.php?rowid=<?=$suviO['tache_id']?>&page=<?=$page?>"> <?php echo $suviO['date_heure_fin_tach']; ?> </a></td>
<td><?php echo $user_nom." ".$user_prenom; ?> </td>
<td><?php echo $client_nom; ?> </td>
<td><?php echo $suviO['sous_tache_designation']; ?> </td>
</tr>
<?php
// echo "===>".int2date($date_control )."==> ".$suviO['annotation']."<br/>" ;
}
// }
}
?>
</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'); ?>
</body>
</html>
