-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathprofile.php
87 lines (71 loc) · 2.02 KB
/
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
<?php include 'inc/header.php';?>
<?php
$login = Session::get("cuslogin");
if ($login == false) {
header("Location:login.php");
}
?>
<style>
.tblone{width: 550px;margin:0 auto; border:2px solid #ddd;}
.tblone tr td{text-align: justify;}
</style>
<div class="main">
<div class="content">
<div class="section group">
<?php
$cmr = new Customer();
$id = Session::get("cmrId");
$getdata = $cmr->getCustomerData($id);
if ($getdata) {
while ($result = $getdata->fetch_assoc()) {
?>
<table class="tblone">
<tr>
<td colspan="3"><h2>Your Profile Details</h2></td>
</tr>
<tr>
<td width="20%">Name</td>
<td width="5%">:</td>
<td><?php echo $result['name']; ?></td>
</tr>
<tr>
<td>Address</td>
<td>:</td>
<td><?php echo $result['address']; ?></td>
</tr>
<tr>
<td>City</td>
<td>:</td>
<td><?php echo $result['city']; ?></td>
</tr>
<tr>
<td>Country</td>
<td>:</td>
<td><?php echo $result['country']; ?></td>
</tr>
<tr>
<td>Zipcode</td>
<td>:</td>
<td><?php echo $result['zip']; ?></td>
</tr>
<tr>
<td>Email</td>
<td>:</td>
<td><?php echo $result['email']; ?></td>
</tr>
<tr>
<td>Phone</td>
<td>:</td>
<td><?php echo $result['phone']; ?></td>
</tr>
<tr>
<td></td>
<td></td>
<td><a href="editprofile.php">Update Details</a></td>
</tr>
</table>
<?php } } ?>
</div>
</div>
</div>
<?php include 'inc/footer.php';?>