|
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
// $a = 2 ;
// $b = 6 ;
// $somme = $a + $b ;
// echo "la somme est ==> $somme <br/>" ;
include 'includes/config_tmcpro.php' ;
include 'includes/stable_functions_tmcpro.php' ;
session_start();
// echo "test" ;
dbi_query("update probleme_extaranet_client SET statu = '2' ") ;
if($_GET['action'] == 'sup'){
// echo "<pre>" ;
// print_r($_GET) ;
// echo "<s/pre>" ;
// exit() ;
dbi_query("DELETE FROM uploads WHERE `uploads`.`id_probleme_extaranet_client` = ".$_GET['id']) ;
dbi_query("DELETE FROM probleme_extaranet_client WHERE `probleme_extaranet_client`.`id_probleme_extaranet_client` = ".$_GET['id']) ;
header("Location:probleme_signale.php?msg= la ligne bien supprimé &color=success");
}
if($_GET['sup']== 'histo'){
dbi_query("DELETE FROM probleme_extaranet_client ") ;
dbi_query("DELETE FROM uploads ") ;
header("Location:probleme_signale.php?msg= le tout bien est bien effacé &color=success");
}
?><html>
<head>
<?php include('header.php'); ?>
</head>
<body class="hold-transition sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">
<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>
<li>
<a href="probleme_signale.php?sup=histo"> <button type="button" class="btn btn-secondary" data-toggle="modal" data-target="#modal-nouveaucontact"> Effacer Tout </button> </a> </h3>
</li>
</ul>
<!-- liens TOP MENU DROITE -->
<ul class="navbar-nav ml-auto">
<!-- Placer ici l'élément à positionner à droite du TOP MENU -->
</ul>
</nav>
<!-- BARRE DE NAVIGATION -->
<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>
<!-- 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-6">
<h1>Signalisation probléme</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="index.php">Accueil</a></li>
<li class="breadcrumb-item active">Signalisation probléme</li>
</ol>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- /.content-
<!-- Content Header (Page header) -->
<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>
<section class="content">
<div class="row">
<div class="col-12">
<div class="card">
<?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">×</span>
</button>
</div>
<?php
// exit();
}
?>
<div class="card-body">
<div class="card-body table-responsive p-0">
<table class="table table-hover text-nowrap">
<tbody>
<?php $query = dbi_query("SELECT * FROM probleme_extaranet_client pc , client c where c.client_id = pc.client_id ");
// echo "SELECT * FROM client c, etablissement etab,categorie cat where c.etablissement_id = etab.etablissement_id and c.categorie_id = cat.categorie_id $where_statut $where_etablissement_id ORDER BY c.`client_nom` ASC " ;
while($cl = dbi_fetch_row($query)){
$req_photo= dbi_query(" SELECT * FROM `uploads` WHERE `id_probleme_extaranet_client` = ".$cl['id_probleme_extaranet_client']) ;
$client_id = $cl['client_id'] ;
$chaine = "<a href='profilclient.php?client_id=$client_id' target='' >".$cl['client_nom']."</a>" ;
?>
<tr>
<td> <?php echo "".$chaine ?></td>
<td> <?php echo $cl['message']; ?></td>
<td> <?php echo int2date($cl['date_signalisation']); ?></td>
<td>
<?php
while($clphoto = dbi_fetch_row($req_photo)){ ?>
<a class="btn btn-primary btn-sm" href="<?=$clphoto['name_photo']?>" target="_blank"><i class="fas fa-file"></i> Consulter </a>
<? }
?>
</td>
<td>
<a href="probleme_signale.php?doc=cl&action=sup&id=<?=$cl['id_probleme_extaranet_client']?>" onclick="return confirm('Voulez-vous vraiment supprimer cette ligne ?');" class="btn btn-danger btn-sm"> <i class="fas fa-trash"></i> Supprimer </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 : 'ajaxAjoutMatR.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>
