-
Notifications
You must be signed in to change notification settings - Fork 0
/
client_profile.php
337 lines (277 loc) · 11.6 KB
/
client_profile.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
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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
<?php
session_start();
if (!isset($_SESSION['aadhaar'])) {
echo "You are logged out!";
header('location:index.php');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//Dp XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/Dp/xhtml1-transitional.dp">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Client Profile</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link id="pagestyle" rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.slim.min.js"></script>
<script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/footer.css">
<link rel="stylesheet" href="css/more_nav.css">
<link rel="shortcut icon" type="image/jpg" href="./images/logo.jpeg"/>
<link rel="stylesheet" href="navigation/styles.css">
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script type="text/javascript" src="navigation/script.js"></script>
<script type="text/javascript">
function changesheet(sheet) {
document.getElementById('pagestyle').setAttribute('href', sheet);
}
</script>
<style>
.profile body {
margin-top: 20px;
color: #1a202c;
text-align: left;
background-color: #e2e8f0;
}
.profile .main-body {
padding: 15px;
}
.profile .card {
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);
}
.profile .card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 0 solid rgba(0, 0, 0, .125);
border-radius: .25rem;
}
.profile .card-body {
flex: 1 1 auto;
min-height: 1px;
padding: 1rem;
}
.profile .gutters-sm {
margin-right: -8px;
margin-left: -8px;
}
.profile .gutters-sm>.col,
.profile .gutters-sm>[class*=col-] {
padding-right: 8px;
padding-left: 8px;
}
.profile .mb-3,
.profile .my-3 {
margin-bottom: 1rem !important;
}
.profile .bg-gray-300 {
background-color: #e2e8f0;
}
.profile .h-100 {
height: 100% !important;
}
.profile .shadow-none {
box-shadow: none !important;
}
</style>
</head>
<body>
<?php
$server = "localhost";
$database = "INDIAN_JUDICIARY";
$username = "root";
$password = "";
$portnumber = 3306;
$conn = mysqli_connect($server, $username, $password, $database, $portnumber);
$query = "SELECT * from BIODATA where Aadhaar_ID = $_SESSION[aadhaar];";
$query1 = "SELECT Client_ID from CLIENTS where Aadhaar_ID = $_SESSION[aadhaar];";
$result = mysqli_query($conn, $query);
$result1 = mysqli_query($conn, $query1);
$row = mysqli_fetch_assoc($result);
$aadhaar_fetched = $row['Aadhaar_ID'];
$fName_fetched = $row['Full_Name'];
$email_fetched = $row['Email_ID'];
$dob_fetched = $row['Date_Of_Birth'];
$mobile_fetched = $row['Mobile_Number'];
$address_fetched = $row['Address'];
$password_fetched = $row['Password'];
$row1 = mysqli_fetch_assoc($result1);
$client_fetched = $row1['Client_ID'];
?>
<div class="top-header">
<div class="container">
<div class="row">
<div class="col-md-4 col-12 text-md-left text-center leftmy">
<ul class="top_nav1">
<li><i class="fa fa-calendar"></i> <span id="datedisplay"></span></li>
<li><i class="fa fa-clock-o"></i> <span id="clockDisplay"></span></li>
</ul>
</div>
<div class="col-md-8 col-12 text-md-right text-center righthd">
<ul class="top_nav">
<li><a href="logout.php"><i class="fa fa-reply-all"></i> Logout</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="header">
<div class="container">
<div class="row">
<div class="logo"><a href="#"><img src="images/embnew.jpg" /></a></div>
<div class="col-md-6 h_right text-right">
</div>
</div>
</div>
</div>
<div id="myheader" class="main_navigation">
<div class="container">
<div class="row">
<div id='cssmenu'>
<ul>
<li><a href="client_welcome1.php">Home</a></li>
<li><a href="client_profile.php">Profile</a></li>
<li><a href="court_schedule_postlogin_client.php">Court Schedule</a></li>
<li><a href="client_case_details.php">Case Details</a></li>
<li><a href="step1_find_case.php">Find Lawyer</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="profile">
<div class="container">
<div class="main-body">
<div class="row gutters-sm">
<div class="col-md-4 mb-3">
<div class="card">
<div class="card-body box">
<div class="d-flex flex-column align-items-center text-center">
<img src="./images/client.png" alt="Admin" class="rounded-circle" width="150" height="150px">
<div class="mt-3">
<h4><?php
echo $fName_fetched;
?></h4>
<p class="text-secondary mb-1">Client</p>
</div>
<?php
echo $client_fetched;
?>
</div>
</div>
</div>
</div>
<div class="col-md-8 ">
<div class="card mb-3">
<div class="card-body box">
<div class="row mx-5">
<div class="col-sm-3">
<h6 class="mb-0 ">Full Name</h6>
</div>
<div class="col-sm-9 text-secondary ">
<?php
echo $fName_fetched;
?>
</div>
</div>
<hr>
<div class="row mx-5">
<div class="col-sm-3">
<h6 class="mb-0 ">Aadhaar ID</h6>
</div>
<div class="col-sm-9 text-secondary ">
<?php
echo $aadhaar_fetched;
?>
</div>
</div>
<hr>
<div class="row mx-5">
<div class="col-sm-3">
<h6 class="mb-0">Email ID</h6>
</div>
<div class="col-sm-9 text-secondary">
<?php
echo $email_fetched;
?>
</div>
</div>
<hr>
<div class="row mx-5">
<div class="col-sm-3">
<h6 class="mb-0">Date Of Birth</h6>
</div>
<div class="col-sm-9 text-secondary">
<?php
echo $dob_fetched;
?>
</div>
</div>
<hr>
<div class="row mx-5">
<div class="col-sm-3">
<h6 class="mb-0">Mobile Number</h6>
</div>
<div class="col-sm-9 text-secondary">
<?php
echo $mobile_fetched;
?>
</div>
</div>
<hr>
<div class="row mx-5">
<div class="col-sm-3">
<h6 class="mb-0">Address</h6>
</div>
<div class="col-sm-9 text-secondary">
<?php
echo $address_fetched;
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="sub-footer">
<div class="container">
<div class="row">
<div class="col-md-9">
<div class="copyright">
<p>
<span>Designed by T Naga Tarun, Ajay Vikram P, Aniketh Narayan Bellala</span>
</p>
</div>
</div>
</div>
</div>
</div>
<script>
window.onscroll = function() {
myFunction()
};
var header = document.getElementById("myheader");
var sticky = header.offsetTop;
function myFunction() {
if (window.pageYOffset > sticky) {
header.classList.add("sticky");
} else {
header.classList.remove("sticky");
}
}
</script>
<script src="js/main.js"></script>
<script src="js/font.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
</body>
</html>