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.

58 lines
1.7 KiB

<?php
3 years ago
include '../sessions/session_restraintes.php';
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<?php include 'include/menu.html'; ?>
</head>
<body>
3 years ago
<div class="contaner-field"><a class="button button--large" href="../prof/index.php">client</a></div>
<?php include 'include/nav.php'; ?>
<script type="text/javascript" src="js/edit.js" defer></script>
3 years ago
<table class="table">
<thead>
<tr>
<th colspan="14">Ticket récents non traités</th>
</tr>
</thead>
<tbody>
3 years ago
<tr class="table__title">
<td>ID</td>
<td>date</td>
<td>details</td>
<td>lieu</td>
<td>salle</td>
<td>pos</td>
<td>materiel</td>
<td>marque</td>
<td>model</td>
<td>nserie</td>
<td>demandeur</td>
<td>traitement</td>
<td>valider</td>
</tr>
<?php
$bdd = new SQLite3('../database/ticket_panne.db', SQLITE3_OPEN_READWRITE);
$reponse = $bdd->query("SELECT * FROM pannes ORDER BY ID DESC");
for ($j=0; $j < 3; $j++) {
$line = $reponse->fetchArray();
if ($line['traitement'] == 0) {
$class = $line[0];
include 'include/line.php';
}
3 years ago
else {
$j--;
}
}
?>
</tbody>
</table>
</body>
</html>