-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.php
108 lines (78 loc) · 3.6 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!-- Include header.php -->
<?php include 'include/header.php'; ?>
<!-- end of header.php -->
<!-- Check Session -->
<?php Session::checkSession(); ?>
<!-- End Of Check Login -->
<!-- Navbar -->
<?php include 'include/navbar.php'; ?>
<div class="container">
<div class='jumbotron jumbotron-fluid text-center color-set'>
<div class="container">
<h1 class='display-3'>
Profile Managment
</h1>
</div>
</div>
<div class="col-md-6 mx-auto">
<div class='card'>
<div class="card-header color-set">
Your Profile Data
</div>
<div class='card-body '>
<?php
echo $fm->getMsg('msg_notify');
?>
<div class="row">
<?php
$getUserData = $user->getUserData();
if ($getUserData){
while ($result=$getUserData->fetch_assoc()) { ?>
<div class="col-md-8 mx-auto">
<div class='detail-text'>
<label for="name"><strong>Name:</strong></label>
<span class='text-data'> <?php echo $result['name']; ?></span>
</div>
<div class='detail-text'>
<label for="name"><strong>Email:</strong></label>
<span class='text-data'> <?php echo $result['email']; ?></span>
</div>
<div class='detail-text'>
<label for="name"><strong>Account Status:</strong></label>
<span class='text-data'> <?php echo $result['is_active'] == 0 ? 'Not Verified': 'Verified'; ?> </span>
</div>
<hr/>
<div class='detail-text'>
<label for="name"><strong>Created at:</strong></label>
<span class='text-data'><?php echo $result['created_at']; ?></span>
</div>
</div>
<?php } } ?>
</div>
</div>
<div class='card-footer'>
<a href='' data-toggle="modal" data-target="#myModal"><i class='fa fa-trash-o'></i></a>
<a href="edit_profile.php" class='pull-right'><i class='fa fa-pencil-square-o'></i></a>
</div>
</div>
</div>
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" style='cursor:pointer;'>×</button>
</div>
<div class="modal-body text-center">
<p>Do you really want to deactive your account?</p>
</div>
<div class="modal-footer">
<a href="" class="btn btn-danger">Yes</a>
<button type="button" class="btn btn-default" data-dismiss="modal" style='cursor:pointer;'>No</button>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<?php include 'include/footer.php'; ?>