-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatient_docs.php
More file actions
290 lines (256 loc) · 7.8 KB
/
patient_docs.php
File metadata and controls
290 lines (256 loc) · 7.8 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<?php
session_start();
if (!isset($_SESSION['session_user'])) {
die('Access Denied');
}
if (isset($_SESSION['session_user'])) {
//session_start();
$dbserver = "localhost";
$dbuser = "root";
$dbpass = "";
$dbname = "dbms_project";
$mysqli = new mysqli($dbserver, $dbuser, $dbpass, $dbname);
$sql = "SELECT * from donatee_info order by uid desc";
$res = mysqli_query($mysqli, $sql);
//$cat_res = mysqli_query($mysqli, "select * from donatee_info where status = 1");
//ngo
// $sql2 = "SELECT * from ngo_inf order by uid desc";
// $res2 = mysqli_query($mysqli,$sql2);
// $cat_res2 = mysqli_query($mysqli, "select * from ngo_inf where status = 1");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- Mobile Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<!-- Site Metas -->
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>Admin</title>
<!-- slider stylesheet -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.1.3/assets/owl.carousel.min.css" />
<!-- bootstrap core css -->
<link rel="stylesheet" type="text/css" href="css/bootstrap.css" />
<!-- fonts style -->
<link href="https://fonts.googleapis.com/css?family=Lato:400,700|Poppins:400,700|Roboto:400,700&display=swap" rel="stylesheet" />
<!-- Custom styles for this template -->
<link href="css/style.css" rel="stylesheet" />
<!-- responsive style -->
<link href="css/responsive.css" rel="stylesheet" />
</head>
<body class="sub_page">
<div class="hero_area">
<!-- header section strats -->
<header class="header_section">
<div class="container">
<nav class="navbar navbar-expand-lg custom_nav-container ">
<a class="navbar-brand">
<img src="images/hand-care-logo-vector-removebg-preview.png"height="100px" width="150px" alt="" />
</a><h1>AISHI</h1>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<div class="d-flex ml-auto flex-column flex-lg-row align-items-center">
<ul class="navbar-nav ">
<li class="nav-item ">
<a class="nav-link" href="admin_profile.php">
Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="patient_docs.php"> Patient Docs </a>
</li>
<li class="nav-item">
<a class="nav-link" href="ngo_docs.php"> Ngo Docs </a>
</li>
<li class="nav-item">
<button class="btn1"><a class="nav-link" href="logout.php"> Logout</a></button>
</li>
</ul>
</div>
</div>
</nav>
</div>
</header>
<!-- end header section -->
</div>
<style>
.container {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 80%;
}
.column {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.column-heading {
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
}
.textbox {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
.button {
/*background-color: #4CAF50;*/
background-color: rgb(0, 0, 125);
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
margin-bottom: 10px;
}
.checkbox-container {
display: flex;
flex-direction: row;
align-items: center;
margin-bottom: 10px;
}
.image {
width: 100%;
height: auto;
object-fit: cover;
}
.checkbox-label {
margin-left: 5px;
font-size: 16px;
}
.checkbox {
margin-right: 5px;
cursor: pointer;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
display: flex;
flex-wrap: wrap;
}
.image {
width: 50%;
height: auto;
object-fit: cover;
float: left;
}
/*.content {
width: 50%;
padding: 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
text-align: left;
float: right;
}*/
.content{
display: flex;
flex-direction: column;
width: 40%;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
h1 {
font-size: 48px;
margin: 0;
padding: 0;
line-height: 1.2;
}
h2 {
font-size: 36px;
margin: 20px 0 0 0;
padding: 0;
line-height: 1.2;
}
.btn1{
display: block;
/*padding: 10px 20px;*/
background-color: #f3101b;
color: #fff;
border: none;
height:fit-content;
width: fit-content;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
margin-right: 10px;
}
p {
font-size: 18px;
margin: 20px 0 0 0;
padding: 0;
line-height: 1.5;
}
button {
background-color: #fa0909;
align-items: last baseline;
}
</style>
<!-- end header section -->
<br><br>
<div class="container">
<div class="column">
<h2 class="column-heading">Patient</h2>
<?php
$i = 1;
while ($row = mysqli_fetch_assoc($res)) {
$id = $row['uid']; ?>
<div class="container1">
<table>
<tr>
<td><img src="/uploads/<?php echo ($row['image']) ?> " style="width:300px;height: 300px" /></td>
</tr>
<tr>
<th>Name</th>
<td><?php echo "{$row['fname']} {$row['sname']}" ?></td>
</tr>
<tr>
<th>Cause</th>
<td><?php echo $row['cause'] ?></td>
</tr>
<tr>
<th>Expected(INR)</th>
<td><?php echo "{$row['expamount']}" ?></td>
</tr>
<tr>
<th>Raised(INR)</th>
<td><?php echo "{$row['raised_amt']}" ?></td>
</tr>
</table><br>
<button class="button"><a href="/uploads/<?php echo ($row['verification_doc']) ?>">View Documents</a></button>
</div>
<br>
<?php } ?>
</div>
</div>
</body>
<br><br>
<!-- footer section -->
<section class="container-fluid footer_section">
<p>
© 2023 All Rights Reserved By
<a href="https://html.design/">Crowdfunding - AISHI</a>
</p>
</section>
<!-- footer section -->