AnonSec Team
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/feuillesroute/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/logmcpe/www/mcg/pages/feuillesroute/../Tache_Prospect.php
<?php

include 'includes/config_tmcpro.php' ;
include 'includes/stable_functions_tmcpro.php' ;
$pagemenu = basename($_SERVER["PHP_SELF"]) ;

// echo "testttttttttttjjjjkkktttt <br/>" ;
// if(!empty($_POST['contact_id']) )
	// {
	        // echo "<pre>" ; 
			 // prsint_r($_POST); 
			 // echo "</pre>" ;
			 // exit() ;z 
	// }
	
	// echo "<pre>" ; 
	// print_r($_GET) ; 
	// echo "<pre>" ; 
	
	if(!empty($_GET['client_id']))
	{
		$_SESSION["client_id"] = $_GET['client_id']; 
	}
		
	 $client_id=$_SESSION["client_id"] ; 
			 

		
	if(!empty($_POST))
	{
   

			 
	$client_acces_pointage= $_POST['client_acces_pointage'];
	
			 
			dbi_query(" UPDATE `client` SET client_acces_pointage = '$client_acces_pointage' WHERE  client_id = $client_id; ");
	
	header('Location:Tache_Prospect.php?msg=pointage bien Modifié&color=success');
	}
		
		
	 
		


           
			 
	
			 
			
			
?> 


<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
 <!-- Enregistrer le titre de la page --><title> LogMCPRO | Contacts</title>
												<!-- Tell the browser to be responsive to screen width -->
  <meta name="viewport" content="width=device-width, initial-scale=1">

												<!-- Font Awesome -->
  <link rel="stylesheet" href="../../plugins/fontawesome-free/css/all.min.css">
												<!-- Ionicons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
												<!-- overlayScrollbars -->
  <link rel="stylesheet" href="../../dist/css/adminlte.min.css">
												<!-- Google Font: Source Sans Pro -->
  <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
    <style>
.myCollapse {
    display: none;
}
.myCollapse.in {
    display: block;
}
  .modal-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
}
  .modal-header {
    background: #226faa;
    background: -webkit-gradient(linear,left top,right top,from(#226faa),color-stop(37%,#2989d8),to(#72c0d3));
    background: linear-gradient(to right,#226faa 0,#2989d8 37%,#72c0d3 100%);
    border-radius: 6px;
    color: #fff;
    padding: 18px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: transparent;
}

.modal-header .close {
    margin-top: -3px;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    opacity: .9;
    width: 28px;
    height: 28px;
    padding-bottom: 0;
    padding-left: 1px;
}
button.close {
    padding: 0;
    cursor: pointer;
    background: 0 0;
    border: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}



  </style>
</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-->
     
	 
	  
	  
    </ul>

 <!-- liens TOP MENU DROITE -->
    <ul class="navbar-nav ml-auto">
     <!-- Placer ici l'élément à positionner à droite du TOP MENU -->
    </ul>
  
  </nav>  <!-- fin du TOP MENU -->
  
  
  
  
<!-- BARRE DE NAVIGATION -->


  <?php include('menu.php'); ?>
  
   <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>

 
 <!-- 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">
       
		  
<!-- /.col -->
		 <div class="modal fade" id="modal-nouveaucontact">
        <div class="modal-dialog modal-lg">
          <div class="modal-content">
            
          
		  </div>
          <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
      </div>
       
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->

    <!-- PAGE PRINCIPALE -->
    <div class="content">
      <div class="container-fluid">
        <div class="row">
	  <!-- DEFINITION DES COLONNES -->	
          <div class="col-lg-3">
		  
	 <!-- WIDGET AVEC LE NOM DU CLIENT -->		  
		   
					
		<?php include('widget_client.php'); ?>	
			
		 <!-- BARRE DE NAVIGATION DU CLIENT -->		  
            
  <?php include('menu_prospect.php'); ?>
			</div>
          
          <!-- PASSAGE A LA COLONNE DE DROITE-->
          <div class="col-lg-9">
		  <!-- CARD DE DROITE-->
           <div class="card">
                <div class="card-header"><h5 class="m-0"><i class="nav-icon fas fa-list-alt"></i>  <?php echo strtoupper ("Sous Taches") ; ?></h5></div>
				
              <div class="card-body">
   <section class="content">
   					  		  <?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">&times;</span>
          </button>
        </div>
        <?php
        }
       ?>
    
			
			
          
            <!-- /.card-header -->
            <div class="card-body">
			
			    <?php
				
				$suivi = dbi_query(" SELECT * FROM  tache t,users u   where t.user_id = u.user_id and  client_id=$client_id   ") ; 
				?>
			
			
			
			
													<div class="box-body">
														<table id="example1" class="table table-bordered table-striped">
															<thead>
																<TR>
																  <th align="center" colspan="4"> Sujet </th>
																  <th align="center">Nom du salarié </th>	
																
																 
																  

																  <th align="center">Statu </th>
																	<th align="center">Priorité </th>																  
																  <th align="center"> Administratif </th>	
																
																  
																</TR>
															</thead>
                                                            <tbody>
															
															
						
																<?php while($a = dbi_fetch_row($suivi)){
																	
																	if($a['tache_status']==0)
																	{
																	
																	$tache_status="Pas complété";

																	}else{ $tache_status="Complété";}
																	
																	if($a['tache_Priorite']== 1)
																		{
																			$tache_Priorite= "Moyen" ; 
																		}
																		elseif($a['tache_Priorite']== 2)
																		{
																			 $tache_Priorite= "Haute" ; 
																		}
																		elseif($a['tache_Priorite']== 3)
																		{
																		$tache_Priorite= "Urgente" ; 
																		}
																	
																 
																
																
																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() : 
																 if($a['client_id']!= 0)
																	  {
																	  list($client_nom)= dbi_fetch_row(dbi_query("SELECT client_nom   FROM `client` WHERE `client_id` = ".$a['client_id'])) ; 
																	  // echo "<br/>SELECT client_nom   FROM `client` WHERE `client_id` = ".$a['client_id'] ;
																	  }
																	  else
																	  { $client_nom = " <strong style='color:red;'> Pas de client concerné </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 style='color:red;'>Pas de " ; 
																			$salarie_prenom = "salarié </strong> " ; 
																		}
																		
																		
																		
																		
																		
																		
																		
																		
																		
																											$page = "TacheClient.php" ; 
				
					?>
					
				
																<tr>
															
																<td colspan="4"> <a href="fetch_record.php?rowid=<?=$a['tache_id']?>&page=<?=$page?>"> <?php echo $a['tache_sujet'] ; ?></a></td>
																<td> <?php echo $salarie_nom." ".$salarie_prenom ; ?></td>
															
														
																
															
																
																<td> <?php echo $tache_status ; ?></td>
																<td> <?php echo $tache_Priorite; ?></td>
																<td> <?php echo $a['user_nom']." ".$a['user_prenom'] ; ?></td>
															
																
																
															    <?php }?>
 
															</tbody>
														</table><!-- /.table -->
													</div><!-- /.box-body -->
			
		

            
            <!-- /.card-body -->
          </div>
          <!-- /.card -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->
    </section>
    <!-- /.content -->
  </div>
  <!-- NE PAS TOUCHER AU DESSUS DESSOUS -->	 




   

                
				
               
              </div>
            </div>

            
              </div>
            </div>
          </div>
          <!-- /.col-md-6 -->
        </div>
        <!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
    <div class="p-3">
      <h5>Title</h5>
      <p>Sidebar content</p>
    </div>
  </aside>
  <!-- /.control-sidebar -->
  <footer class="main-footer">
    <div class="float-right d-none d-sm-block">
      <b>Version</b> 3.0.1
    </div>
    <strong>Copyright &copy; 2014-2019 <a href="http://adminlte.io">AdminLTE.io</a>.</strong> All rights
    reserved.
  </footer>

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->

<!-- 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>
<!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js"></script>



</body>
</html>

AnonSec - 2021