-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewbooks.html
46 lines (46 loc) · 969 Bytes
/
viewbooks.html
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
{% extends 'hospitaltemplete.html' %}
<html>
<head>
<title>View Books</title>
{% block m3 %}
<style>
table, th, td {
border: 1px solid black;
text-align:center;
}
</style>
</head>
<body>
{% if data %}
<table style="width:100%">
<thead>
<tr>
<th>Book Id</th>
<th>Name</th>
<th>Auther</th>
<th>Publisher</th>
<th>Quantity</th>
<th>Issue Books</th>
<th>Date</th>
</tr>
</thead>
{% for d in data %}
<tdata>
<tr>
<td>{{ d[0] }}</td>
<td>{{ d[1] }}</td>
<td>{{ d[2] }}</td>
<td>{{ d[3] }}</td>
<td>{{ d[4] }}</td>
<td>{{ d[5] }}</td>
<td>{{ d[6] }}</td>
</tr>
</tdata>
{% endfor %}
</table>
{% elif msg %}
<h1>{{ msg }}</h1>
{% endif %}
{% endblock %}
</body>
</html>