1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
| <? include("mysqlcon.php");
$q = "Select * from activ_vad order by date desc";
$q = $conn->query($q);
?>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://kit.fontawesome.com/bed365ce8f.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<div class="container">
<style>
.inp {
width: 100%;
}
@media (max-width: 500px) {
tbody {
border: 1px solid;
margin-bottom: 10px;
border-radius: 10px;
}
.responsive-table-line td:before { content: attr(data-title); }
.responsive-table-line table,
.responsive-table-line thead,
.responsive-table-line tbody,
.responsive-table-line th,
.responsive-table-line td,
.responsive-table-line tr {
display: block;
}
.responsive-table-line thead tr {
display:none;
}
.responsive-table-line td {
position: relative;
border: 0px solid transparent;
padding-left: 50% !important;
white-space: normal;
text-align:right;
}
.responsive-table-line td:before {
position: absolute;
top: 0px;
left: 0px;
width: 45%;
padding-right: 15px;
height:100%;
white-space: nowrap;
text-overflow: ellipsis !important;
overflow:hidden !important;
text-align:left;
background-color:#f8f8f8;
padding:2px;
}
}
</style>
<div class="responsive-table-line" >
<table class="table table-bordered table-condensed table-body-center" >
<thead>
<tr>
<th>Utilisateur</th>
<th>Activitée</th>
<th>Date</th>
</tr>
</thead>
<?
while($f = mysqli_fetch_array($q)){
$idactiv = $f["id"];
$admin = $f["admin"];
$texte = $f["texte"];
$date = $f["date"];
$date = date("d/m/Y", $date);
?>
<tbody>
<tr>
<td data-title="Admin"><? echo $admin; ?></td>
<td data-title="Activitée"><? echo $texte; ?></td>
<td data-title="Date"><? echo $date; ?></td>
</tr>
</tbody>
<? } ?>
</table>
</div>
</div> |
Partager