-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmespret.php
69 lines (58 loc) · 1.78 KB
/
mespret.php
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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/table.css">
</head>
<body>
<?php
require_once 'connexion.php';
$er = "select * from utilisateur where 1";
$res1 = mysqli_query($connect , $er);
while($pro = mysqli_fetch_row($res1))
{
if ($pro[2]==$_GET['name']) {
$id=$pro[0];
}
}
$query = "select * from pret where id=$id";
$result = mysqli_query($connect , $query);
echo "
<section>
<div id=wrapper>
<div class=tbl-header>
<table cellpadding=0 cellspacing=0 border=0>
<thead>
<tr>
<th><span>Select</span></th>
<th><span>Titre du livre non disponible</span></th>
<th><span>Date de prêt</span></th>
<th><span>Date de retour</span></th>
<th><span>Retour</span></th>
</tr>
</thead>
</table>
</div>";
echo"
<div class=tbl-content>
<table cellpadding=0 cellspacing=0 border=0>
<tbody>
<tr>";
while($pr=mysqli_fetch_row($result))
{
echo "<tr>";
echo "<form action='returnall.php' method='POST'>";
echo "<td> <h4><input type='checkbox' name='$pr[0]' value='$pr[0]'></h4></td> ";
echo "<td>" . $pr[0] . "</td>";
echo "<td>" . $pr[2] . "</td>";
echo "<td>" . $pr[3] . "</td>";
echo "<td><a href='return.php?titre=$pr[0]'><img align=center src=return.png height=30px width=30px/></a></td>";
echo "</tr>";
}
echo "</tbody> </table></div>
</section>";
echo "<input type=image align =right src=return.png height=60px width=60px>";
echo "</form>";
mysqli_close($connect);
?>
</body>
</html>