-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist.html
More file actions
87 lines (77 loc) · 2.23 KB
/
list.html
File metadata and controls
87 lines (77 loc) · 2.23 KB
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
<html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Results</title>
<style>
body {
background-image: url('https://example.com/background.jpg');
background-size: cover;
background-position: center;
font-family: Arial, sans-serif;
font-size: 16px;
color: #333;
padding: 20px;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
th {
background-color: #555;
color: white;
font-weight: bold;
text-align: left;
padding: 10px;
}
td {
border: 1px solid #ccc;
padding: 10px;
}
td:nth-child(odd) {
background-color: #f2f2f2;
}
form {
display: inline-block;
margin: 0;
padding: 0;
}
input[type=submit] {
background-color: #4a69bb;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
}
input[type=submit]:hover {
background-color: #3c5da9;
}
</style>
</html>
<table >
<thead>
<td><strong>Patient ID</strong></td>
<td><strong>Name</strong></td>
<td><strong>Email</strong></td>
<td><strong>Ph No.</strong></td>
<td><strong>Query</strong></td>
<td></td>
<td></td>
</thead>
{% for row in rows %}
<tr>
<td>{{ row["rowid"] }}</td>
<td>{{ row["name"] }}</td>
<td> {{ row["email"]}}</td>
<td>{{ row["Phone"] }}</td>
<td>{{ row["query"] }}</td>
<td><form action="{{url_for('edit')}}" method="POST"><input type="hidden" name="id" value="{{ row['rowid'] }}"><input type="submit" value="Edit"></form> </td>
</tr>
{% endfor %}
</table>
</head>
</html>