AnonSec Team
Server IP : 10.128.40.6  /  Your IP : 216.73.216.200
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/MC/../www/mcg/plugins/jszip/../../.github/../sms/../pages/python/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/logmcpe/MC/../www/mcg/plugins/jszip/../../.github/../sms/../pages/python/../Parametrage7.php
<?php
include 'includes/config_tmcpro.php' ;
include 'includes/stable_functions_tmcpro.php' ;

								

$q =dbi_query("SELECT *  FROM `client` WHERE `client_statut` = '1' "); 

// echo "<pre>" ; 
// print_r($_POST) ; 
// echo "</pre>" ;
if($_POST['modifier']== "modifier"){
	$tele1=$_POST['tele1'] ; 
	$tele2=$_POST['tele2'] ; 
	$tele3=$_POST['tele3'] ; 
	$tele4=$_POST['tele4'] ; 
	$tele5=$_POST['tele5'] ; 
	$client_NFC = $_POST['client_NFC'] ; 
	$client_NFC_2 = $_POST['client_NFC_2'] ; 
	$idprodm=$_POST['idprodm'] ; 
	
				 
	$client_acces_pointage= $_POST['client_acces_pointage'];
	
			 
			// dbi_query(" UPDATE `client` SET  WHERE  client_id = $client_id; ");
	
	dbi_query("UPDATE client SET `tele1` = '$tele1', `tele2` = '$tele2' , `tele3` = '$tele3', `tele4` = '$tele4', `tele5` = '$tele5', client_acces_pointage = '$client_acces_pointage' , client_NFC = '$client_NFC',client_NFC_2 = '$client_NFC_2' WHERE `client`.`client_id` = $idprodm ") ; 

	
// echo "test <br/>" ; 

// exit() ; 

 
$ay = 1233 ; 
	    // $fichier_csv = fopen("sortie/AIDE_$idprodm.csv", "w+");
    // ----------------fputs($fichier_csv, "0;$idprodm;$tele1;$tele2;$tele3;$tele4");
	// $info = '0;'.$idprodm.';'.$client_NFC.';'.$client_NFC_2.';;' ;
	// fputs($fichier_csv, $info);
    // --------------------------- foreach($tabeleves as $ligne){
        // ------------------------ fputcsv($fichier_csv, $ligne, ";");
    // ------------------------------ }
    // fclose($fichier_csv);
	
	
	// $my_connection = ftp_connect("telegestion.appius.fr", 21) or exit('Erreur : connexion au serveur FTP impossible.');
	// ftp_login($my_connection, "AD_636", "AC4BRT9F");
	// ftp_pasv($my_connection, true);
	// if(ftp_put($my_connection, "/entree/AIDE_$idprodm.csv", "sortie/AIDE_$idprodm.csv" , FTP_ASCII))
	// {
		// header('Location:Parametrage.php');
		// --------------- echo "bravooOOOoo" ; 
	// }else{  
	
	// echo "Probléme de transfert sur le serveur" ; 
	// }
	
	
}

?>


<!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>

												
													</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 = "Parametrage.php?id_etab="+id_etab;
												else
											window.location = "Parametrage.php";
										   }
										</script>
										
									<?php
										if(!empty( $_GET["id_statu"]))
										{	
										$_SESSION["id_statu"] = $_GET["id_statu"];
										}
										
										if(!empty( $_GET["id_etab"]))
										{
										$_SESSION["id_etab"] = $_GET["id_etab"];
										}										
										
										if(empty($_SESSION["id_etab"]) OR $_SESSION["id_etab"]== 111 )
										{
											$where_etablissement_id="" ; 
										}
										else{
											$where_etablissement_id = " AND c.etablissement_id = ".$_SESSION["id_etab"] ; 
												
										}
										
										
									// AND 	prospect = '0'
									  $tday = date('Ymd') ;   
									$q =dbi_query("SELECT DISTINCT(ch.client_id) FROM client c, etablissement e , chantier ch WHERE  
									c.etablissement_id= e.etablissement_id  AND 	prospect = '0'  AND ch.client_id  =  c.client_id   
									AND   (chantier_fin >= $tday  OR chantier_fin = 0) AND  c.client_statut = '1' and  c.client_id in 
									( SELECT client_id FROM PRESTATIONS p where  `presta_date_fin` IS NULL OR `presta_date_fin` >= $tday ) $where_etablissement_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-clock"></i> Param&#233;trage  </h3>
																	</div>
																</div> 
															</div>
															
															

								
								
								
									<div class="card-body">
										<div class="onglet_dotted">
										

										
										
							<form id="client_statu_form" name="client_statu_form" method="POST"  action="">		
								<div class="form-group col-md-4">
								  <div class="input-group">			
									<?php  $qa = dbi_query("SELECT * FROM `etablissement`") ;  ?>
										<select class="form-control select" style="width: 100%;" id="client_etab" name="client_etab" onchange="GetIdBureauB()"; >			  
											<?php  while($etab=dbi_fetch_row($qa))	{?>
											<option value="<?php echo $etab['etablissement_id'] ;?> " <?php if($etab['etablissement_id']==$_SESSION["id_etab"]){echo "selected"  ;} ?> ><?php echo $etab['etablissement_nom'] ;?></option>
											<?php } ?>
											<option value="111" <?php if($_SESSION["id_etab"]== 111 ){echo "selected"  ;} ?>  >Tous les Etablissements</option>
										</select>
											  
									</div> 
								</div>
							</form>	
								
								
											<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 align="center">Nom</th>
																  <th align="center">Etablissement</th>		
 															   <th align="center">Accès</th>	 
																  <th align="center">Tel 1</th>	
																  <th align="center">Tel 2</th>	

																  <th align="center">Tel 3</th>		
																   <th align="center">Tel4</th>	
																	<th align="center">Tel5</th>
																     <th align="center">NFC</th>
																	<th align="center">NFC 2</th>																	 
																  <th align="center">Editer</th>	 
																</TR>
															</thead>
                                                            <tbody>
														
															<?php while($cll = dbi_fetch_row($q)) {
																
																$cl =dbi_fetch_row(dbi_query(" SELECT *  FROM `client` WHERE `client_id` =  ".$cll['client_id'])) ;
																
                                  if($cl['client_acces_pointage']==1){$client_acces_pointage = 'Non vérifié' ;   }
								  if($cl['client_acces_pointage']==2){$client_acces_pointage = 'Pointage Possible' ;   }
								  if($cl['client_acces_pointage']==3){$client_acces_pointage = 'Pointage Impossible' ;   }
								
																
															?>
															<tr>
															<td><?php echo $cl['client_nom']." ".$cl['client_id'] ; ?> </td>
															<td><?php echo $cl['etablissement_nom']  ; ?> </td>
															<td><?php echo $client_acces_pointage  ; ?> </td>
															<td><?php echo $cl['tele1']  ; ?> </td>
															<td><?php echo $cl['tele2']  ; ?> </td>
															<td><?php echo $cl['tele3']  ; ?> </td>
															<td><?php echo $cl['tele4']  ; ?> </td>
															<td><?php echo $cl['tele5']  ; ?> </td>
															<td><?php echo $cl['client_NFC']  ; ?> </td>
															<td><?php echo $cl['client_NFC_2']  ; ?> </td>
															 <TD align="center" nowrap>
  <?php echo '<a class="btn btn-info btn-sm" href="#myModal"  id="custId" data-toggle="modal" data-id="'.$cl['client_id'].'"><i class="fas fa-pencil-alt"></i></a>';?>
				</a>
															</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 : 'ajaxModifierParametrage.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>

AnonSec - 2021