formulaire pour remplir des ticket de panne
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.3 KiB

<?php
3 years ago
include '../sessions/session_restraintes.php';
$bdd = new SQLite3('../database/ticket_panne.db', SQLITE3_OPEN_READWRITE);
$reponse = $bdd->query("SELECT * FROM logins");
$arr = [];
while ($line = $reponse->fetchArray()) {
$arr[$line[0]] = $line[1];
}
?>
<html>
<head>
<?php include 'include/menu.html'; ?>
<script type="text/javascript" src="js/admin.js" defer></script>
</head>
<body>
<?php include 'include/nav.php'; ?>
3 years ago
<table class="table">
<thead>
<tr>
<th colspan="3">Mot de passe</th>
</tr>
</thead>
<tbody>
3 years ago
<tr class='table__title'>
<td>Login</td>
<td>Password</td>
</tr>
3 years ago
<?php
foreach ($arr as $key => $value) {
echo '<tr>
<td class=',$key,' style="font-weight: bold;">', $key,'</td>
<td class=',$key,'>', $value,'</td>
<td class=',$key,'><input class="button button--small" type="button" value="edit" onclick="Edit(\'',$key,'\')"></td>
</tr>';
}
?>
</tbody>
</table>
</body>
3 years ago
</html>