|
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/TMCPRO/pages/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include 'includes/config_tmcpro.php' ;
include 'includes/stable_functions_tmcpro.php' ;
$pagemenu = basename($_SERVER["PHP_SELF"]) ;
$_SESSION["pager"]= "" ;
$page_reg = "" ;
include('file_tache.php');
// if($_POST)
// header('Location:fccontact.php?msg=contact bien supprimé&color=success');
function get_lat_long($address){
$address = str_replace(" ", "+", $address);
/*$json = file_get_contents("https://maps.google.com/maps/api/geocode/json?address=$address&sensor=false&key=AIzaSyC4HqZf-zANxtQqW0riYOrRKdrXvzMqCqM");
$json = json_decode($json);
$lat = $json->{'results'}[0]->{'geometry'}->{'location'}->{'lat'};
$long = $json->{'results'}[0]->{'geometry'}->{'location'}->{'lng'};
return $lat.','.$long;
kk*/
$url = "https://maps.google.com/maps/api/geocode/json?key=AIzaSyC4HqZf-zANxtQqW0riYOrRKdrXvzMqCqM&address=".urlencode($address);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$responseJson = curl_exec($ch);
curl_close($ch);
$response = json_decode($responseJson);
if ($response->status == 'OK') {
$latitude = $response->results[0]->geometry->location->lat;
$longitude = $response->results[0]->geometry->location->lng;
/* echo 'Latitude: ' . $latitude;
echo '<br />';
echo 'Longitude: ' . $longitude;
*/ return $latitude.','.$longitude;
} /*else {
echo $response->status;
var_dump($response);
} */
}
// echo "<pre>" ;
// print_r($_GET) ;
// echo "</pre>" ;
// echo "-----------------------------<br/>" ;
if(!empty($_GET['client_id']))
{
$_SESSION["client_id"]=$_GET['client_id'];
}
$cleint_id=$_SESSION["client_id"] ;
$client_id = $_SESSION["client_id"] ;
$_SESSION["cleint_id"]= NULL ;
$q= dbi_fetch_row(dbi_query("SELECT * FROM client where client_id = ".$cleint_id)) ;
?>
<!DOCTYPE html>
<html>
<head>
<?php include('header.php'); ?>
<script type="text/javascript" src="plugins/selectize/selectize.js"></script>
<link rel="stylesheet" type="text/css" href="plugins/selectize/selectize.css" />
<script type="text/javascript" src="plugins/selectize/selectize.min.js"></script>
<link rel="stylesheet" type="text/css" href="plugins/selectize/selectize.default.css" />
<link rel="stylesheet" href="../../plugins/summernote/summernote-bs4.css">
<!-- jQuery 2.2.3 -->
<script src="plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="bootstrap/js/bootstrap.min.js"></script>
<!-- DataTables -->
<script src="plugins/datatables/jquery.dataTables.min.js"></script>
<script src="plugins/datatables/dataTables.bootstrap.min.js"></script>
<!-- SlimScroll -->
<script src="plugins/slimScroll/jquery.slimscroll.min.js"></script>
<style type="text/css">
.modal-backdrop {
/* bug fix - no overlay */
display: none;
}
</style>
<!-- SlimScroll -->
</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
<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 class="nav-item d-none d-sm-inline-block">
<a href="index.html" class="nav-link"><!--Accueil --></a>
</li>
<li class="nav-item d-none d-sm-inline-block">
<a href="#" class="nav-link"><!--Contact --></a>
</li>
</ul>
</nav>
<aside class="main-sidebar sidebar-dark-primary elevation-4">
<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('menu9.php'); ?>
</div>
</aside>
<div class="modal fade" id="myModal_tache_all" 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_tache_all" >
</div>
</div>
</div>
</div>
<!-- Ne pas toucher au dessus / fin de la BARRE DE NAVIGATION-->
<!-- DEMARRAGE DE LA PAGE PRINCIPALE -->
<div class="content-wrapper">
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-4">
<div class="info-box bg-info">
<span class="info-box-icon"><i class="fas fa-user-tie"></i></span>
<div class="info-box-content">
<span class="info-box-number"><?php echo $q['client_nom'] ; ?> </span>
<div class="progress">
<div class="progress-bar" style="width: 100%"></div>
</div>
<span class="progress-description">
<?php echo $q['client_adr1'] ; ?> - <?php echo $q['client_cp'] ; ?> <?php echo $q['client_ville'] ; ?>
</span>
</div>
<!-- /.info-box-content -->
</div>
</div>
<div class="col-sm-8">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="index9.php">Accueil</a></li>
<li class="breadcrumb-item"><a href="clients9.php">Clients</a></li>
<li class="breadcrumb-item active"> <?php echo $q['client_nom'] ; ?> </li>
</ol>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- Content Header (Page header) -->
<!-- /.content-header -->
<div class="content">
<div class="row">
<div class="col-lg-12">
<!-- CARD DE DROITE-->
<div class="card card-primary">
<div class="card-body">
<a href="profilclient9.php?client_id=<?=$cleint_id?>">
<button type="button" class="btn btn-secondary"><i class="fas fa-address-book"></i> INFORMATIONS</button>
</a>
 
<a href="fccontact9.php?client_id=<?=$cleint_id?>">
<button type="button" class="btn btn-info"><i class="fas fa-user"></i> CONTACTS</button>
</a>
 
<a href="Prestation_New9.php?client_id=<?=$cleint_id?>">
<button type="button" class="btn btn-info"><i class="fas fa-calendar-alt"></i> PRESTATIONS</button>
</a>
 
<a href="pointage_clientc9.php?client_id=<?=$cleint_id?>">
<button type="button" class="btn btn-info"><i class="fas fa-clock"></i> POINTAGES</button>
</a>
 
<a href="fcinstruction9.php?client_id=<?=$cleint_id?>">
<button type="button" class="btn btn-info"><i class="fas fa-clipboard"></i> INSTRUCTIONS</button>
</a>
 
<a href="fcdocument9.php?client_id=<?=$cleint_id?>">
<button type="button" class="btn btn-info"><i class="fas fa-file-alt"></i> DOCUMENTS</button>
</a>
 
<a href="Livraison_cclient9.php?client_id=<?=$cleint_id?>">
<button type="button" class="btn btn-info"><i class="fas fa-truck"></i> LIVRAISONS</button>
</a>
 
<a href="Produits_livree9.php?client_id=<?=$cleint_id?>">
<button type="button" class="btn btn-info"><i class="fas fa-boxes"></i> STOCK CLIENT</button>
</a>
</div>
<div class="card-body">
<form >
<!-- ///////Ligne Adresse 1 -->
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputsociete">Société</label>
<input type="text" class="form-control" id="inputsociete" name="societe" placeholder="Société" value="<?=$q['client_nom'] ; ?>">
</div>
<div class="form-group col-md-6">
<label for="inputAddresse">Addresse 1</label>
<input type="text" class="form-control" id="inputAddresse" name="adr1" value="<?=$q['client_adr1'] ; ?>" >
</div>
</div>
<!-- ///////Ligne Adresse 2 -->
<div class="form-row">
<div class="form-group col-md-6">
<label for="inputAddresse2">Addresse 2</label>
<input type="text" class="form-control" id="inputAddresse2" name="adr2" value="<?=$q['client_adr2'] ; ?>" >
</div>
<!-- ///////Ligne Adresse 3 -->
<div class="form-group col-md-6">
<label for="inputAddresse3">Addresse 3</label>
<input type="text" class="form-control" id="inputAddresse3" name="adr3" value="<?=$q['client_adr3'] ; ?>">
</div>
</div>
<!-- ///////Ligne Code Postal & Ville -->
<div class="form-row">
<div class="form-group col-md-3">
<label for="inputcp">Code Postal</label>
<input type="text" class="form-control" name="cp" id="inputcp" value="<?=$q['client_cp'] ; ?>">
</div>
<div class="form-group col-md-6">
<label for="inputville">Ville</label>
<input type="text" class="form-control" name="ville" id="inputville" value="<?=$q['client_ville'] ; ?>" >
</div>
<div class="form-group col-md-3"><!-- Télephone -->
<div class="form-group">
<label for="inputtel">Téléphone</label>
<input type="text" class="form-control" id="inputtel" name="tele" value="<?=$q['client_tele'] ; ?>" >
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /.col-md-6 -->
<!-- /.content-wrapper -->
<!-- Control Sidebar -->
<!-- /.control-sidebar -->
<?php include('footerr.php'); ?>
<script type="text/javascript">
$(document).ready(function(){
$('#myModal_tache_all').on('show.bs.modal', function (e) {
var rowid = $(e.relatedTarget).data('id');
$.ajax({
type : 'post',
url : 'tache_ajax_nv_all.php', //Here you will fetch records
data : 'rowid='+ rowid, //Pass $id
success : function(data){
$('#fetch_tache_all').html(data);//Show fetched data from database
}
});
});
});
</script>
</body>
</html>
