Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.electricien-77.com
/
htdocs
/
admin430
/
connected
/
pages
/
/srv/data/web/vhosts/www.electricien-77.com/htdocs/admin430/connected/pages/contact.php
<?php $stmt=$db_client->prepare("SELECT * FROM contact WHERE id_company=? ORDER BY send_at DESC"); // on prépare notre requête $stmt->execute(array($conf_id_company)); $rows=$stmt->fetchAll(); if(!empty($rows)): echo "<h1>Contact <small>(".sizeof($rows).")</small></h1>"; foreach($rows as $row) echo" <div class='modal fade' id='desc$row->id'> <div class='modal-dialog'> <div class='modal-content'> <div class='modal-header'> <button type='button' class='close' data-dismiss='modal' aria-hidden='true'>×</button> <h4 class='modal-title'>Détail du message</h4> </div> <div class='modal-body'> <i>Envoyé le ".date("d/m/Y à H:i",strtotime($row->send_at))."</i><br> <br> Prénom Nom : <b>$row->firstName $row->lastName</b><br> Email : $row->email<br> Téléphone : $row->phone<br> <br> Objet : $row->object<br> <br> Message :<br> $row->message </div> <div class='modal-footer'> <a class='btn btn-default' data-dismiss='modal'>Ok</a> </div> </div> </div> </div> "; ?> <table class='table table-default'> <thead> <tr> <th>Date de l'envoi</th> <th>Identité</th> <th>Email</th> <th>Téléphone</th> <th>Objet</th> <th>Message</th> </tr> </thead> <tbody> <?php foreach($rows as $row) echo" <tr> <td>".date("d/m/Y H:i",strtotime($row->send_at))."</td> <td>$row->firstName $row->lastName</td> <td>$row->email</td> <td>$row->phone</td> <td>$row->object</td> <td> <a data-toggle='modal' href='#desc$row->id' class='btn btn-xs btn-info' title='Lire le message'> <span class='fa fa-eye fa-fw'></span> </a> </td> </tr> "; ?> </tbody> </table> <?php else: ?> <i>Le formulaire de contact n'a encore été rempli.</i> <?php endif ?>